-
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
1 parent
58c5eab
commit 20dcc74
Showing
5 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
File renamed without changes
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,8 +1,14 @@ | ||
import React from 'react'; | ||
import Header from '../components/Header'; | ||
import HomeIcon from '../assets/home.svg'; | ||
|
||
const ListPage = () => { | ||
return <Header /> | ||
return ( | ||
<> | ||
<Header /> | ||
<img src={HomeIcon} alt="Home" style={{ width: 52 }} /> | ||
</> | ||
); | ||
} | ||
|
||
export default ListPage; | ||
export default ListPage; |
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,31 +1,57 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Button from '../components/Button'; | ||
import styled from 'styled-components'; | ||
import logo from '../assets/logo.svg'; | ||
|
||
const Container = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
justify-content: center; | ||
align-items: center; | ||
padding-bottom: 20px; | ||
width: 100%; | ||
box-sizing: border-box; | ||
height: 100vh; | ||
box-sizing: border-box; | ||
background-color: #a883d8; | ||
`; | ||
|
||
const LogoImage = styled.img` | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
width: 180px; | ||
height: auto; | ||
`; | ||
|
||
const Button = styled.button` | ||
position: absolute; | ||
bottom: 20px; | ||
background-color: #ffffff; | ||
width: 80%; | ||
height: 45px; | ||
color: #864ae1; | ||
font-family: 'Pretendard', sans-serif; | ||
font-weight: 600; | ||
font-size: 14px; | ||
border: none; | ||
border-radius: 16px; | ||
cursor: pointer; | ||
`; | ||
|
||
const OnBoarding = () => { | ||
const navigator=useNavigate(); | ||
const goSignUp=()=>{ | ||
const navigator = useNavigate(); | ||
|
||
const goSignUp = () => { | ||
navigator('/register'); | ||
} | ||
}; | ||
|
||
return ( | ||
<Container> | ||
<Button onClick={goSignUp} title="살아봐유 시작하기" /> | ||
<LogoImage src={logo} alt="로고" /> | ||
<Button onClick={goSignUp}>살아봐유 시작하기</Button> | ||
</Container> | ||
) | ||
); | ||
}; | ||
|
||
export default OnBoarding; |