a2a-source-edit: write frontend/src/style.css
This commit is contained in:
@@ -1,244 +1,39 @@
|
||||
: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: #f6f2ea;
|
||||
color: #17211c;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f6f2ea 0%, #eaf3ee 100%); }
|
||||
button, textarea, input, select { font: inherit; }
|
||||
button { cursor: pointer; }
|
||||
.loading { min-height: 100vh; display: grid; place-items: center; color: #53645b; }
|
||||
.product-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; display: grid; gap: 20px; }
|
||||
.hero-card, .generator-card, .result-card { border: 1px solid #d7ded7; border-radius: 24px; background: rgba(255,255,255,0.88); box-shadow: 0 18px 60px rgba(31, 54, 42, 0.10); }
|
||||
.hero-card { padding: clamp(24px, 5vw, 48px); }
|
||||
.eyebrow { margin: 0 0 10px; color: #21745b; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
|
||||
h1, h2, p { margin-top: 0; }
|
||||
h1 { max-width: 850px; margin-bottom: 16px; font-size: clamp(36px, 7vw, 76px); line-height: .92; letter-spacing: -0.06em; }
|
||||
h2 { margin-bottom: 6px; font-size: clamp(24px, 4vw, 38px); letter-spacing: -0.03em; }
|
||||
.hero-copy { max-width: 760px; color: #4a5a51; font-size: 18px; line-height: 1.6; }
|
||||
.trial-note, .warning { border: 1px solid #cfd9d1; border-radius: 14px; background: #f7fbf8; padding: 14px 16px; color: #40524a; }
|
||||
.signin { display: inline-block; margin-top: 16px; border-radius: 999px; background: #173f32; color: white; padding: 12px 18px; text-decoration: none; font-weight: 800; }
|
||||
.generator-card, .result-card { padding: clamp(20px, 4vw, 34px); display: grid; gap: 18px; }
|
||||
.grid { display: grid; gap: 14px; }
|
||||
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
label { display: grid; gap: 8px; color: #34483e; font-weight: 750; }
|
||||
input, select, textarea { width: 100%; border: 1px solid #cad5ce; border-radius: 14px; background: #fff; color: #17211c; padding: 12px 13px; outline: none; }
|
||||
input:focus, select:focus, textarea:focus { border-color: #21745b; box-shadow: 0 0 0 3px rgba(33,116,91,.14); }
|
||||
textarea { min-height: 155px; resize: vertical; line-height: 1.5; }
|
||||
.upload-box { border: 1px dashed #aab9b0; border-radius: 16px; padding: 14px; background: #fbfdfb; }
|
||||
.check-row { display: flex; align-items: center; gap: 10px; }
|
||||
.check-row input { width: auto; }
|
||||
[data-testid="agent-submit"], [data-testid="agent-download"] { justify-self: start; border: 0; border-radius: 999px; background: #173f32; color: white; padding: 13px 20px; font-weight: 850; box-shadow: 0 10px 24px rgba(23,63,50,.18); }
|
||||
[data-testid="agent-submit"]:disabled { opacity: .55; cursor: not-allowed; }
|
||||
.error { border: 1px solid #f0b5a8; border-radius: 14px; background: #fff4f1; color: #8f2e1d; padding: 13px 15px; }
|
||||
.result-header { display: flex; gap: 20px; justify-content: space-between; align-items: start; }
|
||||
.result-header p { margin-bottom: 0; color: #617168; }
|
||||
.preview { margin: 0; max-height: 620px; overflow: auto; white-space: pre-wrap; border: 1px solid #d9e1dc; border-radius: 18px; background: #0d1713; color: #ecfff6; padding: 22px; line-height: 1.55; font-size: 14px; }
|
||||
@media (max-width: 880px) { .grid.two, .grid.four { grid-template-columns: 1fr; } .result-header { flex-direction: column; } h1 { letter-spacing: -0.04em; } }
|
||||
|
||||
Reference in New Issue
Block a user