-
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 #5 from JupGo/diary/4
[feat] 나무가 없을 때 diary 뷰 완성
- Loading branch information
Showing
3 changed files
with
116 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,122 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
// import noTreeImage from '../asset/image/BgTreeDiaryEmpty.png'; | ||
import Router from '../components/common/Router'; | ||
|
||
const TreeDiary = () => { | ||
return <div>나무다이어리다</div>; | ||
return ( | ||
<StRoot> | ||
<StTopBar> | ||
<StHomeButton type="button"> | ||
<StHomeButtonImage src="../IcHome.png" alt="home" /> | ||
</StHomeButton> | ||
</StTopBar> | ||
<StContent> | ||
<StTitleContainer> | ||
<StTitle>내가 키우는 나무들</StTitle> | ||
<StSubTitle> | ||
줍Go를 통해 키우는 나무들이에요 | ||
<br /> | ||
나무를 눌러 기록을 확인해보세요 | ||
</StSubTitle> | ||
</StTitleContainer> | ||
<StNoTreeLabel> | ||
아직 나무가 없어요! | ||
<br /> | ||
나무를 키우러 가볼까요? | ||
</StNoTreeLabel> | ||
<StJupGoButton type="button">LETS 줍GO!</StJupGoButton> | ||
</StContent> | ||
</StRoot> | ||
); | ||
}; | ||
|
||
const StRoot = styled.div` | ||
width: 100vw; | ||
height: 100vh; | ||
flex-direction: column; | ||
background-image: url('../BgTreeDiaryEmpty.png'); | ||
background-position: center; | ||
position: relative; | ||
padding-top: 53px; | ||
`; | ||
|
||
const StTopBar = styled.section` | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
border: 0; | ||
padding-left: 25px; | ||
`; | ||
|
||
const StHomeButton = styled.button` | ||
background-color: transparent; | ||
padding: 3px; | ||
border: none; | ||
`; | ||
|
||
const StHomeButtonImage = styled.img` | ||
width: 27px; | ||
height: 27px; | ||
`; | ||
|
||
const StContent = styled.section` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding-top: 47px; | ||
`; | ||
|
||
const StTitleContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: 15%; | ||
gap: 10px; | ||
`; | ||
|
||
const StTitle = styled.div` | ||
font-weight: 700; | ||
font-size: 25px; | ||
line-height: 34px; | ||
text-align: center; | ||
`; | ||
|
||
const StSubTitle = styled.div` | ||
font-weight: 400; | ||
font-size: 15px; | ||
line-height: 20px; | ||
text-align: center; | ||
margin-top: 10px; | ||
`; | ||
|
||
const StNoTreeLabel = styled.div` | ||
position: absolute; | ||
bottom: 30%; | ||
font-weight: 400; | ||
font-size: 15px; | ||
line-height: 20px; | ||
text-align: center; | ||
`; | ||
|
||
const StJupGoButton = styled.button` | ||
width: 166px; | ||
height: 46px; | ||
position: absolute; | ||
bottom: 20%; | ||
background-color: #b6e599; | ||
color: white; | ||
border: none; | ||
border-radius: 14px; | ||
font-weight: 700; | ||
font-size: 25px; | ||
line-height: 34px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
padding-top: 5px; | ||
`; | ||
|
||
export default TreeDiary; |