-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Design] Mobile ver. - MyPage 구현 (#373)
* design: mypage 반응형 * design: button 수평 padding 0 설정 * design: container marginBottom 반응형 추가 * feat: ReviewPage 접속 제한 * chore: 테스트를 위한 주석처리 해제
- Loading branch information
Showing
3 changed files
with
165 additions
and
28 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 |
---|---|---|
@@ -1,52 +1,157 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { style, styleVariants } from '@vanilla-extract/css'; | ||
|
||
import { theme } from 'styles/theme.css'; | ||
|
||
export const container = style({ | ||
const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 50, | ||
justifyContent: 'center', | ||
margin: 95, | ||
}); | ||
|
||
export const infoContainer = style({ | ||
export const containerVar = styleVariants({ | ||
DESK: [ | ||
container, | ||
{ | ||
gap: 50, | ||
margin: '90px 0 70px', | ||
}, | ||
], | ||
TAB: [ | ||
container, | ||
{ | ||
gap: 50, | ||
margin: '90px 0 191px', | ||
}, | ||
], | ||
MOB: [ | ||
container, | ||
{ | ||
gap: 30, | ||
margin: '23px 0 74px', | ||
}, | ||
], | ||
}); | ||
|
||
const infoContainer = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'space-between', | ||
width: 467, | ||
height: 455, | ||
padding: '38px 80px', | ||
border: `1px solid ${theme.color.border}`, | ||
borderRadius: 18, | ||
}); | ||
|
||
export const infoContainerVar = styleVariants({ | ||
DESK: [ | ||
infoContainer, | ||
{ | ||
width: 467, | ||
padding: '38px 80px', | ||
}, | ||
], | ||
TAB: [ | ||
infoContainer, | ||
{ | ||
width: 367, | ||
padding: '38px 50px', | ||
}, | ||
], | ||
MOB: [ | ||
infoContainer, | ||
{ | ||
width: 312, | ||
padding: '38px 34px', | ||
}, | ||
], | ||
}); | ||
|
||
export const itemWrapper = style({ | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'space-between', | ||
}); | ||
|
||
export const infoLabel = style({ | ||
width: 63, | ||
color: theme.color.lighterText, | ||
...theme.font.BODY_1_18_M, | ||
export const infoLabelVar = styleVariants({ | ||
DESK: { | ||
width: 63, | ||
color: theme.color.lighterText, | ||
...theme.font.BODY_1_18_M, | ||
}, | ||
TAB: { | ||
width: 63, | ||
color: theme.color.lighterText, | ||
...theme.font.BODY_1_18_M, | ||
}, | ||
MOB: { | ||
width: 56, | ||
color: theme.color.lighterText, | ||
...theme.font.BODY_2_16_M, | ||
}, | ||
}); | ||
|
||
export const infoValue = style({ | ||
const infoValue = style({ | ||
width: 132, | ||
color: theme.color.baseText, | ||
textAlign: 'center', | ||
...theme.font.TITLE_5_18_SB, | ||
}); | ||
|
||
export const infoValueVar = styleVariants({ | ||
DESK: [ | ||
infoValue, | ||
{ | ||
width: 132, | ||
...theme.font.TITLE_5_18_SB, | ||
}, | ||
], | ||
TAB: [ | ||
infoValue, | ||
{ | ||
width: 132, | ||
...theme.font.TITLE_5_18_SB, | ||
}, | ||
], | ||
MOB: [ | ||
infoValue, | ||
{ | ||
width: 111, | ||
...theme.font.TITLE_6_16_SB, | ||
}, | ||
], | ||
}); | ||
|
||
export const buttonValue = style([ | ||
itemWrapper, | ||
{ | ||
marginTop: '-15px', | ||
}, | ||
]); | ||
|
||
export const buttonWidth = style({ | ||
width: 133, | ||
const buttonWidth = style({ | ||
paddingLeft: 0, | ||
paddingRight: 0, | ||
}); | ||
|
||
export const buttonWidthVar = styleVariants({ | ||
DESK: [ | ||
buttonWidth, | ||
{ | ||
width: 132, | ||
letterSpacing: '-0.36px', | ||
}, | ||
], | ||
TAB: [ | ||
buttonWidth, | ||
{ | ||
width: 132, | ||
letterSpacing: '-0.36px', | ||
}, | ||
], | ||
MOB: [ | ||
buttonWidth, | ||
{ | ||
width: 111, | ||
letterSpacing: '-0.24px', | ||
}, | ||
], | ||
}); |
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