-
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 #64 from prgrms-web-devcourse-final-project/20-des…
…ign/home-page 20 design/home page
- Loading branch information
Showing
6 changed files
with
142 additions
and
6 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
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,8 @@ | ||
import { styled } from 'styled-components' | ||
|
||
export const Separator = styled.hr` | ||
border: none; | ||
width: 1px; | ||
height: 20px; | ||
background-color: ${({ theme }) => theme.colors.grayscale.gc_1}; | ||
` |
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 +1,2 @@ | ||
export const FOOTER_HEIGHT = 56 | ||
export const HEADER_HEIGHT = 56 |
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,3 +1,73 @@ | ||
import { styled } from 'styled-components' | ||
import { Box } from '~components/Box' | ||
import { FOOTER_HEIGHT } from '~constants/layout' | ||
|
||
export const HomePage = styled.div`` | ||
export const HomePage = styled.div` | ||
padding: 0 20px 31px 20px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
height: calc(100dvh - ${FOOTER_HEIGHT}px); | ||
` | ||
|
||
export const ProfileImgWrapper = styled.div` | ||
width: 32px; | ||
height: 32px; | ||
border-radius: 50%; | ||
overflow: hidden; | ||
` | ||
|
||
export const ProfileImg = styled.img` | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
object-position: center; | ||
cursor: pointer; | ||
` | ||
export const Header = styled.header` | ||
padding: 12px 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
` | ||
|
||
export const Visual = styled.div` | ||
margin-top: 24px; | ||
text-align: center; | ||
` | ||
export const CharacterWrapper = styled.div` | ||
margin: 8px auto 0; | ||
width: 240px; | ||
height: 240px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
` | ||
export const Character = styled.div` | ||
width: 148px; | ||
height: 148px; | ||
background-color: ${({ theme }) => theme.colors.brand.lighten_1}; | ||
border-radius: 50%; | ||
` | ||
export const WalkInfoArea = styled(Box)` | ||
padding: 20px 24px; | ||
` | ||
export const WalkInfoWrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin-top: 20px; | ||
gap: 6px; | ||
padding: 0 6px; | ||
` | ||
export const WalkTime = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
` | ||
|
||
export const WalkDistance = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
` |