-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: extract css from Badge component (#195)
- Loading branch information
1 parent
a0d4205
commit 68be39a
Showing
7 changed files
with
32 additions
and
25 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,6 +1,12 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './styles.module.css'; | ||
import stylesGeneric from '../styles.module.css'; | ||
|
||
export default function EarlyBadge(): JSX.Element { | ||
return <span className={styles.badge}>Early availabilty</span>; | ||
return ( | ||
<span className={clsx(stylesGeneric.badge, styles.badge)}> | ||
Early availabilty | ||
</span> | ||
); | ||
} |
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,6 +1,12 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './styles.module.css'; | ||
import stylesGeneric from '../styles.module.css'; | ||
|
||
export default function LimitedBadge(): JSX.Element { | ||
return <span className={styles.badge}>Limited availabilty</span>; | ||
return ( | ||
<span className={clsx(stylesGeneric.badge, styles.badge)}> | ||
Limited availabilty | ||
</span> | ||
); | ||
} |
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,6 +1,8 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './styles.module.css'; | ||
import stylesGeneric from '../styles.module.css'; | ||
|
||
export default function ProBadge(): JSX.Element { | ||
return <span className={styles.badge}>pro</span>; | ||
return <span className={clsx(stylesGeneric.badge, styles.badge)}>pro</span>; | ||
} |
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,15 @@ | ||
.badge { | ||
border-radius: var(--badge-radius); | ||
font-weight: 400; | ||
text-transform: uppercase; | ||
margin: 0; | ||
padding: 4px 8px; | ||
font-size: 80%; | ||
vertical-align: middle; | ||
} | ||
|
||
h1 .badge, | ||
h2 .badge, | ||
h3 .badge { | ||
font-size: 43%; | ||
} |