-
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.
Browse files
Browse the repository at this point in the history
[FEAT] 온보딩 api 연결 및 로그인 라우팅 수정
- Loading branch information
Showing
8 changed files
with
146 additions
and
44 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 +1,72 @@ | ||
const FinishScreen = () => { | ||
return <div>FinishScreen</div>; | ||
import styled from "styled-components"; | ||
import NextBtn from "./NextBtn"; | ||
import { useNavigate } from "react-router-dom"; | ||
|
||
interface FinishScreenProps { | ||
imgURL: string; | ||
title: string; | ||
sub: string; | ||
} | ||
|
||
const FinishScreen = (props: FinishScreenProps) => { | ||
const navigate = useNavigate(); | ||
|
||
const toHome = () => { | ||
navigate("/home"); | ||
}; | ||
return ( | ||
<Container> | ||
<Title> | ||
<SubTitle>{props.sub}</SubTitle> | ||
{props.title.split("\n").map((line, index) => ( | ||
<span key={index}> | ||
{line} | ||
<br /> | ||
</span> | ||
))} | ||
</Title> | ||
<Image src={props.imgURL} /> | ||
<NextBtn | ||
isActive={true} | ||
text="홈으로 가기" | ||
handleBtn={toHome} | ||
width="70%" | ||
/> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default FinishScreen; | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 90%; | ||
gap: 5%; | ||
`; | ||
|
||
const Title = styled.div` | ||
font-size: 3.4rem; | ||
font-weight: 800; | ||
text-align: center; | ||
span { | ||
display: block; | ||
margin-bottom: 0.5rem; | ||
} | ||
`; | ||
|
||
const SubTitle = styled.div` | ||
font-size: 2rem; | ||
font-weight: 700; | ||
color: #ffb800; | ||
margin-bottom: 1rem; | ||
`; | ||
|
||
const Image = styled.img` | ||
width: 100%; | ||
height: auto; /* 비율 유지 */ | ||
max-width: 600px; | ||
`; |
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
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