将 Landing/Docs/Pricing 的 Nav + Footer 提取到共享 PortalLayout。 Router 改为嵌套结构,路由切换时 router-view 内容变化,Nav 本身 不重挂载,消除切页时的 UI 抖动(真·SPA 行为)。 - new: components/layout/PortalLayout.vue(Nav + router-view + Footer) - router: /、/docs、/pricing 作为 PortalLayout 的子路由 - i18n: 新增 portal.nav.* 命名空间;删除重复的 docs.nav.* / pricing.nav.* / landing.nav.* - router: scrollBehavior 支持 hash 锚点跳转(offset 80px 绕开 sticky nav) - router-link 使用 active-class/exact-active-class prop 替代硬编码 class="active"
799 lines
27 KiB
Vue
799 lines
27 KiB
Vue
<template>
|
|
<div>
|
|
<!-- HERO -->
|
|
<section class="hero container">
|
|
<div class="hero-eyebrow">
|
|
<span class="badge">{{ $t('landing.hero.badgeNew') }}</span>
|
|
<span>{{ $t('landing.hero.eyebrow') }}</span>
|
|
</div>
|
|
<h1 class="hero-title">
|
|
{{ $t('landing.hero.title1') }}<br>
|
|
<span class="text-puro-cyan">{{ $t('landing.hero.title2') }}</span>
|
|
</h1>
|
|
<p class="hero-sub">
|
|
{{ $t('landing.hero.sub1') }}<br>
|
|
<i18n-t keypath="landing.hero.sub2" tag="span">
|
|
<template #openai><span class="pill-inline">OpenAI</span></template>
|
|
<template #anthropic><span class="pill-inline">Anthropic</span></template>
|
|
</i18n-t>
|
|
</p>
|
|
<div class="hero-cta">
|
|
<router-link to="/login" class="btn btn-primary btn-lg">{{ $t('landing.hero.ctaLogin') }}</router-link>
|
|
<a href="mailto:admin@puro.im" class="btn btn-ghost btn-lg">{{ $t('landing.hero.ctaContact') }}</a>
|
|
</div>
|
|
<div class="hero-micro">
|
|
{{ $t('landing.hero.micro') }}
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ② 模型墙 -->
|
|
<section class="block container" id="models">
|
|
<div class="section-header">
|
|
<div class="section-kicker">{{ $t('landing.models.kicker') }}</div>
|
|
<h2 class="section-title">{{ $t('landing.models.title') }}</h2>
|
|
<p class="section-sub">{{ $t('landing.models.sub') }}</p>
|
|
</div>
|
|
<div class="model-wall">
|
|
<div class="model-card">
|
|
<div class="model-logo">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="#d97757"><path d="M4.5 19L12 4l7.5 15H16l-4-8.5L8 19H4.5z"/></svg>
|
|
</div>
|
|
<div>
|
|
<div class="model-name">Claude Pro / Max</div>
|
|
<div class="model-meta">Anthropic OAuth</div>
|
|
</div>
|
|
<div class="status-chip"><span class="dot"></span>online</div>
|
|
</div>
|
|
<div class="model-card">
|
|
<div class="model-logo">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#10a37f" stroke-width="1.6"><circle cx="12" cy="12" r="8"/><path d="M12 4v16M4 12h16"/></svg>
|
|
</div>
|
|
<div>
|
|
<div class="model-name">ChatGPT Plus / Pro</div>
|
|
<div class="model-meta">OpenAI OAuth</div>
|
|
</div>
|
|
<div class="status-chip"><span class="dot"></span>online</div>
|
|
</div>
|
|
<div class="model-card">
|
|
<div class="model-logo">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#f8fafc" stroke-width="1.6"><rect x="4" y="4" width="16" height="16" rx="3" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="M8 10l-2 2 2 2M16 10l2 2-2 2M14 8l-4 8" stroke="currentColor" stroke-width="1.6" fill="none" stroke-linecap="round"/></svg>
|
|
</div>
|
|
<div>
|
|
<div class="model-name">Codex CLI</div>
|
|
<div class="model-meta">OpenAI OAuth</div>
|
|
</div>
|
|
<div class="status-chip"><span class="dot"></span>online</div>
|
|
</div>
|
|
<div class="model-card">
|
|
<div class="model-logo">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="#4285f4"><path d="M12 2L14 10L22 12L14 14L12 22L10 14L2 12L10 10Z"/></svg>
|
|
</div>
|
|
<div>
|
|
<div class="model-name">Gemini Code Assist</div>
|
|
<div class="model-meta">Google OAuth</div>
|
|
</div>
|
|
<div class="status-chip"><span class="dot"></span>online</div>
|
|
</div>
|
|
<div class="model-card is-muted">
|
|
<div class="model-logo">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#94a3b8" stroke-width="1.6" stroke-linecap="round"><circle cx="5" cy="12" r="1.5" fill="#94a3b8"/><circle cx="12" cy="12" r="1.5" fill="#94a3b8"/><circle cx="19" cy="12" r="1.5" fill="#94a3b8"/></svg>
|
|
</div>
|
|
<div>
|
|
<div class="model-name">{{ $t('landing.models.more') }}</div>
|
|
<div class="model-meta">{{ $t('landing.models.morePlanned') }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ③ 三特性 -->
|
|
<section class="block container" id="features">
|
|
<div class="section-header">
|
|
<div class="section-kicker">{{ $t('landing.features.kicker') }}</div>
|
|
<h2 class="section-title">{{ $t('landing.features.title1') }}<br>{{ $t('landing.features.title2') }}</h2>
|
|
<p class="section-sub">{{ $t('landing.features.sub') }}</p>
|
|
</div>
|
|
<div class="features">
|
|
<div class="feature">
|
|
<div class="feature-icon">⚡</div>
|
|
<h3>{{ $t('landing.features.f1Title') }}</h3>
|
|
<p>
|
|
<i18n-t keypath="landing.features.f1Desc" tag="span">
|
|
<template #sk><code class="mono">sk-</code></template>
|
|
</i18n-t>
|
|
</p>
|
|
<ul class="feature-bullets">
|
|
<li>{{ $t('landing.features.f1b1') }}</li>
|
|
<li>{{ $t('landing.features.f1b2') }}</li>
|
|
<li>{{ $t('landing.features.f1b3') }}</li>
|
|
</ul>
|
|
</div>
|
|
<div class="feature">
|
|
<div class="feature-icon">🔄</div>
|
|
<h3>{{ $t('landing.features.f2Title') }}</h3>
|
|
<p>{{ $t('landing.features.f2Desc') }}</p>
|
|
<ul class="feature-bullets">
|
|
<li>{{ $t('landing.features.f2b1') }}</li>
|
|
<li>{{ $t('landing.features.f2b2') }}</li>
|
|
<li>{{ $t('landing.features.f2b3') }}</li>
|
|
</ul>
|
|
</div>
|
|
<div class="feature">
|
|
<div class="feature-icon">📊</div>
|
|
<h3>{{ $t('landing.features.f3Title') }}</h3>
|
|
<p>{{ $t('landing.features.f3Desc') }}</p>
|
|
<ul class="feature-bullets">
|
|
<li>{{ $t('landing.features.f3b1') }}</li>
|
|
<li>{{ $t('landing.features.f3b2') }}</li>
|
|
<li>{{ $t('landing.features.f3b3') }}</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ④ Code Demo -->
|
|
<section class="block container" id="code">
|
|
<div class="section-header">
|
|
<div class="section-kicker">{{ $t('landing.codeDemo.kicker') }}</div>
|
|
<h2 class="section-title">{{ $t('landing.codeDemo.title') }}</h2>
|
|
<p class="section-sub">
|
|
<i18n-t keypath="landing.codeDemo.sub" tag="span">
|
|
<template #highlight><span class="text-puro-cyan">{{ $t('landing.codeDemo.subHighlight') }}</span></template>
|
|
</i18n-t>
|
|
</p>
|
|
</div>
|
|
<div class="code-demo">
|
|
<div class="code-block">
|
|
<div class="code-head">
|
|
<div class="traffic">
|
|
<span></span><span></span><span></span>
|
|
</div>
|
|
<div class="code-tabs">
|
|
<span class="tab active">~/.codex/config.toml</span>
|
|
</div>
|
|
<span class="meta">edited 2s ago</span>
|
|
</div>
|
|
<pre class="mono"><code><span class="cm">[model_providers.OpenAI]</span>
|
|
base_url = <span class="str">"https://ai.puro.im"</span>
|
|
wire_api = <span class="str">"responses"</span>
|
|
requires_openai_auth = <span class="kw">true</span></code></pre>
|
|
</div>
|
|
<div class="code-block">
|
|
<div class="code-head">
|
|
<div class="traffic">
|
|
<span></span><span></span><span></span>
|
|
</div>
|
|
<div class="code-tabs">
|
|
<span class="tab active">curl.sh</span>
|
|
</div>
|
|
<span class="meta">zsh · puro ≈ 210ms</span>
|
|
</div>
|
|
<pre class="mono"><code><span class="cm">$</span> curl https://ai.puro.im/responses \
|
|
-H <span class="str">"Authorization: Bearer sk-xxx"</span> \
|
|
-d <span class="str">'{"model":"gpt-5.4","input":"hello"}'</span></code></pre>
|
|
</div>
|
|
</div>
|
|
<div class="code-foot">{{ $t('landing.codeDemo.foot') }}</div>
|
|
</section>
|
|
|
|
<!-- ⑤ Dashboard mockup -->
|
|
<section class="block container" id="dashboard">
|
|
<div class="section-header">
|
|
<div class="section-kicker">{{ $t('landing.dashboard.kicker') }}</div>
|
|
<h2 class="section-title">{{ $t('landing.dashboard.title') }}</h2>
|
|
<p class="section-sub">{{ $t('landing.dashboard.sub') }}</p>
|
|
</div>
|
|
<div class="dash-mock">
|
|
<!-- browser chrome header -->
|
|
<div class="dash-chrome">
|
|
<div class="traffic">
|
|
<span></span><span></span><span></span>
|
|
</div>
|
|
<div class="url-bar">ai.puro.im/dashboard</div>
|
|
<span class="dash-user mono">me@puro</span>
|
|
</div>
|
|
<div class="dash-layout">
|
|
<!-- sidebar -->
|
|
<aside class="dash-side">
|
|
<div class="side-group">
|
|
<div class="side-label">WORKSPACE</div>
|
|
<div class="side-item active"><span class="ico">📊</span> Dashboard</div>
|
|
<div class="side-item"><span class="ico">🔑</span> API Keys</div>
|
|
<div class="side-item"><span class="ico">📜</span> Logs</div>
|
|
<div class="side-item"><span class="ico">🔌</span> Accounts<span class="side-count">12</span></div>
|
|
</div>
|
|
<div class="side-group">
|
|
<div class="side-label">SETTINGS</div>
|
|
<div class="side-item"><span class="ico">👥</span> Team</div>
|
|
<div class="side-item"><span class="ico">💳</span> Billing</div>
|
|
<div class="side-item"><span class="ico">👤</span> Profile</div>
|
|
</div>
|
|
</aside>
|
|
<!-- main content -->
|
|
<div class="dash-main">
|
|
<div class="stat-row">
|
|
<div class="stat"><div class="stat-label">{{ $t('landing.dashboard.statToday') }}</div><div class="stat-value">1,842</div><div class="stat-delta">+12.3%</div></div>
|
|
<div class="stat"><div class="stat-label">{{ $t('landing.dashboard.statTokensIn') }}</div><div class="stat-value">2.1M</div><div class="stat-delta">+8.1%</div></div>
|
|
<div class="stat"><div class="stat-label">{{ $t('landing.dashboard.statTokensOut') }}</div><div class="stat-value">485K</div><div class="stat-delta">+15.6%</div></div>
|
|
<div class="stat"><div class="stat-label">{{ $t('landing.dashboard.statCost') }}</div><div class="stat-value">$1.23</div><div class="stat-delta down">-4.2%</div></div>
|
|
</div>
|
|
<div class="chart-grid">
|
|
<div class="chart-card">
|
|
<div class="chart-title">
|
|
{{ $t('landing.dashboard.chartTrend') }}
|
|
<div class="chart-legend">
|
|
<span><span class="sw" style="background: var(--cyan)"></span> Claude</span>
|
|
<span><span class="sw" style="background: #a855f7"></span> GPT</span>
|
|
<span><span class="sw" style="background: var(--amber)"></span> Gemini</span>
|
|
</div>
|
|
</div>
|
|
<svg viewBox="0 0 500 140" class="chart-svg">
|
|
<defs>
|
|
<linearGradient id="gc" x1="0" x2="0" y1="0" y2="1">
|
|
<stop offset="0%" stop-color="#22d3ee" stop-opacity="0.25"/>
|
|
<stop offset="100%" stop-color="#22d3ee" stop-opacity="0"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<g stroke="#1e293b" stroke-width="1">
|
|
<line x1="0" y1="30" x2="500" y2="30"/>
|
|
<line x1="0" y1="70" x2="500" y2="70"/>
|
|
<line x1="0" y1="110" x2="500" y2="110"/>
|
|
</g>
|
|
<path d="M0,100 L40,85 L80,90 L120,65 L160,75 L200,50 L240,58 L280,38 L320,45 L360,25 L400,38 L440,28 L500,18 L500,140 L0,140 Z" fill="url(#gc)"/>
|
|
<path d="M0,100 L40,85 L80,90 L120,65 L160,75 L200,50 L240,58 L280,38 L320,45 L360,25 L400,38 L440,28 L500,18" stroke="#22d3ee" stroke-width="2" fill="none"/>
|
|
<path d="M0,115 L40,108 L80,100 L120,108 L160,92 L200,96 L240,75 L280,83 L320,65 L360,72 L400,56 L440,62 L500,46" stroke="#a855f7" stroke-width="2" fill="none"/>
|
|
</svg>
|
|
</div>
|
|
<div class="chart-card donut-card">
|
|
<div class="chart-title">Model distribution <span class="chart-sub">· 24h</span></div>
|
|
<div class="donut-wrap">
|
|
<svg viewBox="0 0 42 42" class="donut-svg">
|
|
<circle cx="21" cy="21" r="15.915" fill="transparent" stroke="#1e293b" stroke-width="6"/>
|
|
<circle cx="21" cy="21" r="15.915" fill="transparent" stroke="#22d3ee" stroke-width="6" stroke-dasharray="48 52" stroke-dashoffset="0"/>
|
|
<circle cx="21" cy="21" r="15.915" fill="transparent" stroke="#a855f7" stroke-width="6" stroke-dasharray="32 68" stroke-dashoffset="-48"/>
|
|
<circle cx="21" cy="21" r="15.915" fill="transparent" stroke="#fbbf24" stroke-width="6" stroke-dasharray="14 86" stroke-dashoffset="-80"/>
|
|
<circle cx="21" cy="21" r="15.915" fill="transparent" stroke="#64748b" stroke-width="6" stroke-dasharray="6 94" stroke-dashoffset="-94"/>
|
|
</svg>
|
|
<div class="donut-legend">
|
|
<div class="donut-row"><span><span class="sw" style="background:#22d3ee"></span>Claude</span><span class="pct">48%</span></div>
|
|
<div class="donut-row"><span><span class="sw" style="background:#a855f7"></span>GPT</span><span class="pct">32%</span></div>
|
|
<div class="donut-row"><span><span class="sw" style="background:#fbbf24"></span>Gemini</span><span class="pct">14%</span></div>
|
|
<div class="donut-row"><span><span class="sw" style="background:#64748b"></span>Codex</span><span class="pct">6%</span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<table class="log-table mono">
|
|
<thead>
|
|
<tr><th>{{ $t('landing.dashboard.tableTime') }}</th><th>{{ $t('landing.dashboard.tableModel') }}</th><th>{{ $t('landing.dashboard.tableUpstream') }}</th><th>{{ $t('landing.dashboard.tableStatus') }}</th><th>{{ $t('landing.dashboard.tableUsage') }}</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr><td>12:34:07</td><td>gpt-5.4</td><td><span class="provider gpt"><span class="dot"></span>ChatGPT #1</span></td><td class="status-200">200</td><td>2,341</td></tr>
|
|
<tr><td>12:34:02</td><td>claude-opus-4-7</td><td><span class="provider claude"><span class="dot"></span>Claude #2</span></td><td class="status-200">200</td><td>5,102</td></tr>
|
|
<tr><td>12:33:58</td><td>gemini-2.5-pro</td><td><span class="provider gemini"><span class="dot"></span>Gemini #1</span></td><td class="status-200">200</td><td>843</td></tr>
|
|
<tr><td>12:33:41</td><td>gpt-5.4</td><td><span class="provider gpt"><span class="dot"></span>ChatGPT #2</span></td><td class="status-429">429</td><td>—</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
</script>
|
|
|
|
<style scoped>
|
|
/* =============================================================
|
|
* LandingView — component-local styles
|
|
* Globals from puro.css (scoped to .puro-page) also provide:
|
|
* - .log-table, .provider.{claude,gpt,gemini}, .status-200/429 (dashboard mockup)
|
|
* - .nav, .nav-inner, .brand, .hex, .nav-links, .nav-cta (nav base)
|
|
* - .mono, .container, .btn, .btn-primary, .btn-ghost, .btn-lg (primitives)
|
|
* ============================================================= */
|
|
|
|
.puro-page {
|
|
min-height: 100vh;
|
|
background: var(--bg-0);
|
|
color: var(--text-0);
|
|
font-family: var(--font-sans);
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.hero {
|
|
text-align: center;
|
|
padding: 100px 24px 80px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
.hero-eyebrow {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 14px 6px 6px;
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 100px;
|
|
font-size: 12px;
|
|
color: var(--text-1);
|
|
margin-bottom: 32px;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
}
|
|
.hero-eyebrow .badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
font-family: var(--font-mono);
|
|
color: var(--bg-0);
|
|
background: var(--cyan);
|
|
border-radius: 4px;
|
|
letter-spacing: 0.1em;
|
|
margin-right: 4px;
|
|
}
|
|
.hero-title {
|
|
font-size: clamp(36px, 5.5vw, 64px);
|
|
font-weight: 800;
|
|
line-height: 1.1;
|
|
letter-spacing: -0.03em;
|
|
margin-bottom: 20px;
|
|
}
|
|
.hero-sub {
|
|
font-size: 18px;
|
|
color: var(--text-2);
|
|
line-height: 1.6;
|
|
max-width: 640px;
|
|
margin: 0 auto 36px;
|
|
}
|
|
.hero-sub .pill-inline {
|
|
display: inline-block;
|
|
padding: 1px 8px;
|
|
font-family: var(--font-mono);
|
|
font-size: 13px;
|
|
border: 1px solid var(--border-2);
|
|
border-radius: 4px;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
color: var(--text-1);
|
|
margin: 0 2px;
|
|
}
|
|
.hero-cta {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 20px;
|
|
}
|
|
.hero-micro {
|
|
font-size: 13px;
|
|
color: var(--text-3);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* Note: these rules (.container / .section-*) intentionally override
|
|
* puro.css defaults with landing-page-specific values.
|
|
* puro.css has global defaults of: container max-width 1100px/padding 32px,
|
|
* section-title margin-bottom 16px, section-kicker letter-spacing 0.15em.
|
|
* Source-order ensures the scoped values below win. */
|
|
.container {
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
.block { padding: 80px 24px; }
|
|
.section-header { text-align: center; margin-bottom: 40px; }
|
|
.section-kicker {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--cyan);
|
|
letter-spacing: 0.12em;
|
|
margin-bottom: 12px;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.section-title {
|
|
font-size: clamp(28px, 3.5vw, 40px);
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: 12px;
|
|
}
|
|
.section-sub { color: var(--text-2); font-size: 15px; }
|
|
|
|
/* brand SVG */
|
|
.brand svg { color: var(--cyan); flex-shrink: 0; }
|
|
|
|
/* model wall */
|
|
.model-wall {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.model-card {
|
|
padding: 20px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-lg);
|
|
background: var(--bg-1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.model-logo {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--r-md);
|
|
border: 1px solid var(--border-2);
|
|
background: var(--bg-2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: var(--cyan);
|
|
}
|
|
.model-name { font-weight: 600; font-size: 14px; }
|
|
.model-meta { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; }
|
|
.model-card.is-muted { opacity: 0.5; }
|
|
.model-card.is-muted .model-name { color: var(--text-2); }
|
|
.model-card .status-chip {
|
|
margin-left: auto;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
color: var(--green, #34d399);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
.model-card .status-chip .dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--green, #34d399);
|
|
box-shadow: 0 0 6px rgba(52,211,153,0.6);
|
|
}
|
|
.model-card.is-muted .status-chip { display: none; }
|
|
|
|
/* features */
|
|
.features {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.feature {
|
|
padding: 28px 24px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-lg);
|
|
background: var(--bg-1);
|
|
}
|
|
.feature-icon { font-size: 28px; margin-bottom: 14px; }
|
|
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
|
|
.feature p { color: var(--text-2); font-size: 14px; line-height: 1.6; }
|
|
.feature code { color: var(--cyan); font-size: 13px; }
|
|
.feature-bullets {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
padding-top: 14px;
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
.feature-bullets li {
|
|
padding: 6px 0;
|
|
color: var(--text-2);
|
|
font-size: 12px;
|
|
font-family: var(--font-mono);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.feature-bullets li::before {
|
|
content: '→';
|
|
color: var(--cyan);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* code demo */
|
|
.code-demo {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
@media (max-width: 820px) { .code-demo { grid-template-columns: 1fr; } }
|
|
.code-block {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-lg);
|
|
background: var(--bg-code);
|
|
overflow: hidden;
|
|
}
|
|
.code-head {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 14px;
|
|
gap: 12px;
|
|
background: var(--bg-1);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.traffic { display: flex; gap: 6px; }
|
|
.traffic span {
|
|
width: 10px; height: 10px; border-radius: 50%;
|
|
}
|
|
.traffic span:nth-child(1) { background: #f87171; }
|
|
.traffic span:nth-child(2) { background: #fbbf24; }
|
|
.traffic span:nth-child(3) { background: #34d399; }
|
|
.code-tabs .tab {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--text-2);
|
|
padding: 2px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
}
|
|
.code-tabs .tab.active {
|
|
color: var(--cyan);
|
|
background: rgba(34,211,238,0.1);
|
|
border-color: rgba(34,211,238,0.3);
|
|
}
|
|
.code-head .meta {
|
|
margin-left: auto;
|
|
font-size: 11px;
|
|
font-family: var(--font-mono);
|
|
color: var(--text-3);
|
|
}
|
|
.code-block pre {
|
|
padding: 16px;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: var(--text-1);
|
|
overflow-x: auto;
|
|
}
|
|
.cm { color: var(--text-3); }
|
|
.str { color: var(--cyan); }
|
|
.kw { color: var(--amber); }
|
|
.code-foot {
|
|
margin-top: 20px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* dash mockup */
|
|
.dash-mock {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-xl);
|
|
background: var(--bg-1);
|
|
overflow: hidden;
|
|
box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
/* browser chrome */
|
|
.dash-chrome {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: rgba(15, 23, 42, 0.7);
|
|
}
|
|
.url-bar {
|
|
flex: 1;
|
|
padding: 5px 12px;
|
|
background: var(--bg-0);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--text-2);
|
|
}
|
|
.dash-user { font-size: 11px; color: var(--text-3); }
|
|
|
|
/* dashboard layout */
|
|
.dash-layout {
|
|
display: grid;
|
|
grid-template-columns: 180px 1fr;
|
|
min-height: 460px;
|
|
}
|
|
@media (max-width: 720px) {
|
|
.dash-layout { grid-template-columns: 1fr; }
|
|
.dash-side { display: none; }
|
|
}
|
|
.dash-side {
|
|
border-right: 1px solid var(--border);
|
|
padding: 16px 10px;
|
|
background: rgba(2, 6, 23, 0.4);
|
|
}
|
|
.side-group { margin-bottom: 20px; }
|
|
.side-label {
|
|
font-size: 10px;
|
|
color: var(--text-3);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
padding: 0 8px 6px;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.side-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
}
|
|
.side-item.active { background: rgba(34, 211, 238, 0.08); color: var(--cyan); }
|
|
.side-item .ico { font-size: 12px; }
|
|
.side-count {
|
|
margin-left: auto;
|
|
font-size: 10px;
|
|
color: var(--text-3);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.dash-main { padding: 20px; }
|
|
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
|
|
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
|
|
.stat {
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-md);
|
|
background: rgba(15,23,42,0.6);
|
|
}
|
|
.stat-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
|
|
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-mono); }
|
|
.stat-delta { font-size: 11px; color: var(--green); margin-top: 4px; font-family: var(--font-mono); }
|
|
.stat-delta.down { color: var(--red); }
|
|
|
|
/* chart grid: 2fr line + 1fr donut */
|
|
.chart-grid {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr;
|
|
gap: 14px;
|
|
margin-bottom: 20px;
|
|
}
|
|
@media (max-width: 720px) { .chart-grid { grid-template-columns: 1fr; } }
|
|
.chart-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--r-md);
|
|
background: rgba(15,23,42,0.6);
|
|
padding: 16px;
|
|
}
|
|
.chart-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-2);
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.chart-sub { font-weight: 400; color: var(--text-3); }
|
|
.chart-legend {
|
|
display: flex;
|
|
gap: 10px;
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
font-weight: 400;
|
|
}
|
|
.chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
|
|
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
|
|
.chart-svg { width: 100%; height: 140px; display: block; }
|
|
|
|
/* donut chart */
|
|
.donut-card .chart-title { margin-bottom: 8px; }
|
|
.donut-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
.donut-svg {
|
|
width: 100px;
|
|
height: 100px;
|
|
transform: rotate(-90deg);
|
|
flex-shrink: 0;
|
|
}
|
|
.donut-legend {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
font-size: 11px;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.donut-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: var(--text-1);
|
|
}
|
|
.donut-row span:first-child { display: flex; align-items: center; }
|
|
.donut-row .pct { color: var(--text-3); }
|
|
|
|
/* Nav sticky + responsive tweaks (augments puro.css defaults)
|
|
* Note: puro.css defines .puro-page .nav (z-index 50, blur 16px, gap 28px)
|
|
* at higher specificity; rules here only add what puro.css lacks
|
|
* (our darker sticky bg + mobile hide-nav-links). */
|
|
.nav {
|
|
position: sticky;
|
|
top: 0;
|
|
background: rgba(10,14,26,0.75);
|
|
backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.nav-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 28px;
|
|
padding: 16px 24px;
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
}
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
}
|
|
.nav-links {
|
|
display: flex;
|
|
font-size: 14px;
|
|
color: var(--text-2);
|
|
}
|
|
.nav-links a:hover { color: var(--text-0); }
|
|
.nav-cta {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-left: auto;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.nav-links { display: none; }
|
|
}
|
|
|
|
/* Footer */
|
|
.puro-footer {
|
|
margin-top: 80px;
|
|
padding: 60px 24px 40px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.footer-grid {
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr 1fr 1fr;
|
|
gap: 36px;
|
|
}
|
|
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
|
|
.footer-brand .brand { margin-bottom: 12px; }
|
|
.footer-tagline { color: var(--text-2); font-size: 13px; line-height: 1.6; margin-bottom: 8px; max-width: 280px; }
|
|
.footer-meta { color: var(--text-3); font-size: 12px; line-height: 1.7; margin-bottom: 12px; }
|
|
.footer-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
}
|
|
.dot-green {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--green, #34d399);
|
|
box-shadow: 0 0 6px rgba(52,211,153,0.6);
|
|
}
|
|
.footer-col-title {
|
|
color: var(--text-0);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: 12px;
|
|
}
|
|
.footer-col a {
|
|
display: block;
|
|
color: var(--text-2);
|
|
font-size: 13px;
|
|
padding: 4px 0;
|
|
}
|
|
.footer-col a:hover { color: var(--cyan); }
|
|
</style>
|