feat: scaffold rednote content projects
This commit is contained in:
+54
-55
@@ -1,58 +1,57 @@
|
||||
:root { color-scheme: light; --ink: #25372f; --muted: #7a827e; --line: #dde1dc; --cream: #f6f4ee; --paper: #fffefa; --green: #315542; --red: #ff2442; }
|
||||
:root { color-scheme: light; --ink: #242321; --muted: #7e7a73; --line: #e8e2d9; --paper: #fffdf9; --canvas: #f5f1ea; --red: #ff2442; --red-soft: #fff0f2; }
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
|
||||
button, textarea, input { font: inherit; }
|
||||
button, a { -webkit-tap-highlight-color: transparent; }
|
||||
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
|
||||
button, input, textarea, select { font: inherit; }
|
||||
button { cursor: pointer; }
|
||||
.studio-shell { min-height: 100vh; }
|
||||
.topbar { height: 66px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
|
||||
.topbar > div { display: flex; align-items: center; gap: 10px; }
|
||||
.topbar small { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
|
||||
.logo { width: 31px; height: 31px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 10px; font-weight: 800; }
|
||||
.actions a, .actions button, .panel-head button, .command-grid button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 8px; padding: 9px 13px; text-decoration: none; }
|
||||
.actions button, .command-grid .primary { color: white; background: var(--green); border-color: var(--green); }
|
||||
.workspace { display: grid; grid-template-columns: 190px minmax(330px, 1fr) minmax(330px, 430px) 290px; height: calc(100vh - 66px); }
|
||||
.sidebar, .editor-panel, .preview-panel, .inspect-panel { min-width: 0; border-right: 1px solid var(--line); background: var(--paper); }
|
||||
.sidebar, .inspect-panel { padding: 18px 12px; overflow-y: auto; }
|
||||
.section-label { margin: 0 8px 10px; color: #929995; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
|
||||
.files-label { margin-top: 28px; }
|
||||
.project-row, .file-row, .empty-project { width: 100%; border: 0; background: transparent; border-radius: 8px; text-align: left; padding: 10px; color: #526059; }
|
||||
.studio-shell { min-height: 100vh; padding-bottom: 34px; }
|
||||
.topbar { height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
|
||||
.brand { display: flex; align-items: center; gap: 12px; }
|
||||
.brand > div { display: flex; flex-direction: column; gap: 3px; }
|
||||
.brand small { color: var(--muted); font-size: 11px; }
|
||||
.logo { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 11px; font-weight: 850; }
|
||||
.primary { border: 0; border-radius: 9px; padding: 10px 16px; background: var(--red); color: white; font-weight: 650; }
|
||||
.workspace { min-height: calc(100vh - 106px); display: grid; grid-template-columns: 230px minmax(540px, 1fr) 300px; }
|
||||
.sidebar { padding: 22px 14px; background: var(--paper); border-right: 1px solid var(--line); }
|
||||
.section-head { margin: 0 8px 12px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 750; }
|
||||
.section-head small { color: var(--muted); font-size: 10px; font-weight: 500; }
|
||||
.project-row, .empty-project { width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #595550; text-align: left; }
|
||||
.project-row { display: flex; justify-content: space-between; gap: 8px; }
|
||||
.project-row small { color: #9aa19d; }
|
||||
.project-row.selected, .file-row.selected { background: #e8eee9; color: var(--green); font-weight: 650; }
|
||||
.file-row { padding: 7px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
|
||||
.empty-project { border: 1px dashed #bbc4be; text-align: center; }
|
||||
.editor-panel, .preview-panel { display: flex; flex-direction: column; background: #eef0ec; }
|
||||
.panel-head { height: 58px; flex: 0 0 auto; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
|
||||
.panel-head div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
|
||||
.panel-head strong, .panel-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.panel-head small { color: var(--muted); font-size: 10px; }
|
||||
.editor-panel textarea { flex: 1; resize: none; border: 0; outline: none; padding: 20px; background: #17201c; color: #dce9df; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
|
||||
.statusbar { height: 32px; background: white; border-top: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 11px; }
|
||||
.ok-dot, .error-dot { width: 7px; height: 7px; border-radius: 50%; background: #54a56d; }
|
||||
.error-dot { background: #d95454; }
|
||||
.preview-panel { align-items: center; overflow: auto; }
|
||||
.preview-panel .panel-head { width: 100%; }
|
||||
.phone { position: relative; flex: 0 0 auto; width: 330px; height: 660px; margin: 24px; padding: 12px 8px 8px; background: #202622; border: 4px solid #3b423e; border-radius: 37px; box-shadow: 0 16px 45px rgba(28, 45, 37, .18); }
|
||||
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 25px; background: white; }
|
||||
.speaker { position: absolute; z-index: 2; top: 6px; left: 50%; width: 55px; height: 5px; transform: translateX(-50%); border-radius: 5px; background: #090b0a; }
|
||||
.inspect-panel { border-right: 0; }
|
||||
.command-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.command-grid button { font-size: 12px; padding: 10px 4px; }
|
||||
.report, .report-placeholder, .agent-note { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; }
|
||||
.report { display: flex; flex-direction: column; gap: 5px; }
|
||||
.report.passed { border-color: #b9d4bf; background: #f2f8f2; }
|
||||
.report.failed { border-color: #e1bcbc; background: #fff7f6; }
|
||||
.report > small, .report article span { color: var(--muted); font-size: 10px; }
|
||||
.report pre { margin: 9px 0; white-space: pre-wrap; font-size: 10px; }
|
||||
.report article { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
|
||||
.report article b { display: block; color: #bd4545; font-size: 11px; }
|
||||
.report article p { font-size: 12px; margin: 7px 0; }
|
||||
.report-placeholder { color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
|
||||
.report-placeholder span { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid #bbccc1; border-radius: 50%; color: var(--green); }
|
||||
.agent-note { margin-top: 26px; background: #eef2ee; border: 0; }
|
||||
.agent-note strong { font-size: 12px; }
|
||||
.agent-note p { color: #68736d; font-size: 11px; line-height: 1.7; }
|
||||
button:disabled { cursor: not-allowed; opacity: .55; }
|
||||
@media (max-width: 1180px) { .workspace { grid-template-columns: 170px minmax(320px, 1fr) 380px; } .inspect-panel { display: none; } }
|
||||
@media (max-width: 820px) { .workspace { grid-template-columns: 150px 1fr; } .preview-panel { display: none; } .topbar small { display: none; } }
|
||||
.project-row small { color: #aaa39a; }
|
||||
.project-row.selected { background: var(--red-soft); color: #b81830; font-weight: 700; }
|
||||
.empty-project { border: 1px dashed #cec4b8; text-align: center; }
|
||||
.sidebar-note { margin-top: 28px; padding: 14px; border-radius: 12px; background: #f7f3ed; }
|
||||
.sidebar-note b { font-size: 12px; }
|
||||
.sidebar-note p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
|
||||
.project-editor { padding: 34px clamp(24px, 4vw, 60px) 60px; overflow-y: auto; }
|
||||
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
|
||||
.page-title span, .eyebrow { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
|
||||
.page-title h1 { margin: 7px 0 6px; font-size: 30px; }
|
||||
.page-title p { margin: 0; color: var(--muted); }
|
||||
.form-card { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 8px 30px rgba(72, 58, 39, .035); }
|
||||
.form-card h2 { margin: 0 0 18px; font-size: 16px; }
|
||||
.card-title { display: flex; justify-content: space-between; align-items: flex-start; }
|
||||
.card-title h2 { margin-bottom: 4px; }
|
||||
.card-title p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
|
||||
.status-pill { padding: 5px 9px; border-radius: 20px; background: #edf7ef; color: #407b4c; font-size: 10px; }
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
label { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; color: #5f5a54; font-size: 12px; font-weight: 650; }
|
||||
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; outline: none; background: #fff; color: var(--ink); font-weight: 400; resize: vertical; }
|
||||
input:focus, textarea:focus, select:focus { border-color: #ee8494; box-shadow: 0 0 0 3px var(--red-soft); }
|
||||
.next-panel { padding: 34px 24px; background: #292724; color: white; }
|
||||
.next-panel h2 { margin: 8px 0; font-size: 24px; }
|
||||
.next-panel > p { margin: 0 0 30px; color: #bcb6ae; font-size: 12px; line-height: 1.7; }
|
||||
.future-step { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid #45413c; }
|
||||
.future-step b { color: #817b73; font-size: 11px; }
|
||||
.future-step span { display: flex; flex-direction: column; gap: 5px; }
|
||||
.future-step strong { font-size: 13px; }
|
||||
.future-step small { color: #99928a; }
|
||||
.next-panel button { width: 100%; margin-top: 24px; padding: 12px; border: 1px solid #4d4943; border-radius: 9px; background: #36332f; color: #827c74; }
|
||||
.welcome { grid-column: 2 / 4; display: grid; place-content: center; justify-items: center; text-align: center; }
|
||||
.welcome-mark { font-size: 30px; color: var(--red); }
|
||||
.welcome h1 { margin-bottom: 4px; }
|
||||
.welcome p { margin: 0 0 22px; color: var(--muted); }
|
||||
.statusbar { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 15px; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
|
||||
.statusbar span { width: 7px; height: 7px; border-radius: 50%; background: #55a26a; }
|
||||
button:disabled { cursor: not-allowed; opacity: .6; }
|
||||
@media (max-width: 1050px) { .workspace { grid-template-columns: 210px 1fr; } .next-panel { display: none; } }
|
||||
@media (max-width: 720px) { .workspace { display: block; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .sidebar-note { display: none; } .form-grid { grid-template-columns: 1fr; } .page-title { flex-direction: column; } }
|
||||
|
||||
Reference in New Issue
Block a user