Skip to content

Commit 9a522ff

Browse files
authored
feat(app): add footer (#375)
* feat(app): add footer * fix(app): fix centering footer links on mobile devices * feat(app): add container to footer * refactor(app): change footer background color to primary
1 parent bcad1df commit 9a522ff

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

apps/app/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AnalyticsWrapper } from "../components/analytics";
2+
import { Footer } from "../components/Footer";
23
import { Header } from "../components/Header";
34

45
import "../styles/globals.css";
@@ -10,6 +11,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
1011
<Header />
1112
{children}
1213
<AnalyticsWrapper />
14+
<Footer />
1315
</body>
1416
</html>
1517
);

apps/app/src/components/Footer.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Link from "next/link";
2+
import { Container } from "./Container";
3+
4+
export const Footer = () => (
5+
<footer className="bg-primary">
6+
<Container className="flex h-14 items-center justify-center sm:justify-end">
7+
<nav className="flex flex-wrap justify-center gap-x-7 text-sm text-white">
8+
<Link href="/about">Jak korzystać?</Link>
9+
<Link href="/regulations">Regulamin</Link>
10+
<Link href="/authors">Autorzy</Link>
11+
<a href="https://www.facebook.com/DevFAQ" target="_blank" rel="noreferrer">
12+
Facebook
13+
</a>
14+
<a href="https://typeofweb.com" target="_blank" rel="noreferrer">
15+
Type of Web
16+
</a>
17+
</nav>
18+
</Container>
19+
</footer>
20+
);

0 commit comments

Comments
 (0)