Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add footer #169

Merged
merged 2 commits into from
Sep 4, 2024
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
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-3 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 />
</>
);
}
Loading