Skip to content

Commit

Permalink
Merge pull request #475 from HoomanDgtl/dynamic-footer
Browse files Browse the repository at this point in the history
update: Client side footer
  • Loading branch information
HoomanDgtl authored Jan 2, 2025
2 parents ce41e70 + 0a61645 commit 250aad1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/components/footer/footer-year.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const FooterYear = () => {
return new Date().getFullYear();
};

export default FooterYear;
5 changes: 3 additions & 2 deletions src/components/footer/footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
YoutubeIcon,
} from "../header/icons";
import AkashFooterLogo from "../ui/akash-footer-logo.astro";
import FooterYear from "./footer-year";
const subscribeLink = "https://akashnet.typeform.com/to/awKX5bPw";
const socials = [
Expand Down Expand Up @@ -161,7 +162,7 @@ const shouldHide = shouldHideCta(pathname);
<footer
class={clsx(
" w-full bg-white px-4 pb-10 md:p-8 xl:p-20 dark:bg-background text-white ",
shouldHide && "border-t mt-20"
shouldHide && "border-t mt-20",
)}
>
<div>
Expand Down Expand Up @@ -260,7 +261,7 @@ const shouldHide = shouldHideCta(pathname);
class="flex w-full flex-col items-start justify-start gap-y-[16px] lg:flex-row lg:items-center"
>
<p class="text-left text-2xs text-para lg:border-r lg:pr-[16px]">
© Akash Network {new Date().getFullYear()}
© Akash Network <FooterYear client:load />
The Akash Network Authors Documentation Distributed under CC BY 4.0
</p>
<div class="flex">
Expand Down

0 comments on commit 250aad1

Please sign in to comment.