Skip to content

Commit

Permalink
chore: rewrite footer
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Sep 9, 2024
1 parent a99601f commit c106f72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
---
import { basics } from "@cv";
const { name } = basics;
import { SITE } from "@/consts";
import Container from "@/components/Container.astro";
---

<footer class="w-full print:hidden">
<div
class="mx-auto items-center border-t border-neutral-800 bg-black px-6 py-4 text-center text-xs text-neutral-200 sm:mt-20"
<footer class="relative bg-black">
<section
class="overflow-hidden border-t border-black/10 py-5 dark:border-white/25"
>
© {new Date().getFullYear()}
{name}. All rights reserved.
</div>
<Container size="md">
<div class="flex flex-col items-center justify-center">
<p class="mt-2 text-center text-sm">
&copy; {new Date().getFullYear()}
{SITE.AUTHOR}. All rights reserved.
</p>
</div>
</Container>
</section>
</footer>
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Site, Links } from "@/types";
export const SITE: Site = {
TITLE: "Rxyhn",
DESCRIPTION: "Rxyhn's personal website",
AUTHOR: "Rayhan Pratama",
AUTHOR: "Rayhan Kafi Pratama",
};

// Links
Expand Down

0 comments on commit c106f72

Please sign in to comment.