"use client" import Link from "next/link" import { Button } from "@/components/ui/button" import { useAuth } from "@/contexts/auth-context" import { useEffect } from "react" export default function Home() { const { isAuthenticated, user } = useAuth() useEffect(() => { createStarfield() }, []) const createStarfield = () => { const starfield = document.getElementById('starfield') if (!starfield) return const numStars = 100 for (let i = 0; i < numStars; i++) { const star = document.createElement('div') star.className = 'star' star.style.left = Math.random() * 100 + '%' star.style.top = Math.random() * 100 + '%' star.style.width = Math.random() * 3 + 1 + 'px' star.style.height = star.style.width star.style.animationDelay = Math.random() * 2 + 's' starfield.appendChild(star) } // Add falling meteors const createMeteor = () => { const meteor = document.createElement('div') meteor.className = 'meteor' meteor.style.left = Math.random() * 100 + '%' meteor.style.animationDuration = (Math.random() * 2 + 2) + 's' starfield.appendChild(meteor) setTimeout(() => { meteor.remove() }, 5000) } setInterval(createMeteor, 3000) } return (
连接全球观测者,记录天空中每一道流星的轨迹,为科学研究提供珍贵数据
Distributed Meteor Monitoring Network
{!isAuthenticated && (分布在全球的高精度监测设备,24小时不间断捕捉流星事件,构建完整的观测网络。
精彩的流星照片和视频集合,每一帧都记录着宇宙的壮丽瞬间,见证天空的奇迹。
开放的科学数据平台,为天文学家和研究人员提供准确、详细的流星观测数据。
注册账户,访问实时数据,加入全球观测者社区