Compare commits

..

1 Commits

Author SHA1 Message Date
cubecraft-agents[bot]
a8b8fb7748 feat(CUB-52): [Control Center] Responsive Hub Grid CSS 2026-04-26 12:32:21 +00:00
2 changed files with 32 additions and 12 deletions

View File

@@ -0,0 +1,31 @@
// ============================================================================
// Hub Page — Responsive AgentCard Grid
// Per CUB-52: 2×2 grid on ≥ 1024px (kiosk), single-column on < 1024px (mobile)
// ============================================================================
.hub-page {
display: grid;
grid-template-columns: 1fr;
gap: var(--cc-card-gap);
padding: var(--cc-section-padding);
min-height: 400px;
width: 100%;
box-sizing: border-box;
}
.hub-page__placeholder {
color: var(--cc-on-surface-variant);
font-size: 16px;
grid-column: 1 / -1;
text-align: center;
align-self: center;
}
// ---------------------------------------------------------------------------
// Kiosk / Desktop: 2×2 AgentCard grid
// ---------------------------------------------------------------------------
@media (min-width: 1024px) {
.hub-page {
grid-template-columns: repeat(2, 1fr);
}
}

View File

@@ -9,18 +9,7 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
<p class="hub-page__placeholder">Command Hub — Fleet status grid will render here</p>
</div>
`,
styles: [`
.hub-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 400px;
}
.hub-page__placeholder {
color: var(--cc-on-surface-variant);
font-size: 16px;
}
`],
styleUrl: './hub-page.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class HubPageComponent {}