Skip to content
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
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import "./globals.css";
import Navigation from "@/components/Navigation";
import Footer from "@/components/Layout/Footer";
import { Provider } from "jotai";

export const metadata: Metadata = {
Expand All @@ -22,6 +23,7 @@ export default function RootLayout({
<Navigation />
</header>
<main>{children}</main>
<Footer />
</Provider>
</body>
</html>
Expand Down
6 changes: 2 additions & 4 deletions src/app/styles/screens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const NETBOOK = 768;
const DESKTOP = 1024;

const screens: CustomThemeConfig["screens"] = {
mobile: { max: `${TABLET}px` },
tablet: `${TABLET}px`, // min-width
netbook: `${NETBOOK}px`,
desktop: `${DESKTOP}px`,
Expand All @@ -16,7 +17,4 @@ const screenMediaQuery = {
desktop: `(min-width: ${NETBOOK}px)`,
};

export {
screens,
screenMediaQuery,
};
export { screens, screenMediaQuery };
93 changes: 93 additions & 0 deletions src/components/Layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import Link from "next/link";
import { InstagramIcon, LinkedInIcon, GithubIcon } from "@/components/svgs";

function LinkList({
label,
children,
}: {
label: string;
children: React.ReactNode;
}) {
return (
<li className="flex flex-col gap-8 tablet:items-center mobile:items-center">
<p className="text-body-3-medium">{label}</p>
{children}
</li>
);
}

function HeaderTitle({ title }: { title: string }) {
return (
<h2 className="desktop:text-[130px] netbook:text-[136px] tablet:text-[106px] text-[56px] italic font-semibold leading-[100%]">
{title}
</h2>
);
}

export default function Footer() {
const snsList = [
{
name: "Instagram",
icon: <InstagramIcon />,
link: "https://www.instagram.com/dynamic_ddd?utm_source=ig_web_button_share_sheet&igsh=ZDNlZDc0MzIxNw==",
},
{
name: "LinkedIn",
icon: <LinkedInIcon />,
link: "https://www.linkedin.com/company/dddcommunity",
},
{
name: "Github",
icon: <GithubIcon />,
link: "https://github.com/DDD-Community",
},
];

return (
<footer className="bg-blue-50 text-white py-80 tablet:py-64 mobile:py-52 flex flex-col justify-between items-center overflow-hidden">
<section className="desktop:mb-[289px] netbook:mb-[200px] tablet:mb-[120px] mb-[88px]">
<ul className="flex gap-80 tablet:flex-col tablet:items-center mobile:flex-col mobile:items-center mobile:gap-40">
<LinkList label="Email">
<Link
className="text-title-1-bold mobile:text-title-2-bold"
href="mailto:dddstudy1@gmail.com"
>
dddstudy1@gmail.com
</Link>
</LinkList>
<LinkList label="Follow Us">
<ul className="flex flex-wrap items-center mobile:flex-col mobile:gap-16">
{snsList.map((item, index) => (
<>
<Link
className="flex items-center gap-4 text-title-1-bold mobile:text-title-2-bold"
href={item.link}
key={item.name}
target="_blank"
>
{item.icon}
<p>{item.name}</p>
</Link>
{index < snsList.length - 1 && (
<span className="mx-16 w-[1px] h-[14px] bg-blue-20 mobile:hidden" />
)}
</>
))}
</ul>
</LinkList>
</ul>
</section>
<section className="max-w-[1200px] text-center px-0 tablet:px-20 mobile:px-20">
<HeaderTitle title="Dynamic" />
<div className="flex flex-col desktop:gap-24 desktop:flex-row ">
<HeaderTitle title="Developer" />
<HeaderTitle title="Designer" />
</div>
<p className="mt-24 text-body-3-regular">
©2024 Dynamic Developer Designer,{" "}
<br className="hidden mobile:block" /> All Rights Reserved.
</p>
</section>
</footer>
);
}
Loading