From 52176bc3f9eac43d701de0e7f0ca103eeca46858 Mon Sep 17 00:00:00 2001 From: MAZE Date: Thu, 8 Feb 2024 19:49:35 +0330 Subject: [PATCH] refactor: move footer to React --- src/components/footer.astro | 38 ------------------------- src/components/footer/footer.module.css | 17 +++++++++++ src/components/footer/footer.tsx | 15 ++++++++++ src/components/footer/index.ts | 1 + src/pages/index.astro | 2 +- 5 files changed, 34 insertions(+), 39 deletions(-) delete mode 100644 src/components/footer.astro create mode 100644 src/components/footer/footer.module.css create mode 100644 src/components/footer/footer.tsx create mode 100644 src/components/footer/index.ts diff --git a/src/components/footer.astro b/src/components/footer.astro deleted file mode 100644 index b77c0a9..0000000 --- a/src/components/footer.astro +++ /dev/null @@ -1,38 +0,0 @@ ---- -import { Container } from '@/components/container'; ---- - - - - diff --git a/src/components/footer/footer.module.css b/src/components/footer/footer.module.css new file mode 100644 index 0000000..0347592 --- /dev/null +++ b/src/components/footer/footer.module.css @@ -0,0 +1,17 @@ +.footer { + display: flex; + align-items: center; + height: 100px; + + & p { + font-size: var(--font-sm); + color: var(--color-foreground-subtle); + text-align: center; + + & a { + font-weight: 500; + color: var(--color-foreground); + text-decoration: none; + } + } +} diff --git a/src/components/footer/footer.tsx b/src/components/footer/footer.tsx new file mode 100644 index 0000000..cd2f6f3 --- /dev/null +++ b/src/components/footer/footer.tsx @@ -0,0 +1,15 @@ +import { Container } from '@/components/container'; + +import styles from './footer.module.css'; + +export function Footer() { + return ( + + ); +} diff --git a/src/components/footer/index.ts b/src/components/footer/index.ts new file mode 100644 index 0000000..4248c0b --- /dev/null +++ b/src/components/footer/index.ts @@ -0,0 +1 @@ +export { Footer } from './footer'; diff --git a/src/pages/index.astro b/src/pages/index.astro index 5b13ab8..c004067 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,11 +1,11 @@ --- import Layout from '@/layouts/layout.astro'; -import Footer from '@/components/footer.astro'; import { Hero } from '@/components/hero'; import { App } from '@/components/app'; import { Source } from '@/components/source'; import { Donate } from '@/components/donate'; +import { Footer } from '@/components/footer'; ---