完善机构终端页面布局与登录页细节调整

This commit is contained in:
2569718930@qq.com
2026-05-25 00:31:11 +08:00
parent fd2531341d
commit b6d7b07708
5 changed files with 749 additions and 308 deletions
+295 -128
View File
@@ -7,11 +7,13 @@ import {
ArrowRight,
ChevronLeft,
Chrome,
Cloud,
CloudRain,
CloudSun,
Lock,
Mail,
Sun,
Eye,
EyeOff,
} from "lucide-react";
import {
getSupabaseBrowserClient,
@@ -36,12 +38,15 @@ export function LoginClient({ nextPath }: LoginClientProps) {
const [errorText, setErrorText] = useState("");
const [infoText, setInfoText] = useState("");
const [resetSent, setResetSent] = useState(false);
const [showPassword, setShowPassword] = useState(false);
const supabaseReady = hasSupabasePublicEnv();
const isLogin = mode === "login";
const siteOrigin =
getConfiguredSiteUrl() ||
(typeof window !== "undefined" ? window.location.origin : PRODUCTION_SITE_URL);
const isEn = locale === "en-US";
const copy = {
backHome: isEn ? "Back to Home" : "返回首页",
subtitle: isEn
@@ -57,7 +62,7 @@ export function LoginClient({ nextPath }: LoginClientProps) {
passwordSignupPlaceholder: isEn
? "Set at least 6 characters"
: "设置至少 6 位密码",
loginSubmit: isEn ? "Start your weather journey" : "开启天气之旅",
loginSubmit: isEn ? "Start your weather journey" : "开启天气交易之旅",
signupSubmit: isEn ? "Create account now" : "立即创建账号",
loginHint: isEn
? "After signing in, your homepage will be personalized."
@@ -87,6 +92,21 @@ export function LoginClient({ nextPath }: LoginClientProps) {
loginFailedHint: isEn
? "If you just signed up, please verify your email first. Check your inbox or spam folder."
: "如果刚注册,请先点击邮箱中的验证链接。检查收件箱或垃圾邮件。",
// New translations for Koyfin-style layouts
workEmail: isEn ? "Work email" : "工作邮箱",
password: isEn ? "Password" : "密码",
welcomeBack: isEn ? "Welcome Back" : "欢迎回来",
signUpTitle: isEn ? "Sign up for your PolyWeather account" : "注册您的 PolyWeather 账户",
newToPoly: isEn ? "New to PolyWeather?" : "还没有 PolyWeather 账号?",
alreadyHave: isEn ? "Already have an account?" : "已经有账号了?",
termsAgreement: isEn
? "By proceeding, you agree to the Privacy Policy and Terms & Conditions."
: "继续操作即代表您同意隐私政策与服务条款。",
desc: isEn
? "Access robust METAR observations, advanced DEB forecast blends, and real-time AI decision cards that bring clarity to your weather-market portfolios."
: "提供精准的机场 METAR 实况、先进的 DEB 智能融合预测和实时 AI 决策卡片,助您看清天气市场脉络。",
trusted: isEn ? "Trusted by institutional traders" : "深受机构交易员信赖",
} as const;
const onResetPassword = async () => {
@@ -214,152 +234,299 @@ export function LoginClient({ nextPath }: LoginClientProps) {
}
};
const isLogin = mode === "login";
if (mode === "signup") {
return (
<div className="flex min-h-screen w-full flex-col lg:flex-row bg-[#f8fafc] font-sans text-slate-900">
{/* Left Dark Column */}
<div className="relative flex flex-col justify-between bg-[#11161d] p-8 text-white lg:w-[480px] xl:w-[540px] shrink-0">
<div className="flex flex-col gap-12">
<Link href="/" className="flex items-center gap-2.5 font-bold hover:opacity-90">
<span className="grid h-8 w-8 place-items-center rounded bg-blue-600 text-white">
<CloudSun size={18} />
</span>
<span className="text-lg tracking-tight">PolyWeather</span>
</Link>
<div className="mt-8 space-y-6">
<h2 className="text-3xl font-black leading-[1.2] tracking-tight">
{isEn ? (
<>
Weather intelligence and risk management{" "}
<span className="inline-block px-2 py-0.5 rounded bg-blue-600 text-white font-bold text-[0.95em]">
simplified.
</span>
</>
) : (
<>
{" "}
<span className="inline-block px-2 py-0.5 rounded bg-blue-600 text-white font-bold text-[0.95em]">
</span>
</>
)}
</h2>
<p className="text-sm leading-7 text-slate-400 max-w-md">
{copy.desc}
</p>
</div>
</div>
<div className="mt-12 space-y-8">
<div className="space-y-3">
<p className="text-xs font-semibold uppercase tracking-wider text-slate-500">
{copy.trusted}
</p>
<div className="grid grid-cols-2 gap-3 max-w-sm">
{[
"Atmos Capital",
"Celerity Risk",
"Metis Trading",
"Aviation Hedge",
].map((name) => (
<div
key={name}
className="flex h-9 items-center justify-center rounded border border-white/10 bg-white/5 text-xs font-medium text-slate-400"
>
{name}
</div>
))}
</div>
</div>
<div className="flex items-center gap-2 text-xs text-slate-400">
<span className="text-yellow-500"></span>
<span>4.9 out of 5 stars (G2 rating)</span>
</div>
</div>
</div>
{/* Right White Column (Signup Form) */}
<div className="flex flex-1 flex-col items-center justify-center p-8 bg-white">
<div className="w-full max-w-[400px]">
<h1 className="text-2xl font-black tracking-tight text-slate-900 mb-2">
{copy.signUpTitle}
</h1>
<p className="text-xs text-slate-500 mb-6">
{copy.subtitle}
</p>
<form onSubmit={(event) => void onEmailSubmit(event)} className="space-y-4">
<div className="space-y-1.5">
<label className="text-xs font-bold text-slate-700 uppercase tracking-wide">
{copy.workEmail}
</label>
<div className="relative">
<Mail className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<input
type="email"
required
value={email}
onChange={(event) => setEmail(event.target.value)}
placeholder="yourname@email.com"
className="w-full rounded-lg border border-slate-300 bg-white py-2.5 pl-10 pr-4 text-sm text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
</div>
</div>
<div className="space-y-1.5">
<label className="text-xs font-bold text-slate-700 uppercase tracking-wide">
{copy.password}
</label>
<div className="relative">
<Lock className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<input
type={showPassword ? "text" : "password"}
required
minLength={6}
value={password}
onChange={(event) => setPassword(event.target.value)}
placeholder={copy.passwordSignupPlaceholder}
className="w-full rounded-lg border border-slate-300 bg-white py-2.5 pl-10 pr-10 text-sm text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
className="absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600"
>
{showPassword ? <EyeOff size={16} /> : <Eye size={16} />}
</button>
</div>
</div>
<p className="text-[11px] leading-5 text-slate-500 mt-2">
{copy.termsAgreement}
</p>
<button
type="submit"
disabled={loading}
className="flex w-full items-center justify-center rounded-lg bg-blue-600 py-3 text-sm font-bold text-white shadow-sm transition hover:bg-blue-700 disabled:opacity-50"
>
{copy.signupSubmit}
</button>
</form>
<div className="my-5 flex items-center">
<div className="h-px flex-grow bg-slate-200" />
<span className="px-3 text-[10px] font-semibold uppercase text-slate-400">
{isEn ? "or" : "或"}
</span>
<div className="h-px flex-grow bg-slate-200" />
</div>
<button
type="button"
onClick={() => void onGoogleSignIn()}
disabled={loading}
className="flex w-full items-center justify-center rounded-lg border border-slate-300 bg-white px-4 py-2.5 text-sm font-semibold text-slate-700 shadow-sm transition hover:bg-slate-50 disabled:opacity-50"
>
<Chrome className="mr-2 h-4 w-4 text-blue-600" />
{copy.googleOneClick}
</button>
{errorText ? <p className="mt-4 rounded-lg border border-rose-200 bg-rose-50 px-3 py-2 text-xs text-rose-700">{errorText}</p> : null}
{infoText ? <p className="mt-4 rounded-lg border border-emerald-200 bg-emerald-50 px-3 py-2 text-xs text-emerald-700">{infoText}</p> : null}
<p className="mt-6 text-center text-xs text-slate-500">
{copy.alreadyHave}{" "}
<button
type="button"
onClick={() => setMode("login")}
className="font-bold text-blue-600 hover:underline"
>
{copy.login}
</button>
</p>
</div>
</div>
</div>
);
}
return (
<div className="relative flex min-h-screen w-full flex-col items-center justify-center overflow-hidden bg-[#f4f7fb] px-4 py-8 font-sans text-slate-900">
<div className="absolute inset-x-0 top-0 h-24 border-b border-slate-200 bg-white" />
<div className="relative w-full max-w-[420px] rounded-2xl border border-slate-200 bg-white p-8 shadow-[0_24px_70px_rgba(15,23,42,0.12)]">
<Link
href="/"
className="group absolute left-6 top-6 rounded-lg border border-slate-200 bg-slate-50 p-2 text-slate-500 transition-all hover:border-slate-300 hover:bg-white hover:text-slate-900 active:scale-95"
title={copy.backHome}
aria-label={copy.backHome}
>
<ChevronLeft className="h-5 w-5 transition-transform group-hover:-translate-x-0.5" />
</Link>
<div className="mb-8 flex flex-col items-center">
<div className="mb-4 flex h-16 w-16 items-center justify-center rounded-xl border border-blue-200 bg-blue-600 shadow-sm">
<Cloud className="h-10 w-10 text-white" />
</div>
<h1 className="text-3xl font-bold tracking-tight text-slate-950">PolyWeather</h1>
<p className="mt-2 text-center text-sm text-slate-500">{copy.subtitle}</p>
</div>
<button
type="button"
onClick={() => void onGoogleSignIn()}
disabled={loading}
className="mb-6 flex w-full items-center justify-center rounded-lg border border-slate-300 bg-white px-4 py-3.5 font-semibold text-slate-900 shadow-sm transition-all duration-200 hover:border-slate-400 hover:bg-slate-50 active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-70"
>
<Chrome className="mr-3 h-5 w-5" />
{copy.googleOneClick}
</button>
<div className="my-6 flex items-center">
<div className="h-px flex-grow bg-slate-200" />
<span className="px-4 text-xs font-semibold uppercase text-slate-500">
{copy.orEmail}
<div className="flex min-h-screen w-full flex-col bg-[#f8fafc] font-sans text-slate-900">
{/* Top Header */}
<header className="flex h-16 items-center justify-between border-b border-slate-200 bg-white px-6">
<Link href="/" className="flex items-center gap-2.5 font-bold hover:opacity-90">
<span className="grid h-8 w-8 place-items-center rounded bg-blue-600 text-white">
<CloudSun size={18} />
</span>
<div className="h-px flex-grow bg-slate-200" />
</div>
<div className="mb-6 flex rounded-lg border border-slate-200 bg-slate-100 p-1">
<button
type="button"
onClick={() => setMode("login")}
className={`flex-1 rounded-lg py-2 text-sm font-medium transition-all ${
isLogin
? "bg-white text-slate-950 shadow-sm"
: "text-slate-500 hover:text-slate-900"
}`}
>
{copy.login}
</button>
<span className="text-lg tracking-tight">PolyWeather</span>
</Link>
<div className="flex items-center gap-3">
<span className="text-xs text-slate-500 hidden sm:inline">{copy.newToPoly}</span>
<button
type="button"
onClick={() => setMode("signup")}
className={`flex-1 rounded-lg py-2 text-sm font-medium transition-all ${
!isLogin
? "bg-white text-slate-950 shadow-sm"
: "text-slate-500 hover:text-slate-900"
}`}
className="rounded-lg border border-slate-300 bg-white px-3 py-1.5 text-xs font-bold text-slate-700 shadow-sm transition hover:border-slate-400 hover:text-slate-950"
>
{copy.signup}
</button>
</div>
</header>
<form onSubmit={(event) => void onEmailSubmit(event)} className="space-y-4">
<div className="relative">
<Mail className="absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-slate-500" />
<input
type="email"
required
value={email}
onChange={(event) => setEmail(event.target.value)}
placeholder="you@example.com"
className="w-full rounded-lg border border-slate-300 bg-white py-3.5 pl-12 pr-4 text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
</div>
<div className="relative">
<Lock className="absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-slate-500" />
<input
type="password"
required
minLength={6}
value={password}
onChange={(event) => setPassword(event.target.value)}
placeholder={
isLogin
? copy.passwordLoginPlaceholder
: copy.passwordSignupPlaceholder
}
className="w-full rounded-lg border border-slate-300 bg-white py-3.5 pl-12 pr-4 text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
</div>
{/* Main Login Card Area */}
<main className="flex flex-1 items-center justify-center p-6">
<div className="w-full max-w-[400px] rounded-2xl border border-slate-200 bg-white p-8 shadow-[0_12px_40px_rgba(15,23,42,0.06)]">
<h1 className="text-2xl font-black tracking-tight text-slate-900 mb-2">
{copy.welcomeBack}
</h1>
<p className="text-xs text-slate-500 mb-6">
{copy.subtitle}
</p>
{isLogin && !resetSent ? (
<div className="mt-2 text-right">
<button
type="button"
onClick={() => void onResetPassword()}
disabled={loading}
className="text-xs text-slate-500 underline-offset-2 transition-all hover:text-blue-600 hover:underline disabled:opacity-50"
>
{copy.reset}
</button>
<form onSubmit={(event) => void onEmailSubmit(event)} className="space-y-4">
<div className="space-y-1.5">
<label className="text-xs font-bold text-slate-700 uppercase tracking-wide">
{copy.workEmail}
</label>
<div className="relative">
<Mail className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<input
type="email"
required
value={email}
onChange={(event) => setEmail(event.target.value)}
placeholder="yourname@email.com"
className="w-full rounded-lg border border-slate-300 bg-white py-2.5 pl-10 pr-4 text-sm text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
</div>
</div>
) : null}
<div className="space-y-1.5">
<div className="flex justify-between items-center">
<label className="text-xs font-bold text-slate-700 uppercase tracking-wide">
{copy.password}
</label>
{isLogin && !resetSent ? (
<button
type="button"
onClick={() => void onResetPassword()}
disabled={loading}
className="text-xs text-slate-500 hover:text-blue-600 transition-colors"
>
{copy.reset}
</button>
) : null}
</div>
<div className="relative">
<Lock className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400" />
<input
type={showPassword ? "text" : "password"}
required
minLength={6}
value={password}
onChange={(event) => setPassword(event.target.value)}
placeholder={copy.passwordLoginPlaceholder}
className="w-full rounded-lg border border-slate-300 bg-white py-2.5 pl-10 pr-10 text-sm text-slate-950 placeholder:text-slate-400 transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20"
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
className="absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600"
>
{showPassword ? <EyeOff size={16} /> : <Eye size={16} />}
</button>
</div>
</div>
<button
type="submit"
disabled={loading}
className="flex w-full items-center justify-center rounded-lg bg-[#11161d] py-3 text-sm font-bold text-white shadow-sm transition hover:bg-[#1f2937] disabled:opacity-50 mt-6"
>
{copy.loginSubmit}
</button>
</form>
<div className="my-5 flex items-center">
<div className="h-px flex-grow bg-slate-200" />
<span className="px-3 text-[10px] font-semibold uppercase text-slate-400">
{isEn ? "or" : "或"}
</span>
<div className="h-px flex-grow bg-slate-200" />
</div>
<button
type="submit"
type="button"
onClick={() => void onGoogleSignIn()}
disabled={loading}
className="group mt-8 flex w-full items-center justify-center rounded-lg border border-blue-700 bg-blue-600 py-3.5 font-bold text-white shadow-sm transition-all hover:bg-blue-700 active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-70"
className="flex w-full items-center justify-center rounded-lg border border-slate-300 bg-white px-4 py-2.5 text-sm font-semibold text-slate-700 shadow-sm transition hover:bg-slate-50 disabled:opacity-50"
>
{isLogin ? copy.loginSubmit : copy.signupSubmit}
<ArrowRight className="ml-2 h-5 w-5 transition-transform group-hover:translate-x-1" />
<Chrome className="mr-2 h-4 w-4 text-blue-600" />
{copy.googleOneClick}
</button>
</form>
{errorText ? <p className="mt-4 rounded-lg border border-rose-200 bg-rose-50 px-3 py-2 text-sm text-rose-700">{errorText}</p> : null}
{infoText ? <p className="mt-4 rounded-lg border border-emerald-200 bg-emerald-50 px-3 py-2 text-sm text-emerald-700">{infoText}</p> : null}
{errorText && isLogin && errorText.includes("Invalid login") ? (
<p className="mt-1 text-xs text-slate-500">{copy.loginFailedHint}</p>
) : null}
{infoText === copy.signupCheckEmail ? (
<p className="mt-1 text-xs text-slate-500">{copy.resendVerify}</p>
) : null}
<div className="mt-8 text-center">
<p className="text-xs text-slate-500">
{isLogin ? copy.loginHint : copy.signupHint}
</p>
{errorText ? <p className="mt-4 rounded-lg border border-rose-200 bg-rose-50 px-3 py-2 text-xs text-rose-700">{errorText}</p> : null}
{infoText ? <p className="mt-4 rounded-lg border border-emerald-200 bg-emerald-50 px-3 py-2 text-xs text-emerald-700">{infoText}</p> : null}
{errorText && isLogin && errorText.includes("Invalid login") ? (
<p className="mt-2 text-center text-xs text-slate-500">{copy.loginFailedHint}</p>
) : null}
{infoText === copy.signupCheckEmail ? (
<p className="mt-2 text-center text-xs text-slate-500">{copy.resendVerify}</p>
) : null}
</div>
{!supabaseReady ? (
<p className="mt-3 text-center text-sm text-rose-300">{copy.supabaseMissing}</p>
) : null}
</div>
<div className="relative mt-6 flex items-center gap-4 text-sm font-medium text-slate-500">
<span className="flex items-center">
<Sun className="mr-1 h-4 w-4" /> {copy.realtime}
</span>
<span className="flex items-center">
<CloudRain className="mr-1 h-4 w-4" /> {copy.highPrecision}
</span>
</div>
</main>
</div>
);
}
@@ -4,101 +4,148 @@ import { Skeleton } from "@/components/ui/skeleton";
export function DashboardShellSkeleton() {
return (
<div
style={{
background:
"radial-gradient(circle at top, rgba(30,41,59,0.45), rgba(2,6,23,0.98) 55%)",
height: "100vh",
overflow: "hidden",
position: "relative",
width: "100vw",
}}
>
<div
style={{
alignItems: "center",
backdropFilter: "blur(16px)",
background: "rgba(10,14,26,0.78)",
borderBottom: "1px solid rgba(99,102,241,0.15)",
display: "flex",
height: 56,
justifyContent: "space-between",
left: 0,
padding: "0 24px",
position: "fixed",
right: 0,
top: 0,
zIndex: 20,
}}
>
<div style={{ display: "flex", flexDirection: "column", gap: 8 }}>
<Skeleton className="h-6 w-40 bg-zinc-700/60" />
<Skeleton className="h-3 w-28 bg-zinc-800/70" />
</div>
<div style={{ display: "flex", gap: 10 }}>
<Skeleton className="h-8 w-20 rounded-full bg-zinc-800/70" />
<Skeleton className="h-8 w-28 rounded-full bg-zinc-800/70" />
</div>
</div>
<div className="flex h-screen w-screen overflow-hidden bg-[#e9edf3] font-sans text-slate-900">
{/* Dark Sidebar */}
<aside className="w-[52px] shrink-0 bg-[#171d24] flex flex-col items-center gap-4 py-4">
{/* Logo Placeholder */}
<div className="w-8 h-8 rounded bg-blue-600/30 animate-pulse" />
{/* Menu Icon */}
<div className="w-6 h-6 rounded bg-slate-700/50" />
{/* Navigation Items */}
{Array.from({ length: 6 }).map((_, i) => (
<div key={i} className="w-8 h-8 rounded bg-slate-700/20" />
))}
</aside>
<div
style={{
bottom: 24,
display: "flex",
gap: 24,
left: 24,
position: "absolute",
right: 24,
top: 80,
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
gap: 14,
maxWidth: 280,
width: "22vw",
}}
>
<Skeleton className="h-10 w-40 rounded-xl bg-zinc-800/80" />
{Array.from({ length: 6 }).map((_, index) => (
<Skeleton
key={index}
className="h-14 w-full rounded-2xl bg-zinc-900/75"
/>
))}
</div>
{/* Main Content Area */}
<div className="flex flex-1 flex-col min-w-0">
{/* Dark Top Header */}
<header className="h-[64px] shrink-0 bg-[#171d24] flex items-center justify-between px-4">
<div className="flex items-center gap-4 w-1/3">
{/* Search Box Skeleton */}
<div className="h-10 w-full max-w-[320px] rounded bg-slate-700/40" />
{/* Title Skeleton */}
<div className="h-4 w-32 rounded bg-slate-700/30 hidden md:block" />
</div>
<div className="flex items-center gap-3">
{/* Clock & Profile Skeletons */}
<div className="h-4 w-16 rounded bg-slate-700/30 font-mono" />
<div className="h-9 w-20 rounded bg-slate-700/40" />
<div className="h-9 w-9 rounded-full bg-slate-700/40" />
</div>
</header>
<div style={{ flex: 1, position: "relative" }}>
<Skeleton className="h-full w-full rounded-[28px] bg-zinc-950/55" />
{Array.from({ length: 8 }).map((_, index) => (
<Skeleton
key={index}
className="absolute rounded-full bg-cyan-500/20"
style={{
height: 18,
left: `${10 + index * 10}%`,
top: `${20 + ((index * 9) % 45)}%`,
width: 18,
}}
/>
))}
</div>
{/* Workspace Body Skeletons (3 Columns) */}
<main className="flex-1 overflow-hidden p-2 grid grid-cols-1 gap-2 xl:grid-cols-[1.12fr_1.6fr_1.1fr]">
{/* Column 1 */}
<div className="flex flex-col gap-2 min-h-0">
{/* Card 1 */}
<div className="flex-1 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-28 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<Skeleton className="h-12 w-full bg-slate-100/80 rounded animate-pulse" />
<div className="flex-1 flex flex-col gap-2 mt-2">
{Array.from({ length: 6 }).map((_, idx) => (
<div key={idx} className="flex justify-between items-center">
<Skeleton className="h-4 w-32 bg-slate-100" />
<Skeleton className="h-4 w-12 bg-slate-100" />
</div>
))}
</div>
</div>
{/* Card 2 */}
<div className="h-1/3 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-32 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex-1 flex flex-col gap-2">
{Array.from({ length: 3 }).map((_, idx) => (
<Skeleton key={idx} className="h-8 w-full bg-slate-100" />
))}
</div>
</div>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
gap: 14,
maxWidth: 420,
width: "30vw",
}}
>
<Skeleton className="h-16 w-full rounded-3xl bg-zinc-900/80" />
<Skeleton className="h-48 w-full rounded-3xl bg-zinc-900/70" />
<Skeleton className="h-32 w-full rounded-3xl bg-zinc-900/70" />
</div>
{/* Column 2 */}
<div className="flex flex-col gap-2 min-h-0">
{/* Card 1 */}
<div className="h-[200px] rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-40 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex items-center gap-4 mt-2">
<div className="flex-1 space-y-2">
<Skeleton className="h-6 w-32 bg-slate-200" />
<Skeleton className="h-3 w-full bg-slate-100" />
<Skeleton className="h-3 w-2/3 bg-slate-100" />
</div>
<Skeleton className="w-32 h-16 bg-slate-100 rounded" />
</div>
</div>
{/* Card 2 */}
<div className="h-[120px] rounded border border-[#cfd6df] bg-white p-4 flex flex-col justify-between">
<Skeleton className="h-4 w-32 bg-slate-200" />
<div className="grid grid-cols-3 gap-2">
<Skeleton className="h-10 w-full bg-slate-100" />
<Skeleton className="h-10 w-full bg-slate-100" />
<Skeleton className="h-10 w-full bg-slate-100" />
</div>
</div>
{/* Card 3 */}
<div className="flex-1 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-28 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex-1 flex flex-col gap-2">
{Array.from({ length: 5 }).map((_, idx) => (
<Skeleton key={idx} className="h-10 w-full bg-slate-100" />
))}
</div>
</div>
</div>
{/* Column 3 */}
<div className="flex flex-col gap-2 min-h-0">
{/* Card 1 */}
<div className="flex-1 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-24 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex-1 flex flex-col gap-3">
{Array.from({ length: 6 }).map((_, idx) => (
<Skeleton key={idx} className="h-10 w-full bg-slate-100" />
))}
</div>
</div>
{/* Card 2 */}
<div className="h-1/3 rounded border border-[#cfd6df] bg-white p-4 flex flex-col justify-between">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-36 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="grid grid-cols-3 gap-2">
<div className="h-12 bg-slate-100 rounded flex flex-col justify-center items-center gap-1">
<Skeleton className="h-3 w-6 bg-slate-200" />
<Skeleton className="h-2 w-8 bg-slate-200/50" />
</div>
<div className="h-12 bg-slate-100 rounded flex flex-col justify-center items-center gap-1">
<Skeleton className="h-3 w-6 bg-slate-200" />
<Skeleton className="h-2 w-8 bg-slate-200/50" />
</div>
<div className="h-12 bg-slate-100 rounded flex flex-col justify-center items-center gap-1">
<Skeleton className="h-3 w-6 bg-slate-200" />
<Skeleton className="h-2 w-8 bg-slate-200/50" />
</div>
</div>
</div>
</div>
</main>
</div>
</div>
);
+3 -2
View File
@@ -10,6 +10,7 @@ import {
RotateCw,
BookOpen,
MoreHorizontal,
CloudSun,
} from "lucide-react";
import { useEffect, useState } from "react";
import { useDashboardStore, useProAccess } from "@/hooks/useDashboardStore";
@@ -95,8 +96,8 @@ export function HeaderBar({
return (
<header className="header">
<div className="brand">
<span className="brand-mark" aria-hidden="true">
<Image src="/favicon-32x32.png" alt="" width={24} height={24} priority />
<span className="brand-mark bg-blue-600 !border-transparent flex items-center justify-center text-white" aria-hidden="true">
<CloudSun size={18} />
</span>
<h1>PolyWeather</h1>
<span className="subtitle">{t("header.subtitle")}</span>
@@ -282,6 +282,13 @@ function KoyfinWeatherTerminal({
return (
<div className="flex h-screen w-full overflow-hidden bg-[#e9edf3] text-[#202833]">
<aside className="flex w-[52px] shrink-0 flex-col items-center gap-2 bg-[#171d24] py-4 text-slate-300">
<Link
href="/"
className="mb-2 grid h-8 w-8 place-items-center rounded bg-blue-600 text-white transition hover:bg-blue-700"
title="PolyWeather"
>
<CloudSun size={18} />
</Link>
<Menu size={23} className="mb-3" />
{[CloudSun, Table2, BarChart3, LineChart, Gauge, Bell].map((Icon, i) => (
<button
@@ -564,10 +571,12 @@ function ProductAccessRequired({
<aside className="w-[52px] bg-[#171d24]" />
<main className="flex flex-1 flex-col">
<header className="flex h-[64px] items-center justify-between bg-[#171d24] px-4 text-white">
<div className="flex items-center gap-3 font-black">
<CloudSun size={21} />
PolyWeather Terminal
</div>
<Link href="/" className="flex items-center gap-3 font-black hover:opacity-90">
<span className="grid h-8 w-8 place-items-center rounded bg-blue-600 text-white">
<CloudSun size={18} />
</span>
<span>PolyWeather Terminal</span>
</Link>
<div className="font-mono text-sm text-slate-300">{userLocalTime}</div>
</header>
<section className="grid flex-1 place-items-center p-6">
@@ -1,8 +1,10 @@
import { useState } from "react";
import Link from "next/link";
import {
Activity,
ArrowRight,
BarChart3,
Check,
CheckCircle2,
CloudSun,
Gauge,
@@ -12,8 +14,9 @@ import {
ShieldCheck,
TrendingUp,
} from "lucide-react";
import { I18nProvider, useI18n } from "@/hooks/useI18n";
const marketRows = [
const RAW_MARKET_ROWS_EN = [
["New York", "91.8°F", "+2.4", "High", "Long Yes"],
["Austin", "103.1°F", "+1.1", "Medium", "Wait"],
["Seoul", "83.4°F", "-0.7", "Low", "No Trade"],
@@ -21,7 +24,15 @@ const marketRows = [
["London", "72.6°F", "-0.2", "Low", "Observe"],
];
const coverage = [
const RAW_MARKET_ROWS_ZH = [
["纽约", "91.8°F", "+2.4", "高", "买入多头"],
["奥斯汀", "103.1°F", "+1.1", "中", "观望"],
["首尔", "83.4°F", "-0.7", "低", "无交易"],
["东京", "88.2°F", "+1.8", "高", "买入多头"],
["伦敦", "72.6°F", "-0.2", "低", "观察"],
];
const COVERAGE_EN = [
"Live airport observations",
"DEB blend forecast",
"Market-implied temperature",
@@ -30,25 +41,96 @@ const coverage = [
"Paid Telegram alerts",
];
const platformCards = [
{
icon: Radar,
title: "Live Evidence",
body: "Airport observations and official station data are structured for settlement-aware decisions.",
},
{
icon: Gauge,
title: "Decision Workflow",
body: "City cards combine model forecast, current deviation, risk, and target contract context.",
},
{
icon: ShieldCheck,
title: "Paid Access",
body: "The product workspace is locked until the user has an active subscription.",
},
const COVERAGE_ZH = [
"机场实况观测数据",
"DEB 智能融合预报",
"市场隐含温度定价",
"日内分段结算窗口",
"AI 气象证据链解读",
"付费电报实时通知",
];
export function InstitutionalLandingPage() {
const FREE_FEATURES_EN = [
"Basic temperature dashboards",
"Delayed METAR observations (1 hour)",
"Limited city watchlists",
"Standard model stacked probability chart",
];
const FREE_FEATURES_ZH = [
"基础温度气象看板",
"延迟的 METAR 机场实测 (1小时)",
"有限的城市自选列表",
"基础模型概率堆栈图",
];
const PRO_FEATURES_EN = [
"Everything in Free",
"Real-time METAR observations & alerts",
"DEB blend forecast model",
"Market-implied temperature pricing",
"Intraday settlement windows & risk metrics",
"Paid Telegram alerts & Webhook API",
"24/7 priority professional support",
];
const PRO_FEATURES_ZH = [
"包含所有免费版功能",
"实时 METAR 机场实测与预警",
"DEB 智能融合预测模型",
"市场隐含温度定价与估值",
"日内结算窗口与风险度量指标",
"付费电报群通知与 API 接口推送",
"7×24小时专业技术与客服支持",
];
function InstitutionalLandingScreen() {
const { locale, toggleLocale } = useI18n();
const isEn = locale === "en-US";
const [billingCycle, setBillingCycle] = useState<"annual" | "monthly">("monthly");
const marketRows = isEn ? RAW_MARKET_ROWS_EN : RAW_MARKET_ROWS_ZH;
const coverage = isEn ? COVERAGE_EN : COVERAGE_ZH;
const platformCards = isEn
? [
{
icon: Radar,
title: "Live Evidence",
body: "Airport observations and official station data are structured for settlement-aware decisions.",
},
{
icon: Gauge,
title: "Decision Workflow",
body: "City cards combine model forecast, current deviation, risk, and target contract context.",
},
{
icon: ShieldCheck,
title: "Paid Access",
body: "The product workspace is locked until the user has an active subscription.",
},
]
: [
{
icon: Radar,
title: "实况证据",
body: "针对机场 METAR 与官方站点数据进行结构化整理,专为结算博弈与交割设计。",
},
{
icon: Gauge,
title: "决策工作流",
body: "城市决策卡片融合了气象预报、实况偏差、历史风险系数及目标合约盘口。",
},
{
icon: ShieldCheck,
title: "付费准入",
body: "除公开介绍和账户管理外,气象交易决策台仅向付费活跃订阅用户开放。",
},
];
const modelLabels = isEn
? ["DEB Blend", "Live METAR", "Market Implied"]
: ["DEB 融合预测", "METAR 机场实测", "市场隐含价格"];
return (
<div className="min-h-screen bg-[#f4f7fb] text-slate-950">
<header className="sticky top-0 z-30 border-b border-slate-200 bg-white/95 backdrop-blur">
@@ -61,27 +143,35 @@ export function InstitutionalLandingPage() {
</Link>
<nav className="hidden items-center gap-7 text-sm font-semibold text-slate-600 md:flex">
<a href="#platform" className="hover:text-slate-950">
Platform
{isEn ? "Platform" : "平台简介"}
</a>
<a href="#coverage" className="hover:text-slate-950">
Data Coverage
{isEn ? "Data Coverage" : "数据覆盖"}
</a>
<a href="#pricing" className="hover:text-slate-950">
Pricing
{isEn ? "Pricing" : "价格说明"}
</a>
</nav>
<div className="flex items-center gap-2">
<div className="flex items-center gap-3">
<button
type="button"
className="inline-flex h-9 items-center gap-1 rounded-lg border border-slate-300 bg-white p-1 text-xs font-bold text-slate-500 shadow-sm transition hover:border-slate-400 hover:text-slate-900"
onClick={toggleLocale}
>
<span className={`px-2 py-1 rounded-md transition-colors ${!isEn ? "bg-blue-50 text-blue-700 font-bold" : "hover:text-slate-800"}`}></span>
<span className={`px-2 py-1 rounded-md transition-colors ${isEn ? "bg-blue-50 text-blue-700 font-bold" : "hover:text-slate-800"}`}>EN</span>
</button>
<Link
href="/auth/login?next=%2Fterminal"
className="hidden rounded-lg border border-slate-300 bg-white px-3 py-2 text-sm font-semibold text-slate-700 shadow-sm transition hover:border-slate-400 hover:text-slate-950 sm:inline-flex"
>
Log in
{isEn ? "Log in" : "登录"}
</Link>
<Link
href="/terminal"
className="inline-flex items-center gap-2 rounded-lg border border-blue-700 bg-blue-600 px-3 py-2 text-sm font-bold text-white shadow-sm transition hover:bg-blue-700"
>
Enter Product
{isEn ? "Enter Product" : "进入产品"}
<ArrowRight size={15} />
</Link>
</div>
@@ -93,34 +183,35 @@ export function InstitutionalLandingPage() {
<div>
<div className="mb-5 inline-flex items-center gap-2 rounded-full border border-blue-200 bg-blue-50 px-3 py-1 text-xs font-bold uppercase text-blue-700">
<LockKeyhole size={13} />
Paid professional terminal
{isEn ? "Paid professional terminal" : "付费专业交易终端"}
</div>
<h1 className="max-w-2xl text-4xl font-black leading-[1.05] tracking-normal text-slate-950 sm:text-5xl lg:text-6xl">
Institutional weather market intelligence for paid users.
{isEn ? "Institutional weather market intelligence for paid users." : "面向付费用户的机构级天气交易决策台"}
</h1>
<p className="mt-5 max-w-xl text-base leading-8 text-slate-600 sm:text-lg">
PolyWeather turns live METAR observations, DEB forecast blends,
model probabilities, and market settlement logic into one
professional decision workspace.
{isEn
? "PolyWeather turns live METAR observations, DEB forecast blends, model probabilities, and market settlement logic into one professional decision workspace."
: "PolyWeather 将 METAR 机场实测、DEB 智能融合预报、模型概率及市场结算逻辑整合于一体,打造气象风险管理专业决策环境。"}
</p>
<div className="mt-8 flex flex-col gap-3 sm:flex-row">
<Link
href="/terminal"
className="inline-flex min-h-11 items-center justify-center gap-2 rounded-lg border border-blue-700 bg-blue-600 px-5 py-3 text-sm font-bold text-white shadow-sm transition hover:bg-blue-700"
>
Enter product
{isEn ? "Enter product" : "进入产品决策台"}
<ArrowRight size={16} />
</Link>
<Link
href="/account"
className="inline-flex min-h-11 items-center justify-center gap-2 rounded-lg border border-slate-300 bg-white px-5 py-3 text-sm font-bold text-slate-800 shadow-sm transition hover:border-slate-400 hover:text-slate-950"
>
Subscribe / Manage account
{isEn ? "Subscribe / Manage account" : "订阅服务 / 管理账户"}
</Link>
</div>
<p className="mt-4 text-xs font-medium text-slate-500">
No free product access. Subscription is required before the
terminal opens.
{isEn
? "No free product access. Subscription is required before the terminal opens."
: "无免费公开产品通道。在使用决策台前必须先登录并开通订阅。"}
</p>
</div>
@@ -128,19 +219,19 @@ export function InstitutionalLandingPage() {
<div className="flex items-center justify-between border-b border-slate-200 px-4 py-3">
<div className="flex items-center gap-2 text-sm font-bold">
<BarChart3 size={16} className="text-blue-700" />
Weather Markets Dashboard
{isEn ? "Weather Markets Dashboard" : "天气市场交易面板"}
</div>
<div className="flex items-center gap-2 text-xs font-semibold text-slate-500">
<span className="h-2 w-2 rounded-full bg-emerald-500" />
Live
{isEn ? "Live" : "实时数据"}
</div>
</div>
<div className="grid gap-3 p-3 lg:grid-cols-[1fr_0.85fr]">
<div className="rounded-xl border border-slate-200">
<div className="flex items-center justify-between border-b border-slate-200 bg-slate-50 px-3 py-2">
<strong className="text-sm">Temperature Contracts</strong>
<strong className="text-sm">{isEn ? "Temperature Contracts" : "温度天气合约"}</strong>
<span className="text-xs font-semibold text-slate-500">
Price / Edge / Signal
{isEn ? "Price / Edge / Signal" : "价格 / 偏差 / 信号"}
</span>
</div>
<div className="divide-y divide-slate-100">
@@ -173,36 +264,35 @@ export function InstitutionalLandingPage() {
<div className="space-y-3">
<div className="rounded-xl border border-slate-200 p-4">
<div className="mb-3 flex items-center justify-between">
<strong className="text-sm">Model Stack</strong>
<strong className="text-sm">{isEn ? "Model Stack" : "模型堆栈"}</strong>
<LineChart size={16} className="text-blue-700" />
</div>
<div className="space-y-3">
{["DEB Blend", "Live METAR", "Market Implied"].map(
(label, index) => (
<div key={label}>
<div className="mb-1 flex justify-between text-xs font-semibold text-slate-500">
<span>{label}</span>
<span>{[82, 67, 74][index]}%</span>
</div>
<div className="h-2 rounded-full bg-slate-100">
<div
className="h-2 rounded-full bg-blue-600"
style={{ width: `${[82, 67, 74][index]}%` }}
/>
</div>
{modelLabels.map((label, index) => (
<div key={label}>
<div className="mb-1 flex justify-between text-xs font-semibold text-slate-500">
<span>{label}</span>
<span>{[82, 67, 74][index]}%</span>
</div>
),
)}
<div className="h-2 rounded-full bg-slate-100">
<div
className="h-2 rounded-full bg-blue-600"
style={{ width: `${[82, 67, 74][index]}%` }}
/>
</div>
</div>
))}
</div>
</div>
<div className="rounded-xl border border-emerald-200 bg-emerald-50 p-4">
<div className="mb-2 flex items-center gap-2 text-sm font-bold text-emerald-800">
<TrendingUp size={16} />
Current Signal
{isEn ? "Current Signal" : "当前交易信号"}
</div>
<p className="text-sm leading-6 text-emerald-900">
New York high-temperature market shows a positive
observation deviation with confirmed airport evidence.
{isEn
? "New York high-temperature market shows a positive observation deviation with confirmed airport evidence."
: "纽约高温合约市场出现显著的正向观测偏差,机场天气实况已验证确认。"}
</p>
</div>
</div>
@@ -229,15 +319,16 @@ export function InstitutionalLandingPage() {
<div className="mb-7 flex flex-col justify-between gap-3 md:flex-row md:items-end">
<div>
<p className="text-xs font-bold uppercase text-blue-700">
Data Coverage
{isEn ? "Data Coverage" : "数据覆盖范围"}
</p>
<h2 className="mt-2 text-3xl font-black">
Everything weather-market users need in one place.
{isEn ? "Everything weather-market users need in one place." : "天气市场交易者所需的一切,在此集结。"}
</h2>
</div>
<p className="max-w-xl text-sm leading-6 text-slate-600">
Built for repeat professional use: dense tables, clear status
chips, restrained color, and fast entry into paid workflows.
{isEn
? "Built for repeat professional use: dense tables, clear status chips, restrained color, and fast entry into paid workflows."
: "专为高频专业决策设计:高数据密度、直观的状态徽标、严谨的数据呈现,助您快速进入分析流。"}
</p>
</div>
<div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">
@@ -253,31 +344,157 @@ export function InstitutionalLandingPage() {
</div>
</section>
<section id="pricing" className="bg-slate-950 text-white">
<div className="mx-auto flex max-w-7xl flex-col justify-between gap-6 px-4 py-12 sm:px-6 md:flex-row md:items-center lg:px-8">
<div>
<p className="text-xs font-bold uppercase text-blue-300">
Subscription Required
</p>
<h2 className="mt-2 text-3xl font-black">
Product access starts after payment.
</h2>
<p className="mt-3 max-w-2xl text-sm leading-6 text-slate-300">
Users can read the landing page and account/payment guide
publicly, but the decision terminal opens only for active paid
accounts.
</p>
<section id="pricing" className="border-t border-slate-200 bg-white py-20">
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center">
{/* Header */}
<p className="text-xs font-bold uppercase tracking-wider text-blue-600">
{isEn ? "PRICING" : "价格方案"}
</p>
<h2 className="mt-3 text-4xl font-extrabold tracking-tight text-slate-900 sm:text-5xl">
{isEn ? "We keep it simple" : "简单清晰的定价"}
</h2>
<p className="mx-auto mt-4 max-w-2xl text-base text-slate-500">
{isEn
? "The industry's leading tools at a price to suit everyone."
: "领先的气象数据服务,以合适的价格满足不同交易需求。"}
</p>
{/* Toggle */}
<div className="mt-10 flex justify-center">
<div className="relative flex rounded-full bg-slate-100 p-0.5 border border-slate-200">
<button
type="button"
className={`rounded-full px-6 py-2 text-xs font-bold transition-all duration-200 ${
billingCycle === "annual"
? "bg-white text-slate-900 shadow-sm"
: "text-slate-500 hover:text-slate-800"
}`}
onClick={() => setBillingCycle("annual")}
>
{isEn ? "Annual" : "按年支付"}
</button>
<button
type="button"
className={`rounded-full px-6 py-2 text-xs font-bold transition-all duration-200 ${
billingCycle === "monthly"
? "bg-white text-slate-900 shadow-sm"
: "text-slate-500 hover:text-slate-800"
}`}
onClick={() => setBillingCycle("monthly")}
>
{isEn ? "Monthly" : "按月支付"}
</button>
</div>
</div>
{/* Pricing Cards */}
<div className="mx-auto mt-16 grid max-w-4xl gap-8 px-4 sm:px-6 lg:grid-cols-2 lg:px-8">
{/* Free Plan */}
<div className="flex flex-col justify-between rounded-3xl border border-slate-200 bg-white p-8 shadow-sm transition-all duration-300 hover:-translate-y-1 hover:shadow-md text-left">
<div>
<div className="flex items-center justify-between">
<h3 className="text-xl font-bold text-slate-900">
{isEn ? "Free" : "免费版"}
</h3>
</div>
<p className="mt-2 text-xs text-slate-500 min-h-10 leading-relaxed">
{isEn
? "The ultimate beginner package — basic weather information to get started."
: "适合初学者的基础气象信息与看板服务,快速体验平台。"}
</p>
<div className="mt-6 flex items-baseline">
<span className="text-5xl font-black tracking-tight text-slate-900">$0</span>
<span className="ml-1 text-sm font-semibold text-slate-500">/ {isEn ? "month" : "月"}</span>
</div>
<p className="mt-1 text-xs text-slate-400">
{isEn ? "Free forever" : "永久免费"}
</p>
<div className="mt-8 border-t border-slate-100 pt-6">
<ul className="space-y-4">
{(isEn ? FREE_FEATURES_EN : FREE_FEATURES_ZH).map((feature) => (
<li key={feature} className="flex items-start gap-3">
<Check size={16} className="mt-0.5 shrink-0 text-slate-400" />
<span className="text-sm text-slate-600 font-medium leading-normal">{feature}</span>
</li>
))}
</ul>
</div>
</div>
<div className="mt-8">
<Link
href="/terminal"
className="block w-full rounded-xl border border-slate-300 bg-white py-3 text-center text-sm font-semibold text-slate-700 shadow-sm transition hover:border-slate-400 hover:text-slate-900"
>
{isEn ? "Get Started" : "开始使用"}
</Link>
</div>
</div>
{/* Pro Plan */}
<div className="relative flex flex-col justify-between rounded-3xl border-2 border-blue-600 bg-white p-8 shadow-sm transition-all duration-300 hover:-translate-y-1 hover:shadow-md text-left">
{/* Popular Badge */}
<div className="absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-blue-600 px-4 py-1 text-xs font-bold uppercase tracking-wider text-white shadow-sm">
{isEn ? "Recommended" : "推荐方案"}
</div>
<div>
<div className="flex items-center justify-between">
<h3 className="text-xl font-bold text-slate-900">
{isEn ? "Pro" : "专业版"}
</h3>
</div>
<p className="mt-2 text-xs text-slate-500 min-h-10 leading-relaxed">
{isEn
? "For active traders and institutions who need real-time, settlement-ready intelligence."
: "为活跃交易员和机构提供实时、结算级气象交易数据与决策支持。"}
</p>
<div className="mt-6 flex items-baseline">
<span className="text-5xl font-black tracking-tight text-slate-900">
{billingCycle === "annual" ? "$8" : "$10"}
</span>
<span className="ml-1 text-sm font-semibold text-slate-500">/ {isEn ? "month" : "月"}</span>
</div>
<p className="mt-1 text-xs text-slate-400">
{billingCycle === "annual"
? (isEn ? "Billed annually ($96/year)" : "按年计费 (共 $96/年)")
: (isEn ? "Billed monthly" : "按月计费")}
</p>
<div className="mt-8 border-t border-slate-100 pt-6">
<ul className="space-y-4">
{(isEn ? PRO_FEATURES_EN : PRO_FEATURES_ZH).map((feature) => (
<li key={feature} className="flex items-start gap-3">
<Check size={16} className="mt-0.5 shrink-0 text-blue-600" />
<span className="text-sm text-slate-700 font-semibold leading-normal">{feature}</span>
</li>
))}
</ul>
</div>
</div>
<div className="mt-8">
<Link
href="/account"
className="block w-full rounded-xl bg-slate-950 py-3 text-center text-sm font-semibold text-white shadow-sm transition hover:bg-slate-800"
>
{isEn ? "Subscribe Now" : "立即付费订阅"}
</Link>
</div>
</div>
</div>
<Link
href="/account"
className="inline-flex min-h-11 items-center justify-center gap-2 rounded-lg border border-white/20 bg-white px-5 py-3 text-sm font-bold text-slate-950 transition hover:bg-blue-50"
>
<Activity size={16} />
Subscribe now
</Link>
</div>
</section>
</main>
</div>
);
}
export function InstitutionalLandingPage() {
return (
<I18nProvider>
<InstitutionalLandingScreen />
</I18nProvider>
);
}