Skip to content

Commit

Permalink
added a footer
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyCat committed Oct 17, 2024
1 parent de2eef7 commit b3828ec
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 1 deletion.
76 changes: 76 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
import Image from "astro/components/Image.astro";
import nbbanner from "../media/buttons/nbbanner.png";
import vencord from "../media/buttons/vencord.webp";
import midna from "../media/buttons/midna.png";
import miaowing from "../media/buttons/miaowing.png";
import flipper from "../media/buttons/flipper.gif";
// Web Buttons
const webButtons = [
{
href: "https://flipperzero.one/",
img: flipper,
alt: "Flipper Zero Website Button",
},
{
href: "https://ne0nbandit.neocities.org",
img: nbbanner,
alt: "Ne0nBandit Street Button",
},
{
href: "https://vencord.dev/",
img: vencord,
alt: "Vencord Website Button",
},
{
href: "https://midna.midnight.miami/",
img: midna,
alt: "Midna Website Button",
},
{
href: "https://miaow.ing/",
img: miaowing,
alt: "Miaowing Website Button",
},
];
const links = [
{
href: "https://github.com/PolyCatDev/catplace",
text: "Source Code",
},
{
href: "https://htmlforpeople.com/",
text: "HTML for the People",
},
];
---

<footer class="bg-background-500 p-4 mt-auto">
<nav class="m-1 text-center text-foreground-200">
{
links.map((link) => (
<a href={link.href} class="hover:underline m-1">
{link.text}
</a>
))
}
</nav>
<div class="flex justify-center flex-wrap">
{
webButtons.map((button) => (
<a href={button.href} class="m-1">
<Image
width="88"
height="31"
loading="lazy"
src={button.img}
alt={button.alt}
/>
</a>
))
}
</div>
</footer>
Binary file added src/media/buttons/flipper.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/media/buttons/miaowing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/media/buttons/midna.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/media/buttons/nbbanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/media/buttons/vencord.webp
Binary file not shown.
5 changes: 4 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import Layout from "../layouts/Layout.astro";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
import LinkTree from "../components/LinkTree.astro";
import Spacer from "../components/Spacer.astro";
import Iframe from "../components/Iframe.astro";
Expand All @@ -11,6 +12,7 @@ const Description = "PolyCat's place on the web";
const Mastodon = "https://sunny.garden/@PolyCat";
// Link Tree
const SocialLinks = [
{
href: "https://sunny.garden/@PolyCat",
Expand Down Expand Up @@ -61,7 +63,7 @@ const ProjectLinks = [
];
---

<Layout title={Title} description={Description}>
<Layout title={Title} description={Description} footer={true}>
<a rel="me" href={Mastodon} aria-label="Hidden Mastodon validation link"
></a>
<div class="flex justify-center">
Expand Down Expand Up @@ -100,4 +102,5 @@ const ProjectLinks = [
</div>
</div>
</div>
<Footer />
</Layout>

0 comments on commit b3828ec

Please sign in to comment.