Skip to content

Commit fdb3c5b

Browse files
authored
Merge pull request #67 from codeit9-temporary/feature/Footer
Feat:Footer UI 구현
2 parents 27faf78 + dacb4dc commit fdb3c5b

File tree

7 files changed

+90
-3
lines changed

7 files changed

+90
-3
lines changed

components/Layout/Footer.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import Link from "next/link";
2+
import SocialLinks from "../SocialLinks";
3+
4+
const Footer = () => {
5+
return (
6+
<footer className="bg-black200 pt-8 sm:px-8 pb-[108px] md:px-[104px] lg:px-[104px]">
7+
<nav className="relative flex justify-between">
8+
<p className="text-gray700 sm:absolute sm:top-[60px] leading-[18.4px]">
9+
©codeit - 2023
10+
</p>
11+
12+
<ul className="flex gap-[30px] text-gray800 leading-[18.4px]">
13+
<li>
14+
<Link href={"/"}>Privacy Policy</Link>
15+
</li>
16+
<li>
17+
<Link href={"/"}>FAQ</Link>
18+
</li>
19+
</ul>
20+
21+
<SocialLinks />
22+
</nav>
23+
</footer>
24+
);
25+
};
26+
27+
export default Footer;

components/SocialLinks.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import Image from "next/image";
2+
import Link from "next/link";
3+
import Facebook from "@/public/icons/Facebook.svg";
4+
import twitter from "@/public/icons/twitter.svg";
5+
import youtube from "@/public/icons/youtube.svg";
6+
import instagram from "@/public/icons/instagram.svg";
7+
8+
const SocialLinks = () => {
9+
return (
10+
<ul className="flex gap-3">
11+
<li>
12+
<Link href={"https://www.facebook.com/codeit.kr/"} target="_blank">
13+
<Image src={Facebook} width={20} height={20} alt="facebook" />
14+
</Link>
15+
</li>
16+
<li>
17+
<Link href={"https://x.com/"} target="_blank">
18+
<Image src={twitter} width={20} height={20} alt="twitter" />
19+
</Link>
20+
</li>
21+
<li>
22+
<Link
23+
href={"https://www.youtube.com/channel/UCCM79CPm2WbBYTRaiNEExbg"}
24+
target="_blank"
25+
>
26+
<Image src={youtube} width={20} height={20} alt="youtube" />
27+
</Link>
28+
</li>
29+
<li>
30+
<Link href={"https://www.instagram.com/codeit_kr/"} target="_blank">
31+
<Image src={instagram} width={20} height={20} alt="instagram" />
32+
</Link>
33+
</li>
34+
</ul>
35+
);
36+
};
37+
38+
export default SocialLinks;

pages/_app.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Footer from "@/components/Layout/Footer";
12
import Header from "@/components/Layout/Header";
23
import "@/styles/globals.css";
34
import type { AppProps } from "next/app";
@@ -8,9 +9,12 @@ export default function App({ Component, pageProps }: AppProps) {
89
const hidePaths = ["/login", "/signup"];
910

1011
return (
11-
<>
12+
<div className="min-h-screen flex flex-col">
1213
{!hidePaths.includes(router.pathname) && <Header />}
13-
<Component {...pageProps} />
14-
</>
14+
<div className="flex-grow">
15+
<Component {...pageProps} />
16+
</div>
17+
{!hidePaths.includes(router.pathname) && <Footer />}
18+
</div>
1519
);
1620
}

public/icons/instagram.svg

Lines changed: 3 additions & 0 deletions
Loading

public/icons/twitter.svg

Lines changed: 3 additions & 0 deletions
Loading

public/icons/youtube.svg

Lines changed: 10 additions & 0 deletions
Loading

tailwind.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const config: Config = {
2121
gray400: "#9fa6b2",
2222
gray500: "#3e3e43",
2323
gray600: "#6b6b6b",
24+
gray700: "#676767",
25+
gray800: "#CFCFCF",
2426
purple100: "#6d6afe",
2527
},
2628
screens: {

0 commit comments

Comments
 (0)