-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
홈, 해주세요 페이지 레이아웃 및 스타일링 수정
- Loading branch information
Showing
18 changed files
with
61 additions
and
49 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
frontend/src/components/HomeHeaderContent/HomHeaderContent.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,11 @@ | ||
import { useTheme } from '@emotion/react'; | ||
import { PropsWithChildren } from 'react'; | ||
import * as S from './HomeHeaderContent.style'; | ||
|
||
export default function HomeHeaderContent(props: PropsWithChildren) { | ||
const { children } = props; | ||
|
||
const theme = useTheme(); | ||
|
||
return <h1 css={S.logoStyle({ theme })}>{children}</h1>; | ||
} |
5 changes: 5 additions & 0 deletions
5
frontend/src/components/HomeHeaderContent/HomeHeaderContent.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,5 @@ | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
export const logoStyle = (props: { theme: Theme }) => css` | ||
${props.theme.typography.h5} | ||
`; |
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
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,21 +1,20 @@ | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
export const tabStyle = (props: { theme: Theme }) => { | ||
const { theme } = props; | ||
|
||
export const tabStyle = () => { | ||
return css` | ||
display: flex; | ||
gap: 12px; | ||
${theme.typography.s1} | ||
`; | ||
}; | ||
|
||
export const tabItemStyle = (props: { theme: Theme; isTurnedOn: boolean }) => { | ||
const { theme, isTurnedOn } = props; | ||
|
||
return css({ | ||
color: isTurnedOn ? theme.semantic.primary : theme.semantic.disabled, | ||
borderBottom: isTurnedOn ? `2px solid ${theme.semantic.primary}` : 'none', | ||
}); | ||
return css` | ||
${theme.typography.s1} | ||
color: ${isTurnedOn ? theme.semantic.primary : theme.semantic.disabled}; | ||
border-bottom: ${isTurnedOn | ||
? `2px solid ${theme.semantic.primary}` | ||
: 'none'}; | ||
`; | ||
}; |
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
12 changes: 6 additions & 6 deletions
12
frontend/src/layouts/HomeLayout.tsx/HomeHeader/HomeHeader.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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { DISPLAY_MAX_WIDTH } from '@_constants/styles'; | ||
import { css, Theme } from '@emotion/react'; | ||
import { css } from '@emotion/react'; | ||
|
||
export const headerStyle = css` | ||
position: fixed; | ||
top: 0; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2.4rem; | ||
width: 100%; | ||
max-width: ${DISPLAY_MAX_WIDTH}; | ||
padding: 14px 22px; | ||
padding: 14px 22px 0; | ||
background-color: white; | ||
`; | ||
|
||
export const logoStyle = (props: { theme: Theme }) => css` | ||
${props.theme.typography.h5} | ||
`; |
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,14 +1,8 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import * as S from './HomeHeader.style'; | ||
import { useTheme } from '@emotion/react'; | ||
|
||
export default function HomeHeader(props: PropsWithChildren) { | ||
const { children } = props; | ||
const theme = useTheme(); | ||
|
||
return ( | ||
<header css={S.headerStyle}> | ||
<h1 css={S.logoStyle({ theme })}>{children}</h1> | ||
</header> | ||
); | ||
return <header css={S.headerStyle}>{children}</header>; | ||
} |
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,7 +1,9 @@ | ||
import { NAVIGATION_BAR_HEIGHT } from '@_constants/styles'; | ||
import { css } from '@emotion/react'; | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
export const containerStyle = css` | ||
margin-top: 8.6rem; | ||
export const containerStyle = ({ theme }: { theme: Theme }) => css` | ||
min-height: 100vh; | ||
margin-top: 9.6rem; | ||
margin-bottom: ${NAVIGATION_BAR_HEIGHT}; | ||
background-color: ${theme.colorPalette.grey[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
5 changes: 2 additions & 3 deletions
5
frontend/src/layouts/HomeLayout.tsx/HomeMain/HomeMain.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { css, Theme } from '@emotion/react'; | ||
import { css } from '@emotion/react'; | ||
|
||
export const mainStyle = ({ theme }: { theme: Theme }) => css` | ||
export const mainStyle = () => css` | ||
padding: 16px 22px; | ||
background-color: ${theme.colorPalette.grey[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import { useTheme } from '@emotion/react'; | ||
import * as S from './HomeMain.style'; | ||
|
||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function HomeMain(props: PropsWithChildren) { | ||
const { children } = props; | ||
|
||
const theme = useTheme(); | ||
|
||
return <main css={S.mainStyle({ theme })}>{children}</main>; | ||
return <main css={S.mainStyle}>{children}</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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { NAVIGATION_BAR_HEIGHT } from '@_constants/styles'; | ||
import { css } from '@emotion/react'; | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
export const containerStyle = css` | ||
export const containerStyle = ({ theme }: { theme: Theme }) => css` | ||
min-height: 100vh; | ||
margin-top: 5.6rem; | ||
margin-bottom: ${NAVIGATION_BAR_HEIGHT}; | ||
background-color: ${theme.colorPalette.grey[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
5 changes: 2 additions & 3 deletions
5
frontend/src/layouts/PleaseLayout/PleaseMain/PleaseMain.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { css, Theme } from '@emotion/react'; | ||
import { css } from '@emotion/react'; | ||
|
||
export const mainStyle = ({ theme }: { theme: Theme }) => css` | ||
export const mainStyle = () => css` | ||
padding: 16px 22px; | ||
background-color: ${theme.colorPalette.grey[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import { useTheme } from '@emotion/react'; | ||
import * as S from './PleaseMain.style'; | ||
|
||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function PleaseMain(props: PropsWithChildren) { | ||
const { children } = props; | ||
|
||
const theme = useTheme(); | ||
|
||
return <main css={S.mainStyle({ theme })}>{children}</main>; | ||
return <main css={S.mainStyle}>{children}</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