Files
rohitg00__agentmemory/website/components/CommandCenter.module.css
Rohit Ghumare 197aa8d0e8 fix(website): mobile overflow + add OG/Twitter preview images
Mobile (375px) had ~55px horizontal scroll caused by grid tracks
defaulting to min-content across nowrap text in Install, AgentInstall,
and CommandCenter sections. Replace implicit/`1fr` tracks with
`minmax(0, 1fr)` so tracks can shrink below their content and let
`overflow: hidden` / `text-overflow: ellipsis` actually clip.

Also tightens padding, font-size, and letter-spacing at <=640px for
Install boxes, AgentInstall snippet head/code/copy row, CommandCenter
tabs and launch strip, and Stats tiles so dense uppercase content stops
crowding itself at mobile widths.

Adds app/opengraph-image.tsx and app/twitter-image.tsx using
next/og ImageResponse, statically prerendered at build (no edge
runtime) so socials get a real 1200x630 preview instead of the blank
card the site was shipping before.
2026-04-19 00:30:22 +01:00

196 lines
3.4 KiB
CSS

.wrap {
padding: 96px 0;
background: var(--iron);
border-top: 1px solid var(--charcoal);
border-bottom: 1px solid var(--charcoal);
}
.tabs {
max-width: 1200px;
margin: 0 auto 32px;
padding: 0 40px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
border: 1px solid var(--charcoal);
background: var(--abyss);
}
.tab {
padding: 18px 18px;
text-align: left;
display: flex;
flex-direction: column;
gap: 6px;
border-right: 1px solid var(--charcoal);
transition:
background 200ms ease,
color 200ms ease;
cursor: pointer;
background: transparent;
}
.tab:last-child {
border-right: none;
}
.tab:hover {
background: var(--charcoal);
}
.tabActive {
background: var(--gold) !important;
color: var(--abyss) !important;
}
.tabActive .tabSub {
color: rgba(0, 0, 0, 0.7) !important;
}
.tabLabel {
font-size: 16px;
font-weight: 900;
letter-spacing: -0.01em;
text-transform: uppercase;
}
.tabSub {
font-size: 10px;
letter-spacing: 0.96px;
color: var(--ash);
text-transform: uppercase;
}
.panel {
max-width: 1200px;
margin: 0 auto;
padding: 0 40px;
display: grid;
grid-template-columns: minmax(320px, 1fr) minmax(0, 1.3fr);
gap: 40px;
align-items: start;
}
.panelText {
padding-top: 8px;
}
.panelTitle {
font-size: clamp(24px, 2.4vw, 32px);
font-weight: 900;
letter-spacing: -0.01em;
text-transform: uppercase;
margin: 0 0 16px;
color: var(--white);
}
.panelBlurb {
font-size: 14px;
letter-spacing: 0.12px;
color: var(--mist);
text-transform: uppercase;
line-height: 1.6;
margin: 0 0 24px;
}
.panelBullets {
list-style: none;
padding: 0;
margin: 0 0 28px;
display: grid;
gap: 10px;
}
.panelBullets li {
display: flex;
gap: 12px;
align-items: flex-start;
font-size: 12px;
letter-spacing: 0.12px;
color: var(--steel);
text-transform: uppercase;
line-height: 1.55;
}
.panelBullets span {
color: var(--gold);
font-weight: 700;
margin-top: 1px;
}
.launch {
margin: 0;
padding: 16px 18px;
background: var(--abyss);
border: 1px solid var(--charcoal);
font-family: var(--font-mono);
font-size: 13px;
color: var(--white);
overflow-x: auto;
white-space: nowrap;
}
.launchPrompt {
color: var(--gold);
font-weight: 700;
margin-right: 8px;
}
.panelFrame {
background: var(--abyss);
border: 1px solid var(--charcoal);
overflow: hidden;
}
.frameChrome {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: var(--iron);
border-bottom: 1px solid var(--charcoal);
}
.dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.red {
background: #ff5f57;
}
.yellow {
background: #febc2e;
}
.green {
background: #28c840;
}
.frameTitle {
margin-left: 8px;
font-family: var(--font-mono);
font-size: 11px;
color: var(--ash);
letter-spacing: 0.12px;
text-transform: uppercase;
}
.frameShot {
background: var(--abyss);
min-height: 300px;
}
@media (max-width: 960px) {
.panel {
grid-template-columns: minmax(0, 1fr);
}
.tabs {
grid-template-columns: 1fr 1fr;
}
.tab {
border-bottom: 1px solid var(--charcoal);
}
.tab:nth-child(2n) {
border-right: none;
}
}
@media (max-width: 640px) {
.tabs,
.panel {
padding: 0 20px;
}
.tab {
padding: 14px 12px;
}
.tabLabel {
font-size: 13px;
}
.tabSub {
font-size: 9px;
letter-spacing: 0.6px;
}
.launch {
padding: 12px 14px;
font-size: 11px;
}
}