Skip to content

Commit

Permalink
refactor: move footer to React
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Feb 8, 2024
1 parent c505c57 commit 52176bc
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 39 deletions.
38 changes: 0 additions & 38 deletions src/components/footer.astro

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/footer/footer.module.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
15 changes: 15 additions & 0 deletions src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Container } from '@/components/container';

import styles from './footer.module.css';

export function Footer() {
return (
<footer className={styles.footer}>
<Container>
<p>
Created by <a href="https://twitter.com/remvze">Maze ✦</a>
</p>
</Container>
</footer>
);
}
1 change: 1 addition & 0 deletions src/components/footer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Footer } from './footer';
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -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';
---

<Layout title="Moodist: Ambient Sounds for Focus and Calm">
Expand Down

0 comments on commit 52176bc

Please sign in to comment.