"use client" import { useEffect, useState } from "react" import Link from "next/link" import { Button } from "@/components/ui/button" import { Sparkles, MessageCircle, Users, BarChart3 } from "lucide-react" import HeaderMusicControl from "@/components/header-music-control" interface Star { id: number; style: { left: string; top: string; animationDelay: string; animationDuration: string; }; } export default function HomePage() { const [stars, setStars] = useState([]); const [bigStars, setBigStars] = useState([]); useEffect(() => { // 生成小星星 setStars( Array.from({ length: 30 }, (_, i) => ({ id: i, style: { left: `${Math.random() * 100}%`, top: `${Math.random() * 100}%`, animationDelay: `${Math.random() * 3}s`, animationDuration: `${2 + Math.random() * 2}s`, }, })) ); // 生成大星星 setBigStars( Array.from({ length: 15 }, (_, i) => ({ id: i, style: { left: `${Math.random() * 100}%`, top: `${Math.random() * 100}%`, animationDelay: `${Math.random() * 4}s`, animationDuration: `${3 + Math.random() * 2}s`, }, })) ); }, []); return (
{/* 星空背景 */}
{/* 星星 */} {stars.map((star) => (
))} {/* 較大的星星 */} {bigStars.map((star) => (
))} {/* 光芒效果 */}
{/* Header - 手機版優化,修復跑版問題 */}
{/* Logo 區域 - 防止文字換行 */}

心願星河

{/* 導航區域 */}
{/* Main Content - 使用 flex-1 讓內容區域填滿剩餘空間 */}
{/* 主要許願瓶 - 添加呼吸動畫 */}
{/* 許願瓶主體 - 呼吸動畫 */}
{/* 瓶口 */}
{/* 瓶內發光效果 - 脈動動畫 */}
{/* 瓶內的月亮和人物剪影 */}
{/* 小人物剪影 */}
{/* 瓶身光澤 */}
{/* 漂浮的光點 - 星光飄散動畫 */}
{/* 額外的星光粒子 */}
{/* 周圍的光芒 - 呼吸光暈 */}

心願星河

每一個工作困擾都值得被理解和支持
讓我們用科技的力量,為你的職場挑戰找到解決方案

{/* 按鈕 */}
{/* Footer - 固定在底部 */}
心願星河

理解每一份職場困擾,用科技創造更好的工作環境

{/* 內聯 CSS 動畫定義 */}
) }