Skip to content

Commit

Permalink
feat: journeyentrance 컴포넌트 스타일 오버라이딩 가능하도록 수정, about 링크 버튼 노출 props 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
YOOJS1205 committed Apr 20, 2024
1 parent 68a7aed commit ba18a3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions src/components/Main/JourneyEntrance.tsx
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};
`;
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Root() {
height={780}
color={'blue'}
/>
<JourneyEntrance />
<JourneyEntrance hasLinkButton />
<RecruitEntrance />
<ProjectCarousel />
<Ending />
Expand Down

0 comments on commit ba18a3b

Please sign in to comment.