diff --git a/apps/website/src/components/footer.tsx b/apps/website/src/components/footer.tsx new file mode 100644 index 0000000..601507b --- /dev/null +++ b/apps/website/src/components/footer.tsx @@ -0,0 +1,42 @@ +import { GlLink } from "gitlab-ui-react"; +import { githubRepoUrl, storybookUrl } from "../global"; + +export function Footer() { + const currentYear = new Date().getFullYear(); + + return ( + + ); +} diff --git a/apps/website/src/layouts/base-layout.astro b/apps/website/src/layouts/base-layout.astro index 2ab76e6..5335848 100644 --- a/apps/website/src/layouts/base-layout.astro +++ b/apps/website/src/layouts/base-layout.astro @@ -1,8 +1,7 @@ --- import "../styles/global.css"; -import { GlLink } from "gitlab-ui-react"; import { Navbar } from "../components/navbar"; -import { githubRepoUrl, storybookUrl } from "../global"; +import { Footer } from "../components/footer"; interface Props { title: string; @@ -13,7 +12,6 @@ const { title, description = "GitLab UI for React", } = Astro.props; -const currentYear = new Date().getFullYear(); --- @@ -46,39 +44,6 @@ const currentYear = new Date().getFullYear(); - +