Skip to content

Commit

Permalink
anchor footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 11, 2023
1 parent 20af244 commit f1b6965
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const { title, meta_title, description, image, noindex, canonical } =
</head>
<body>
<Header />
<main id="main-content">
<main id="main-content" class="flex-1">
<slot />
</main>
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/partials/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import social from "@/config/social.json";
const { footer }: { footer: { name: string; url: string }[] } = menu;
---

<footer class="bg-theme-light dark:bg-darkmode-theme-light">
<footer class="bg-theme-light dark:bg-darkmode-theme-light mt-auto">
<div class="container">
<div class="row items-center py-2">
<div class="mb-8 text-center lg:col-3 lg:mb-0 lg:text-left">
Expand Down
4 changes: 2 additions & 2 deletions src/styles/base.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
html {
@apply text-base;
@apply text-base h-screen;
}

body {
@apply bg-body font-primary font-normal leading-relaxed text-text dark:bg-darkmode-body dark:text-darkmode-text;
@apply bg-body font-primary font-normal leading-relaxed text-text dark:bg-darkmode-body dark:text-darkmode-text flex flex-col min-h-screen;
}

h1,
Expand Down

0 comments on commit f1b6965

Please sign in to comment.