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
4a1fe6e
commit 024bcf6
Showing
5 changed files
with
125 additions
and
56 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={"90%"} | ||
pos={"fixed"} | ||
bottom={"50px"} | ||
margin={"0 auto"} | ||
display={"flex"} | ||
flexDir={"column"} | ||
textAlign={"center"} | ||
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,69 @@ | ||
"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) => { | ||
const router = useRouter(); | ||
|
||
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={"90%"} | ||
pos={"fixed"} | ||
bottom={"30px"} | ||
margin={"0 auto"} | ||
> | ||
<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
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,7 +1,7 @@ | ||
import { useState } from "react"; | ||
|
||
export const useFunnel = () => { | ||
const [funnel, setFunnel] = useState("userInfo"); | ||
export const useFunnel = (state: string) => { | ||
const [funnel, setFunnel] = useState(state); | ||
|
||
return { funnel, setFunnel }; | ||
}; |