-
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.
* Buy token link * how to buy joy complete * requested changes * Update packages/ui/src/memberships/components/ProfileComponent.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * requested changes * requested changes * link update --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
- Loading branch information
Showing
4 changed files
with
132 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
78 changes: 78 additions & 0 deletions
78
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,78 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
import { CloseButton } from '@/common/components/buttons' | ||
import { LinkButtonLinkStyles } from '@/common/components/buttons/LinkButtons' | ||
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 | ||
<CustomLinkStyle | ||
as={'a'} | ||
to={''} | ||
href="https://www.mexc.com/exchange/JOYSTREAM_USDT?_from=market" | ||
target="_blank" | ||
size={'medium'} | ||
> | ||
<TextInlineMedium>MEXC</TextInlineMedium> | ||
</CustomLinkStyle> | ||
exchange under "JOYSTREAM" ticker. | ||
</TextMedium> | ||
<TextLink href="https://www.joystream.org/token#earn" 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; | ||
` | ||
const CustomLinkStyle = styled(LinkButtonLinkStyles)` | ||
display: inline-flex; | ||
// margin-left: 2px; | ||
// margin-right: 2px; | ||
` |
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
3eab8e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pioneer-2-storybook – ./
pioneer-2-storybook-git-dev-joystream.vercel.app
pioneer-2-storybook.vercel.app
pioneer-2-storybook-joystream.vercel.app
3eab8e4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pioneer-2 – ./
pioneer-2-git-dev-joystream.vercel.app
pioneer-2-joystream.vercel.app
pioneer-2.vercel.app