Skip to content

Commit

Permalink
Merge pull request #403 from LEEJW1953/fe-main
Browse files Browse the repository at this point in the history
[Feature] 메인페이지 반응형 UI 개선
  • Loading branch information
LEEJW1953 authored Dec 9, 2023
2 parents d15d015 + 5d7ece6 commit 6391faa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions app/frontend/src/pages/Main/index.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { style } from '@vanilla-extract/css';
import { vars, fontStyle } from '@/styles';

export const container = style({
position: 'relative',
display: 'flex',
flexDirection: 'column',
margin: '0 auto',
width: '104rem',
maxWidth: '104rem',
height: '81.7rem',
color: vars.color.grayscale400,
background: vars.color.grayscaleWhite,
Expand All @@ -19,9 +19,9 @@ export const login = style({
});

export const mainImage = style({
width: '69.7rem',
height: '69.7rem',
alignSelf: 'flex-end',
width: '100%',
maxWidth: '69.7rem',
maxHeight: '69.7rem',
objectFit: 'contain',
});

Expand All @@ -31,12 +31,16 @@ export const text = style([
color: vars.color.grayscale400,
textAlign: 'right',
lineHeight: '3.5rem',

'@media': {
'screen and (max-width:768px)': {
fontSize: '1.8rem',
},
},
},
]);

export const textArea = style({
position: 'absolute',
right: '0',
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-end',
Expand All @@ -50,5 +54,11 @@ export const title = style([
justifyContent: 'center',
textAlign: 'center',
color: vars.color.morakGreen,

'@media': {
'screen and (max-width:768px)': {
fontSize: '4.8rem',
},
},
},
]);
2 changes: 1 addition & 1 deletion app/frontend/src/pages/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function MainPage() {

return (
<div className={styles.container}>
<img src={MAIN_IMAGE} alt="main" className={styles.mainImage} />
<div className={styles.textArea}>
<div className={styles.title}>morak</div>
<div className={styles.text}>
Expand All @@ -38,6 +37,7 @@ export function MainPage() {
)}
</div>
</div>
<img src={MAIN_IMAGE} alt="main" className={styles.mainImage} />
</div>
);
}

0 comments on commit 6391faa

Please sign in to comment.