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
129 changes: 128 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,128 @@
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 HomePage = () => {
const router = useRouter();
const isLoggedIn = false;

const handleClick = () => {
if (isLoggedIn) {
router.push("/share");
} else {
router.push("/login");
}
};

return (
<main>
<div className="flex flex-col items-center bg-gray100">
<h1 className="mt-[28px] text-[32px] leading-[42px] font-bold md:mt-[40px] lg:mt-[70px] md:text-[64px] md:leading-[80px] text-center">
Copy link
Collaborator

Choose a reason for hiding this comment

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

mt-[28px] text-[32px] mt-7 text-8 로 대체가 가능할것같습니다 : )
md:mt-[40px] 도 마찬가지 입니다

Copy link
Collaborator

Choose a reason for hiding this comment

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

그냥 7은 아마 rem으로 들어갈텐데 저희는 px로 통일해서 저렇게 적어주신 걸거에요!

<span className="gradient-text">세상의 모든 정보</span>
<br /> 쉽게 저장하고
<br className="lg:hidden" />
관리해 보세요
</h1>
<Button
onClick={handleClick}
className="mt-[24px] w-[200px] h-[37px] text-[14px] md:mt-[40px] md:w-[350px] md:h-[53px] md:text-[18px]"
>
링크 추가하기
</Button>
<Image
src={HomeMain}
width={1118}
height={540}
alt="배너"
className="mt-[37.56px] w-[302.79px] h-[146.44px] md:mt-[69.07px] md:w-[650.3px] md:h-[313.93px] lg:mt-[90px] lg:w-[1118px] lg:h-[540px]"
/>
</div>

<div className="flex flex-col items-center gap-[80px] px-[33px] pt-[40px] pb-[80px] md:pt-[80px] md:pb-[170px] md:gap-[100px] lg:pt-[120px]">
<section className="flex flex-col md:flex-row md:items-center md:gap-[51px] lg:gap-[157px]">
Copy link
Collaborator

Choose a reason for hiding this comment

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

section style 이 공통인데 요론건 공통으로 빼도 좋을 것 같아여 ㅎㅎ

<div className="flex flex-col md:w-[262px] lg:w-[291px]">
<strong className="text-[24px] leading-[28.64px] font-bold md:text-[48px] md:leading-[57.28px]">
<span className="gradient-text">원하는 링크</span>를 저장하세요
</strong>
<em className="mt-[10px] text-[15px] leading-[22.5px] font-medium text-gray600 md:text-[16px] md:leading-[24px]">
나중에 읽고 싶은 글, 다시 보고 싶은 영상, 사고 싶은 옷,
<br className="sm:block md:hidden" /> 기억하고 싶은 모든 것을 한
공간에 저장하세요.
</em>
</div>
<Image
src={sectionLink}
width={550}
height={450}
alt="링크"
className="mt-[24px] w-[325px] h-[265.91px] md:w-[385px] md:h-[315px] lg:w-[550px] lg:h-[450px]"
/>
</section>

<section className="flex flex-col md:flex-row-reverse md:items-center md:gap-[51px] lg:gap-[157px]">
Copy link
Collaborator

Choose a reason for hiding this comment

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

공통으로 빼고 여기section 에만 md:flex-row-reverse 추가해주면 될 것 같네여!

<div className="flex flex-col md:w-[262px] lg:w-[291px]">
<strong className="text-[24px] leading-[28.64px] font-bold md:text-[48px] md:leading-[57.28px]">
링크를 폴더로 <span className="gradient-text">관리</span>하세요
</strong>
<em className="mt-[10px] text-[15px] leading-[22.5px] font-medium text-gray600 md:text-[16px] md:leading-[24px]">
나만의 폴더를 무제한으로 만들고 다양하게 활용할 수
<br className="sm:block md:hidden" /> 있습니다.
</em>
</div>
<Image
src={sectionFolder}
width={550}
height={450}
alt="폴더"
className="mt-[24px] w-[325px] h-[265.91px] md:w-[385px] md:h-[315px] lg:w-[550px] lg:h-[450px]"
/>
</section>

<section className="flex flex-col md:flex-row md:items-center md:gap-[51px] lg:gap-[157px]">
<div className="flex flex-col md:w-[262px] lg:w-[291px]">
<strong className="text-[24px] leading-[28.64px] font-bold md:text-[48px] md:leading-[57.28px]">
저장한 링크를 <span className="gradient-text">공유</span>해 보세요
</strong>
<em className="mt-[10px] text-[15px] leading-[22.5px] font-medium text-gray600 md:text-[16px] md:leading-[24px]">
여러 링크를 폴더에 담고 공유할 수 있습니다. 가족,
<br className="sm:block md:hidden" /> 친구, 동료들에게 쉽고 빠르게
링크를 공유해 보세요.
</em>
</div>
<Image
src={sectionShare}
width={550}
height={450}
alt="공유"
className="mt-[24px] w-[325px] h-[265.91px] md:w-[385px] md:h-[315px] lg:w-[550px] lg:h-[450px]"
/>
</section>

<section className="flex flex-col md:flex-row-reverse md:items-center md:gap-[51px] lg:gap-[157px]">
<div className="flex flex-col md:w-[262px] lg:w-[291px]">
<strong className="text-[24px] leading-[28.64px] font-bold md:text-[48px] md:leading-[57.28px]">
저장한 링크를 <span className="gradient-text">검색</span>해 보세요
</strong>
<em className="mt-[10px] text-[15px] leading-[22.5px] font-medium text-gray600 md:text-[16px] md:leading-[24px]">
중요한 정보들을 검색으로 쉽게 찾아보세요.
</em>
</div>
<Image
src={sectionSearch}
width={550}
height={450}
alt="검색"
className="mt-[24px] w-[325px] h-[265.91px] md:w-[385px] md:h-[315px] lg:w-[550px] lg:h-[450px]"
/>
</section>
</div>
</main>
);
};

export default HomePage;
Binary file added public/images/home_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/section_folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/section_link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/section_search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/section_share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
--gray300: #ccd5e3;
--gray400: #9fa6b2;
--gray500: #3e3e43;
--gray600: #6b6b6b;
--purple100: #6d6afe;
}

Expand Down Expand Up @@ -51,3 +52,16 @@ button {
cursor: pointer;
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;
}
}
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const config: Config = {
gray300: "var(--gray300)",
gray400: "var(--gray400)",
gray500: "var(--gray500)",
gray600: "var(--gray600)",
purple100: "var(--purple100)",
white200: "var(--white200)",
},
Expand Down