Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #31 from thepurplebubble/footer
Browse files Browse the repository at this point in the history
[FEAT] - Footer on all pages
  • Loading branch information
taciturnaxolotl authored Dec 30, 2023
2 parents 4734eee + f8d0764 commit 603d677
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
25 changes: 25 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div class="footer">
<p>&copy; Purple Bubble - 2023</p>
<p>
Powered by <a href="https://www.netlify.com/">Netlify</a>
</p>
<p>
For any inquiries, or simply to say hi, please <a href="mailto:%68%65%6c%6c%6f%40%70%75%72%70%6c%65%62%75%62%62%6c%65%2e%6f%72%67">email us</a>!
</p>
</div>

<style>
.footer {
display: flex;
text-align: center;
margin-top: 50px;
padding: 20px;
border-top: 1px solid #ddd;
flex: 0 0 auto;
}

.footer p {
margin: 0;
flex: 1;
}
</style>
4 changes: 2 additions & 2 deletions src/components/Notification.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@keyframes disappear {
0% {
bottom: -10vh;
bottom: -100vh;
}

10% {
Expand All @@ -35,7 +35,7 @@
}

100% {
bottom: -10vh;
bottom: -100vh;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import EmailForm from "../components/Email-Form.astro";
import Layout from "../layouts/Layout.astro";
import Notification from "../components/Notification.astro";
import Footer from "../components/Footer.astro";
import "../styles/index.css";
---

Expand Down Expand Up @@ -142,6 +143,7 @@ import "../styles/index.css";
</main>
<EmailForm />
<Notification />
<Footer />
</Layout>

<script>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ a {
color: inherit;
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
text-decoration-color: var(--dl-color-purple-light);
}

input {
padding: 2px 4px;
Expand Down

0 comments on commit 603d677

Please sign in to comment.