From 2d43a1640180b821473be7a208f11467bf99ebe3 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sun, 19 Jul 2026 19:58:05 +0000 Subject: [PATCH] a2a-source-edit: write frontend/src/style.css --- frontend/src/style.css | 298 +++++++++-------------------------------- 1 file changed, 61 insertions(+), 237 deletions(-) diff --git a/frontend/src/style.css b/frontend/src/style.css index ca086b3..f1961e4 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -1,244 +1,68 @@ :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; + background: #f6f7fb; + color: #172033; } -* { - box-sizing: border-box; +* { box-sizing: border-box; } +body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f6f7fb 0%, #eef8f5 100%); } +button, textarea { font: inherit; } +button { cursor: pointer; } + +.loading { min-height: 100vh; display: grid; place-items: center; color: #526070; } +.dashboard-app { width: min(1440px, 100%); margin: 0 auto; padding: 28px; display: grid; gap: 22px; } +.hero { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 20px; align-items: stretch; } +.eyebrow { margin: 0 0 8px; color: #077b68; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; } +h1, h2, h3, p { margin-top: 0; } +h1 { margin-bottom: 12px; font-size: clamp(38px, 6vw, 72px); line-height: .92; letter-spacing: -0.055em; color: #101828; } +h2 { margin-bottom: 0; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.035em; color: #101828; } +h3 { margin: 20px 0 10px; color: #344054; font-size: 15px; } +.lede { max-width: 780px; margin-bottom: 0; color: #526070; font-size: 19px; line-height: 1.55; } +.account-card, .builder-card, .result-card, .history-card { border: 1px solid #dde5ed; border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 24px 70px rgba(23, 32, 51, .08); } +.account-card { padding: 22px; display: grid; align-content: center; gap: 8px; } +.account-card span, .hint, .receipt { color: #667085; } +.account-card strong { overflow-wrap: anywhere; } +.signin, .builder-card button, .download { border: 0; border-radius: 999px; background: #101828; color: #fff; padding: 12px 16px; text-decoration: none; text-align: center; font-weight: 750; } +.grid { display: grid; grid-template-columns: minmax(360px, 0.7fr) minmax(0, 1.3fr); gap: 22px; align-items: start; } +.builder-card, .result-card, .history-card { padding: 22px; } +.card-heading { margin-bottom: 14px; } +.builder-card { display: grid; gap: 14px; } +.builder-card label { display: grid; gap: 10px; color: #344054; font-weight: 700; } +textarea { width: 100%; min-height: 470px; resize: vertical; border: 1px solid #d0d5dd; border-radius: 18px; background: #fbfcff; color: #172033; padding: 16px; line-height: 1.5; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; } +.builder-card button { justify-self: start; min-width: 180px; } +.builder-card button:disabled { opacity: .55; cursor: not-allowed; } +.error { border: 1px solid #f5b7b1; border-radius: 14px; background: #fff1f0; color: #a33a31; padding: 12px; } +.empty-state { min-height: 440px; display: grid; place-content: center; text-align: center; color: #667085; } +.result-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; } +.download { background: #08745f; white-space: nowrap; } +.trend-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; } +.metric { border: 1px solid #e4e7ec; border-radius: 18px; padding: 14px; background: #f9fafb; display: grid; gap: 6px; } +.metric span { color: #667085; font-size: 13px; } +.metric strong { color: #101828; font-size: 24px; letter-spacing: -0.04em; } +.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid #d7eee7; border-radius: 18px; background: #f0fbf7; padding: 12px; color: #315d50; } +.filters span { border-left: 1px solid #bdded3; padding-left: 10px; } +.exceptions { display: grid; gap: 10px; } +.exceptions article { border: 1px solid #fedf89; border-radius: 16px; background: #fffbeb; padding: 12px; display: grid; gap: 4px; } +.exceptions article span { color: #92400e; } +.exceptions p { margin-bottom: 0; color: #526070; } +.table-wrap { max-width: 100%; overflow: auto; border: 1px solid #e4e7ec; border-radius: 16px; } +table { width: 100%; border-collapse: collapse; min-width: 680px; background: #fff; } +th, td { padding: 12px; text-align: left; border-bottom: 1px solid #edf0f4; font-size: 14px; } +th { background: #f9fafb; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; } +.history-card { display: grid; gap: 14px; } +.history-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } +.history-list article { border: 1px solid #e4e7ec; border-radius: 16px; background: #fff; padding: 14px; display: grid; gap: 6px; } +.history-list span { color: #667085; } + +@media (max-width: 980px) { + .hero, .grid { grid-template-columns: 1fr; } + .trend-row, .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } + textarea { min-height: 330px; } } -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; - } +@media (max-width: 640px) { + .dashboard-app { padding: 16px; } + .trend-row, .history-list { grid-template-columns: 1fr; } + .result-header { flex-direction: column; } }