-
Notifications
You must be signed in to change notification settings - Fork 6
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 #107 from LEEJW1953/fe-main
[Feat] 메인페이지 레이아웃 구현
- Loading branch information
Showing
11 changed files
with
118 additions
and
9 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,4 @@ | ||
export * from './commons/Button'; | ||
export * from './commons/Header'; | ||
export * from './commons/Input'; | ||
export * from './commons/Popover'; |
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 const MAIN_IMAGE = '/src/assets/images/main.png'; |
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 * from './Header'; | ||
export * from './Main'; |
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,54 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
import { vars, fontStyle } from '@/styles'; | ||
|
||
export const container = style({ | ||
position: 'relative', | ||
display: 'flex', | ||
margin: '8.5rem auto', | ||
width: '104rem', | ||
height: '81.7rem', | ||
color: vars.color.grayscale400, | ||
background: vars.color.grayscaleWhite, | ||
}); | ||
|
||
export const login = style({ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}); | ||
|
||
export const mainImage = style({ | ||
width: '69.7rem', | ||
height: '69.7rem', | ||
alignSelf: 'flex-end', | ||
objectFit: 'contain', | ||
}); | ||
|
||
export const text = style([ | ||
fontStyle.sansRegular24, | ||
{ | ||
color: vars.color.grayscale400, | ||
textAlign: 'right', | ||
lineHeight: '3.5rem', | ||
}, | ||
]); | ||
|
||
export const textArea = style({ | ||
position: 'absolute', | ||
right: '0', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'flex-end', | ||
gap: '1.2rem', | ||
}); | ||
|
||
export const title = style([ | ||
fontStyle.poppinsBold96, | ||
{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
textAlign: 'center', | ||
color: vars.color.morakGreen, | ||
}, | ||
]); |
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 { ReactComponent as GoogleIcon } from '@/assets/icons/google.svg'; | ||
import { Button } from '@/components'; | ||
import { MAIN_IMAGE } from '@/constants'; | ||
|
||
import * as styles from './index.css'; | ||
|
||
export function Main() { | ||
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}> | ||
함께라서 더 빛나는 코드의 세계 | ||
<br /> | ||
모락과 함께하세요 | ||
</div> | ||
<div className={styles.login}> | ||
<Button type="button" theme="primary" shape="line" size="large" onClick={() => {}}> | ||
<GoogleIcon /> | ||
Google로 시작하기 | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 @@ | ||
// export * from ""; | ||
export { Main } from './Main'; |
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