Skip to content

Commit d88a45e

Browse files
committed
feat: footer component
1 parent 8e01901 commit d88a45e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

2025/src/components/Footer.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<footer style="background: linear-gradient(240deg, #9ebd13 0%, #069700 100%); color: #fff; text-align: center; padding: 20px 0;"/>

2025/src/layouts/Layout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import { GoogleFontsOptimizer } from "astro-google-fonts-optimizer";
33
import Header from "../components/Header.astro";
4+
import Footer from '../components/Footer.astro';
45
56
const { lang = 'ja' } = Astro.props;
67
---
@@ -20,6 +21,7 @@ const { lang = 'ja' } = Astro.props;
2021
<body>
2122
<Header />
2223
<slot />
24+
<Footer />
2325
</body>
2426
</html>
2527

2025/src/pages/en.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ import Layout from '../layouts/Layout.astro';
7575
</p>
7676
</div>
7777
</section>
78-
<footer style="background: linear-gradient(240deg, #9ebd13 0%, #069700 100%); color: #fff; text-align: center; padding: 20px 0;">
79-
</footer>
8078
</Layout>
8179

8280
<style>

0 commit comments

Comments
 (0)