Skip to content

Commit

Permalink
fix: make footer stay in the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
kovipu committed Sep 11, 2024
1 parent 746c2c4 commit 887d450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const PageWrapper = () => {
const isIndex = pathname === '/';

return (
<body className={`font-sans min-h-screen ${isIndex ? 'bg-white' : 'bg-grey-light'}`}>
<body className={`font-sans flex flex-col min-h-screen ${isIndex ? 'bg-white' : 'bg-grey-light'}`}>
<Nav />
<main className={`max-w-screen ${isIndex ? 'w-[74rem]' : 'w-256'}`}>
<main className={`max-w-screen flex-1 ${isIndex ? 'w-[74rem]' : 'w-256'}`}>
<Outlet />
</main>
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Nav() {

return (
<nav
className={`relative mx-auto mb-12 flex justify-between items-center pt-12 pb-6 px-4 ${isIndex ? 'max-w-[74rem]' : 'max-w-screen-lg'}`}
className={`relative mx-auto mb-12 flex justify-between items-center pt-12 pb-6 px-4 max-w-screen ${isIndex ? 'w-[74rem]' : 'w-[64rem]'}`}
>
<div>
<Link to="/">
Expand Down

0 comments on commit 887d450

Please sign in to comment.