Skip to content

Commit 05b9070

Browse files
committed
Add footer
1 parent 6cf185d commit 05b9070

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from "react";
2+
import Link from "./Link";
3+
4+
interface FooterProps {
5+
6+
}
7+
8+
const Footer = ({ }: FooterProps) => {
9+
return (
10+
<footer className="flex gap-4 p-4 bg-primary text-primary-contrast">
11+
<div>
12+
<p className="text-lg font-semibold text-center">Contact:</p>
13+
<div className="flex gap-2">
14+
<span className="font-semibold">Feedback:</span>
15+
<Link color="white" href="mailto:feedback@commitrocket.com" underline>feedback@commitrocket.com</Link>
16+
</div>
17+
</div>
18+
<div>
19+
<p className="text-lg font-semibold text-center">Contact:</p>
20+
<div className="flex gap-2">
21+
<span className="font-semibold">Feedback:</span>
22+
<Link color="white" href="mailto:feedback@commitrocket.com" underline>feedback@commitrocket.com</Link>
23+
</div>
24+
</div>
25+
</footer>
26+
);
27+
};
28+
29+
export default Footer;

src/pages/_app.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Head from "next/head";
66

77
import '@/styles/main.css';
88
import Header from "@/components/navigation/Header";
9+
import Footer from "@/components/navigation/Footer";
910

1011
const openSans = Open_Sans({
1112
subsets: ['latin'],
@@ -49,7 +50,6 @@ export default function App({ Component, pageProps, router }: AppProps) {
4950
</Head>
5051
<div className={"flex flex-col overflow-auto scroll-smooth scroll-p-4 " + openSans.variable}>
5152
<Header />
52-
5353
<AnimatePresence mode="wait">
5454
<motion.div
5555
key={router.pathname}
@@ -68,6 +68,7 @@ export default function App({ Component, pageProps, router }: AppProps) {
6868
/>
6969
</motion.div>
7070
</AnimatePresence>
71+
<Footer />
7172
</div>
7273
</MotionConfig>
7374
);

0 commit comments

Comments
 (0)