fix: fidelity port of Landing/Login/Register from design zip
Some checks failed
Some checks failed
Merges 3 port commits bringing Vue views closer to Claude Design source: -04676563LoginView: N/kicker/route-demo/n-bottom/SVG hex -9f78b70aRegisterView: N/kicker/steps panel/pw-strength/confirm-pw/terms -4cf68404LandingView: badge/pills/9 bullets/SVG logos/traffic+tabs/donut/sidebar
This commit is contained in:
@@ -504,6 +504,7 @@ export default {
|
|||||||
puroLoginSub: '用你的 PURO AI 账户继续',
|
puroLoginSub: '用你的 PURO AI 账户继续',
|
||||||
puroRegisterTitle: '创建账户',
|
puroRegisterTitle: '创建账户',
|
||||||
puroRegisterSub: '5 分钟开始用 PURO AI',
|
puroRegisterSub: '5 分钟开始用 PURO AI',
|
||||||
|
confirmPasswordLabel: '确认密码',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Dashboard
|
// Dashboard
|
||||||
|
|||||||
@@ -2,10 +2,18 @@
|
|||||||
<AuthLayout>
|
<AuthLayout>
|
||||||
<template #narrative>
|
<template #narrative>
|
||||||
<div class="auth-narrative-inner">
|
<div class="auth-narrative-inner">
|
||||||
<div class="brand"><span class="hex">⬢</span><span>PURO AI</span></div>
|
<router-link to="/" class="brand">
|
||||||
<div class="auth-narrative-hero">
|
<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
|
||||||
<div class="auth-narrative-headline">
|
<path d="M12 2L21 7V17L12 22L3 17V7L12 2Z" stroke="currentColor" stroke-width="1.8" fill="rgba(34, 211, 238, 0.08)"/>
|
||||||
<span class="num-5">5</span> 个订阅<br>
|
<path d="M12 7L17 9.5V14.5L12 17L7 14.5V9.5L12 7Z" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
<span>PURO AI</span>
|
||||||
|
</router-link>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="n-kicker">// 你的订阅,已经付过钱了</div>
|
||||||
|
<div class="auth-narrative-headline" style="margin-top: 12px;">
|
||||||
|
<span class="num-n">N</span> 个订阅<br>
|
||||||
→ <span class="num-1">1</span> 个 key
|
→ <span class="num-1">1</span> 个 key
|
||||||
</div>
|
</div>
|
||||||
<p class="auth-narrative-sub">
|
<p class="auth-narrative-sub">
|
||||||
@@ -14,7 +22,22 @@
|
|||||||
<span class="auth-narrative-tagline">PURO(纯粹)—— 让 AI 调用回归本质。</span>
|
<span class="auth-narrative-tagline">PURO(纯粹)—— 让 AI 调用回归本质。</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="auth-narrative-foot">Claude · ChatGPT · Codex · Gemini</div>
|
|
||||||
|
<div class="route-demo">
|
||||||
|
<div class="row"><span class="k">POST</span><span class="v">/v1/chat/completions</span></div>
|
||||||
|
<div class="row"><span class="k">model</span><span class="pill-inline">claude-sonnet-4-5</span></div>
|
||||||
|
<div class="row"><span class="k">route →</span><span class="pill-inline amber">claude-pool-03</span></div>
|
||||||
|
<div class="row"><span class="k">status</span><span><span class="dot-g"></span><span style="color:var(--green)">200</span><span style="color:var(--text-3); margin:0 6px;">·</span>213ms<span style="color:var(--text-3); margin:0 6px;">·</span>42 tok</span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="auth-narrative-foot n-bottom">
|
||||||
|
<span>Claude</span><span class="sep">·</span>
|
||||||
|
<span>ChatGPT</span><span class="sep">·</span>
|
||||||
|
<span>Codex</span><span class="sep">·</span>
|
||||||
|
<span>Gemini</span>
|
||||||
|
<span class="sep">|</span>
|
||||||
|
<span class="live"><span class="dot"></span>ai.puro.im · operational</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -464,15 +487,26 @@ function handle2FACancel(): void {
|
|||||||
color: var(--text-0);
|
color: var(--text-0);
|
||||||
}
|
}
|
||||||
.brand {
|
.brand {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 18px;
|
font-size: 15px;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
color: var(--text-0);
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.brand .hex {
|
.brand svg {
|
||||||
color: var(--cyan);
|
color: var(--cyan);
|
||||||
font-size: 24px;
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.n-kicker {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
color: var(--cyan);
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-narrative-headline {
|
.auth-narrative-headline {
|
||||||
@@ -482,7 +516,7 @@ function handle2FACancel(): void {
|
|||||||
letter-spacing: -0.03em;
|
letter-spacing: -0.03em;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
.auth-narrative-headline .num-5 { color: var(--amber); }
|
.auth-narrative-headline .num-n { color: var(--amber); }
|
||||||
.auth-narrative-headline .num-1 { color: var(--cyan); }
|
.auth-narrative-headline .num-1 { color: var(--cyan); }
|
||||||
.auth-narrative-sub {
|
.auth-narrative-sub {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@@ -495,9 +529,71 @@ function handle2FACancel(): void {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--text-3);
|
color: var(--text-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Route demo panel */
|
||||||
|
.route-demo {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
background: rgba(2, 6, 23, 0.6);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: var(--r-md, 8px);
|
||||||
|
padding: 18px 22px;
|
||||||
|
max-width: 440px;
|
||||||
|
}
|
||||||
|
.route-demo .row {
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
padding: 4px 0;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.route-demo .k { color: var(--text-3); min-width: 70px; }
|
||||||
|
.route-demo .v { color: var(--text-0); }
|
||||||
|
.route-demo .pill-inline {
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(34, 211, 238, 0.08);
|
||||||
|
border: 1px solid rgba(34, 211, 238, 0.25);
|
||||||
|
color: var(--cyan);
|
||||||
|
}
|
||||||
|
.route-demo .pill-inline.amber {
|
||||||
|
background: rgba(251, 191, 36, 0.08);
|
||||||
|
border-color: rgba(251, 191, 36, 0.25);
|
||||||
|
color: var(--amber);
|
||||||
|
}
|
||||||
|
.route-demo .dot-g {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--green);
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 6px;
|
||||||
|
box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bottom status bar */
|
||||||
.auth-narrative-foot {
|
.auth-narrative-foot {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--text-3);
|
color: var(--text-3);
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
}
|
}
|
||||||
|
.n-bottom {
|
||||||
|
display: flex;
|
||||||
|
gap: 14px;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.n-bottom .sep { color: var(--border-2, rgba(255,255,255,0.12)); }
|
||||||
|
.n-bottom .live {
|
||||||
|
color: var(--green, #34d399);
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
.n-bottom .live .dot {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--green, #34d399);
|
||||||
|
box-shadow: 0 0 6px var(--green, #34d399);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,10 +2,18 @@
|
|||||||
<AuthLayout>
|
<AuthLayout>
|
||||||
<template #narrative>
|
<template #narrative>
|
||||||
<div class="auth-narrative-inner">
|
<div class="auth-narrative-inner">
|
||||||
<div class="brand"><span class="hex">⬢</span><span>PURO AI</span></div>
|
<router-link to="/" class="brand">
|
||||||
<div class="auth-narrative-hero">
|
<svg viewBox="0 0 24 24" width="22" height="22" fill="none">
|
||||||
<div class="auth-narrative-headline">
|
<path d="M12 2L21 7V17L12 22L3 17V7L12 2Z" stroke="currentColor" stroke-width="1.8" fill="rgba(34, 211, 238, 0.08)"/>
|
||||||
<span class="num-5">5</span> 个订阅<br>
|
<path d="M12 7L17 9.5V14.5L12 17L7 14.5V9.5L12 7Z" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
<span>PURO AI</span>
|
||||||
|
</router-link>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<div class="n-kicker">// 5 分钟开始用</div>
|
||||||
|
<div class="auth-narrative-headline" style="margin-top: 12px;">
|
||||||
|
<span class="num-n">N</span> 个订阅<br>
|
||||||
→ <span class="num-1">1</span> 个 key
|
→ <span class="num-1">1</span> 个 key
|
||||||
</div>
|
</div>
|
||||||
<p class="auth-narrative-sub">
|
<p class="auth-narrative-sub">
|
||||||
@@ -14,7 +22,31 @@
|
|||||||
<span class="auth-narrative-tagline">PURO(纯粹)—— 让 AI 调用回归本质。</span>
|
<span class="auth-narrative-tagline">PURO(纯粹)—— 让 AI 调用回归本质。</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="auth-narrative-foot">Claude · ChatGPT · Codex · Gemini</div>
|
|
||||||
|
<div class="steps">
|
||||||
|
<div class="steps-title">// 下一步</div>
|
||||||
|
<div class="step active">
|
||||||
|
<div class="step-num">1</div>
|
||||||
|
<div class="step-text"><b>创建账户</b> · 邮箱 + 密码,或用 LinuxDO OAuth</div>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<div class="step-num">2</div>
|
||||||
|
<div class="step-text"><b>绑定订阅</b> · OAuth 接入你现有的 Claude Pro / ChatGPT Plus</div>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<div class="step-num">3</div>
|
||||||
|
<div class="step-text"><b>生成 key</b> · 拿到 <span class="k">sk-puro-…</span>,换掉 SDK 的 <span class="k">base_url</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="auth-narrative-foot n-bottom">
|
||||||
|
<span>Claude</span><span class="sep">·</span>
|
||||||
|
<span>ChatGPT</span><span class="sep">·</span>
|
||||||
|
<span>Codex</span><span class="sep">·</span>
|
||||||
|
<span>Gemini</span>
|
||||||
|
<span class="sep">|</span>
|
||||||
|
<span class="live"><span class="dot"></span>ai.puro.im · operational</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -125,6 +157,38 @@
|
|||||||
<p v-else class="input-hint">
|
<p v-else class="input-hint">
|
||||||
{{ t('auth.passwordHint') }}
|
{{ t('auth.passwordHint') }}
|
||||||
</p>
|
</p>
|
||||||
|
<!-- Password strength meter -->
|
||||||
|
<div class="pw-strength" :data-score="pwScore">
|
||||||
|
<span class="bar"></span>
|
||||||
|
<span class="bar"></span>
|
||||||
|
<span class="bar"></span>
|
||||||
|
<span class="bar"></span>
|
||||||
|
</div>
|
||||||
|
<div class="pw-hint" :data-score="pwScore">
|
||||||
|
<span class="k">// strength · </span>
|
||||||
|
<span class="val">{{ pwScoreLabel }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Confirm Password Input -->
|
||||||
|
<div class="form-field">
|
||||||
|
<label class="input-label">{{ t('auth.confirmPasswordLabel') }}</label>
|
||||||
|
<div class="relative">
|
||||||
|
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3.5">
|
||||||
|
<Icon name="lock" size="md" class="text-gray-400 dark:text-dark-500" />
|
||||||
|
</div>
|
||||||
|
<input
|
||||||
|
v-model="formData.confirmPassword"
|
||||||
|
type="password"
|
||||||
|
class="input pl-11"
|
||||||
|
:placeholder="t('auth.confirmPasswordPlaceholder')"
|
||||||
|
required
|
||||||
|
autocomplete="new-password"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="match-hint" v-if="formData.confirmPassword" :class="pwMatchClass">
|
||||||
|
<span class="k">// </span><span class="val">{{ pwMatchLabel }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Invitation Code Input (Required when enabled) -->
|
<!-- Invitation Code Input (Required when enabled) -->
|
||||||
@@ -231,6 +295,14 @@
|
|||||||
</transition>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Terms Checkbox -->
|
||||||
|
<div class="terms-check">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" v-model="termsAccepted" class="check" />
|
||||||
|
<span>我已阅读并同意 <a href="#" class="underline">服务条款</a> 与 <a href="#" class="underline">隐私政策</a></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Turnstile Widget -->
|
<!-- Turnstile Widget -->
|
||||||
<div v-if="turnstileEnabled && turnstileSiteKey">
|
<div v-if="turnstileEnabled && turnstileSiteKey">
|
||||||
<TurnstileWidget
|
<TurnstileWidget
|
||||||
@@ -265,7 +337,7 @@
|
|||||||
<!-- Submit Button -->
|
<!-- Submit Button -->
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
:disabled="isLoading || (turnstileEnabled && !turnstileToken)"
|
:disabled="isLoading || (turnstileEnabled && !turnstileToken) || !termsAccepted"
|
||||||
class="btn btn-primary w-full"
|
class="btn btn-primary w-full"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
@@ -316,7 +388,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, onMounted, onUnmounted } from 'vue'
|
import { ref, reactive, computed, onMounted, onUnmounted } from 'vue'
|
||||||
import { useRouter, useRoute } from 'vue-router'
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { AuthLayout } from '@/components/layout'
|
import { AuthLayout } from '@/components/layout'
|
||||||
@@ -347,6 +419,7 @@ const isLoading = ref<boolean>(false)
|
|||||||
const settingsLoaded = ref<boolean>(false)
|
const settingsLoaded = ref<boolean>(false)
|
||||||
const errorMessage = ref<string>('')
|
const errorMessage = ref<string>('')
|
||||||
const showPassword = ref<boolean>(false)
|
const showPassword = ref<boolean>(false)
|
||||||
|
const termsAccepted = ref<boolean>(false)
|
||||||
|
|
||||||
// Public settings
|
// Public settings
|
||||||
const registrationEnabled = ref<boolean>(true)
|
const registrationEnabled = ref<boolean>(true)
|
||||||
@@ -387,6 +460,7 @@ let invitationValidateTimeout: ReturnType<typeof setTimeout> | null = null
|
|||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
email: '',
|
email: '',
|
||||||
password: '',
|
password: '',
|
||||||
|
confirmPassword: '',
|
||||||
promo_code: '',
|
promo_code: '',
|
||||||
invitation_code: ''
|
invitation_code: ''
|
||||||
})
|
})
|
||||||
@@ -398,6 +472,28 @@ const errors = reactive({
|
|||||||
invitation_code: ''
|
invitation_code: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// ==================== Password Strength ====================
|
||||||
|
|
||||||
|
const pwScore = computed(() => {
|
||||||
|
const p = formData.password
|
||||||
|
if (!p) return 0
|
||||||
|
let s = 0
|
||||||
|
if (p.length >= 8) s++
|
||||||
|
if (/[A-Z]/.test(p) && /[a-z]/.test(p)) s++
|
||||||
|
if (/[0-9]/.test(p)) s++
|
||||||
|
if (/[^A-Za-z0-9]/.test(p) || p.length >= 12) s++
|
||||||
|
return Math.min(s, 4)
|
||||||
|
})
|
||||||
|
const pwScoreLabel = computed(() => ['—', '弱', '中', '强', '极强'][pwScore.value])
|
||||||
|
|
||||||
|
// ==================== Confirm Password Match ====================
|
||||||
|
|
||||||
|
const pwMatch = computed(() =>
|
||||||
|
!formData.confirmPassword ? null : formData.password === formData.confirmPassword
|
||||||
|
)
|
||||||
|
const pwMatchClass = computed(() => pwMatch.value === true ? 'ok' : pwMatch.value === false ? 'mismatch' : '')
|
||||||
|
const pwMatchLabel = computed(() => pwMatch.value === true ? 'matched' : pwMatch.value === false ? 'passwords do not match' : '')
|
||||||
|
|
||||||
// ==================== Lifecycle ====================
|
// ==================== Lifecycle ====================
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
@@ -648,6 +744,12 @@ function validateForm(): boolean {
|
|||||||
isValid = false
|
isValid = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Confirm password validation
|
||||||
|
if (formData.password && formData.confirmPassword && formData.password !== formData.confirmPassword) {
|
||||||
|
errorMessage.value = t('auth.passwordsDoNotMatch')
|
||||||
|
isValid = false
|
||||||
|
}
|
||||||
|
|
||||||
// Invitation code validation (required when enabled)
|
// Invitation code validation (required when enabled)
|
||||||
if (invitationCodeEnabled.value) {
|
if (invitationCodeEnabled.value) {
|
||||||
if (!formData.invitation_code.trim()) {
|
if (!formData.invitation_code.trim()) {
|
||||||
@@ -676,6 +778,12 @@ async function handleRegister(): Promise<void> {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check passwords match
|
||||||
|
if (formData.confirmPassword && formData.password !== formData.confirmPassword) {
|
||||||
|
errorMessage.value = t('auth.passwordsDoNotMatch')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Check promo code validation status
|
// Check promo code validation status
|
||||||
if (formData.promo_code.trim()) {
|
if (formData.promo_code.trim()) {
|
||||||
// If promo code is being validated, wait
|
// If promo code is being validated, wait
|
||||||
@@ -791,16 +899,28 @@ async function handleRegister(): Promise<void> {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
color: var(--text-0);
|
color: var(--text-0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 18px;
|
font-size: 15px;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
color: var(--text-0);
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.brand .hex {
|
.brand svg {
|
||||||
color: var(--cyan);
|
color: var(--cyan);
|
||||||
font-size: 24px;
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.n-kicker {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 12px;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
color: var(--cyan);
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-narrative-headline {
|
.auth-narrative-headline {
|
||||||
@@ -810,7 +930,7 @@ async function handleRegister(): Promise<void> {
|
|||||||
letter-spacing: -0.03em;
|
letter-spacing: -0.03em;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
.auth-narrative-headline .num-5 { color: var(--amber); }
|
.auth-narrative-headline .num-n { color: var(--amber); }
|
||||||
.auth-narrative-headline .num-1 { color: var(--cyan); }
|
.auth-narrative-headline .num-1 { color: var(--cyan); }
|
||||||
.auth-narrative-sub {
|
.auth-narrative-sub {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@@ -823,9 +943,162 @@ async function handleRegister(): Promise<void> {
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--text-3);
|
color: var(--text-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 3-step onboarding panel */
|
||||||
|
.steps {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
padding: 20px 22px;
|
||||||
|
background: rgba(2, 6, 23, 0.5);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: var(--r-md, 8px);
|
||||||
|
max-width: 440px;
|
||||||
|
}
|
||||||
|
.steps-title {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
color: var(--text-3);
|
||||||
|
letter-spacing: 0.14em;
|
||||||
|
}
|
||||||
|
.step {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 14px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.step-num {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(34, 211, 238, 0.1);
|
||||||
|
border: 1px solid rgba(34, 211, 238, 0.3);
|
||||||
|
color: var(--cyan);
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 700;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.step.active .step-num {
|
||||||
|
background: var(--cyan);
|
||||||
|
color: #042f2e;
|
||||||
|
border-color: var(--cyan);
|
||||||
|
}
|
||||||
|
.step-text {
|
||||||
|
color: var(--text-1);
|
||||||
|
line-height: 1.5;
|
||||||
|
padding-top: 2px;
|
||||||
|
}
|
||||||
|
.step-text b {
|
||||||
|
color: var(--text-0);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.step-text .k {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
background: rgba(255, 255, 255, 0.04);
|
||||||
|
border: 1px solid var(--border-2);
|
||||||
|
padding: 1px 6px;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 11.5px;
|
||||||
|
color: var(--cyan);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bottom status bar */
|
||||||
.auth-narrative-foot {
|
.auth-narrative-foot {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: var(--text-3);
|
color: var(--text-3);
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
}
|
}
|
||||||
|
.n-bottom {
|
||||||
|
display: flex;
|
||||||
|
gap: 14px;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.n-bottom .sep { color: var(--border-2, rgba(255, 255, 255, 0.12)); }
|
||||||
|
.n-bottom .live {
|
||||||
|
color: var(--green, #34d399);
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
.n-bottom .live .dot {
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--green, #34d399);
|
||||||
|
box-shadow: 0 0 6px var(--green, #34d399);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Password strength meter */
|
||||||
|
.pw-strength {
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
.pw-strength .bar {
|
||||||
|
flex: 1;
|
||||||
|
height: 3px;
|
||||||
|
background: var(--border);
|
||||||
|
border-radius: 2px;
|
||||||
|
transition: background 0.2s;
|
||||||
|
}
|
||||||
|
.pw-strength[data-score="1"] .bar:nth-child(-n+1),
|
||||||
|
.pw-strength[data-score="2"] .bar:nth-child(-n+2),
|
||||||
|
.pw-strength[data-score="3"] .bar:nth-child(-n+3),
|
||||||
|
.pw-strength[data-score="4"] .bar:nth-child(-n+4) {
|
||||||
|
background: var(--strength-color, #f87171);
|
||||||
|
}
|
||||||
|
.pw-strength[data-score="1"] { --strength-color: #f87171; }
|
||||||
|
.pw-strength[data-score="2"] { --strength-color: #fbbf24; }
|
||||||
|
.pw-strength[data-score="3"] { --strength-color: #22d3ee; }
|
||||||
|
.pw-strength[data-score="4"] { --strength-color: #34d399; }
|
||||||
|
|
||||||
|
.pw-hint {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.pw-hint .k { color: var(--text-3); }
|
||||||
|
.pw-hint .val { color: var(--strength-color, var(--text-2)); }
|
||||||
|
.pw-hint[data-score="1"] { --strength-color: #f87171; }
|
||||||
|
.pw-hint[data-score="2"] { --strength-color: #fbbf24; }
|
||||||
|
.pw-hint[data-score="3"] { --strength-color: #22d3ee; }
|
||||||
|
.pw-hint[data-score="4"] { --strength-color: #34d399; }
|
||||||
|
|
||||||
|
/* Confirm password match hint */
|
||||||
|
.match-hint {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 11px;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.match-hint.ok { color: #34d399; }
|
||||||
|
.match-hint.mismatch { color: #f87171; }
|
||||||
|
.match-hint .k { color: var(--text-3); }
|
||||||
|
|
||||||
|
/* Terms checkbox */
|
||||||
|
.terms-check {
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 13px;
|
||||||
|
color: var(--text-2);
|
||||||
|
}
|
||||||
|
.terms-check label {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.terms-check a {
|
||||||
|
color: var(--cyan, #22d3ee);
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 2px;
|
||||||
|
}
|
||||||
|
.terms-check input[type="checkbox"] {
|
||||||
|
accent-color: var(--cyan, #22d3ee);
|
||||||
|
margin-top: 3px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -7,7 +7,9 @@
|
|||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
<div class="container nav-inner">
|
<div class="container nav-inner">
|
||||||
<router-link to="/" class="brand">
|
<router-link to="/" class="brand">
|
||||||
<span class="hex">⬢</span>
|
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8">
|
||||||
|
<path d="M12 2L21 7V17L12 22L3 17V7L12 2Z" fill="rgba(34, 211, 238, 0.08)"/>
|
||||||
|
</svg>
|
||||||
<span>PURO AI</span>
|
<span>PURO AI</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
@@ -24,7 +26,8 @@
|
|||||||
<!-- HERO -->
|
<!-- HERO -->
|
||||||
<section class="hero container">
|
<section class="hero container">
|
||||||
<div class="hero-eyebrow">
|
<div class="hero-eyebrow">
|
||||||
<span class="pill">ChatGPT Plus · Claude Pro · Codex · Gemini</span>
|
<span class="badge">NEW</span>
|
||||||
|
<span>统一接入多个 AI 平台 · 零改动切换</span>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="hero-title">
|
<h1 class="hero-title">
|
||||||
你的 AI 订阅,<br>
|
你的 AI 订阅,<br>
|
||||||
@@ -32,7 +35,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
<p class="hero-sub">
|
<p class="hero-sub">
|
||||||
Claude Pro · ChatGPT Plus · Codex · Gemini 订阅<br>
|
Claude Pro · ChatGPT Plus · Codex · Gemini 订阅<br>
|
||||||
聚合成统一 API,零改动接入 OpenAI / Anthropic SDK
|
聚合成统一 API,零改动接入 <span class="pill-inline">OpenAI</span> / <span class="pill-inline">Anthropic</span> SDK
|
||||||
</p>
|
</p>
|
||||||
<div class="hero-cta">
|
<div class="hero-cta">
|
||||||
<router-link to="/login" class="btn btn-primary btn-lg">登录 →</router-link>
|
<router-link to="/login" class="btn btn-primary btn-lg">登录 →</router-link>
|
||||||
@@ -46,41 +49,55 @@
|
|||||||
<!-- ② 模型墙 -->
|
<!-- ② 模型墙 -->
|
||||||
<section class="block container" id="models">
|
<section class="block container" id="models">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="section-kicker">支持的 AI 平台</div>
|
<div class="section-kicker">// providers</div>
|
||||||
<h2 class="section-title">通过 OAuth 直接复用你的订阅</h2>
|
<h2 class="section-title">通过 OAuth 直接复用你的订阅</h2>
|
||||||
<p class="section-sub">无需申请官方 API key,也无需切换账号</p>
|
<p class="section-sub">无需申请官方 API key,也无需切换账号</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-wall">
|
<div class="model-wall">
|
||||||
<div class="model-card">
|
<div class="model-card">
|
||||||
<div class="model-dot" style="background: var(--p-claude)"></div>
|
<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>
|
||||||
<div class="model-name">Claude Pro / Max</div>
|
<div class="model-name">Claude Pro / Max</div>
|
||||||
<div class="model-meta">Anthropic OAuth</div>
|
<div class="model-meta">Anthropic OAuth</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="status-chip"><span class="dot"></span>online</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-card">
|
<div class="model-card">
|
||||||
<div class="model-dot" style="background: var(--p-gpt)"></div>
|
<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>
|
||||||
<div class="model-name">ChatGPT Plus / Pro</div>
|
<div class="model-name">ChatGPT Plus / Pro</div>
|
||||||
<div class="model-meta">OpenAI OAuth</div>
|
<div class="model-meta">OpenAI OAuth</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="status-chip"><span class="dot"></span>online</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-card">
|
<div class="model-card">
|
||||||
<div class="model-dot" style="background: var(--p-codex)"></div>
|
<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>
|
||||||
<div class="model-name">Codex CLI</div>
|
<div class="model-name">Codex CLI</div>
|
||||||
<div class="model-meta">OpenAI OAuth</div>
|
<div class="model-meta">OpenAI OAuth</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="status-chip"><span class="dot"></span>online</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-card">
|
<div class="model-card">
|
||||||
<div class="model-dot" style="background: var(--p-gemini)"></div>
|
<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>
|
||||||
<div class="model-name">Gemini Code Assist</div>
|
<div class="model-name">Gemini Code Assist</div>
|
||||||
<div class="model-meta">Google OAuth</div>
|
<div class="model-meta">Google OAuth</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="status-chip"><span class="dot"></span>online</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="model-card is-muted">
|
<div class="model-card is-muted">
|
||||||
<div class="model-dot" style="background: var(--text-3)"></div>
|
<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>
|
||||||
<div class="model-name">更多</div>
|
<div class="model-name">更多</div>
|
||||||
<div class="model-meta">规划中</div>
|
<div class="model-meta">规划中</div>
|
||||||
@@ -92,24 +109,40 @@
|
|||||||
<!-- ③ 三特性 -->
|
<!-- ③ 三特性 -->
|
||||||
<section class="block container" id="features">
|
<section class="block container" id="features">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="section-kicker">核心特性</div>
|
<div class="section-kicker">// capabilities</div>
|
||||||
<h2 class="section-title">一套 key,三件武器</h2>
|
<h2 class="section-title">付一次订阅,<br>用起一整个模型池</h2>
|
||||||
|
<p class="section-sub">把散落在各个平台的订阅,整合成开发者真正能用的基础设施</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="features">
|
<div class="features">
|
||||||
<div class="feature">
|
<div class="feature">
|
||||||
<div class="feature-icon">⚡</div>
|
<div class="feature-icon">⚡</div>
|
||||||
<h3>一个 key 接所有模型</h3>
|
<h3>一个 key 接所有模型</h3>
|
||||||
<p>不再为每个 provider 申请 API key、配置 base_url。统一 <code class="mono">sk-</code> 走 Claude / GPT / Gemini,按 model 自动路由到对应账号池。</p>
|
<p>不再为每个 provider 申请 API key、配置 base_url。统一 <code class="mono">sk-</code> 走 Claude / GPT / Gemini,按 model 自动路由到对应账号池。</p>
|
||||||
|
<ul class="feature-bullets">
|
||||||
|
<li>OpenAI Responses API 兼容</li>
|
||||||
|
<li>Anthropic Messages API 兼容</li>
|
||||||
|
<li>智能 model → provider 路由</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="feature">
|
<div class="feature">
|
||||||
<div class="feature-icon">🔄</div>
|
<div class="feature-icon">🔄</div>
|
||||||
<h3>账号池高可用</h3>
|
<h3>账号池高可用</h3>
|
||||||
<p>支持多账号自动调度与 failover。某个上游触发限流 / 冷却时,流量切到下一个健康账号,token 刷新全自动。</p>
|
<p>支持多账号自动调度与 failover。某个上游触发限流 / 冷却时,流量切到下一个健康账号,token 刷新全自动。</p>
|
||||||
|
<ul class="feature-bullets">
|
||||||
|
<li>限流/5xx 自动 failover</li>
|
||||||
|
<li>OAuth token 自动刷新</li>
|
||||||
|
<li>加权轮询 · 最少连接</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="feature">
|
<div class="feature">
|
||||||
<div class="feature-icon">📊</div>
|
<div class="feature-icon">📊</div>
|
||||||
<h3>用量看板</h3>
|
<h3>用量看板</h3>
|
||||||
<p>每条请求的 tokens、费用、上游账号、延迟全可视化。模型分布饼图 + 趋势曲线 + Top 排行。</p>
|
<p>每条请求的 tokens、费用、上游账号、延迟全可视化。模型分布饼图 + 趋势曲线 + Top 排行。</p>
|
||||||
|
<ul class="feature-bullets">
|
||||||
|
<li>逐请求审计日志</li>
|
||||||
|
<li>多维度 tokens / cost 统计</li>
|
||||||
|
<li>导出 CSV / 接 Webhook</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -117,20 +150,36 @@
|
|||||||
<!-- ④ Code Demo -->
|
<!-- ④ Code Demo -->
|
||||||
<section class="block container" id="code">
|
<section class="block container" id="code">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="section-kicker">快速接入</div>
|
<div class="section-kicker">// integration</div>
|
||||||
<h2 class="section-title">把 base_url 一改,就能用</h2>
|
<h2 class="section-title">把 base_url 一改,就能用</h2>
|
||||||
<p class="section-sub">兼容 OpenAI / Anthropic / Gemini SDK,<span class="text-puro-cyan">零代码改动</span></p>
|
<p class="section-sub">兼容 OpenAI / Anthropic / Gemini SDK,<span class="text-puro-cyan">零代码改动</span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="code-demo">
|
<div class="code-demo">
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
<div class="code-title mono">~/.codex/config.toml</div>
|
<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>
|
<pre class="mono"><code><span class="cm">[model_providers.OpenAI]</span>
|
||||||
base_url = <span class="str">"https://ai.puro.im"</span>
|
base_url = <span class="str">"https://ai.puro.im"</span>
|
||||||
wire_api = <span class="str">"responses"</span>
|
wire_api = <span class="str">"responses"</span>
|
||||||
requires_openai_auth = <span class="kw">true</span></code></pre>
|
requires_openai_auth = <span class="kw">true</span></code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="code-block">
|
<div class="code-block">
|
||||||
<div class="code-title mono">curl</div>
|
<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 \
|
<pre class="mono"><code><span class="cm">$</span> curl https://ai.puro.im/responses \
|
||||||
-H <span class="str">"Authorization: Bearer sk-xxx"</span> \
|
-H <span class="str">"Authorization: Bearer sk-xxx"</span> \
|
||||||
-d <span class="str">'{"model":"gpt-5.4","input":"hello"}'</span></code></pre>
|
-d <span class="str">'{"model":"gpt-5.4","input":"hello"}'</span></code></pre>
|
||||||
@@ -142,42 +191,102 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
<!-- ⑤ Dashboard mockup -->
|
<!-- ⑤ Dashboard mockup -->
|
||||||
<section class="block container" id="dashboard">
|
<section class="block container" id="dashboard">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="section-kicker">用量透明</div>
|
<div class="section-kicker">// observability</div>
|
||||||
<h2 class="section-title">每条请求都看得见</h2>
|
<h2 class="section-title">每条请求都看得见</h2>
|
||||||
<p class="section-sub">不像第三方 API 池子那种"扣了多少不告诉你"——扣哪个账号、跑哪个模型、用了多少 tokens、上游响应几秒,一目了然。</p>
|
<p class="section-sub">不像第三方 API 池子那种"扣了多少不告诉你"——扣哪个账号、跑哪个模型、用了多少 tokens、上游响应几秒,一目了然。</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="dash-mock">
|
<div class="dash-mock">
|
||||||
<div class="dash-header">
|
<!-- browser chrome header -->
|
||||||
<span class="dash-title">Dashboard · 预览</span>
|
<div class="dash-chrome">
|
||||||
<div class="dash-dots"><span></span><span></span><span></span></div>
|
<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>
|
||||||
<div class="dash-body">
|
<div class="dash-layout">
|
||||||
<div class="stat-row">
|
<!-- sidebar -->
|
||||||
<div class="stat"><div class="stat-label">今日请求</div><div class="stat-value">1,842</div><div class="stat-delta">+12.3%</div></div>
|
<aside class="dash-side">
|
||||||
<div class="stat"><div class="stat-label">输入 Tokens</div><div class="stat-value">2.1M</div><div class="stat-delta">+8.1%</div></div>
|
<div class="side-group">
|
||||||
<div class="stat"><div class="stat-label">输出 Tokens</div><div class="stat-value">485K</div><div class="stat-delta">+15.6%</div></div>
|
<div class="side-label">WORKSPACE</div>
|
||||||
<div class="stat"><div class="stat-label">今日费用</div><div class="stat-value">$1.23</div><div class="stat-delta down">-4.2%</div></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">今日请求</div><div class="stat-value">1,842</div><div class="stat-delta">+12.3%</div></div>
|
||||||
|
<div class="stat"><div class="stat-label">输入 Tokens</div><div class="stat-value">2.1M</div><div class="stat-delta">+8.1%</div></div>
|
||||||
|
<div class="stat"><div class="stat-label">输出 Tokens</div><div class="stat-value">485K</div><div class="stat-delta">+15.6%</div></div>
|
||||||
|
<div class="stat"><div class="stat-label">今日费用</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">
|
||||||
|
近 30 天用量趋势
|
||||||
|
<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>时间</th><th>模型</th><th>上游</th><th>状态</th><th>用量</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 class="chart-card">
|
|
||||||
<div class="chart-title">近 30 天用量趋势</div>
|
|
||||||
<svg viewBox="0 0 600 120" class="chart-svg">
|
|
||||||
<polyline points="0,90 40,80 80,70 120,65 160,60 200,50 240,55 280,45 320,40 360,35 400,30 440,25 480,20 520,25 560,15 600,10"
|
|
||||||
fill="none" stroke="#22d3ee" stroke-width="2"/>
|
|
||||||
<polyline points="0,100 40,95 80,90 120,88 160,85 200,82 240,80 280,78 320,75 360,73 400,70 440,68 480,65 520,63 560,60 600,58"
|
|
||||||
fill="none" stroke="#a855f7" stroke-width="2" stroke-dasharray="4 4"/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<table class="log-table mono">
|
|
||||||
<thead>
|
|
||||||
<tr><th>时间</th><th>模型</th><th>上游</th><th>状态</th><th>用量</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -186,25 +295,33 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
<footer class="puro-footer">
|
<footer class="puro-footer">
|
||||||
<div class="container footer-grid">
|
<div class="container footer-grid">
|
||||||
<div class="footer-brand">
|
<div class="footer-brand">
|
||||||
<div class="brand"><span class="hex">⬢</span><span>PURO AI</span></div>
|
<div class="brand">
|
||||||
<p class="footer-tagline">Self-hosted on puro.im</p>
|
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8">
|
||||||
|
<path d="M12 2L21 7V17L12 22L3 17V7L12 2Z" fill="rgba(34, 211, 238, 0.08)"/>
|
||||||
|
</svg>
|
||||||
|
<span>PURO AI</span>
|
||||||
|
</div>
|
||||||
|
<p class="footer-tagline">把多个 AI 订阅聚合成统一 API。<br>让「已经付过钱」的订阅真正为你工作。</p>
|
||||||
<p class="footer-meta">© 2026 puro.im · MIT License<br>fork of Wei-Shaw/sub2api</p>
|
<p class="footer-meta">© 2026 puro.im · MIT License<br>fork of Wei-Shaw/sub2api</p>
|
||||||
|
<div class="footer-status"><span class="dot-green"></span>all systems operational</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-col">
|
<div class="footer-col">
|
||||||
<div class="footer-col-title">产品</div>
|
<div class="footer-col-title">产品</div>
|
||||||
<a href="/docs">文档</a>
|
<a href="/docs">文档</a>
|
||||||
|
<a href="#features">功能</a>
|
||||||
<a href="https://git.puro.im/purovps/sub2api/commits/branch/main" target="_blank" rel="noopener noreferrer">更新日志</a>
|
<a href="https://git.puro.im/purovps/sub2api/commits/branch/main" target="_blank" rel="noopener noreferrer">更新日志</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-col">
|
<div class="footer-col">
|
||||||
<div class="footer-col-title">资源</div>
|
<div class="footer-col-title">账户</div>
|
||||||
<a href="https://git.puro.im/purovps/sub2api" target="_blank" rel="noopener noreferrer">GitHub</a>
|
<router-link to="/login">登录</router-link>
|
||||||
<a href="/docs#codex">Codex 配置示例</a>
|
<router-link to="/register">注册</router-link>
|
||||||
<a href="https://status.puro.im" target="_blank" rel="noopener noreferrer">API 状态</a>
|
<a href="/dashboard">Dashboard</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-col">
|
<div class="footer-col">
|
||||||
<div class="footer-col-title">联系</div>
|
<div class="footer-col-title">联系</div>
|
||||||
<a href="mailto:admin@puro.im">admin@puro.im</a>
|
<a href="mailto:admin@puro.im">admin@puro.im</a>
|
||||||
<a href="https://git.puro.im" target="_blank" rel="noopener noreferrer">git.puro.im</a>
|
<a href="https://git.puro.im" target="_blank" rel="noopener noreferrer">git.puro.im</a>
|
||||||
|
<a href="https://git.puro.im/purovps/sub2api" target="_blank" rel="noopener noreferrer">GitHub ↗</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
@@ -240,7 +357,30 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
.hero-eyebrow { margin-bottom: 24px; }
|
.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 {
|
.hero-title {
|
||||||
font-size: clamp(36px, 5.5vw, 64px);
|
font-size: clamp(36px, 5.5vw, 64px);
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
@@ -255,6 +395,17 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
max-width: 640px;
|
max-width: 640px;
|
||||||
margin: 0 auto 36px;
|
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 {
|
.hero-cta {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
@@ -286,7 +437,6 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--cyan);
|
color: var(--cyan);
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.12em;
|
letter-spacing: 0.12em;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
@@ -299,6 +449,9 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
}
|
}
|
||||||
.section-sub { color: var(--text-2); font-size: 15px; }
|
.section-sub { color: var(--text-2); font-size: 15px; }
|
||||||
|
|
||||||
|
/* brand SVG */
|
||||||
|
.brand svg { color: var(--cyan); flex-shrink: 0; }
|
||||||
|
|
||||||
/* model wall */
|
/* model wall */
|
||||||
.model-wall {
|
.model-wall {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -314,11 +467,39 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
.model-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
|
.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-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-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 { opacity: 0.5; }
|
||||||
.model-card.is-muted .model-name { color: var(--text-2); }
|
.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 */
|
||||||
.features {
|
.features {
|
||||||
@@ -336,6 +517,27 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
|
.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 p { color: var(--text-2); font-size: 14px; line-height: 1.6; }
|
||||||
.feature code { color: var(--cyan); font-size: 13px; }
|
.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 */
|
||||||
.code-demo {
|
.code-demo {
|
||||||
@@ -350,13 +552,40 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
background: var(--bg-code);
|
background: var(--bg-code);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.code-title {
|
.code-head {
|
||||||
padding: 10px 16px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px 14px;
|
||||||
|
gap: 12px;
|
||||||
background: var(--bg-1);
|
background: var(--bg-1);
|
||||||
font-size: 11px;
|
|
||||||
color: var(--text-3);
|
|
||||||
border-bottom: 1px solid var(--border);
|
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 {
|
.code-block pre {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@@ -383,17 +612,72 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
|
box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
|
||||||
}
|
}
|
||||||
.dash-header {
|
|
||||||
padding: 12px 16px;
|
/* browser chrome */
|
||||||
border-bottom: 1px solid var(--border);
|
.dash-chrome {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
gap: 12px;
|
||||||
|
padding: 12px 16px;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
background: rgba(15, 23, 42, 0.7);
|
||||||
}
|
}
|
||||||
.dash-title { font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
|
.url-bar {
|
||||||
.dash-dots { display: flex; gap: 6px; }
|
flex: 1;
|
||||||
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
|
padding: 5px 12px;
|
||||||
.dash-body { padding: 20px; }
|
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; }
|
.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); } }
|
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
|
||||||
.stat {
|
.stat {
|
||||||
@@ -407,15 +691,70 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
.stat-delta { font-size: 11px; color: var(--green); margin-top: 4px; 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); }
|
.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 {
|
.chart-card {
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: var(--r-md);
|
border-radius: var(--r-md);
|
||||||
background: rgba(15,23,42,0.6);
|
background: rgba(15,23,42,0.6);
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
.chart-title { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
|
.chart-title {
|
||||||
.chart-svg { width: 100%; height: 120px; display: block; }
|
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)
|
/* Nav sticky + responsive tweaks (augments puro.css defaults)
|
||||||
* Note: puro.css defines .puro-page .nav (z-index 50, blur 16px, gap 28px)
|
* Note: puro.css defines .puro-page .nav (z-index 50, blur 16px, gap 28px)
|
||||||
@@ -443,10 +782,6 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
.brand .hex {
|
|
||||||
color: var(--cyan);
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -475,12 +810,30 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
}
|
}
|
||||||
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
|
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
|
||||||
.footer-brand .brand { margin-bottom: 12px; }
|
.footer-brand .brand { margin-bottom: 12px; }
|
||||||
.footer-tagline { color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
|
.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; }
|
.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 {
|
.footer-col-title {
|
||||||
color: var(--text-0);
|
color: var(--text-0);
|
||||||
font-size: 13px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.06em;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
.footer-col a {
|
.footer-col a {
|
||||||
@@ -490,15 +843,4 @@ requires_openai_auth = <span class="kw">true</span></code></pre>
|
|||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
}
|
}
|
||||||
.footer-col a:hover { color: var(--cyan); }
|
.footer-col a:hover { color: var(--cyan); }
|
||||||
|
|
||||||
/* pill */
|
|
||||||
.pill {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 6px 14px;
|
|
||||||
border: 1px solid var(--border-2);
|
|
||||||
border-radius: 999px;
|
|
||||||
font-size: 12px;
|
|
||||||
color: var(--text-2);
|
|
||||||
background: rgba(15,23,42,0.6);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user