Skip to content

Commit f9b0e6b

Browse files
committed
Center hero card vertically on page
1 parent 25e195a commit f9b0e6b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/pages/Home.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default function Home() {
1010
<div className="absolute inset-0 bg-gradient-to-b from-gray-950/60 via-gray-950/80 to-gray-950" />
1111
</div>
1212

13-
<div className="flex min-h-screen flex-col items-center justify-center px-6">
13+
<div className="flex min-h-screen flex-col items-center px-6">
14+
{/* Spacer to push card toward center */}
15+
<div className="flex-1" />
1416
{/* Hero Card */}
1517
<main className="w-full max-w-lg animate-fade-in">
1618
<div className="rounded-2xl border border-gray-800 bg-gray-900/70 p-8 shadow-2xl shadow-brand-teal/5 backdrop-blur-md sm:p-12">
@@ -62,7 +64,8 @@ export default function Home() {
6264
</main>
6365

6466
{/* Footer */}
65-
<div className="mt-auto w-full">
67+
<div className="flex-1" />
68+
<div className="w-full">
6669
<Footer />
6770
</div>
6871
</div>

0 commit comments

Comments
 (0)