'use client'; import { useState, useEffect } from 'react'; import Link from 'next/link'; import { motion, useScroll, useTransform } from 'framer-motion'; import { ArrowRightIcon, ShieldCheckIcon, CloudArrowUpIcon, ShareIcon, CubeIcon, UserGroupIcon, SparklesIcon, RocketLaunchIcon } from '@heroicons/react/24/outline'; export default function Home() { const { scrollYProgress } = useScroll(); const opacity = useTransform(scrollYProgress, [0, 0.3], [1, 0]); const scale = useTransform(scrollYProgress, [0, 0.3], [1, 0.8]); const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 }); const [isHovered, setIsHovered] = useState(false); useEffect(() => { const handleMouseMove = (e: MouseEvent) => { setMousePosition({ x: e.clientX, y: e.clientY }); }; window.addEventListener('mousemove', handleMouseMove); return () => { window.removeEventListener('mousemove', handleMouseMove); }; }, []); const features = [ { icon: ShieldCheckIcon, title: "Yggdrasil认证", description: "完整的Minecraft Yggdrasil API支持,安全可靠的用户认证系统", color: "from-amber-400 to-orange-500" }, { icon: CloudArrowUpIcon, title: "云端存储", description: "无限皮肤存储空间,自动备份,随时随地访问你的皮肤库", color: "from-orange-400 to-red-500" }, { icon: ShareIcon, title: "社区分享", description: "与全球玩家分享创作,发现灵感,建立你的粉丝群体", color: "from-red-400 to-pink-500" }, { icon: CubeIcon, title: "3D预览", description: "实时3D皮肤预览,360度旋转查看,支持多种渲染模式", color: "from-pink-400 to-purple-500" } ]; const stats = [ { number: "50K+", label: "注册用户" }, { number: "200K+", label: "皮肤上传" }, { number: "1M+", label: "月活用户" }, { number: "99.9%", label: "服务可用性" } ]; return (
{/* Animated Background */}
{/* Hero Section */}
{/* Logo Animation */}
CS

CarrotSkin

新一代 Minecraft Yggdrasil 皮肤站
为创作者打造的现代化皮肤管理平台
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} > 立即开始 探索皮肤库
{/* Scroll Indicator */}
{/* Stats Section */}
{stats.map((stat, index) => (
{stat.number}
{stat.label}
))}
{/* Features Section */}

为创作者而生的 强大功能

从上传到分享,从管理到展示,每一个细节都为提升你的创作体验而设计

{features.map((feature, index) => (

{feature.title}

{feature.description}

))}
{/* CTA Section */}

准备开启创作之旅?

加入CarrotSkin,体验新一代Minecraft皮肤管理平台,让你的创意无限绽放

免费注册 查看API文档
); }