-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tangle-dapp): Add restake banner
- Loading branch information
1 parent
dd777ad
commit 417639a
Showing
7 changed files
with
80 additions
and
123 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
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
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
56 changes: 56 additions & 0 deletions
56
libs/tangle-shared-ui/src/components/blueprints/RestakeBanner.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,56 @@ | ||
import { ArrowRight } from '@webb-tools/icons'; | ||
import Button from '@webb-tools/webb-ui-components/components/buttons/Button'; | ||
import { Typography } from '@webb-tools/webb-ui-components/typography/Typography'; | ||
import { FC } from 'react'; | ||
import { twMerge } from 'tailwind-merge'; | ||
import './top-banner.css'; | ||
|
||
export type RestakeBannerProps = { | ||
title: string; | ||
description: string; | ||
buttonText: string; | ||
buttonHref: string; | ||
}; | ||
|
||
const RestakeBanner: FC<RestakeBannerProps> = ({ | ||
title, | ||
description, | ||
buttonText, | ||
buttonHref, | ||
}) => { | ||
return ( | ||
<div | ||
className={twMerge( | ||
'px-6 py-9 rounded-xl bg-center bg-cover bg-no-repeat bg-top-banner', | ||
)} | ||
> | ||
<div className="max-w-[500px] space-y-6"> | ||
<div className="space-y-3"> | ||
<Typography variant="h4" className="text-mono-0"> | ||
{title} | ||
</Typography> | ||
|
||
<Typography | ||
variant="body1" | ||
className="text-mono-60 dark:text-mono-100" | ||
> | ||
{description} | ||
</Typography> | ||
</div> | ||
|
||
<Button | ||
variant="link" | ||
href={buttonHref} | ||
target="_blank" | ||
rightIcon={ | ||
<ArrowRight size="lg" className="fill-current dark:fill-current" /> | ||
} | ||
> | ||
{buttonText} | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default RestakeBanner; |
37 changes: 0 additions & 37 deletions
37
libs/tangle-shared-ui/src/components/blueprints/TopBanner.tsx
This file was deleted.
Oops, something went wrong.
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 +1,4 @@ | ||
export const BLUEPRINT_DOCS = 'https://docs.tangle.tools/developers/blueprints'; | ||
export const BLUEPRINT_DOCS_LINK = | ||
'https://docs.tangle.tools/developers/blueprints'; | ||
export const OPERATOR_JOIN_DOCS_LINK = | ||
'https://docs.tangle.tools/restake/join_operator/join'; |