-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: journeyentrance 컴포넌트 스타일 오버라이딩 가능하도록 수정, about 링크 버튼 노출 props 추가
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 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 |
---|---|---|
@@ -1,23 +1,28 @@ | ||
import { css } from '@emotion/react'; | ||
import { css, SerializedStyles, Theme } from '@emotion/react'; | ||
|
||
import { LinkButton } from './LinkButton'; | ||
import { Journey } from '../Journey'; | ||
|
||
export function JourneyEntrance() { | ||
interface JorneyEntranceProps { | ||
hasLinkButton: boolean; | ||
style?: SerializedStyles; | ||
} | ||
|
||
export function JourneyEntrance({ hasLinkButton, style }: JorneyEntranceProps) { | ||
return ( | ||
<section css={layoutCss}> | ||
<section css={[layoutCss, style]}> | ||
<Journey /> | ||
<LinkButton color="black" text="ABOUT" href="/about" /> | ||
{hasLinkButton && <LinkButton color="black" text="ABOUT" href="/about" />} | ||
</section> | ||
); | ||
} | ||
|
||
const layoutCss = css` | ||
padding: 80px 0; | ||
const layoutCss = (theme: Theme) => css` | ||
padding: 120px 0; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 80px; | ||
align-items: center; | ||
background-color: white; | ||
background-color: ${theme.colors.lightGray}; | ||
`; |
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