Skip to content

Commit e62eb02

Browse files
committed
Tighten spacing between landing page sections
The section padding and the trailing section-divider margins stacked into large (~190px) empty bands between the homepage sections. Reduce and balance them so each divider sits in a single, consistent gap. - news-section: pb-24 -> pb-12, divider mt-24 -> mt-12 - info-section: divider mt-24 -> mt-12 - projects-section: py-24 -> pt-12 pb-24
1 parent c026b62 commit e62eb02

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

components/info-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default function InfoSection() {
103103
</div>
104104
</div>
105105

106-
<div className="section-divider mt-24 mx-auto max-w-6xl" />
106+
<div className="section-divider mt-12 mx-auto max-w-6xl" />
107107
</section>
108108
)
109109
}

components/news-section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function NewsSection({ posts }: { posts: NewsCardPost[] }) {
1010
const isInView = useInView(ref, { once: true, amount: 0.2 })
1111

1212
return (
13-
<section ref={ref} className="relative pt-10 pb-24 bg-background" id="news">
13+
<section ref={ref} className="relative pt-10 pb-12 bg-background" id="news">
1414
<div className="hero-glow-blue opacity-30" />
1515
<div className="max-w-6xl mx-auto px-6 relative z-10">
1616
<motion.div
@@ -39,7 +39,7 @@ export default function NewsSection({ posts }: { posts: NewsCardPost[] }) {
3939
</div>
4040
</div>
4141

42-
<div className="section-divider mt-24 mx-auto max-w-6xl" />
42+
<div className="section-divider mt-12 mx-auto max-w-6xl" />
4343
</section>
4444
)
4545
}

components/projects-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function ProjectsSection() {
8888
]
8989

9090
return (
91-
<section ref={ref} className="relative py-24 bg-background" id="projects">
91+
<section ref={ref} className="relative pt-12 pb-24 bg-background" id="projects">
9292
<div className="max-w-6xl mx-auto px-6">
9393
{/* Find Your Printer */}
9494
<motion.div

0 commit comments

Comments
 (0)