From e3546654ffedd3a7585b634dfbe39f174ac0a7b1 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sat, 18 Jul 2026 08:55:12 +0000 Subject: [PATCH] a2a-source-edit: write frontend/src/style.css --- frontend/src/style.css | 292 +++++++---------------------------------- 1 file changed, 51 insertions(+), 241 deletions(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index ca086b3..151e992 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -1,244 +1,54 @@ :root { - color-scheme: dark; + color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; - background: #090909; - color: #f5f5f5; -} - -* { - box-sizing: border-box; -} - -body { - margin: 0; - min-height: 100vh; - background: #090909; -} - -button, -textarea { - font: inherit; -} - -button { - cursor: pointer; -} - -.loading { - min-height: 100vh; - display: grid; - place-items: center; - color: #b8b8b8; -} - -.app-shell { - min-height: 100vh; - display: grid; - grid-template-columns: minmax(260px, 340px) 1fr; -} - -.sidebar { - min-height: 100vh; - border-right: 1px solid #222; - background: #0d0d0d; - padding: 28px; - display: grid; - align-content: start; - gap: 28px; -} - -.eyebrow { - margin: 0 0 10px; - color: #8bd8c6; - font-size: 12px; - letter-spacing: 0; - text-transform: uppercase; -} - -h1, -h2, -h3, -p { - margin-top: 0; -} - -h1 { - margin-bottom: 10px; - font-size: clamp(32px, 5vw, 56px); - line-height: 0.95; - letter-spacing: 0; -} - -h2 { - margin-bottom: 0; - font-size: 30px; - letter-spacing: 0; -} - -h3 { - margin-bottom: 12px; - color: #d7d7d7; - font-size: 14px; - letter-spacing: 0; -} - -.agent-meta { - margin-bottom: 0; - color: #a6a6a6; -} - -.skill-list { - display: grid; - gap: 10px; -} - -.skill { - width: 100%; - min-height: 58px; - border: 1px solid #252525; - border-radius: 8px; - background: #121212; - color: #f3f3f3; - padding: 12px 14px; - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; - text-align: left; -} - -.skill:hover, -.skill.active { - border-color: #5bb7a7; - background: #15201d; -} - -.skill span { - overflow-wrap: anywhere; -} - -.skill small { - color: #9d9d9d; -} - -.session { - border: 1px solid #252525; - border-radius: 8px; - padding: 14px; - color: #a6a6a6; - display: grid; - gap: 4px; -} - -.session strong { - color: #f3f3f3; - overflow-wrap: anywhere; -} - -.workbench { - padding: 28px; - display: grid; - align-content: start; - gap: 22px; -} - -.toolbar { - display: flex; - align-items: center; - justify-content: space-between; - gap: 18px; -} - -.toolbar a, -.runner button { - border: 1px solid #e8e8e8; - border-radius: 7px; - background: #f4f4f4; - color: #111; - padding: 10px 14px; - text-decoration: none; - white-space: nowrap; -} - -.runner { - display: grid; - gap: 12px; -} - -.runner label { - display: grid; - gap: 10px; - color: #d7d7d7; -} - -.runner textarea { - width: 100%; - min-height: 170px; - resize: vertical; - border: 1px solid #252525; - border-radius: 8px; - background: #070707; - color: #eeeeee; - padding: 14px; - line-height: 1.5; - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; -} - -.runner button { - justify-self: start; -} - -.runner button:disabled { - cursor: wait; - opacity: 0.72; -} - -.panels { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 16px; -} - -.panel { - min-width: 0; - border: 1px solid #252525; - border-radius: 8px; - padding: 16px; - background: #0d0d0d; -} - -pre { - min-height: 260px; - max-height: 420px; - margin: 0; - overflow: auto; - color: #dcdcdc; - line-height: 1.5; - font-size: 13px; - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; -} - -.empty { - color: #aaa; -} - -@media (max-width: 820px) { - .app-shell { - grid-template-columns: 1fr; - } - - .sidebar { - min-height: auto; - border-right: 0; - border-bottom: 1px solid #222; - } - - .panels { - grid-template-columns: 1fr; - } - - .toolbar { - align-items: flex-start; - flex-direction: column; - } + background: #f6f7fb; + color: #172033; } +* { box-sizing: border-box; } +body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #e7fbf4 0, transparent 34rem), #f6f7fb; } +button, input, textarea { font: inherit; } +button { cursor: pointer; } +.loading { min-height: 100vh; display: grid; place-items: center; color: #526070; } +.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; } +.hero { display: grid; grid-template-columns: 1fr minmax(250px, 340px); gap: 24px; align-items: end; margin-bottom: 22px; } +.eyebrow { margin: 0 0 8px; color: #047857; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; } +h1 { margin: 0; font-size: clamp(42px, 8vw, 82px); line-height: .92; letter-spacing: -0.06em; color: #101827; } +h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.04em; } +h3 { margin: 22px 0 10px; font-size: 14px; color: #526070; text-transform: uppercase; letter-spacing: .06em; } +.lede { max-width: 720px; margin: 18px 0 0; font-size: 20px; color: #526070; line-height: 1.5; } +.session-card, .card { border: 1px solid rgba(17, 24, 39, .08); background: rgba(255,255,255,.88); box-shadow: 0 20px 60px rgba(15, 23, 42, .08); border-radius: 24px; } +.session-card { padding: 18px; display: grid; gap: 6px; } +.session-card span, .muted, small { color: #667085; } +.session-card strong { overflow-wrap: anywhere; } +.session-card a, button { border: 0; border-radius: 14px; padding: 12px 16px; background: #0f766e; color: white; text-decoration: none; font-weight: 800; text-align: center; } +.alert { margin: 0 0 18px; border: 1px solid #fecaca; background: #fff1f2; color: #991b1b; padding: 14px 16px; border-radius: 16px; } +.grid { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(360px, 1.05fr); gap: 22px; align-items: start; } +.card { padding: 24px; } +.workflow { display: grid; gap: 18px; } +.field-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; } +label { display: grid; gap: 8px; color: #344054; font-weight: 750; } +input, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 14px; background: white; color: #172033; padding: 12px 14px; outline: none; } +input:focus, textarea:focus { border-color: #0f766e; box-shadow: 0 0 0 4px rgba(15,118,110,.12); } +textarea { min-height: 220px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.5; } +.upload { border: 1px dashed #98a2b3; border-radius: 18px; padding: 16px; background: #fbfcff; } +.upload span { color: #667085; font-weight: 500; } +.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } +button:disabled { opacity: .55; cursor: not-allowed; } +.secondary { background: #e6fffb; color: #0f766e; border: 1px solid #99f6e4; } +.ghost { background: transparent; color: #344054; border: 1px solid #d0d5dd; } +.result { min-height: 540px; } +.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 18px 0; } +.facts div { background: #f8fafc; border-radius: 16px; padding: 14px; } +dt { color: #667085; font-size: 12px; text-transform: uppercase; font-weight: 800; } dd { margin: 4px 0 0; font-weight: 850; overflow-wrap: anywhere; } +.table-wrap { overflow: auto; border: 1px solid #eaecf0; border-radius: 16px; } +table { border-collapse: collapse; width: 100%; } th, td { text-align: left; border-bottom: 1px solid #eaecf0; padding: 10px 12px; } th { width: 35%; background: #f8fafc; } +.bars { display: grid; gap: 10px; } +.bar { display: grid; grid-template-columns: 92px 1fr 64px; gap: 10px; align-items: center; } +meter { width: 100%; height: 18px; } +.empty { color: #526070; display: grid; align-content: center; min-height: 260px; } +.history { margin-top: 22px; } +.history-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; } +.history ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; } +.history li button { width: 100%; display: grid; gap: 4px; text-align: left; background: #f8fafc; color: #172033; border: 1px solid #eaecf0; } +.history li span { color: #667085; font-weight: 500; } +@media (max-width: 860px) { .hero, .grid { grid-template-columns: 1fr; } .field-row, .facts { grid-template-columns: 1fr; } h1 { font-size: 48px; } }