Skip to content

Commit

Permalink
feat: add sponsors to Web3Auth banner
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Dec 19, 2023
1 parent db5704d commit 4b44206
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 4 deletions.
13 changes: 13 additions & 0 deletions public/images/Wallet/web3auth-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/common/Masthead/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ export const Masthead = ({
</Grid>
) : null}
</Grid>
{/* TODO: create a component? */}
{footer ? (
<div className={css.footer}>
{footer?.text ? (
<Typography variant="caption" mr="-14px">
{footer.text}
</Typography>
) : null}
{footer?.logos.map((logo, index) => {
return <img src={logo.src} alt={logo.alt} key={index} />
})}
Expand Down
12 changes: 10 additions & 2 deletions src/components/common/Masthead/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
text-align: center;
background-color: var(--mui-palette-secondary-background);
border-radius: 32px;
padding: 24px;
padding: 24px 24px 80px;
justify-content: space-between;
margin-bottom: 40px;
background-position: right;
Expand Down Expand Up @@ -44,14 +44,20 @@
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
flex-direction: row;
gap: 24px;
width: max-content;
}

.tagline {
color: var(--mui-palette-primary-light);
text-transform: uppercase;
}

@media (min-width: 900px) {
.container {
padding: 68px 104px;
padding: 90px 104px;
border-bottom: 80px;
text-align: left;
}
Expand All @@ -69,6 +75,8 @@
}

.image {
display: flex;
align-items: center;
width: 300px;
}

Expand Down
9 changes: 9 additions & 0 deletions src/content/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
"sm": "/images/Core/safeauth-bg-sm.png",
"md": "/images/Core/safeauth-bg-md.png"
},
"footer": {
"logos": [
{
"src": "/images/Wallet/web3auth-logo.svg",
"alt": "web3auth logo"
}
],
"text": "Powered by"
},
"component": "common/Masthead"
},
{
Expand Down
3 changes: 1 addition & 2 deletions src/content/wallet.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
"src": "/images/Wallet/Coincover-logo.png",
"alt": "Coincover logo"
}
],
"text": "Powered by"
]
},
"component": "common/Masthead"
},
Expand Down

0 comments on commit 4b44206

Please sign in to comment.