Skip to content

Commit

Permalink
feat: Recovery banner (#256)
Browse files Browse the repository at this point in the history
* feat: add Recovery banner in Wallet page

* change button copy

* update blog URL

* bump version
  • Loading branch information
DiogoSoaress authored Dec 7, 2023
1 parent aea87d0 commit 734ec2c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "safe-homepage",
"homepage": "https://github.com/safe-global/safe-homepage",
"version": "1.3.6",
"version": "1.3.7",
"scripts": {
"build": "next build && next export",
"lint": "tsc && next lint",
Expand Down
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 more",
"href": "https://safe.mirror.xyz/WxKSxD9J1bRI-SDOuDvAAIezwVrvWWkpuwuzcLDPSmk",
"variant": "link"
}
],
"backgroundImage": "/images/Wallet/buoy.png",
"component": "common/BannerCta"
},
{
"variant": "3-columns",
"title": "Your keys. Your coins",
Expand Down

0 comments on commit 734ec2c

Please sign in to comment.