-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add fluo devnet launch banner * Small fix, update guide link * Update link label * Fix PR UI comments
- Loading branch information
1 parent
1228849
commit 6abc383
Showing
7 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
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
89 changes: 89 additions & 0 deletions
89
src/@demex-info/layout/MainLayout/components/DevnetPromoBanner/DevnetPromoBanner.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,89 @@ | ||
import { Box, Button, makeStyles, Theme, Typography, useMediaQuery, useTheme } from "@material-ui/core"; | ||
import React from "react"; | ||
|
||
import DevnetPromoBackground from "@demex-info/assets/background/DevnetPromo.png"; | ||
import DevnetPromoBackgroundMobile from "@demex-info/assets/background/DevnetPromoMobile.png"; | ||
import { StaticLinks } from "@demex-info/constants"; | ||
|
||
const DevnetPromoBanner: React.FC = () => { | ||
const classes = useStyles(); | ||
const theme = useTheme(); | ||
const isMobile = useMediaQuery(theme.breakpoints.down("sm")); | ||
|
||
return ( | ||
<Box className={classes.bannerContainer}> | ||
<Typography className={classes.bannerText}>Try Perp Pools on our Incentivized Public Devnet! 🔥</Typography> | ||
<Box className={classes.bannerButtonGroup}> | ||
<Button | ||
variant="contained" | ||
href={StaticLinks.FluoDocs.DevnetLaunch} | ||
target="_blank" | ||
className={classes.bannerButton} | ||
> | ||
Try Now | ||
</Button> | ||
<Button | ||
variant="outlined" | ||
href={StaticLinks.FluoDocs.PublicDevnet} | ||
target="_blank" | ||
className={classes.bannerButtonOutlined} | ||
> | ||
{isMobile ? "Guide" : "Learn More"} | ||
</Button> | ||
<Button | ||
variant="outlined" | ||
href={StaticLinks.FluoDocs.Airdrop} | ||
target="_blank" | ||
className={classes.bannerButtonOutlined} | ||
> | ||
{isMobile ? "Airdrop" : "Check Airdrop Eligibility"} | ||
</Button> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
|
||
const useStyles = makeStyles((theme: Theme) => ({ | ||
bannerContainer: { | ||
backgroundColor: theme.palette.background.secondary, | ||
backgroundImage: `url(${DevnetPromoBackground})`, | ||
color: theme.palette.text.primary, | ||
padding: theme.spacing(1.5), | ||
display: "flex", | ||
gap: "8px", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
borderBottom: `1px solid ${theme.palette.divider}`, | ||
zIndex: 1100, //zIndex for menu drawer is 1200 | ||
[theme.breakpoints.down("sm")]: { | ||
backgroundImage: `url(${DevnetPromoBackgroundMobile})`, | ||
flexDirection: "column", | ||
padding: theme.spacing(2, 1.5), | ||
}, | ||
}, | ||
bannerText: { | ||
...theme.typography.body2, | ||
textAlign: "center", | ||
[theme.breakpoints.down("sm")]: { | ||
...theme.typography.body3, | ||
}, | ||
}, | ||
bannerButtonGroup: { | ||
display: "flex", | ||
gap: "8px", | ||
}, | ||
bannerButton: { | ||
"& .MuiButton-label": { | ||
...theme.typography.title3, | ||
}, | ||
}, | ||
bannerButtonOutlined: { | ||
border: `1px solid ${theme.palette.text.disabled}!important`, | ||
"& .MuiButton-label": { | ||
...theme.typography.title3, | ||
}, | ||
}, | ||
})); | ||
|
||
export default DevnetPromoBanner; |
1 change: 1 addition & 0 deletions
1
src/@demex-info/layout/MainLayout/components/DevnetPromoBanner/index.ts
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 @@ | ||
export { default as DevnetPromoBanner } from "./DevnetPromoBanner"; |
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