mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Issue-#944: Add v4 version badge
This commit is contained in:
parent
693f533ed1
commit
95b56577dc
11
src/components/@shared/atoms/Badge.jsx
Normal file
11
src/components/@shared/atoms/Badge.jsx
Normal file
@ -0,0 +1,11 @@
|
||||
import React from 'react'
|
||||
import styles from './Badge.module.scss'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
export default function Badge({ label }) {
|
||||
return <span className={styles.badge}>{label}</span>
|
||||
}
|
||||
|
||||
Badge.propTypes = {
|
||||
label: PropTypes.string
|
||||
}
|
15
src/components/@shared/atoms/Badge.module.scss
Normal file
15
src/components/@shared/atoms/Badge.module.scss
Normal file
@ -0,0 +1,15 @@
|
||||
@import 'variables';
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
font-size: $font-size-mini;
|
||||
font-family: $font-family-base;
|
||||
font-weight: $font-weight-bold;
|
||||
line-height: 1 !important;
|
||||
text-transform: uppercase;
|
||||
padding: 0.2rem;
|
||||
border-radius: $border-radius;
|
||||
color: $brand-white;
|
||||
background: $brand-purple;
|
||||
vertical-align: top;
|
||||
}
|
@ -5,6 +5,7 @@ import Content from '../components/Content'
|
||||
import styles from './HeaderHome.module.scss'
|
||||
import SearchButton from '../components/Search/SearchButton'
|
||||
import ToggleSwitch from './ToggleSwitch'
|
||||
import Badge from './@shared/atoms/Badge'
|
||||
|
||||
const HeaderHome = () => (
|
||||
<StaticQuery
|
||||
@ -25,7 +26,9 @@ const HeaderHome = () => (
|
||||
<header className={styles.header}>
|
||||
<Content>
|
||||
<Logo className={styles.headerLogo} />
|
||||
<h1 className={styles.headerTitle}>{siteTitle}</h1>
|
||||
<h1 className={styles.headerTitle}>
|
||||
{siteTitle} <Badge label="v4" />
|
||||
</h1>
|
||||
<p className={styles.headerDescription}>
|
||||
{siteDescription}
|
||||
<div className={styles.container}>
|
||||
|
Loading…
Reference in New Issue
Block a user