-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from chhw130/dev
12/11PR
- Loading branch information
Showing
10 changed files
with
407 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
"use client"; | ||
import { ButtonGroup, Text } from "@chakra-ui/react"; | ||
import MainButton from "../button/MainButton"; | ||
import Image from "next/image"; | ||
import { useRouter } from "next/navigation"; | ||
|
||
const LoginFunnel = () => { | ||
const router = useRouter(); | ||
return ( | ||
<> | ||
<Image | ||
src={"https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg"} | ||
alt="식선생" | ||
width={100} | ||
height={100} | ||
/> | ||
|
||
<ButtonGroup | ||
width={"100%"} | ||
pos={"fixed"} | ||
bottom={"30px"} | ||
margin={"0 auto"} | ||
justifyContent={"center"} | ||
alignItems={"center"} | ||
flexDir={"column"} | ||
gap={"10px"} | ||
> | ||
<MainButton w={"100%"} h={"52px"} onClick={() => {}}> | ||
다음으로 | ||
</MainButton> | ||
<Text | ||
as={"u"} | ||
fontSize={"17px"} | ||
color={"#9D9D9D"} | ||
margin={"0.5rem"} | ||
onClick={() => router.push("/signup")} | ||
cursor={"pointer"} | ||
> | ||
체험하기 | ||
</Text> | ||
</ButtonGroup> | ||
</> | ||
); | ||
}; | ||
|
||
export default LoginFunnel; |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
"use client"; | ||
import { Box, ButtonGroup, Heading, Text } from "@chakra-ui/react"; | ||
import Image from "next/image"; | ||
import MainButton from "../../component/button/MainButton"; | ||
import { useRouter } from "next/navigation"; | ||
import { Dispatch, SetStateAction } from "react"; | ||
|
||
interface MainFunnelPropsType { | ||
setFunnel: Dispatch<SetStateAction<string>>; | ||
} | ||
|
||
const MainFunnel = ({ setFunnel }: MainFunnelPropsType) => { | ||
return ( | ||
<> | ||
<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={"100%"} | ||
pos={"fixed"} | ||
bottom={"30px"} | ||
margin={"0 auto"} | ||
justifyContent={"center"} | ||
> | ||
<MainButton | ||
w={"100%"} | ||
h={"52px"} | ||
onClick={() => { | ||
setFunnel("login"); | ||
}} | ||
> | ||
다음으로 | ||
</MainButton> | ||
</ButtonGroup> | ||
</> | ||
); | ||
}; | ||
|
||
export default MainFunnel; |
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
Oops, something went wrong.