Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
Signed-off-by: Damian Stasik <[email protected]>
  • Loading branch information
damianstasik committed Sep 4, 2024
1 parent a0fe7a7 commit 0420b07
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions frontend/src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Paragraph } from "../Paragraph";

export function Footer() {
return (
<footer className="border-t border-gray-200 bg-gray-50 dark:border-gray-800 dark:bg-blue-950">
<div className="mx-auto flex w-full max-w-4xl text-balance px-5 py-5 text-center text-sm">
<Paragraph>
Copyright © OpenTofu a Series of LF Projects, LLC and its
contributors. Documentation materials are licensed under various open
sources license from other authors, see the referenced license files
for details. For web site terms of use, trademark policy, privacy
policy and other project policies please see{" "}
<a
href="https://lfprojects.org/policies"
target="_blank"
rel="noreferrer noopener"
className="underline"
>
lfprojects.org/policies
</a>
.
</Paragraph>
</div>
</footer>
);
}
2 changes: 2 additions & 0 deletions frontend/src/components/SidebarLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Footer } from "../Footer";
import { Header } from "../Header";
import { ReactNode } from "react";

Expand All @@ -16,6 +17,7 @@ export function SidebarLayout({ children, before, after }: SidebarLayoutProps) {
<main className="min-w-0 flex-1">{children}</main>
{after}
</div>
<Footer />
</>
);
}
2 changes: 2 additions & 0 deletions frontend/src/components/SimpleLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Header } from "../Header";
import { Breadcrumbs } from "../Breadcrumbs";
import { ReactNode } from "react";
import { Footer } from "../Footer";

interface SimpleLayoutProps {
children: ReactNode;
Expand All @@ -14,6 +15,7 @@ export function SimpleLayout({ children }: SimpleLayoutProps) {
<Breadcrumbs />
{children}
</main>
<Footer />
</>
);
}
2 changes: 2 additions & 0 deletions frontend/src/routes/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Search } from "@/components/Search";
import { Header } from "../../components/Header";
import { Paragraph } from "../../components/Paragraph";
import PatternBg from "../../components/PatternBg";
import { Footer } from "@/components/Footer";

export function Home() {
return (
Expand Down Expand Up @@ -50,6 +51,7 @@ export function Home() {
placeholder="Search providers, resources, or modules"
/>
</main>
<Footer />
</>
);
}

0 comments on commit 0420b07

Please sign in to comment.