Skip to content

Commit

Permalink
feat: add Recovery banner in Wallet page
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Dec 7, 2023
1 parent aea87d0 commit a5991f0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 4 deletions.
Binary file added public/images/Wallet/buoy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ import layoutCss from '@/components/common/styles.module.css'
import css from './styles.module.css'
import type { BaseBlock } from '@/components/Home/types'

export const BannerCta = ({ title, buttons, caption }: BaseBlock): ReactElement => {
export const BannerCta = ({
title,
buttons,
caption,
backgroundImage,
}: BaseBlock & { backgroundImage: string }): ReactElement => {
return (
<Container className={layoutCss.containerMedium}>
<div className={css.container}>
<div className={css.container} style={{ backgroundImage: `url(${backgroundImage})` }}>
<Chip
label={
<Typography variant="caption" color="text.primary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
padding: 24px 24px 300px;
justify-content: space-between;
margin-bottom: 40px;
background-image: url('/images/robot.png');
background-repeat: no-repeat;
background-size: contain;
background-position: bottom;
Expand Down
3 changes: 2 additions & 1 deletion src/content/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"variant": "link"
}
],
"component": "Core/BannerCta"
"backgroundImage": "/images/robot.png",
"component": "common/BannerCta"
}
]
19 changes: 19 additions & 0 deletions src/content/wallet.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@
],
"component": "Wallet/Intro"
},
{
"title": "Safe <u>RecoveryHub</u>",
"caption": "New",
"buttons": [
{
"text": "Try now",
"href": "https://app.safe.global",
"variant": "button",
"color": "secondary"
},
{
"text": "Read Docs",
"href": "",
"variant": "link"
}
],
"backgroundImage": "/images/Wallet/buoy.png",
"component": "common/BannerCta"
},
{
"variant": "3-columns",
"title": "Your keys. Your coins",
Expand Down

0 comments on commit a5991f0

Please sign in to comment.