forked from potenday-project/312TEN036-FE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
최현우
committed
Dec 11, 2023
1 parent
8776909
commit 4a1fe6e
Showing
5 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {} | ||
const nextConfig = { | ||
images: { | ||
domains: ["images.pexels.com"], | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,69 @@ | ||
"use client"; | ||
import { Box, ButtonGroup, Flex, Heading, Text } from "@chakra-ui/react"; | ||
import MainButton from "../../component/button/MainButton"; | ||
import { useRouter } from "next/navigation"; | ||
import Image from "next/image"; | ||
|
||
export default function Home() { | ||
const router = useRouter(); | ||
return ( | ||
<main> | ||
<MainButton w={"350px"} h={"52px"}> | ||
시작하기 | ||
</MainButton> | ||
</main> | ||
<Flex | ||
as={"main"} | ||
flexDir={"column"} | ||
w={"90%"} | ||
height={"100vh"} | ||
margin={"0 auto"} | ||
justifyContent={"center"} | ||
alignItems={"center"} | ||
> | ||
<Image | ||
src={"https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg"} | ||
alt="식선생" | ||
width={100} | ||
height={100} | ||
/> | ||
<Box as="section" paddingBottom={"100px"}> | ||
<Heading | ||
as={"h1"} | ||
color={"#000000"} | ||
fontSize={"24px"} | ||
fontWeight={"semibold"} | ||
textAlign={"center"} | ||
lineHeight={10} | ||
padding={"15px"} | ||
> | ||
살빼려면 | ||
<br /> | ||
오늘 얼마만큼 운동해야하지? | ||
</Heading> | ||
<Text | ||
as={"h2"} | ||
color={"#787878"} | ||
fontSize={"17px"} | ||
textAlign={"center"} | ||
lineHeight={7} | ||
> | ||
오늘 먹은 음식을 식선생에게 외쳐보세요! <br /> | ||
필요 운동량과 안찌는 식단을 한번에 알려드려요 | ||
</Text> | ||
</Box> | ||
|
||
<ButtonGroup | ||
width={"90%"} | ||
pos={"fixed"} | ||
bottom={"30px"} | ||
margin={"0 auto"} | ||
> | ||
<MainButton | ||
w={"100%"} | ||
h={"52px"} | ||
onClick={() => { | ||
router.push("/signup"); | ||
}} | ||
> | ||
다음으로 | ||
</MainButton> | ||
</ButtonGroup> | ||
</Flex> | ||
); | ||
} |