Files
rohitg00__agentmemory/website/components/Install.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

94 lines
1.6 KiB
CSS

.install {
padding: 112px 0;
background: var(--iron);
border-top: 1px solid var(--charcoal);
}
.cards {
max-width: 1000px;
margin: 0 auto 56px;
padding: 0 40px;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 28px;
}
.step {
display: grid;
gap: 10px;
}
.stepLabel {
font-size: 11px;
letter-spacing: 0.96px;
color: var(--gold);
text-transform: uppercase;
font-weight: 700;
}
.box {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 16px;
align-items: center;
padding: 22px 28px;
background: var(--abyss);
border: 1px solid var(--charcoal);
color: var(--mist);
font-family: var(--font-mono);
font-size: 14px;
text-align: left;
width: 100%;
min-width: 0;
transition:
border-color 200ms ease,
background 200ms ease;
cursor: pointer;
}
.box:hover {
border-color: var(--gold);
background: var(--charcoal);
}
.boxCopied {
border-color: #29c864 !important;
}
.boxCopied .hint {
color: #29c864;
}
.prompt {
color: var(--gold);
font-weight: 700;
}
.cmd {
color: var(--white);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.hint {
color: var(--ash);
font-size: 11px;
letter-spacing: 0.96px;
text-transform: uppercase;
white-space: nowrap;
}
.cta {
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
padding: 0 40px;
}
@media (max-width: 640px) {
.cards,
.cta {
padding: 0 20px;
}
.box {
padding: 18px 16px;
gap: 10px;
font-size: 13px;
}
.hint {
font-size: 10px;
letter-spacing: 0.6px;
}
}