Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
55 changes: 55 additions & 0 deletions components/Layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import Image from "next/image";
import Facebook from "@/public/icons/Facebook.svg";
import twitter from "@/public/icons/twitter.svg";
import youtube from "@/public/icons/youtube.svg";
import instagram from "@/public/icons/instagram.svg";
import Link from "next/link";

const Footer = () => {
return (
<footer className="bg-black200 pt-8 sm:px-8 pb-[108px] md:px-[104px] lg:px-[104px]">
<nav className="relative flex justify-between">
Comment on lines +6 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

시맨틱 태그 잘 신경 써 주셨군요 👍

<p className="text-gray700 sm:absolute sm:top-[60px] leading-[18.4px]">
©codeit - 2023
</p>

<ul className="flex gap-[30px] text-gray800 leading-[18.4px]">
<li>
<Link href={"/"}>Privacy Policy</Link>
</li>
<li>
<Link href={"/"}>FAQ</Link>
</li>
</ul>

<ul className="flex gap-3">
<li>
<Link href={"https://www.facebook.com/codeit.kr/"} target="_blank">
<Image src={Facebook} width={20} height={20} alt="facebook" />
</Link>
</li>
<li>
<Link href={"https://x.com/"} target="_blank">
<Image src={twitter} width={20} height={20} alt="twitter" />
</Link>
</li>
<li>
<Link
href={"https://www.youtube.com/channel/UCCM79CPm2WbBYTRaiNEExbg"}
target="_blank"
>
<Image src={youtube} width={20} height={20} alt="youtube" />
</Link>
</li>
<li>
<Link href={"https://www.instagram.com/codeit_kr/"} target="_blank">
<Image src={instagram} width={20} height={20} alt="instagram" />
</Link>
</li>
</ul>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분 SNS만 관리하는 컴포넌트로 분리해주시면 좋을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

옙 수정하겠슴당

</nav>
</footer>
);
};

export default Footer;
10 changes: 7 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Footer from "@/components/Layout/Footer";
import Header from "@/components/Layout/Header";
import "@/styles/globals.css";
import type { AppProps } from "next/app";
Expand All @@ -8,9 +9,12 @@ export default function App({ Component, pageProps }: AppProps) {
const hidePaths = ["/login", "/signup"];

return (
<>
<div className="min-h-screen flex flex-col">
{!hidePaths.includes(router.pathname) && <Header />}
<Component {...pageProps} />
</>
<div className="flex-grow">
<Component {...pageProps} />
</div>
{!hidePaths.includes(router.pathname) && <Footer />}
</div>
);
}
3 changes: 3 additions & 0 deletions public/icons/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/icons/youtube.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const config: Config = {
gray400: "#9fa6b2",
gray500: "#3e3e43",
gray600: "#6b6b6b",
gray700: "#676767",
gray800: "#CFCFCF",
purple100: "#6d6afe",
},
screens: {
Expand Down
Loading