refactor: move footer to React

This commit is contained in:
MAZE 2024-02-08 19:49:35 +03:30
parent c505c574a8
commit 52176bc3f9
5 changed files with 34 additions and 39 deletions

View File

@ -1,38 +0,0 @@
---
import { Container } from '@/components/container';
---
<footer class="footer">
<Container>
<p>
Created by{' '}
<a href="https://twitter.com/remvze">
Maze <span>✦</span>
</a>
</p>
</Container>
</footer>
<style>
.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;
& span {
color: #c0eb75;
}
}
}
}
</style>

View File

@ -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;
}
}
}

View File

@ -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>
);
}

View File

@ -0,0 +1 @@
export { Footer } from './footer';

View File

@ -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">