-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 랜딩 페이지 디렉토리 구조 변경 * refactor: nav 관련 스타일 nav로 이동 * remove: 사용하지 않는 컴포넌트 제거 * style: div => section, article 태그로 변경 * style: 컴포넌트 이름 조금 더 의미있게 변경
- Loading branch information
1 parent
dbded65
commit 5394795
Showing
32 changed files
with
639 additions
and
615 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {css} from '@emotion/react'; | ||
|
||
export const mainContainer = css({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
width: '100%', | ||
}); |
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,25 +1,27 @@ | ||
import {css} from '@emotion/react'; | ||
|
||
import {Theme} from '@components/Design/theme/theme.type'; | ||
|
||
export const navStyle = (theme: Theme) => | ||
css({ | ||
position: 'fixed', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
padding: '1rem', | ||
export const navFixedStyle = css({ | ||
position: 'fixed', | ||
top: 0, | ||
left: 0, | ||
right: 0, | ||
zIndex: 10, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
padding: '1rem 0', | ||
width: '100%', | ||
backgroundColor: 'white', | ||
}); | ||
|
||
top: '0', | ||
width: '100%', | ||
maxWidth: '768px', | ||
zIndex: theme.zIndex.navBackgroundColor, | ||
height: '4rem', | ||
backgroundColor: 'white', | ||
}); | ||
export const navWrapperStyle = css({ | ||
maxWidth: '1200px', | ||
width: '100%', | ||
}); | ||
|
||
export const logoStyle = css({ | ||
export const navStyle = css({ | ||
display: 'flex', | ||
gap: '0.5rem', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
height: '2.5rem', | ||
}); |
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 @@ | ||
export {default as Nav} from './Nav'; |
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
client/src/pages/MainPage/Section/DescriptionSection/DescriptionSection.style.ts
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,27 @@ | ||
import {css} from '@emotion/react'; | ||
|
||
export const descriptionSectionStyle = css({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
height: '100vh', | ||
width: '100vw', | ||
gap: '1.5rem', | ||
padding: '3rem 1.5rem', | ||
backgroundColor: 'white', | ||
}); | ||
|
||
export const imgStyle = css({ | ||
width: '10rem', | ||
'@media (min-width: 768px)': { | ||
minWidth: '10rem', | ||
maxWidth: '15rem', | ||
width: '100%', | ||
}, | ||
'@media (min-width: 1600px)': { | ||
minWidth: '15rem', | ||
maxWidth: '20rem', | ||
width: '100%', | ||
}, | ||
}); |
21 changes: 21 additions & 0 deletions
21
client/src/pages/MainPage/Section/DescriptionSection/DescriptionSection.tsx
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,21 @@ | ||
import Text from '@HDesign/components/Text/Text'; | ||
|
||
import {descriptionSectionStyle, imgStyle} from './DescriptionSection.style'; | ||
|
||
const DescriptionSection = () => { | ||
return ( | ||
<div css={descriptionSectionStyle}> | ||
<img css={imgStyle} src={`${process.env.IMAGE_URL}/standingDog.svg`} alt="행댕이" /> | ||
<Text style={{textAlign: 'center'}} size="subTitle" responsive={true}>{`행동대장들을 위해 | ||
행동대장을 준비했어요 | ||
`}</Text> | ||
<Text style={{textAlign: 'center'}} size="subTitle" responsive={true} textColor="gray">{`주환이가 먼저 집에 가도 | ||
소연이가 늦게 도착해도 | ||
건상이가 술을 마시지 않아도 | ||
`}</Text> | ||
<Text style={{textAlign: 'center'}} size="subTitle" responsive={true}>{`간편하게 정산할 수 있어요`}</Text> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DescriptionSection; |
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 @@ | ||
export {default as DescriptionSection} from './DescriptionSection'; |
Oops, something went wrong.