This commit is contained in:
ryan
2026-06-09 08:19:38 +08:00
parent d14d222ede
commit 7579d3865f
15 changed files with 30 additions and 40 deletions
@@ -3,7 +3,7 @@ import Link from "next/link";
import { cn } from "@/lib/utils";
import { motion } from "motion/react";
import { Button } from "@/components/ui/button";
import { Book, Check, Copy, Key, Terminal } from "lucide-react";
import { Book, Check, Copy, Terminal } from "lucide-react";
export interface DeveloperSectionProps {
className?: string;
+1 -13
View File
@@ -1,10 +1,9 @@
import * as React from "react";
import Link from "next/link";
import { motion } from "motion/react";
import { ArrowRight, Zap, Shield, Globe, CreditCard, Wallet } from "lucide-react";
import { ArrowRight, Zap, Shield, Globe, CreditCard } from "lucide-react";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { CountingNumber } from "@/components/animate-ui/primitives/texts/counting-number";
export interface HeroSectionProps {
className?: string;
@@ -14,17 +13,6 @@ export interface HeroSectionProps {
* Hero Section - 首页 Hero 展示
*/
export const HeroSection = React.memo(function HeroSection({ className }: HeroSectionProps) {
const [balance, setBalance] = React.useState(12450.0);
const [income, setIncome] = React.useState(240.0);
React.useEffect(() => {
const interval = setInterval(() => {
setBalance(Math.random() * (65123.45 - (-65)) + (-65));
setIncome(Math.random() * (656.56 - (-65.65)) + (-65.65));
}, 6565);
return () => clearInterval(interval);
}, []);
return (
<section className={cn("w-full", className)}>