Skip to content

Commit 3b71da5

Browse files
fix(routes/index): do not center map to viewport
This patch updates the homepage to simply follow standard HTML flow and avoid centering the map to the user's entire viewport height. Instead, it is only centered along the x-axis and the position of the hero text aligns with the positioning of the login and join pages.
1 parent 99f4087 commit 3b71da5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/routes/_index/route.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ export async function loader() {
6666

6767
export default function HomePage() {
6868
return (
69-
<main className='flex flex-col w-screen h-screen overflow-hidden'>
70-
<Header className='flex-none' />
71-
<section className='h-0 grow flex flex-col items-center justify-center p-6 mx-auto max-w-screen-xl w-full'>
72-
<header className='flex items-center gap-1.5 text-lg tracking-tighter'>
69+
<>
70+
<Header />
71+
<section className='p-6 mt-6 mx-auto max-w-screen-xl w-full'>
72+
<header className='flex items-center justify-center gap-1.5 sm:gap-2 text-xl sm:text-2xl tracking-tighter'>
7373
<h1>dolce</h1>
7474
<span aria-hidden>·</span>
7575
<h2>the worldwide fashion database</h2>
7676
</header>
7777
<Map className='w-full' />
7878
</section>
79-
</main>
79+
</>
8080
)
8181
}
8282

0 commit comments

Comments
 (0)