feat(CUB-52): Responsive Hub Grid CSS #4

Closed
overseer wants to merge 1 commits from agent/rex/CUB-52-responsive-hub-grid into dev
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> <p class="hub-page__placeholder">Command Hub — Fleet status grid will render here</p>
</div> </div>
`, `,
styles: [` styleUrl: './hub-page.component.scss',
.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;
}
`],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class HubPageComponent {} export class HubPageComponent {}