Skip to content

Commit 5ef2257

Browse files
phucbmclaude
andcommitted
Unify layout container via Tailwind @Utility container
Replace all max-w-[1200px] mx-auto px-6 patterns with a single container utility class defined once in index.css. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bf86ac9 commit 5ef2257

8 files changed

Lines changed: 18 additions & 12 deletions

File tree

website/src/components/CTABanner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { GITHUB, RELEASES } from '../constants'
22

33
export default function CTABanner() {
44
return (
5-
<section id="cta" className="border-b-2 border-ink py-[80px] px-6 bg-primary">
6-
<div className="max-w-[1200px] mx-auto flex flex-col md:flex-row justify-between items-start md:items-center gap-8">
5+
<section id="cta" className="border-b-2 border-ink py-[80px] bg-primary">
6+
<div className="container flex flex-col md:flex-row justify-between items-start md:items-center gap-8">
77
<div>
88
<h2 className="font-display text-[clamp(40px,6vw,80px)] leading-[0.88] tracking-[-0.04em] uppercase text-paper mb-4">
9-
STOP<br />GUESSING.
9+
KNOW YOUR<br />LIMITS.
1010
</h2>
1111
<p className="font-mono text-xs text-paper/70 tracking-[0.08em] uppercase">
1212
Free download &nbsp;·&nbsp; No signup &nbsp;·&nbsp; Open source

website/src/components/FAQ.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { FAQS } from '../data'
22

33
export default function FAQ() {
44
return (
5-
<section id="faq" className="border-b-2 border-ink py-[72px] px-6">
6-
<div className="max-w-[1200px] mx-auto">
5+
<section id="faq" className="border-b-2 border-ink py-[72px]">
6+
<div className="container">
77
<div className="flex justify-between items-baseline mb-9 border-b border-ink/20 pb-[14px]">
88
<h2 className="font-display text-[clamp(26px,4vw,44px)] tracking-[-0.03em] uppercase text-ink">FAQ</h2>
99
<span className="font-mono text-[11px] text-muted tracking-[0.1em] uppercase">{String(FAQS.length).padStart(2, '0')} ENTRIES</span>

website/src/components/Features.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { FEATURES } from '../data'
22

33
export default function Features() {
44
return (
5-
<section id="features" className="border-b-2 border-ink py-[72px] px-6">
6-
<div className="max-w-[1200px] mx-auto">
5+
<section id="features" className="border-b-2 border-ink py-[72px]">
6+
<div className="container">
77
<div className="flex justify-between items-baseline mb-9 border-b border-ink/20 pb-[14px]">
88
<h2 className="font-display text-[clamp(26px,4vw,44px)] tracking-[-0.03em] uppercase text-ink">WHAT IT DOES</h2>
99
<span className="font-mono text-[11px] text-muted tracking-[0.1em] uppercase">06 MODULES</span>

website/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Logo from './Logo'
44
export default function Footer() {
55
return (
66
<footer id="footer" className="border-t border-ink/15">
7-
<div className="max-w-[1200px] mx-auto px-6 py-[22px] flex flex-col md:flex-row justify-between items-start md:items-center gap-3">
7+
<div className="container py-[22px] flex flex-col md:flex-row justify-between items-start md:items-center gap-3">
88
<div className="flex items-center gap-3">
99
<Logo size={18} />
1010
<span className="font-mono text-[10px] text-muted tracking-[0.06em]">

website/src/components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Hero() {
2525

2626
return (
2727
<section id="hero" className="border-b-2 border-ink">
28-
<div className="max-w-[1200px] mx-auto px-6">
28+
<div className="container">
2929
<div className="grid grid-cols-1 md:grid-cols-[1fr_auto] gap-6 md:gap-10 items-end py-[40px] md:pt-16 md:pb-14">
3030

3131
{/* Text */}

website/src/components/HowItWorks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ function Step({ step, index, last }: StepProps) {
8080
export default function HowItWorks() {
8181
return (
8282
<section id="how-it-works" className="border-b-2 border-ink pb-12">
83-
<div className="max-w-[1200px] mx-auto px-6">
83+
<div className="container">
8484
<div className="flex justify-between items-baseline pt-12 pb-9 border-b border-ink/20">
8585
<h2 className="font-display text-[clamp(26px,4vw,44px)] tracking-[-0.03em] uppercase text-ink">SETUP GUIDE</h2>
8686
<span className="font-mono text-[11px] text-muted tracking-[0.1em] uppercase">04 STEPS</span>
8787
</div>
8888
</div>
8989

9090
{STEPS.map((step, i) => (
91-
<div key={step.n} className="max-w-[1200px] mx-auto px-6">
91+
<div key={step.n} className="container">
9292
<Step step={step} index={i} last={i === STEPS.length - 1} />
9393
</div>
9494
))}

website/src/components/Nav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Nav() {
1414
return (
1515
<>
1616
<nav id="nav" className="border-b-2 border-ink sticky top-0 bg-paper z-[100]">
17-
<div className="max-w-[1200px] mx-auto px-6 flex items-center justify-between h-14">
17+
<div className="container flex items-center justify-between h-14">
1818
<a href="#" className="flex items-center gap-[10px] no-underline text-ink">
1919
<Logo size={26} />
2020
<span className="font-mono font-bold text-[12px] tracking-[0.06em] uppercase">

website/src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
@import "tailwindcss";
33
@source "../src";
44

5+
@utility container {
6+
margin-inline: auto;
7+
padding-inline: 1.5rem;
8+
max-width: 1200px;
9+
}
10+
511
@theme {
612
--color-primary: #ea6049;
713
--color-ink: #0A0A0A;

0 commit comments

Comments
 (0)