diff --git a/pages/index.tsx b/pages/index.tsx index 41473ff..826e20c 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1 +1,142 @@ -export default function Home() {} +import Image from "next/image"; +import Button from "@/components/Button"; +import HomeMain from "@/public/images/home_main.png"; +import sectionLink from "@/public/images/section_link.png"; +import sectionFolder from "@/public/images/section_folder.png"; +import sectionShare from "@/public/images/section_share.png"; +import sectionSearch from "@/public/images/section_search.png"; +import { useRouter } from "next/router"; + +const sectionStyle = + "flex flex-col md:flex-row md:items-center md:gap-[51px] lg:flex-row lg:items-center lg:gap-[157px]"; +const sectionContent = "flex flex-col md:w-[262px] lg:w-[291px]"; +const sectionTitleStyle = + "text-[24px] leading-[28.64px] font-bold md:text-[48px] md:leading-[57.28px] lg:text-[48px] lg:leading-[57.28px]"; +const sectionDescriptionStyle = + "mt-[10px] text-[15px] leading-[22.5px] font-medium text-gray600 md:text-[16px] md:leading-[24px] lg:text-[16px] lg:leading-[24px]"; +const sectionImageStyle = + "mt-[24px] w-[325px] h-[265.91px] md:w-[385px] md:h-[315px] lg:w-[550px] lg:h-[450px]"; + +const HomePage = () => { + const router = useRouter(); + const isLoggedIn = false; + + const handleClick = () => { + if (isLoggedIn) { + router.push("/share"); + } else { + router.push("/login"); + } + }; + + return ( +
+
+

+ 세상의 모든 정보 + 를
쉽게 저장하고 +
+ 관리해 보세요 +

+ + 배너 +
+ +
+
+
+ + 원하는 링크를 저장하세요 + + + 나중에 읽고 싶은 글, 다시 보고 싶은 영상, 사고 싶은 옷, +
기억하고 싶은 모든 것을 한 + 공간에 저장하세요. +
+
+ 링크 +
+ +
+
+ + 링크를 폴더로 관리하세요 + + + 나만의 폴더를 무제한으로 만들고 다양하게 활용할 수 +
있습니다. +
+
+ 폴더 +
+ +
+
+ + 저장한 링크를 공유해 보세요 + + + 여러 링크를 폴더에 담고 공유할 수 있습니다. 가족, +
친구, 동료들에게 쉽고 빠르게 + 링크를 공유해 보세요. +
+
+ 공유 +
+ +
+
+ + 저장한 링크를 검색해 보세요 + + + 중요한 정보들을 검색으로 쉽게 찾아보세요. + +
+ 검색 +
+
+
+ ); +}; + +export default HomePage; diff --git a/public/images/home_main.png b/public/images/home_main.png new file mode 100644 index 0000000..396bf4e Binary files /dev/null and b/public/images/home_main.png differ diff --git a/public/images/section_folder.png b/public/images/section_folder.png new file mode 100644 index 0000000..95456f7 Binary files /dev/null and b/public/images/section_folder.png differ diff --git a/public/images/section_link.png b/public/images/section_link.png new file mode 100644 index 0000000..6c6c327 Binary files /dev/null and b/public/images/section_link.png differ diff --git a/public/images/section_search.png b/public/images/section_search.png new file mode 100644 index 0000000..d38952a Binary files /dev/null and b/public/images/section_search.png differ diff --git a/public/images/section_share.png b/public/images/section_share.png new file mode 100644 index 0000000..125c36b Binary files /dev/null and b/public/images/section_share.png differ diff --git a/styles/globals.css b/styles/globals.css index 8585d3b..45ab799 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -4,7 +4,8 @@ @font-face { font-family: "Pretendard-Regular"; - src: url("https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff") format("woff"); + src: url("https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff") + format("woff"); font-weight: 400; font-style: normal; } @@ -36,6 +37,19 @@ button { font-family: inherit; } +em { + font-style: normal; +} + +/* 랜딩페이지 그라데이션 텍스트 */ +@layer utilities { + .gradient-text { + background: linear-gradient(90.99deg, #6d6afe 0.12%, #6ae3fe 101.84%); + background-clip: text; + color: transparent; + } +} + input { outline: none; -} \ No newline at end of file +} diff --git a/tailwind.config.ts b/tailwind.config.ts index 65b8b0e..e777ad9 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -20,6 +20,7 @@ const config: Config = { gray300: "#ccd5e3", gray400: "#9fa6b2", gray500: "#3e3e43", + gray600: "#6b6b6b", purple100: "#6d6afe", }, screens: {