Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions apps/website/src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { GlLink } from "gitlab-ui-react";
import { githubRepoUrl, storybookUrl } from "../global";

export function Footer() {
const currentYear = new Date().getFullYear();

return (
<footer className="border-t border-section bg-subtle">
<div className="mx-auto flex max-w-[96rem] flex-col gap-6 px-6 py-8 lg:flex-row lg:items-center lg:justify-between lg:px-10">
<div className="min-w-0">
<GlLink className="inline-flex items-center gap-2 font-semibold text-heading" href="/" variant="unstyled">
GitLab UI React
</GlLink>
<p className="mb-0 mt-2 text-sm text-subtle">
GitLab Pajamas components built for React.
</p>
<nav aria-label="Footer navigation" className="mt-2 flex flex-wrap items-center gap-x-5 gap-y-2 text-sm">
<GlLink
href={githubRepoUrl}
rel="noopener noreferrer"
showExternalIcon
target="_blank">
GitHub
</GlLink>
<GlLink
href={storybookUrl}
rel="noopener noreferrer"
showExternalIcon
target="_blank">
Storybook
</GlLink>
</nav>
</div>

<div className="text-sm text-subtle *:m-0 lg:text-right">
<p>© {currentYear} NriotHrreion. <GlLink href="https://github.com/nocpiun/gitlab-ui-react/blob/main/LICENSE" target="_blank">MIT licensed</GlLink>.</p>
<p>Portions © GitLab Inc. Unofficial and not affiliated with GitLab Inc.</p>
</div>
</div>
</footer>
);
}
39 changes: 2 additions & 37 deletions apps/website/src/layouts/base-layout.astro
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -13,7 +12,6 @@ const {
title,
description = "GitLab UI for React",
} = Astro.props;
const currentYear = new Date().getFullYear();
---

<!doctype html>
Expand Down Expand Up @@ -46,39 +44,6 @@ const currentYear = new Date().getFullYear();
<slot />
</main>

<footer class="border-t border-section bg-subtle">
<div class="mx-auto flex max-w-[96rem] flex-col gap-6 px-4 py-8 sm:px-6 lg:flex-row lg:items-center lg:justify-between lg:px-10">
<div class="min-w-0">
<GlLink className="inline-flex items-center gap-2 font-semibold text-heading" href="/" variant="unstyled">
GitLab UI React
</GlLink>
<p class="mb-0 mt-2 text-sm text-subtle">
GitLab Pajamas components built for React.
</p>
</div>

<nav aria-label="Footer navigation" class="flex flex-wrap items-center gap-x-5 gap-y-2 text-sm">
<GlLink
href={githubRepoUrl}
rel="noopener noreferrer"
showExternalIcon
target="_blank">
Github
</GlLink>
<GlLink
href={storybookUrl}
rel="noopener noreferrer"
showExternalIcon
target="_blank">
Storybook
</GlLink>
</nav>

<div class="text-sm text-subtle *:m-0 lg:text-right">
<p>© {currentYear} NriotHrreion. <GlLink href="https://github.com/nocpiun/gitlab-ui-react/blob/main/LICENSE" target="_blank">MIT licensed</GlLink>.</p>
<p>Portions © GitLab Inc. Unofficial and not affiliated with GitLab Inc.</p>
</div>
</div>
</footer>
<Footer />
</body>
</html>