Skip to content

Commit 15c5c53

Browse files
SharonHartCopilot
andcommitted
Compact hero on phones; larger, tidier badges
- Phone breakpoint (<=600px): smaller octopus, single-line title, tighter spacing so the CTA and capability badges are visible without a long scroll - Badges: larger text/icons and >=8px gaps (ui-ux-pro-max touch spacing), capped width so they stay a centered single line on desktop Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ff3f8f0 commit 15c5c53

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

src/pages/index.astro

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,16 @@ const posts = (await getCollection("docs"))
700700
.hero-copy { text-align: center; }
701701
.cta { justify-content: center; }
702702
}
703+
/* Phone: compact the hero so the CTA + badges are visible without a long scroll */
704+
@media (max-width: 600px) {
705+
.hero { padding-top: 0.3rem; padding-bottom: 1.2rem; }
706+
.site-title { font-size: clamp(1.8rem, 8vw, 2.4rem); margin-bottom: 0.6rem; }
707+
.hero-row { gap: 0.7rem; }
708+
.hero-logo-wrap { width: min(210px, 48vw); }
709+
.tagline { font-size: clamp(1.1rem, 5.2vw, 1.4rem); }
710+
.cta { margin-top: 0.9rem; }
711+
.badges { margin-top: 1rem; }
712+
}
703713
.btn {
704714
display: inline-block;
705715
padding: 0.72rem 1.4rem;
@@ -721,32 +731,33 @@ const posts = (await getCollection("docs"))
721731
/* Capability badges (ui-pro-magic: built to the locked design system) */
722732
.badges {
723733
list-style: none;
724-
margin: 2rem auto 0;
734+
margin: 1.6rem auto 0;
725735
padding: 0;
726736
display: flex;
727737
flex-wrap: wrap;
728738
justify-content: center;
729-
gap: 0.45rem;
739+
gap: 0.55rem;
740+
max-width: 880px;
730741
}
731742
.badges li {
732743
display: inline-flex;
733744
align-items: center;
734-
gap: 0.32rem;
735-
padding: 0.28rem 0.62rem;
745+
gap: 0.4rem;
746+
padding: 0.42rem 0.85rem;
736747
border: 1px solid var(--card-border);
737748
border-radius: 999px;
738749
background: var(--card-bg);
739750
color: var(--text-muted);
740751
font-family: var(--dps-font-display);
741752
font-weight: 600;
742-
font-size: 0.72rem;
753+
font-size: 0.82rem;
743754
line-height: 1;
744755
transition:
745756
color 200ms var(--ease-out),
746757
border-color 200ms var(--ease-out),
747758
background 200ms var(--ease-out);
748759
}
749-
.badges li svg { color: var(--accent); flex-shrink: 0; width: 14px; height: 14px; }
760+
.badges li svg { color: var(--accent); flex-shrink: 0; width: 16px; height: 16px; }
750761
@media (hover: hover) and (pointer: fine) {
751762
.badges li:hover { color: var(--text); border-color: var(--accent); }
752763
}

0 commit comments

Comments
 (0)