mirror of
https://github.com/remvze/moodist.git
synced 2025-11-05 12:03:05 -05:00
feat: add footer component
This commit is contained in:
parent
69c4ec1508
commit
262bb1a9c6
20
src/components/footer/footer.module.css
Normal file
20
src/components/footer/footer.module.css
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.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);
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
& span {
|
||||||
|
color: #c0eb75;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
18
src/components/footer/footer.tsx
Normal file
18
src/components/footer/footer.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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
src/components/footer/index.ts
Normal file
1
src/components/footer/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { Footer } from './footer';
|
||||||
@ -3,21 +3,15 @@ import Layout from '@/layouts/layout.astro';
|
|||||||
|
|
||||||
import { Hero } from '@/components/hero';
|
import { Hero } from '@/components/hero';
|
||||||
import { App } from '@/components/app';
|
import { App } from '@/components/app';
|
||||||
|
import { Footer } from '@/components/footer';
|
||||||
import { AboutSection, WhySection, ReadySection } from '@/components/sections';
|
import { AboutSection, WhySection, ReadySection } from '@/components/sections';
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="Welcome to Astro.">
|
<Layout title="Welcome to Astro.">
|
||||||
<main>
|
|
||||||
<Hero />
|
<Hero />
|
||||||
<App client:load />
|
<App client:load />
|
||||||
<AboutSection />
|
<AboutSection />
|
||||||
<WhySection />
|
<WhySection />
|
||||||
<ReadySection />
|
<ReadySection />
|
||||||
</main>
|
<Footer />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
<style>
|
|
||||||
main {
|
|
||||||
padding-bottom: 100px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user