Skip to content

Commit 4d53900

Browse files
committed
fix (ui): adjust stats strip on home page
- moved it to be visible in hero section - adjusted mobile view
1 parent 4deedcf commit 4d53900

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

styles/main.css

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ nav::after {
180180
.page-header p{font-size:1.1rem;color:var(--ink-soft);line-height:1.8;}
181181

182182
/* HOME */
183-
.hero{min-height:85vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4rem 2rem 2rem;position:relative;}
183+
.hero{min-height:72vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:3.2rem 2rem 1.6rem;position:relative;}
184184
.hero-badge{font-family:'Caveat',cursive;font-size:1rem;color:var(--accent3);background:var(--sketch);border:2px solid var(--accent3);border-radius:20px;padding:0.3rem 1rem;margin-bottom:1.5rem;letter-spacing:1px;display:inline-block;transform:rotate(-1deg);}
185185
.hero h1{font-family:'Caveat',cursive;font-size:clamp(3.5rem,9vw,7rem);font-weight:700;color:var(--ink);line-height:1.1;margin-bottom:1rem;}
186186
.hero h1 .accent{color:var(--accent);}
@@ -820,7 +820,7 @@ footer .footer-sep {
820820
.hamburger { display: flex; }
821821

822822
/* HERO */
823-
.hero { min-height: 70vh; padding: 3rem 1.4rem 2rem; }
823+
.hero { min-height: 62vh; padding: 2.4rem 1.4rem 1.4rem; }
824824
.hero h1 { font-size: clamp(2.8rem,14vw,5rem); }
825825
.hero-tagline { font-size: 1.1rem; }
826826

@@ -1094,7 +1094,22 @@ footer .footer-sep {
10941094
.team-members-grid { grid-template-columns: repeat(2, 1fr); }
10951095
.team-tabs-wrap { top: 50px; padding: 0.45rem 0.8rem; }
10961096
.team-tab { font-size: 0.95rem; padding: 0.3rem 0.85rem; }
1097-
.stats-strip { flex-direction: column; gap: 1rem; }
1097+
.stats-strip {
1098+
flex-wrap: nowrap;
1099+
justify-content: flex-start;
1100+
gap: 0.9rem;
1101+
padding: 1rem 0.75rem;
1102+
overflow-x: auto;
1103+
-webkit-overflow-scrolling: touch;
1104+
scroll-snap-type: x proximity;
1105+
}
1106+
.stat {
1107+
flex: 0 0 auto;
1108+
min-width: 118px;
1109+
scroll-snap-align: start;
1110+
}
1111+
.stat-num { font-size: 1.8rem; }
1112+
.stat-label { font-size: 0.8rem; }
10981113
.social-chips { gap: 0.4rem; }
10991114
.social-chip { font-size: 0.88rem; padding: 0.3rem 0.7rem; }
11001115

0 commit comments

Comments
 (0)