-
Notifications
You must be signed in to change notification settings - Fork 70
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
4 changed files
with
110 additions
and
3 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
66 changes: 66 additions & 0 deletions
66
packages/ui/src/app/pages/Profile/components/BannerSection.tsx
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,66 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
import { CloseButton } from '@/common/components/buttons' | ||
import { Arrow, QuestionIcon } from '@/common/components/icons' | ||
import { RowGapBlock } from '@/common/components/page/PageContent' | ||
import { DefaultTooltip } from '@/common/components/Tooltip' | ||
import { TextInlineMedium, TextMedium } from '@/common/components/typography/Text' | ||
import { Colors } from '@/common/constants' | ||
|
||
interface Props { | ||
setShouldDismissBanner: (bool: boolean) => void | ||
} | ||
|
||
export const BannerSection = ({ setShouldDismissBanner }: Props) => { | ||
return ( | ||
<Banner gap={8}> | ||
<BannerHeader> | ||
<BannerTitle> | ||
<BannerTooltip> | ||
<QuestionIcon /> | ||
</BannerTooltip> | ||
<TextInlineMedium bold={true}>What is Joy Token?</TextInlineMedium> | ||
</BannerTitle> | ||
<CloseButton onClick={() => setShouldDismissBanner(true)} /> | ||
</BannerHeader> | ||
<TextMedium> | ||
JOY token is a native crypto asset of Joystream blockchain. It is used for platform governance, purchasing NFTs, | ||
trading creator tokens, and covering blockchain processing fees. They are listed on{' '} | ||
<a href="https://www.mexc.com/exchange/JOYSTREAM_USDT?_from=market" target="_blank"> | ||
MEXC exchange{' '} | ||
</a> | ||
under "JOYSTREAM" ticker. | ||
</TextMedium> | ||
<TextLink href="https://www.joystream.org/token/" target="_blank"> | ||
<TextInlineMedium bold={true}>Learn how to earn JOY's</TextInlineMedium> <Arrow size={'24'} direction="right" /> | ||
</TextLink> | ||
</Banner> | ||
) | ||
} | ||
const Banner = styled(RowGapBlock)` | ||
padding: 16px; | ||
background-color: ${Colors.Blue[50]}; | ||
` | ||
const BannerHeader = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
` | ||
const BannerTitle = styled.h6` | ||
display: flex; | ||
column-gap: 8px; | ||
` | ||
|
||
const TextLink = styled.a` | ||
color: ${Colors.Blue[500]}; | ||
display: flex; | ||
column-gap: 8px; | ||
width: 213px; | ||
${TextInlineMedium} { | ||
margin: auto 0px; | ||
} | ||
` | ||
const BannerTooltip = styled(DefaultTooltip)` | ||
margin-top: 1px; | ||
` |
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