Skip to content

Commit

Permalink
feat: add footer component
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Nov 1, 2023
1 parent 69c4ec1 commit 262bb1a
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 13 deletions.
20 changes: 20 additions & 0 deletions src/components/footer/footer.module.css
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -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 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';
20 changes: 7 additions & 13 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,15 @@ 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';
---

<Layout title="Welcome to Astro.">
<main>
<Hero />
<App client:load />
<AboutSection />
<WhySection />
<ReadySection />
</main>
<Hero />
<App client:load />
<AboutSection />
<WhySection />
<ReadySection />
<Footer />
</Layout>

<style>
main {
padding-bottom: 100px;
}
</style>

0 comments on commit 262bb1a

Please sign in to comment.