mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
put a beta badge on it
This commit is contained in:
parent
acfa0b8d06
commit
32d637c203
12
src/components/atoms/Badge.module.css
Normal file
12
src/components/atoms/Badge.module.css
Normal file
@ -0,0 +1,12 @@
|
||||
.badge {
|
||||
display: inline-block;
|
||||
font-size: var(--font-size-mini);
|
||||
font-weight: var(--font-weight-bold);
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
padding: 0.1rem 0.2rem;
|
||||
border-radius: var(--border-radius);
|
||||
color: var(--brand-white);
|
||||
background: var(--brand-purple);
|
||||
vertical-align: top;
|
||||
}
|
8
src/components/atoms/Badge.stories.tsx
Normal file
8
src/components/atoms/Badge.stories.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import Badge from './Badge'
|
||||
|
||||
export default {
|
||||
title: 'Atoms/Badge'
|
||||
}
|
||||
|
||||
export const Default = () => <Badge label="New" />
|
12
src/components/atoms/Badge.tsx
Normal file
12
src/components/atoms/Badge.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import React, { ReactElement } from 'react'
|
||||
import styles from './Badge.module.css'
|
||||
|
||||
export default function Badge({
|
||||
label,
|
||||
className
|
||||
}: {
|
||||
label: string
|
||||
className?: string
|
||||
}): ReactElement {
|
||||
return <span className={`${styles.badge} ${className}`}>{label}</span>
|
||||
}
|
@ -7,6 +7,7 @@ import { useSiteMetadata } from '../../hooks/useSiteMetadata'
|
||||
import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo.svg'
|
||||
import Container from '../atoms/Container'
|
||||
import UserPreferences from './UserPreferences'
|
||||
import Badge from '../atoms/Badge'
|
||||
|
||||
const Wallet = loadable(() => import('./Wallet'))
|
||||
|
||||
@ -38,7 +39,9 @@ export default function Menu(): ReactElement {
|
||||
<Container>
|
||||
<Link to="/" className={styles.logoUnit}>
|
||||
<Logo />
|
||||
<h1 className={styles.title}>{siteTitle}</h1>
|
||||
<h1 className={styles.title}>
|
||||
{siteTitle} <Badge label="beta" />
|
||||
</h1>
|
||||
</Link>
|
||||
|
||||
<ul className={styles.navigation}>
|
||||
|
Loading…
Reference in New Issue
Block a user