mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
refactor: turn footer into Astro component
This commit is contained in:
parent
72fa516316
commit
a67083c0e9
38
src/components/footer.astro
Normal file
38
src/components/footer.astro
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
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;
|
||||
height: 100px;
|
||||
align-items: center;
|
||||
|
||||
& p {
|
||||
color: var(--color-foreground-subtle);
|
||||
font-size: var(--font-sm);
|
||||
text-align: center;
|
||||
|
||||
& a {
|
||||
color: var(--color-foreground);
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
|
||||
& span {
|
||||
color: #c0eb75;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1,21 +0,0 @@
|
||||
.footer {
|
||||
display: flex;
|
||||
height: 100px;
|
||||
align-items: center;
|
||||
|
||||
& p {
|
||||
color: var(--color-foreground-subtle);
|
||||
font-size: var(--font-sm);
|
||||
text-align: center;
|
||||
|
||||
& a {
|
||||
color: var(--color-foreground);
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
|
||||
& span {
|
||||
color: #c0eb75;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
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 <span>✦</span>
|
||||
</a>
|
||||
</p>
|
||||
</Container>
|
||||
</footer>
|
||||
);
|
||||
}
|
@ -1 +0,0 @@
|
||||
export { Footer } from './footer';
|
@ -3,8 +3,9 @@ import Layout from '@/layouts/layout.astro';
|
||||
|
||||
import { Hero } from '@/components/hero';
|
||||
import { App } from '@/components/app';
|
||||
import { Footer } from '@/components/footer';
|
||||
import { AboutSection, WhySection, ReadySection } from '@/components/sections';
|
||||
|
||||
import Footer from '@/components/footer.astro';
|
||||
---
|
||||
|
||||
<Layout title="Moodist: Ambient Sounds for Focus and Calm">
|
||||
|
Loading…
x
Reference in New Issue
Block a user