-
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.
Merge pull request #1354 from scroll-tech/canvas-talent-badges
feat: canvas talent badges
- Loading branch information
Showing
8 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { Box, Stack, SvgIcon, Typography } from "@mui/material" | ||
|
||
import { ReactComponent as ExternalLinkSvg } from "@/assets/svgs/canvas-badge/external-link.svg" | ||
import { ReactComponent as PassportSvg } from "@/assets/svgs/canvas-badge/passport-logo.svg" | ||
import SectionWrapper from "@/components/SectionWrapper" | ||
import Button from "@/pages/canvas/components/Button" | ||
|
||
const FeaturedBadges = () => { | ||
return ( | ||
<SectionWrapper dark sx={{ pt: ["3.2rem", "7.2rem"] }}> | ||
<Box> | ||
<Typography sx={{ fontSize: ["2.4rem", "4.8rem"], lineHeight: ["3.6rem", "5.6rem"], fontWeight: 500, color: "primary.contrastText" }}> | ||
Featured badges | ||
</Typography> | ||
<Box | ||
sx={{ | ||
mt: ["1.6rem", "2.4rem"], | ||
height: ["auto", "auto", "41rem", "38rem"], | ||
width: "100%", | ||
aspectRatio: ["320/560", "320/560", "unset"], | ||
p: ["2.4rem 1.6rem", "5rem 4.8rem"], | ||
borderRadius: ["2rem", "2rem", "2.5rem"], | ||
background: [ | ||
"url(/imgs/canvas-badge/featured-badges-bg-mobile.webp) bottom center / 100% auto no-repeat", | ||
"url(/imgs/canvas-badge/featured-badges-bg-mobile.webp) bottom center / 100% auto no-repeat", | ||
"url(/imgs/canvas-badge/featured-badges-bg.webp) center right / auto 100% no-repeat", | ||
], | ||
}} | ||
> | ||
<Stack direction="column" gap={["1.6rem", "2.4rem"]}> | ||
<SvgIcon sx={{ width: ["71px", "147px"], height: "auto" }} component={PassportSvg} inheritViewBox></SvgIcon> | ||
<Typography sx={{ fontSize: ["2rem", "4rem"], fontWeight: 500, lineHeight: ["3.2rem", "4.8rem"], color: "primary.contrastText" }}> | ||
Show your ZK talent | ||
</Typography> | ||
<Typography | ||
sx={{ | ||
fontSize: ["1.6rem", "2.4rem"], | ||
lineHeight: ["2.4rem", "3.6rem"], | ||
color: "primary.contrastText", | ||
maxWidth: ["100%", "100%", "42rem", "57.4rem"], | ||
}} | ||
> | ||
Developer empowerment through onchain attestation. Mint your ZK privacy, infra or rollup talent badge! | ||
</Typography> | ||
<Button | ||
href="https://app.passport.xyz/#/campaign/scroll-developer" | ||
target="_blank" | ||
color="white" | ||
variant="contained" | ||
sx={{ borderRadius: "0.8rem", width: ["20rem", "21.2rem"], height: "4.8rem !important", padding: 0 }} | ||
> | ||
View details <SvgIcon sx={{ fontSize: "1.2rem", ml: "8px" }} component={ExternalLinkSvg} inheritViewBox></SvgIcon> | ||
</Button> | ||
</Stack> | ||
</Box> | ||
</Box> | ||
</SectionWrapper> | ||
) | ||
} | ||
|
||
export default FeaturedBadges |
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