Add landing page and move dashboard to dedicated route

This commit is contained in:
2569718930@qq.com
2026-03-21 15:34:19 +08:00
parent 6aa3a7dda8
commit bddcd434da
4 changed files with 4 additions and 1034 deletions
-12
View File
@@ -1,12 +0,0 @@
import type { Metadata } from "next";
import { DashboardEntry } from "@/components/dashboard/DashboardEntry";
export const metadata: Metadata = {
title: "PolyWeather - Global Weather Intelligence Map",
description:
"PolyWeather dashboard with METAR, MGM, DEB fusion forecast, multi-model comparison, and history reconciliation.",
};
export default function DashboardPage() {
return <DashboardEntry />;
}
+4 -4
View File
@@ -1,12 +1,12 @@
import type { Metadata } from "next";
import { LandingPage } from "@/components/landing/LandingPage";
import { DashboardEntry } from "@/components/dashboard/DashboardEntry";
export const metadata: Metadata = {
title: "PolyWeather | Weather Market Intelligence",
title: "PolyWeather - Global Weather Intelligence Map",
description:
"PolyWeather turns real-time weather observations and model spreads into settlement-focused probabilities, market scan signals, and Pro decision support.",
"PolyWeather dashboard with METAR, MGM, DEB fusion forecast, multi-model comparison, and history reconciliation.",
};
export default function HomePage() {
return <LandingPage />;
return <DashboardEntry />;
}
@@ -1,547 +0,0 @@
.page {
position: relative;
overflow: hidden;
}
.shell {
margin: 0 auto;
width: min(1180px, calc(100% - 32px));
}
.heroGrid {
display: grid;
gap: 24px;
grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}
.panel {
border: 1px solid rgba(148, 163, 184, 0.16);
background:
linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.78));
box-shadow:
0 24px 80px rgba(2, 6, 23, 0.42),
inset 0 1px 0 rgba(255, 255, 255, 0.06);
backdrop-filter: blur(14px);
}
.heroCard {
padding: 28px;
border-radius: 28px;
}
.heroEyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 18px;
border-radius: 999px;
border: 1px solid rgba(34, 211, 238, 0.24);
background: rgba(8, 47, 73, 0.34);
padding: 8px 14px;
color: #a5f3fc;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.heroTitle {
max-width: 11ch;
font-size: clamp(46px, 8vw, 84px);
line-height: 0.94;
font-weight: 800;
letter-spacing: -0.05em;
}
.heroLead {
margin-top: 22px;
max-width: 60ch;
color: rgba(226, 232, 240, 0.84);
font-size: 17px;
line-height: 1.7;
}
.heroActions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 28px;
}
.primaryButton,
.secondaryButton {
display: inline-flex;
min-height: 48px;
align-items: center;
gap: 10px;
border-radius: 14px;
padding: 12px 18px;
font-weight: 700;
transition:
transform 180ms ease,
border-color 180ms ease,
background 180ms ease;
}
.primaryButton:hover,
.secondaryButton:hover {
transform: translateY(-1px);
}
.primaryButton {
background: linear-gradient(135deg, #22d3ee, #3b82f6);
color: #020617;
}
.secondaryButton {
border: 1px solid rgba(148, 163, 184, 0.22);
background: rgba(15, 23, 42, 0.58);
color: #e2e8f0;
}
.bulletGrid {
display: grid;
gap: 14px;
margin-top: 28px;
}
.bulletItem {
display: flex;
gap: 12px;
align-items: flex-start;
}
.bulletItem svg {
margin-top: 3px;
color: #67e8f9;
flex: 0 0 auto;
}
.bulletItem strong {
display: block;
margin-bottom: 4px;
font-size: 15px;
}
.bulletItem span {
color: rgba(203, 213, 225, 0.76);
font-size: 14px;
line-height: 1.55;
}
.heroSide {
display: grid;
gap: 16px;
}
.signalCard {
padding: 22px;
border-radius: 24px;
}
.signalHeader {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
}
.signalHeader h3 {
font-size: 18px;
font-weight: 700;
}
.signalHeader p {
margin-top: 6px;
color: rgba(191, 219, 254, 0.76);
font-size: 13px;
}
.statusPill {
border-radius: 999px;
background: rgba(34, 197, 94, 0.14);
color: #86efac;
padding: 7px 12px;
font-size: 12px;
font-weight: 700;
}
.metricGrid {
display: grid;
gap: 12px;
margin-top: 18px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.metricCard {
border-radius: 18px;
border: 1px solid rgba(148, 163, 184, 0.12);
background: rgba(15, 23, 42, 0.52);
padding: 16px;
}
.metricCard label {
display: block;
color: rgba(148, 163, 184, 0.9);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.metricCard strong {
display: block;
margin-top: 8px;
font-size: 28px;
font-weight: 800;
letter-spacing: -0.03em;
}
.metricCard span {
display: block;
margin-top: 6px;
color: rgba(226, 232, 240, 0.74);
font-size: 13px;
line-height: 1.5;
}
.previewStrip {
margin-top: 18px;
display: grid;
gap: 10px;
}
.previewRow {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
border-radius: 14px;
background: rgba(2, 6, 23, 0.42);
padding: 12px 14px;
color: #cbd5e1;
font-size: 14px;
}
.previewRow strong {
color: #f8fafc;
}
.section {
margin-top: 64px;
}
.sectionHeader {
display: flex;
justify-content: space-between;
gap: 18px;
align-items: end;
margin-bottom: 24px;
}
.sectionHeader h2 {
font-size: clamp(28px, 4vw, 42px);
line-height: 1.05;
font-weight: 800;
letter-spacing: -0.04em;
}
.sectionHeader p {
max-width: 58ch;
color: rgba(203, 213, 225, 0.72);
line-height: 1.7;
}
.problemGrid,
.featureGrid,
.proofGrid,
.pricingGrid,
.ctaGrid {
display: grid;
gap: 18px;
}
.problemGrid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.featureGrid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proofGrid,
.pricingGrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ctaGrid {
grid-template-columns: 1.1fr 0.9fr;
}
.miniCard,
.pricingCard,
.ctaCard {
border-radius: 24px;
padding: 22px;
}
.miniCard h3,
.pricingCard h3,
.ctaCard h3 {
font-size: 20px;
font-weight: 700;
}
.miniCard p,
.pricingCard p,
.ctaCard p {
margin-top: 10px;
color: rgba(203, 213, 225, 0.74);
line-height: 1.65;
}
.miniCard ul,
.pricingCard ul {
margin-top: 18px;
display: grid;
gap: 10px;
color: rgba(241, 245, 249, 0.92);
font-size: 14px;
}
.miniCard li,
.pricingCard li {
display: flex;
gap: 10px;
align-items: flex-start;
}
.miniCard li::before,
.pricingCard li::before {
content: "";
margin-top: 7px;
width: 6px;
height: 6px;
border-radius: 999px;
background: linear-gradient(135deg, #22d3ee, #60a5fa);
flex: 0 0 auto;
}
.previewPanel {
overflow: hidden;
border-radius: 28px;
padding: 0;
}
.previewTop {
padding: 22px;
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.previewTop h3 {
font-size: 22px;
font-weight: 700;
}
.previewTop p {
margin-top: 10px;
max-width: 56ch;
color: rgba(203, 213, 225, 0.74);
line-height: 1.65;
}
.previewBody {
display: grid;
gap: 14px;
padding: 22px;
grid-template-columns: 1.2fr 0.8fr;
}
.previewMap,
.previewStack {
border-radius: 22px;
background: rgba(15, 23, 42, 0.56);
}
.previewMap {
min-height: 320px;
position: relative;
overflow: hidden;
}
.previewMap::before,
.previewMap::after {
content: "";
position: absolute;
inset: 0;
}
.previewMap::before {
background:
radial-gradient(circle at 20% 40%, rgba(34, 211, 238, 0.2), transparent 20%),
radial-gradient(circle at 68% 30%, rgba(59, 130, 246, 0.22), transparent 20%),
radial-gradient(circle at 76% 72%, rgba(14, 165, 233, 0.16), transparent 18%),
linear-gradient(180deg, rgba(8, 47, 73, 0.24), rgba(2, 6, 23, 0.16));
}
.previewMap::after {
background-image:
linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.2));
}
.mapChip {
position: absolute;
display: inline-flex;
align-items: center;
gap: 6px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.14);
background: rgba(2, 6, 23, 0.78);
padding: 8px 12px;
color: #e2e8f0;
font-size: 12px;
font-weight: 700;
box-shadow: 0 14px 32px rgba(2, 6, 23, 0.3);
}
.mapChip strong {
color: #f8fafc;
}
.mapChip span {
color: rgba(34, 211, 238, 0.92);
}
.previewStack {
padding: 18px;
display: grid;
gap: 12px;
}
.stackCard {
border-radius: 18px;
border: 1px solid rgba(148, 163, 184, 0.1);
background: rgba(2, 6, 23, 0.5);
padding: 16px;
}
.stackCard h4 {
font-size: 15px;
font-weight: 700;
}
.stackCard p {
margin-top: 8px;
color: rgba(191, 219, 254, 0.72);
font-size: 13px;
line-height: 1.55;
}
.price {
margin-top: 18px;
display: flex;
align-items: baseline;
gap: 8px;
}
.price strong {
font-size: 42px;
line-height: 1;
font-weight: 800;
letter-spacing: -0.04em;
}
.price span {
color: rgba(203, 213, 225, 0.78);
font-size: 15px;
}
.pricingCardAccent {
border-color: rgba(34, 211, 238, 0.2);
box-shadow: 0 18px 44px rgba(8, 47, 73, 0.28);
}
.ctaCard {
min-height: 100%;
}
.ctaActions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 20px;
}
.footer {
margin-top: 72px;
padding: 28px 0 56px;
color: rgba(148, 163, 184, 0.76);
font-size: 13px;
}
.footerRow {
display: flex;
justify-content: space-between;
gap: 18px;
align-items: center;
}
.footerLinks {
display: flex;
gap: 18px;
flex-wrap: wrap;
}
@media (max-width: 1080px) {
.heroGrid,
.previewBody,
.ctaGrid {
grid-template-columns: 1fr;
}
.featureGrid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.problemGrid,
.proofGrid,
.pricingGrid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.shell {
width: min(100% - 20px, 1180px);
}
.heroCard,
.signalCard,
.miniCard,
.pricingCard,
.ctaCard,
.previewTop,
.previewBody {
padding: 18px;
}
.featureGrid {
grid-template-columns: 1fr;
}
.metricGrid {
grid-template-columns: 1fr;
}
.section {
margin-top: 48px;
}
.footerRow,
.sectionHeader {
flex-direction: column;
align-items: flex-start;
}
}
-471
View File
@@ -1,471 +0,0 @@
import Link from "next/link";
import {
ArrowRight,
Bot,
ChartColumnIncreasing,
ChevronRight,
Compass,
MapPinned,
Radar,
ShieldCheck,
Sparkles,
Target,
Wallet,
} from "lucide-react";
import styles from "./LandingPage.module.css";
const problemCards = [
{
title: "普通天气预报不等于结算判断",
body: "大多数天气产品只给一个最高温数字。温度市场真正关心的是最终会落进哪个结算桶,以及这个判断有多稳。",
points: ["不是看“几度左右”", "而是看结算桶概率", "以及当前市场是否错价"],
},
{
title: "单一数据源不够稳",
body: "机场实测、官方结算源、集合预报、多模型 spread 会互相打架。PolyWeather 的价值,在于把这些冲突信息组织成决策视图。",
points: ["METAR / HKO / CWA", "Open-Meteo ensemble", "DEB 融合与回看"],
},
{
title: "交易需要即时上下文",
body: "当日高温窗口、max so far、模型崩盘、盘口偏移,都比一个静态 forecast 更接近真实交易判断。",
points: ["今日日内分析", "历史对账", "market scan 与 edge"],
},
];
const featureCards = [
{
icon: Radar,
title: "多源天气",
body: "整合 METAR、官方源、Open-Meteo、ensemble 与 multi-model,不把风险押在单一来源上。",
},
{
icon: Target,
title: "结算概率",
body: "把 forecast 变成 settlement-focused bucket distribution,而不是只给一个模糊最高温。",
},
{
icon: ChartColumnIncreasing,
title: "错价扫描",
body: "把模型概率和市场报价放在一张桌子上,直接判断 signal、risk 和 tradable 状态。",
},
{
icon: Bot,
title: "双端交付",
body: "Web 仪表盘负责看全局,Telegram Bot 负责高频使用与即时查询。",
},
];
const trustCards = [
{
title: "官方参考出口",
body: "重点城市已经补上官方气象机构、机场页面与 METAR 入口。用户可以自己交叉验证,不必盲信结论。",
points: ["Singapore / Wellington / Hong Kong", "机场实测与国家气象机构", "降低临近结算争议成本"],
},
{
title: "历史对账与日内分析",
body: "不只给今天的判断,也给你过去表现与 intraday 结构,帮助理解模型稳定性而不是只看单点结果。",
points: ["历史最高温对账", "今日日内曲线", "模型与实测偏差回看"],
},
];
export function LandingPage() {
return (
<main className={styles.page}>
<div className="pointer-events-none absolute inset-0 overflow-hidden">
<div className="absolute left-[-12%] top-[-8%] h-[420px] w-[420px] rounded-full bg-cyan-400/12 blur-3xl" />
<div className="absolute right-[-12%] top-[8%] h-[360px] w-[360px] rounded-full bg-blue-500/12 blur-3xl" />
<div className="absolute bottom-[-10%] left-[28%] h-[320px] w-[320px] rounded-full bg-sky-900/40 blur-3xl" />
</div>
<section className="pt-6 md:pt-10">
<div className={styles.shell}>
<div className="mb-6 flex flex-wrap items-center justify-between gap-4">
<div className="flex items-center gap-3">
<div className="flex h-11 w-11 items-center justify-center rounded-2xl border border-cyan-400/20 bg-slate-950/70 text-cyan-300 shadow-glow">
<Compass size={18} />
</div>
<div>
<div className="text-sm font-semibold tracking-[0.16em] text-slate-300 uppercase">
PolyWeather
</div>
<div className="text-xs text-slate-500">
Weather market intelligence
</div>
</div>
</div>
<div className="flex flex-wrap items-center gap-3">
<Link href="/dashboard" className={styles.secondaryButton}>
Dashboard
</Link>
<Link href="/auth/login?next=%2Faccount" className={styles.primaryButton}>
<ArrowRight size={16} />
</Link>
</div>
</div>
<div className={styles.heroGrid}>
<div className={`${styles.panel} ${styles.heroCard}`}>
<div className={styles.heroEyebrow}>
<Sparkles size={14} />
Settlement-Focused Weather Intelligence
</div>
<h1 className={styles.heroTitle}>
</h1>
<p className={styles.heroLead}>
PolyWeather ensemble spread
</p>
<div className={styles.heroActions}>
<Link href="/dashboard" className={styles.primaryButton}>
<ArrowRight size={16} />
</Link>
<Link href="/account" className={styles.secondaryButton}>
Pro
<Wallet size={16} />
</Link>
<a
href="https://t.me/WeatherQuant_bot"
target="_blank"
rel="noreferrer"
className={styles.secondaryButton}
>
Telegram Bot
<ChevronRight size={16} />
</a>
</div>
<div className={styles.bulletGrid}>
<div className={styles.bulletItem}>
<Radar size={16} />
<div>
<strong>30 </strong>
<span> METAR HKO CWA</span>
</div>
</div>
<div className={styles.bulletItem}>
<ShieldCheck size={16} />
<div>
<strong></strong>
<span></span>
</div>
</div>
<div className={styles.bulletItem}>
<MapPinned size={16} />
<div>
<strong>Dashboard + Bot </strong>
<span>Web Bot Pro </span>
</div>
</div>
</div>
</div>
<div className={styles.heroSide}>
<div className={`${styles.panel} ${styles.signalCard}`}>
<div className={styles.signalHeader}>
<div>
<h3></h3>
<p> forecast</p>
</div>
<span className={styles.statusPill}>Live System</span>
</div>
<div className={styles.metricGrid}>
<div className={styles.metricCard}>
<label></label>
<strong>30</strong>
<span></span>
</div>
<div className={styles.metricCard}>
<label></label>
<strong>μ + </strong>
<span> bucket distribution</span>
</div>
<div className={styles.metricCard}>
<label></label>
<strong> + </strong>
<span>METARensemblemulti-model </span>
</div>
<div className={styles.metricCard}>
<label></label>
<strong>Web + Bot</strong>
<span> Telegram </span>
</div>
</div>
<div className={styles.previewStrip}>
<div className={styles.previewRow}>
<span></span>
<strong> + max so far</strong>
</div>
<div className={styles.previewRow}>
<span></span>
<strong></strong>
</div>
<div className={styles.previewRow}>
<span></span>
<strong> vs </strong>
</div>
</div>
</div>
<div className={`${styles.panel} ${styles.signalCard}`}>
<div className={styles.signalHeader}>
<div>
<h3></h3>
<p></p>
</div>
</div>
<div className="grid gap-3">
<div className={styles.previewRow}>
<span>Free</span>
<strong></strong>
</div>
<div className={styles.previewRow}>
<span>Pro</span>
<strong>Bot </strong>
</div>
<div className={styles.previewRow}>
<span>Ops</span>
<strong></strong>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section className={styles.section}>
<div className={styles.shell}>
<div className={styles.sectionHeader}>
<div>
<h2></h2>
</div>
<p>
</p>
</div>
<div className={styles.problemGrid}>
{problemCards.map((card) => (
<article key={card.title} className={`${styles.panel} ${styles.miniCard}`}>
<h3>{card.title}</h3>
<p>{card.body}</p>
<ul>
{card.points.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
</article>
))}
</div>
</div>
</section>
<section className={styles.section}>
<div className={styles.shell}>
<div className={styles.sectionHeader}>
<div>
<h2></h2>
</div>
<p>
PolyWeather
</p>
</div>
<div className={styles.featureGrid}>
{featureCards.map(({ icon: Icon, title, body }) => (
<article key={title} className={`${styles.panel} ${styles.miniCard}`}>
<div className="mb-4 flex h-11 w-11 items-center justify-center rounded-2xl border border-cyan-400/18 bg-cyan-400/8 text-cyan-300">
<Icon size={18} />
</div>
<h3>{title}</h3>
<p>{body}</p>
</article>
))}
</div>
</div>
</section>
<section className={styles.section}>
<div className={styles.shell}>
<div className={styles.sectionHeader}>
<div>
<h2></h2>
</div>
<p>
</p>
</div>
<div className={styles.proofGrid}>
{trustCards.map((card) => (
<article key={card.title} className={`${styles.panel} ${styles.miniCard}`}>
<h3>{card.title}</h3>
<p>{card.body}</p>
<ul>
{card.points.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
</article>
))}
</div>
</div>
</section>
<section className={styles.section}>
<div className={styles.shell}>
<article className={`${styles.panel} ${styles.previewPanel}`}>
<div className={styles.previewTop}>
<h3></h3>
<p>
</p>
</div>
<div className={styles.previewBody}>
<div className={styles.previewMap}>
<div className={styles.mapChip} style={{ left: "9%", top: "18%" }}>
<strong>London</strong>
<span>12°C</span>
</div>
<div className={styles.mapChip} style={{ left: "54%", top: "20%" }}>
<strong>Hong Kong</strong>
<span>17°C</span>
</div>
<div className={styles.mapChip} style={{ left: "22%", top: "54%" }}>
<strong>New York</strong>
<span>54°F</span>
</div>
<div className={styles.mapChip} style={{ left: "63%", top: "63%" }}>
<strong>Singapore</strong>
<span>31°C</span>
</div>
</div>
<div className={styles.previewStack}>
<div className={styles.stackCard}>
<h4></h4>
<p>max so far</p>
</div>
<div className={styles.stackCard}>
<h4></h4>
<p></p>
</div>
<div className={styles.stackCard}>
<h4></h4>
<p> METAR</p>
</div>
<div className={styles.stackCard}>
<h4></h4>
<p></p>
</div>
</div>
</div>
</article>
</div>
</section>
<section className={styles.section}>
<div className={styles.shell}>
<div className={styles.sectionHeader}>
<div>
<h2> Pro </h2>
</div>
<p>
使Bot
</p>
</div>
<div className={styles.pricingGrid}>
<article className={`${styles.panel} ${styles.pricingCard}`}>
<h3>Free</h3>
<p>使</p>
<div className={styles.price}>
<strong>$0</strong>
<span></span>
</div>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</article>
<article className={`${styles.panel} ${styles.pricingCard} ${styles.pricingCardAccent}`}>
<h3>Pro</h3>
<p>使 Telegram </p>
<div className={styles.price}>
<strong>5 USDC</strong>
<span>/ </span>
</div>
<ul>
<li></li>
<li>Telegram Bot 使</li>
<li></li>
</ul>
</article>
</div>
</div>
</section>
<section className={styles.section}>
<div className={styles.shell}>
<div className={styles.ctaGrid}>
<article className={`${styles.panel} ${styles.ctaCard}`}>
<h3>使 PolyWeather</h3>
<p>
Dashboard
</p>
<div className={styles.ctaActions}>
<Link href="/dashboard" className={styles.primaryButton}>
Dashboard
<ArrowRight size={16} />
</Link>
<Link href="/account" className={styles.secondaryButton}>
</Link>
</div>
</article>
<article className={`${styles.panel} ${styles.ctaCard}`}>
<h3>使 Bot</h3>
<p>
Telegram Bot Web Bot
</p>
<div className={styles.ctaActions}>
<a
href="https://t.me/WeatherQuant_bot"
target="_blank"
rel="noreferrer"
className={styles.secondaryButton}
>
Telegram Bot
<ChevronRight size={16} />
</a>
</div>
</article>
</div>
<footer className={styles.footer}>
<div className={styles.footerRow}>
<span>PolyWeather is built for settlement-focused weather decision support, not generic consumer forecasting.</span>
<div className={styles.footerLinks}>
<Link href="/dashboard">Dashboard</Link>
<Link href="/account">Account</Link>
<Link href="/ops">Ops</Link>
</div>
</div>
</footer>
</div>
</section>
</main>
);
}