From 4c2ab094528379290bcd7008313595e44edb22d6 Mon Sep 17 00:00:00 2001 From: Zeke Zhang Date: Wed, 5 Jun 2024 05:42:39 +1000 Subject: [PATCH] feat: add manifest.json and update footer links to be dynamically loaded from manifest --- components/section/footer.jsx | 11 ++++++++++- components/ui/button/githubFloatingButton.jsx | 3 ++- data/manifest.json | 10 ++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 data/manifest.json diff --git a/components/section/footer.jsx b/components/section/footer.jsx index 192a54c..b5da6e8 100644 --- a/components/section/footer.jsx +++ b/components/section/footer.jsx @@ -1,6 +1,7 @@ import React from "react"; import { Separator } from "../ui/separator"; import ExternalTextLink from "../ui/external-text-link"; +import manifest from "@/data/manifest"; const Footer = () => { return ( @@ -13,11 +14,19 @@ const Footer = () => { {/* Source code Links */}
Source Code + + {/* Version */} + + Version: {manifest.version} +
diff --git a/components/ui/button/githubFloatingButton.jsx b/components/ui/button/githubFloatingButton.jsx index be63d60..5b9ddd1 100644 --- a/components/ui/button/githubFloatingButton.jsx +++ b/components/ui/button/githubFloatingButton.jsx @@ -2,10 +2,11 @@ import React from "react"; import FloatingButton from "./floatingButton"; import { GitHubLogoIcon } from "@radix-ui/react-icons"; import Link from "next/link"; +import manifest from "@/data/manifest"; const GithubFloatingButton = () => { return ( - +