-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into refactor/1030-react-intl
- Loading branch information
Showing
65 changed files
with
418 additions
and
396 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.ArticleSectionHeading { | ||
margin-bottom: 1rem; | ||
font-size: 13px; | ||
color: var(--black-600); | ||
font-weight: 600; | ||
text-transform: uppercase; | ||
} |
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 React from 'react' | ||
|
||
import './ArticleSectionHeading.css' | ||
|
||
interface Props { | ||
children: React.ReactText | ||
} | ||
|
||
export default function ArticleSectionHeading({ children }: Props) { | ||
return <h2 className="ArticleSectionHeading">{children}</h2> | ||
} |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.Text { | ||
font-stretch: normal; | ||
letter-spacing: 0.3px; | ||
} | ||
|
||
.Text.Text--size-xs { | ||
font-size: 11px; | ||
line-height: 16px; | ||
} | ||
.Text.Text--size-sm { | ||
font-size: 13px; | ||
line-height: 18px; | ||
} | ||
.Text.Text--size-md { | ||
font-size: 15px; | ||
line-height: 24px; | ||
} | ||
.Text.Text--size-lg { | ||
font-size: 17px; | ||
line-height: 26px; | ||
} | ||
.Text.Text--size-xl { | ||
font-size: 21px; | ||
line-height: 1.81px; | ||
} | ||
|
||
.Text.Text--weight-normal { | ||
font-weight: 300; | ||
} | ||
.Text.Text--weight-semi-bold { | ||
font-weight: 400; | ||
} | ||
.Text.Text--weight-bold { | ||
font-weight: 700; | ||
} | ||
|
||
.Text.Text--color-default { | ||
color: var(--text); | ||
} | ||
.Text.Text--color-primary { | ||
color: var(--primary); | ||
} | ||
.Text.Text--color-secondary { | ||
color: var(--secondary-text); | ||
} | ||
|
||
.Text.Text--style-normal { | ||
font-style: normal; | ||
} | ||
.Text.Text--style-italic { | ||
font-style: italic; | ||
} |
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,47 @@ | ||
import React from 'react' | ||
|
||
import classNames from 'classnames' | ||
|
||
import './Text.css' | ||
|
||
const DEFAULT_COLOR: TextColor = 'default' | ||
const DEFAULT_FONT_WEIGHT: FontWeight = 'normal' | ||
const DEFAULT_FONT_SIZE: FontSize = 'md' | ||
const DEFAULT_FONT_STYLE: FontStyle = 'normal' | ||
type FontSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | ||
type FontWeight = 'bold' | 'semi-bold' | 'normal' | ||
type TextColor = 'default' | 'primary' | 'secondary' | ||
type FontStyle = 'normal' | 'italic' | ||
|
||
interface Props { | ||
children?: React.ReactNode | ||
className?: string | ||
size?: FontSize | ||
weight?: FontWeight | ||
color?: TextColor | ||
style?: FontStyle | ||
} | ||
|
||
export default function Text({ | ||
children, | ||
size = DEFAULT_FONT_SIZE, | ||
weight = DEFAULT_FONT_WEIGHT, | ||
color = DEFAULT_COLOR, | ||
style = DEFAULT_FONT_STYLE, | ||
className, | ||
}: Props) { | ||
return ( | ||
<p | ||
className={classNames( | ||
'Text', | ||
`Text--size-${size}`, | ||
`Text--weight-${weight}`, | ||
`Text--color-${color}`, | ||
`Text--style-${style}`, | ||
className | ||
)} | ||
> | ||
{children} | ||
</p> | ||
) | ||
} |
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
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
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
Oops, something went wrong.