Skip to content

Commit

Permalink
feat: add credit and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Th1nkK1D committed Nov 21, 2024
1 parent 69cae3c commit 7a4fdbb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
20 changes: 20 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<div class="py-12 text-center">
<p class="link-02 text-neutral-500">
Base on <a
href="https://github.com/wevisdemo/e-initiative-template"
target="_blank"
rel="noopener noreferrer">E-Initiative Template</a
> by <a
href="https://wevis.info"
target="_blank"
rel="noopener noreferrer"
class="">WeVis</a
>
</p>
</div>

<style lang="postcss">
a {
@apply underline hover:text-primary;
}
</style>
10 changes: 7 additions & 3 deletions src/layouts/Body.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Config from '../../e-initiative.config.mjs';
import '../styles/global.css';
import '../styles/typography.css';
import Footer from '../components/Footer.astro';
interface Props {
title?: string;
description?: string;
Expand Down Expand Up @@ -40,7 +40,11 @@ const previewImageUrl =
Config.theme.stylesheets.map((href) => <link {href} rel="stylesheet" />)
}
</head>
<body class="body-02">
<slot />
<body class="flex min-h-screen flex-col">
<main class="body-02 flex-1">
<slot />
</main>
<Footer />
<slot name="after-footer" />
</body>
</html>
6 changes: 3 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { isCampaignEnded } from '../utils/campaign';
---

<Body>
<main class="flex flex-col">
<div class="flex flex-col">
<LandingSection />
<IntroSection />
{
Expand All @@ -23,6 +23,6 @@ import { isCampaignEnded } from '../utils/campaign';
)
}
<AboutSection />
<Navbar client:idle />
</main>
</div>
<Navbar slot="after-footer" client:idle />
</Body>

0 comments on commit 7a4fdbb

Please sign in to comment.