diff --git a/apps/web/app/[locale]/layout.tsx b/apps/web/app/[locale]/layout.tsx index a983c07..db29066 100644 --- a/apps/web/app/[locale]/layout.tsx +++ b/apps/web/app/[locale]/layout.tsx @@ -62,7 +62,7 @@ export default async function LocaleLayout({
{children}
- + diff --git a/apps/web/app/[locale]/page.tsx b/apps/web/app/[locale]/page.tsx index 913b95c..937d15f 100644 --- a/apps/web/app/[locale]/page.tsx +++ b/apps/web/app/[locale]/page.tsx @@ -42,6 +42,7 @@ import { import { StudioOverview } from "../../components/StudioOverview"; import { CanvasWorkspace } from "../../components/CanvasWorkspace"; import { PromptBar } from "../../components/PromptBar"; +import { WelcomeHero } from "../../components/WelcomeHero"; import { SandboxedPreview } from "../../components/SandboxedPreview"; const TERMINAL: MissionState[] = ["PR_OPENED", "CANCELLED", "FAILED"]; @@ -1196,6 +1197,7 @@ export default function MissionControl() { renderPreview={(html, title) => } overview={} management={management} + welcome={(close) => } composer={ { setArenaPendingId(id); setArenaPollError(false); }}/>} /> ); } diff --git a/apps/web/app/[locale]/verify/[id]/page.tsx b/apps/web/app/[locale]/verify/[id]/page.tsx index aa87edb..85e1f49 100644 --- a/apps/web/app/[locale]/verify/[id]/page.tsx +++ b/apps/web/app/[locale]/verify/[id]/page.tsx @@ -44,10 +44,33 @@ export default function VerifyPage({ params }: { params: Promise<{ id: string }> const sealedKinds = (cert.sealed_kinds ?? []).join(", "); const heldoutGate = (cert.gates ?? []).find((g) => /heldout|sealed/i.test(g.gate)); + const verified = cert.verdict === "VERIFIED"; + const gates = cert.gates ?? []; + const gatesPassed = gates.filter((g) => g.result === "PASS").length; + const checks: { ok: boolean | null; label: string }[] = [ + { ok: cert.verify ? !!cert.verify.ok : null, label: t("check-signature") }, + { ok: keyMatches, label: t("check-key") }, + { ok: gates.length > 0 ? gatesPassed === gates.length : null, label: t("check-gates", { passed: gatesPassed, total: gates.length }) }, + ]; + return ( -
-

{t("heading")} {cert.verdict}

-

{t("description")}

+
+
+ +

{t("heading")} · {cert.verdict}

+

{verified ? t("hero-verified") : t("hero-failed")}

+

{t("description")}

+
    + {checks.map((c) => ( +
  • + + {c.label} +
  • + ))} +
+
+
+ {t("details")} {cert.signed ? (

@@ -88,6 +111,9 @@ export default function VerifyPage({ params }: { params: Promise<{ id: string }> ) : null} +

+
+ {t("gates")} · {t("chain")}

{t("gates")}

{(cert.gates ?? []).map((g) => ( @@ -98,6 +124,7 @@ export default function VerifyPage({ params }: { params: Promise<{ id: string }>
{c.stage}: {c.event_id ?? "—"}
))}
+
); } diff --git a/apps/web/components/CanvasWorkspace.tsx b/apps/web/components/CanvasWorkspace.tsx index 9e2a1a1..bbbfb26 100644 --- a/apps/web/components/CanvasWorkspace.tsx +++ b/apps/web/components/CanvasWorkspace.tsx @@ -31,8 +31,12 @@ type Props = { management: ReactNode; composer: ReactNode; renderPreview: (html: string, title: string) => ReactNode; + // First-visit introduction; shown until dismissed once, reopened from the toolbar. + welcome?: (close: () => void) => ReactNode; }; +const WELCOME_KEY = 'evoforge.welcome.seen'; + export function CanvasWorkspace(props: Props) { const t = useTranslations('canvas'); const ts = useTranslations('studio'); @@ -46,6 +50,14 @@ export function CanvasWorkspace(props: Props) { const [compare, setCompare] = useState(true); const [panel, setPanel] = useState(null); const [copied, setCopied] = useState(false); + const [welcome, setWelcome] = useState(false); + useEffect(() => { + try { if (!window.localStorage.getItem(WELCOME_KEY)) setWelcome(true); } catch { setWelcome(true); } + }, []); + const closeWelcome = () => { + setWelcome(false); + try { window.localStorage.setItem(WELCOME_KEY, '1'); } catch {} + }; const dialog = useRef(null); const mobileMenu = useRef(null); const returnFocus = useRef(null); @@ -101,6 +113,7 @@ export function CanvasWorkspace(props: Props) { {t(props.busy ? props.doc ? 'running' : 'received' : props.doc ? 'recorded' : 'waiting')}
+ {props.welcome && iconButton('spark', t('about'), () => setWelcome(true))} {iconButton('users', t('activity'), () => setPanel('activity'))} {iconButton('history', t('history'), () => setPanel('history'))}
{iconButton('performance', t('metrics'), () => setPanel('metrics'))}{iconButton('settings', t('settings'), () => setPanel('admin'))}
@@ -148,6 +161,7 @@ export function CanvasWorkspace(props: Props) { ; })} + {welcome && props.welcome?.(closeWelcome)} {props.pollError &&
{t('load-failed')}
} {props.composer} {event.preventDefault(); setPanel(null);}} onClick={event => { diff --git a/apps/web/components/FeatureRail.tsx b/apps/web/components/FeatureRail.tsx index e117fa4..349bfcd 100644 --- a/apps/web/components/FeatureRail.tsx +++ b/apps/web/components/FeatureRail.tsx @@ -37,7 +37,7 @@ export function FeatureRail() { document.addEventListener('keydown', close); return () => document.removeEventListener('keydown', close); }, [moreOpen, mobileOpen]); - const link = ({path, key, icon}: {path: string; key: string; icon: string}) => {t(key)}; + const link = ({path, key, icon}: {path: string; key: string; icon: string}) => {t(key)}; const content = <>
{ITEMS.map(link)}
diff --git a/apps/web/components/WelcomeHero.tsx b/apps/web/components/WelcomeHero.tsx new file mode 100644 index 0000000..fc801a3 --- /dev/null +++ b/apps/web/components/WelcomeHero.tsx @@ -0,0 +1,72 @@ +'use client'; + +import { useLocale, useTranslations } from 'next-intl'; +import type { ArenaSummary } from '../lib/api'; +import { StudioIcon } from './StudioIcon'; + +// First-visit introduction over the canvas: what EvoForge is, how a run works and what the measured +// record says, with the numbers read from the arena summary (never typed in). +export function WelcomeHero({ summary, onClose }: { summary: ArenaSummary | null; onClose: () => void }) { + const t = useTranslations('welcome'); + const tw = useTranslations('workspace'); + const locale = useLocale(); + const prefix = locale === 'en' ? '' : `/${locale}`; + const eq = summary?.equal_tools; + const share = (h?: { passed: number; n: number }) => (h && h.n > 0 ? Math.round((100 * h.passed) / h.n) : null); + const evoShare = share(eq?.heldout?.evoforge); + const singleShare = share(eq?.heldout?.single); + const tryIt = () => { + onClose(); + // The composer lives at the bottom of the canvas; put the cursor there. + setTimeout(() => document.querySelector('.studio-composer textarea')?.focus(), 50); + }; + const steps = [ + { title: t('step-1'), body: tw('intro-step-1') }, + { title: t('step-2'), body: tw('intro-step-2') }, + { title: t('step-3'), body: tw('intro-step-3') }, + ]; + return ( +
+
+ + {t('eyebrow')} +

{t('title')}

+

{tw('intro')}

+
    + {steps.map((step, i) => ( +
  1. + {i + 1} + {step.title} +

    {step.body}

    +
  2. + ))} +
+ {eq && (eq.scored ?? 0) > 0 && ( +
+
+
{t('stat-record', { n: eq.scored })}
+
{eq.wins?.evoforge ?? 0} {t('stat-wins')} · {eq.wins?.single ?? 0} {t('stat-losses')}
+
+ {evoShare !== null && singleShare !== null && ( +
+
{t('stat-hidden')}
+
{evoShare}% vs {singleShare}%
+
+ )} +
+
{t('stat-signed')}
+
Ed25519
+
+
+ )} +
+ + + {t('cta-scoreboard')} +
+
+
+ ); +} diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 53321b9..c61e2c3 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -37,7 +37,8 @@ "readonly": "Run access required", "readonly-short": "Read only", "no-patch": "No patch produced — scored 0", - "patch-not-applied": "Patch did not apply — scored 0" + "patch-not-applied": "Patch did not apply — scored 0", + "about": "What is EvoForge?" }, "share": { "button": "Share", @@ -567,7 +568,13 @@ "verify-label": "Verify", "diff-label": "Diff SHA256", "sealed-label": "Sealed tests", - "sealed-value": "{count} ({kinds})" + "sealed-value": "{count} ({kinds})", + "hero-verified": "This result is verified", + "hero-failed": "This result could not be verified", + "check-signature": "The signature over this result is valid", + "check-key": "It was signed with this server's published key", + "check-gates": "{passed} of {total} release gates passed", + "details": "Certificate details" }, "leaderboard": { "heading": "Trust leaderboard", @@ -591,7 +598,9 @@ "layout": { "title": "EvoForge — Mission Control", "description": "Verified code improvement service: generate → gate → review → PR → evidence.", - "footer": "Builder: Muse Spark 1.3 via Meta Model API · Gates: integrity gate (oracle_ast + provisional test-strength check) · costs are provider_billed actuals in cents from GET /v1/ledger; UNKNOWN holds listed separately" + "footer": "Built with Muse Spark 1.3 on the Meta Model API. Hidden tests decide every result, each result is signed with Ed25519, and costs come from the provider-billed ledger.", + "footer-costs-title": "How costs are counted", + "footer-costs": "Costs are provider_billed actuals in cents from GET /v1/ledger; UNKNOWN holds are listed separately." }, "errors": { "budget-exhausted": "Budget exhausted: mission step refused with 402", @@ -808,5 +817,21 @@ "evolution": "Autopilot", "leaderboard": "Trust leaderboard", "share": "Shared result" + }, + "welcome": { + "eyebrow": "Built on Muse Spark 1.3 · Meta Model API", + "title": "AI code you can verify, not just trust.", + "step-1": "You ask", + "step-2": "Same model, built twice", + "step-3": "Hidden tests decide", + "stat-record": "Fair matches ({n} scored)", + "stat-wins": "won", + "stat-losses": "lost", + "stat-hidden": "Hidden tests passed", + "stat-signed": "Every result is signed", + "cta-try": "Try it yourself", + "cta-watch": "See a recorded match", + "cta-scoreboard": "Full scoreboard", + "close": "Close" } } diff --git a/apps/web/messages/ko.json b/apps/web/messages/ko.json index 00e0681..5a3bd83 100644 --- a/apps/web/messages/ko.json +++ b/apps/web/messages/ko.json @@ -37,7 +37,8 @@ "readonly": "실행 권한 필요", "readonly-short": "보기 전용", "no-patch": "패치를 만들지 못함 — 0점 처리", - "patch-not-applied": "패치가 적용되지 않음 — 0점 처리" + "patch-not-applied": "패치가 적용되지 않음 — 0점 처리", + "about": "EvoForge란?" }, "share": { "button": "공유", @@ -567,7 +568,13 @@ "verify-label": "검증", "diff-label": "Diff SHA256", "sealed-label": "봉인 테스트", - "sealed-value": "{count} ({kinds})" + "sealed-value": "{count} ({kinds})", + "hero-verified": "검증된 결과예요", + "hero-failed": "검증하지 못한 결과예요", + "check-signature": "이 결과에 대한 서명이 유효해요", + "check-key": "이 서버가 공개한 키로 서명했어요", + "check-gates": "출시 게이트 {total}개 중 {passed}개 통과", + "details": "인증서 세부 정보" }, "leaderboard": { "heading": "신뢰 리더보드", @@ -591,7 +598,9 @@ "layout": { "title": "EvoForge — 미션 컨트롤", "description": "검증된 코드 개선 서비스: 생성 → 게이트 → 리뷰 → PR → 증거.", - "footer": "빌더: Muse Spark 1.3 (Meta Model API 사용) · 게이트: 무결성 게이트 (oracle_ast + 임시 테스트 강도 검사) · 비용은 GET /v1/ledger에서 센트 단위의 provider_billed 실제 값; UNKNOWN 보류는 별도로 나열" + "footer": "Meta Model API의 Muse Spark 1.3으로 만들었어요. 모든 결과는 숨은 테스트가 판정하고 Ed25519로 서명하며, 비용은 실제 청구된 원장 기준이에요.", + "footer-costs-title": "비용 계산 방식", + "footer-costs": "비용은 GET /v1/ledger의 provider_billed 실제 값(센트)이며, UNKNOWN 보류는 따로 표시해요." }, "errors": { "budget-exhausted": "예산 소진: 미션 단계가 402로 거부됨", @@ -808,5 +817,21 @@ "evolution": "오토파일럿", "leaderboard": "신뢰 리더보드", "share": "공유된 결과" + }, + "welcome": { + "eyebrow": "Muse Spark 1.3 · Meta Model API 기반", + "title": "믿는 대신, 검증된 AI 코드만 받으세요.", + "step-1": "요청해요", + "step-2": "같은 모델이 두 번 만들어요", + "step-3": "숨은 테스트가 판정해요", + "stat-record": "공정 대결 ({n}판 판정)", + "stat-wins": "승", + "stat-losses": "패", + "stat-hidden": "숨은 테스트 통과율", + "stat-signed": "모든 결과에 서명", + "cta-try": "직접 해 보기", + "cta-watch": "녹화된 대결 보기", + "cta-scoreboard": "전체 점수판", + "close": "닫기" } } diff --git a/apps/web/styles/canvas.css b/apps/web/styles/canvas.css index 89e2e7a..e6bca18 100644 --- a/apps/web/styles/canvas.css +++ b/apps/web/styles/canvas.css @@ -9,7 +9,7 @@ .studio-column:has(.canvas-workspace) > .studio-topbar, .studio-column:has(.canvas-workspace) > .studio-footer { display: none; } .studio-content:has(.canvas-workspace) { padding: 0; margin: 0; max-width: none; } -.canvas-rail { width: 64px; flex-shrink: 0; flex-direction: column; align-items: center; gap: 14px; min-height: 100dvh; padding: 20px 0; border-right: 1px solid #e5e8eb; background: #f9fafb; color: #8b95a1; position: sticky; top: 0; height: 100dvh; z-index: 45; } +.canvas-rail { width: 76px; flex-shrink: 0; flex-direction: column; align-items: center; gap: 14px; min-height: 100dvh; padding: 20px 0; border-right: 1px solid #e5e8eb; background: #f9fafb; color: #8b95a1; position: sticky; top: 0; height: 100dvh; z-index: 45; } .canvas-rail-brand { color: #333d4b; --studio-mark-ink: #fff; display: flex; padding-bottom: 20px; } .canvas-rail-brand svg { width: 27px; height: 27px; } .canvas-rail-items { display: flex; flex-direction: column; gap: 10px; } @@ -60,7 +60,7 @@ .canvas-test-result { display: flex; min-height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; color: #6b7684; font-size: 11px; } .canvas-test-result strong { font-size: 38px; font-weight: 450; color: #333d4b; letter-spacing: -1.7px; } .canvas-test-result small { font-size: 11px; } -.canvas-workspace .studio-composer { width: min(760px, calc(100vw - 120px)); left: calc(50% + 32px); right: auto; bottom: 28px; transform: translateX(-50%); z-index: 40; border: 1px solid #e5e8eb; border-radius: 22px; padding: 12px 14px; background: #fff; color: #333d4b; box-shadow: 0 8px 32px #18283c0c; max-height: none; overflow: visible; } +.canvas-workspace .studio-composer { width: min(760px, calc(100vw - 120px)); left: calc(50% + 38px); right: auto; bottom: 28px; transform: translateX(-50%); z-index: 40; border: 1px solid #e5e8eb; border-radius: 22px; padding: 12px 14px; background: #fff; color: #333d4b; box-shadow: 0 8px 32px #18283c0c; max-height: none; overflow: visible; } .canvas-workspace .studio-composer:focus-within { border-color: #3182f6; } .canvas-workspace .studio-composer-inner { gap: 8px; flex-wrap: nowrap; align-items: center; } .canvas-workspace .studio-composer-inner > label:first-child { min-width: 0; flex: 1; } @@ -102,7 +102,7 @@ .canvas-conditions dl { display: grid; grid-template-columns: 70px 1fr; margin: 14px 0; } .canvas-management { padding: 16px; background: #f9fafb; color: #333d4b; border: 1px solid #e5e8eb; border-radius: 16px; } .studio-button.bg-accent-blue { background: #3182f6; } -.studio-review-notice { position: fixed; left: 84px; bottom: 6px; z-index: 44; font-size: 9px; color: #aaaab4; margin: 0; } +.studio-review-notice { position: fixed; left: 92px; bottom: 6px; z-index: 44; font-size: 9px; color: #aaaab4; margin: 0; } .canvas-desktop-actions { display: flex; gap: 3px; } .canvas-mobile-actions { display: none; position: relative; } .canvas-mobile-actions > summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; border-radius: 14px; cursor: pointer; color: #6b7684; } @@ -113,7 +113,7 @@ .canvas-mobile-actions button:hover { background: #f2f4f6; } .canvas-mobile-actions svg { width: 18px; height: 18px; } .canvas-passed { color: #12a66e; } -.canvas-feedback { position: fixed; z-index: 42; bottom: 116px; left: calc(50% + 32px); transform: translateX(-50%); display: flex; align-items: center; gap: 20px; padding: 14px 18px; border-radius: 16px; background: #333d4b; color: #fff; box-shadow: 0 8px 24px #191f2820; font-size: 13px; white-space: nowrap; } +.canvas-feedback { position: fixed; z-index: 42; bottom: 116px; left: calc(50% + 38px); transform: translateX(-50%); display: flex; align-items: center; gap: 20px; padding: 14px 18px; border-radius: 16px; background: #333d4b; color: #fff; box-shadow: 0 8px 24px #191f2820; font-size: 13px; white-space: nowrap; } .canvas-feedback button { border: 0; padding: 8px; margin: -8px; background: transparent; color: #90c2ff; font-weight: 600; cursor: pointer; } .canvas-inspector > header .canvas-icon-button { width: 44px; height: 44px; } .canvas-inspector[open] { animation: canvas-sheet-in 200ms cubic-bezier(.2, .8, .2, 1); } @@ -171,3 +171,59 @@ .canvas-share-copied { font-size: 11px; color: #12a66e; white-space: nowrap; } .canvas-workspace .studio-composer { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; } .canvas-mobile-nav .canvas-more-menu { left: auto; right: 0; bottom: 52px; max-width: calc(100vw - 16px); } + +/* First-visit introduction over the canvas. */ +.welcome-layer { position: fixed; inset: 0 0 0 76px; z-index: 46; display: grid; place-items: center; padding: 24px; background: #f2f4f6d9; backdrop-filter: blur(6px); overflow-y: auto; animation: welcome-in 260ms cubic-bezier(.2, .8, .2, 1); } +.welcome-card { position: relative; width: min(760px, 100%); padding: 40px 40px 32px; background: #fff; border: 1px solid #e5e8eb; border-radius: 28px; box-shadow: 0 24px 64px #18283c1a; color: #333d4b; } +.welcome-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: #8b95a1; cursor: pointer; } +.welcome-close:hover { background: #f2f4f6; color: #4e5968; } +.welcome-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #e8f3ff; color: #1b64da; font-size: 12px; font-weight: 650; } +.welcome-card h1 { margin: 18px 0 0; font-size: 34px; line-height: 1.25; font-weight: 750; letter-spacing: -1.2px; color: #191f28; } +.welcome-sub { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: #4e5968; max-width: 620px; } +.welcome-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; } +.welcome-steps li { padding: 18px; border-radius: 18px; background: #f9fafb; } +.welcome-step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #3182f6; color: #fff; font-size: 13px; font-weight: 700; } +.welcome-steps strong { display: block; margin-top: 12px; font-size: 15px; font-weight: 700; color: #191f28; } +.welcome-steps p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: #6b7684; } +.welcome-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; } +.welcome-stats > div { padding: 16px 18px; border: 1px solid #f2f4f6; border-radius: 18px; } +.welcome-stats dt { font-size: 12px; color: #8b95a1; } +.welcome-stats dd { margin: 6px 0 0; font-size: 24px; font-weight: 750; letter-spacing: -.6px; color: #0a8a5a; font-variant-numeric: tabular-nums; } +.welcome-stats dd span { font-size: 14px; font-weight: 600; color: #8b95a1; letter-spacing: 0; } +.welcome-stats > div:last-child dd { color: #333d4b; } +.welcome-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; } +.welcome-primary { height: 52px; padding: 0 24px; border: 0; border-radius: 16px; background: #3182f6; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 160ms, transform 160ms; } +.welcome-primary:hover { background: #1b64da; } +.welcome-primary:active, .welcome-secondary:active { transform: scale(.97); } +.welcome-secondary { height: 52px; padding: 0 20px; border: 0; border-radius: 16px; background: #f2f4f6; color: #333d4b; font-size: 15px; font-weight: 650; cursor: pointer; } +.welcome-secondary:hover { background: #e5e8eb; } +.welcome-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #4e5968; font-size: 14px; font-weight: 600; text-decoration: none; } +.welcome-link:hover { color: #3182f6; } +.welcome-layer :is(button, a):focus-visible { outline: 3px solid #3182f6; outline-offset: 3px; } +@keyframes welcome-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } +@media (prefers-reduced-motion: reduce) { .welcome-layer { animation: none; } } +@media (max-width: 767px) { + .welcome-layer { inset: 0 0 calc(60px + env(safe-area-inset-bottom)) 0; padding: 12px; place-items: start center; } + .welcome-card { padding: 28px 20px 22px; border-radius: 24px; } + .welcome-card h1 { font-size: 26px; padding-right: 32px; } + .welcome-sub { font-size: 14px; } + .welcome-steps, .welcome-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; } + .welcome-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; padding: 14px; } + .welcome-steps strong { margin: 2px 0 0; } + .welcome-steps p { grid-column: 2; margin: 0; } + .welcome-stats > div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; } + .welcome-stats dd { margin: 0; font-size: 20px; } + .welcome-actions > button { flex: 1 1 100%; } + .welcome-link { margin: 4px auto 0; } +} + +/* Rail entries carry their name under the icon: a first-time visitor reads where each one goes. */ +.canvas-rail-items { gap: 4px; } +.canvas-rail-link { width: 64px; height: auto; min-height: 52px; padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; } +.canvas-rail-label { font-size: 10.5px; line-height: 1.2; font-weight: 600; text-align: center; letter-spacing: -.2px; word-break: keep-all; } +.canvas-rail-link.is-active .canvas-rail-label { color: #1b64da; } +@media (max-width: 767px) { + .canvas-mobile-nav { height: calc(64px + env(safe-area-inset-bottom)); justify-content: space-around; } + .canvas-mobile-nav > a { width: auto; min-width: 44px; height: 52px; padding: 4px 2px; display: flex; flex-direction: column; justify-content: center; gap: 3px; } + .canvas-mobile-nav .canvas-rail-label { font-size: 9.5px; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +} diff --git a/apps/web/styles/pages.css b/apps/web/styles/pages.css index cd85fd8..73c306c 100644 --- a/apps/web/styles/pages.css +++ b/apps/web/styles/pages.css @@ -29,7 +29,7 @@ .studio-footer > span { color: #6b7684; } /* The prompt composer outside the canvas (arena) floats like the canvas one. */ -.studio-composer { left: calc(50% + 32px); right: auto; bottom: 24px; width: min(760px, calc(100vw - 120px)); transform: translateX(-50%); padding: 12px 16px; border: 1px solid #e5e8eb; border-radius: 22px; background: #fff; color: #333d4b; box-shadow: 0 8px 32px #18283c12; } +.studio-composer { left: calc(50% + 38px); right: auto; bottom: 24px; width: min(760px, calc(100vw - 120px)); transform: translateX(-50%); padding: 12px 16px; border: 1px solid #e5e8eb; border-radius: 22px; background: #fff; color: #333d4b; box-shadow: 0 8px 32px #18283c12; } .studio-composer:focus-within { border-color: #3182f6; } .studio-composer textarea { color: #333d4b; font-size: 14px; resize: none; } .studio-composer textarea::placeholder { color: #8b95a1; } @@ -57,7 +57,7 @@ .studio-run-list span { font-size: 11px; color: #8b95a1; } .studio-secondary-button { margin-bottom: 12px; padding: 8px 14px; border: 1px solid #e5e8eb; background: #fff; color: #4e5968; font-size: 12px; font-weight: 600; cursor: pointer; } .studio-secondary-button:hover { background: #e8f3ff; color: #3182f6; border-color: #e8f3ff; } -.studio-command-bar { position: fixed; z-index: 40; left: calc(50% + 32px); bottom: 24px; transform: translateX(-50%); width: min(760px, calc(100vw - 120px)); padding: 12px 16px; border: 1px solid #e5e8eb; border-radius: 22px; background: #fff; color: #4e5968; box-shadow: 0 8px 32px #18283c12; } +.studio-command-bar { position: fixed; z-index: 40; left: calc(50% + 38px); bottom: 24px; transform: translateX(-50%); width: min(760px, calc(100vw - 120px)); padding: 12px 16px; border: 1px solid #e5e8eb; border-radius: 22px; background: #fff; color: #4e5968; box-shadow: 0 8px 32px #18283c12; } .studio-content:has(.studio-command-bar) { padding-bottom: 200px; } @media (max-width: 767px) { .studio-command-bar { left: 50%; width: calc(100vw - 24px); bottom: calc(72px + env(safe-area-inset-bottom)); } @@ -224,3 +224,21 @@ select.studio-chip { padding-right: 8px; } .replay-stats { margin-top: 28px; } .studio-command-note { margin: 24px 0 0; font-size: 12px; color: #8b95a1; } .studio-chip[aria-pressed="true"] { background: #e8f3ff; border-color: #e8f3ff; color: #1b64da; } + +/* Verify: the answer (verified or not) and three plain checks; the certificate itself folds below. */ +.verify-hero { position: relative; padding: 32px; background: #fff; border: 1px solid #e5e8eb; border-radius: 24px; box-shadow: 0 4px 18px #18283c05; } +.verify-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 28px; font-weight: 800; color: #fff; background: #12a66e; box-shadow: 0 8px 20px #12a66e40; } +.verify-hero.is-failed .verify-badge { background: #f04452; box-shadow: 0 8px 20px #f0445240; } +.verify-kicker { margin: 18px 0 0; font-size: 12px; font-weight: 650; letter-spacing: .4px; color: #8b95a1; text-transform: uppercase; } +.verify-hero h1 { margin: 6px 0 0; font-size: 28px; font-weight: 750; letter-spacing: -.8px; color: #191f28; } +.verify-sub { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: #6b7684; } +.verify-checks { list-style: none; display: grid; gap: 8px; margin: 22px 0 0; padding: 0; } +.verify-checks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f9fafb; font-size: 14px; font-weight: 600; color: #333d4b; } +.verify-checks li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; background: #e5e8eb; color: #6b7684; flex-shrink: 0; } +.verify-checks li.is-ok > span { background: #ebf9f2; color: #0a8a5a; } +.verify-checks li.is-bad > span { background: #fff0f1; color: #d22030; } +.verify-details .studio-card { border: 0 !important; box-shadow: none; } +@media (max-width: 767px) { .verify-hero { padding: 22px; } .verify-hero h1 { font-size: 23px; } } +.studio-footer { flex-wrap: wrap; align-items: baseline; } +.studio-footer-costs > summary { cursor: pointer; color: #8b95a1; font-weight: 600; } +.studio-footer-costs p { margin: 6px 0 0; }