mirror of
https://github.com/beilunyang/moemail.git
synced 2025-09-26 19:41:22 +08:00
60 lines
2.3 KiB
TypeScript
60 lines
2.3 KiB
TypeScript
import { Header } from "@/components/layout/header"
|
|
import { auth } from "@/lib/auth"
|
|
import { Shield, Mail, Clock } from "lucide-react"
|
|
import { ActionButton } from "@/components/home/action-button"
|
|
import { FeatureCard } from "@/components/home/feature-card"
|
|
|
|
export const runtime = "edge"
|
|
|
|
export default async function Home() {
|
|
const session = await auth()
|
|
|
|
return (
|
|
<div className="bg-gradient-to-b from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800 h-screen">
|
|
<div className="container mx-auto h-full px-4 lg:px-8 max-w-[1600px]">
|
|
<Header />
|
|
<main className="h-full">
|
|
<div className="h-[calc(100vh-4rem)] flex flex-col items-center justify-center text-center px-4 relative">
|
|
<div className="absolute inset-0 -z-10 bg-grid-primary/5" />
|
|
|
|
<div className="w-full max-w-3xl mx-auto space-y-12 py-8">
|
|
<div className="space-y-4">
|
|
<h1 className="text-3xl sm:text-4xl md:text-5xl font-bold tracking-wider">
|
|
<span className="bg-clip-text text-transparent bg-gradient-to-r from-primary to-purple-600">
|
|
MoeMail
|
|
</span>
|
|
</h1>
|
|
<p className="text-lg sm:text-xl text-gray-600 dark:text-gray-300 tracking-wide">
|
|
萌萌哒临时邮箱服务
|
|
</p>
|
|
</div>
|
|
|
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 px-4 sm:px-0">
|
|
<FeatureCard
|
|
icon={<Shield className="w-5 h-5" />}
|
|
title="隐私保护"
|
|
description="保护您的真实邮箱地址"
|
|
/>
|
|
<FeatureCard
|
|
icon={<Mail className="w-5 h-5" />}
|
|
title="即时收件"
|
|
description="实时接收邮件通知"
|
|
/>
|
|
<FeatureCard
|
|
icon={<Clock className="w-5 h-5" />}
|
|
title="自动过期"
|
|
description="到期自动失效"
|
|
/>
|
|
</div>
|
|
|
|
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 px-4 sm:px-0">
|
|
<ActionButton isLoggedIn={!!session} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|