-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
38 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
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,41 @@ | ||
import styled from "@emotion/styled"; | ||
import { HTMLAttributes, PropsWithChildren } from "react"; | ||
import { color } from "../../styles/colors"; | ||
import { HeaderText } from "./HeaderText"; | ||
import { transparentize } from "polished"; | ||
|
||
const HeaderBackground = styled.div` | ||
max-width: 100vw; | ||
background-image: linear-gradient( | ||
to right, | ||
${color.silkBlueLight}, | ||
${transparentize(0.2, color.silkBlueLight)}, | ||
${transparentize(1, color.silkBlueLight)} | ||
); | ||
background-clip: padding-box; | ||
border-top: 2px solid transparent; | ||
border-bottom: 2px solid transparent; | ||
border-image: linear-gradient( | ||
to right, | ||
${color.goldText}, | ||
${transparentize(0.2, color.goldTextLight)}, | ||
${transparentize(1, color.goldTextLight)} | ||
); | ||
border-image-slice: 1; | ||
min-height: 64px; | ||
padding: 8px 160px 8px 24px; | ||
font-size: 2rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-start; | ||
`; | ||
|
||
interface Props extends HTMLAttributes<HTMLDivElement> {} | ||
|
||
export const Header = ({ children, ...rest }: PropsWithChildren<Props>) => { | ||
return ( | ||
<HeaderBackground {...rest}> | ||
<HeaderText>{children}</HeaderText> | ||
</HeaderBackground> | ||
); | ||
}; |
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,20 @@ | ||
import styled from "@emotion/styled"; | ||
import { color } from "../../styles/colors"; | ||
import { fontFamilies } from "../../styles/fonts"; | ||
|
||
export const HeaderText = styled.span` | ||
${fontFamilies.kimDaegon} | ||
background-color: ${color.goldText}; | ||
background-image: linear-gradient( | ||
to bottom, | ||
${color.goldText}, | ||
${color.goldTextLight} | ||
); | ||
background-size: 80%; | ||
background-repeat: repeat; | ||
background-clip: text; | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
-moz-background-clip: text; | ||
-moz-text-fill-color: transparent; | ||
`; |
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