feat(frontend): scaffold ChicoryTV SPA

refs #78
This commit is contained in:
2026-07-02 07:37:00 +02:00
parent c0b20a0ac5
commit b183c6a154
125 changed files with 17233 additions and 1 deletions
+199
View File
@@ -0,0 +1,199 @@
.ctv-app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 232px minmax(0, 1fr);
background: var(--ctv-bg, #0f1115);
color: var(--text-primary, #e6e9ef);
font-family: var(--font-sans, system-ui, sans-serif);
}
.ctv-sidebar {
border-right: 1px solid var(--border-default, #262b36);
background: var(--surface-sunken, #0b0d11);
padding: 16px 10px;
}
.ctv-brand {
display: flex;
align-items: center;
gap: 10px;
padding: 0 10px 18px;
}
.ctv-brand img {
width: 34px;
height: 34px;
}
.ctv-brand h1,
.ctv-topbar h2,
.ctv-panel h3 {
margin: 0;
letter-spacing: 0;
}
.ctv-brand h1 {
font-size: 16px;
line-height: 1.1;
}
.ctv-brand span,
.ctv-topbar p,
.ctv-panel-header p,
.ctv-stats span {
color: var(--text-secondary, #9aa4b2);
}
.ctv-brand span,
.ctv-panel-header p,
.ctv-topbar p {
font-size: 12px;
}
.ctv-nav {
display: grid;
gap: 3px;
}
.ctv-nav a {
position: relative;
display: flex;
align-items: center;
gap: 9px;
height: 34px;
padding: 0 10px;
border-radius: 5px;
color: var(--text-secondary, #9aa4b2);
text-decoration: none;
font-size: 13px;
}
.ctv-nav a:hover,
.ctv-nav a.is-active {
background: var(--surface-selected, #222732);
color: var(--text-primary, #e6e9ef);
}
.ctv-nav a.is-active::before {
position: absolute;
left: 0;
width: 3px;
height: 18px;
border-radius: 999px;
background: var(--action-primary, #e08a3c);
content: "";
}
.ctv-main {
min-width: 0;
padding: 24px 32px;
}
.ctv-topbar {
min-height: 52px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
border-bottom: 1px solid var(--border-default, #262b36);
padding-bottom: 18px;
}
.ctv-topbar h2 {
font-size: 20px;
}
.ctv-topbar p,
.ctv-panel-header p {
margin: 0 0 4px;
text-transform: uppercase;
font-weight: 600;
}
.ctv-primary-action {
height: 34px;
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--action-primary, #e08a3c);
border-radius: 5px;
background: var(--action-primary, #e08a3c);
color: var(--action-primary-text, #111318);
padding: 0 12px;
font: inherit;
font-weight: 600;
}
.ctv-panel {
margin-top: 24px;
border: 1px solid var(--border-default, #262b36);
border-radius: 7px;
background: var(--surface-default, #171a21);
}
.ctv-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px;
border-bottom: 1px solid var(--border-default, #262b36);
}
.ctv-panel h3 {
font-size: 16px;
}
.ctv-status {
display: inline-flex;
align-items: center;
gap: 6px;
border-radius: 999px;
background: var(--status-ok-bg, rgba(63, 185, 132, 0.14));
color: var(--status-ok, #3fb984);
padding: 4px 8px;
font-size: 12px;
font-weight: 600;
}
.ctv-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ctv-stats div {
display: grid;
gap: 6px;
padding: 16px;
border-right: 1px solid var(--border-default, #262b36);
}
.ctv-stats div:last-child {
border-right: 0;
}
.ctv-stats strong {
font-family: var(--font-mono, ui-monospace, monospace);
font-size: 26px;
line-height: 1;
}
@media (max-width: 720px) {
.ctv-app-shell {
grid-template-columns: 1fr;
}
.ctv-sidebar {
border-right: 0;
border-bottom: 1px solid var(--border-default, #262b36);
}
.ctv-nav,
.ctv-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ctv-main {
padding: 20px 16px;
}
}