-
Notifications
You must be signed in to change notification settings - Fork 0
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 #56 from invariant-labs/thank-you-modal
create thank you modal
- Loading branch information
Showing
13 changed files
with
226 additions
and
38 deletions.
There are no files selected for viewing
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,54 @@ | ||
import { Box, Button, Typography } from '@material-ui/core' | ||
import useStyles from './style' | ||
import icons from '@static/icons' | ||
import { social } from '@static/links' | ||
|
||
interface Props { | ||
hideModal: () => void | ||
} | ||
|
||
export const ThankYouModal: React.FC<Props> = ({ hideModal }) => { | ||
const classes = useStyles() | ||
|
||
return ( | ||
<> | ||
<Box className={classes.background}></Box> | ||
<Box className={classes.container}> | ||
<Box className={classes.gradient}> | ||
<img className={classes.eclipseIcon} src={icons.eclipse} alt='Eclipse icon' /> | ||
{/* @ts-expect-error */} | ||
<Box display='flex' flexDirection='column' alignItems='center' sx={{ gap: 16 }}> | ||
<Typography className={classes.title}>Thank you</Typography> | ||
<Typography className={classes.lowerTitle}> | ||
for using Invariant Faucet on Eclipse! | ||
</Typography> | ||
</Box> | ||
<Typography className={classes.description}> | ||
We are building much more on Eclipse right now! 👀 <br /> | ||
To stay updated, follow us on our social media. | ||
</Typography> | ||
{/* @ts-expect-error */} | ||
<Box display='flex' flexDirection='column' alignItems='center' sx={{ gap: 16 }}> | ||
<Typography className={classes.lowerTitle}>Join us here!</Typography> | ||
{/* @ts-expect-error */} | ||
<Box display='flex' sx={{ gap: 24 }}> | ||
<a href={social.discord} target='_blank'> | ||
<img src={icons.circleDiscord} alt='Discord in circle icon' /> | ||
</a> | ||
<a href={social.telegram} target='_blank'> | ||
<img src={icons.circleTelegram} alt='Telegram in circle icon' /> | ||
</a> | ||
</Box> | ||
<Typography className={classes.description}>and don't forget to</Typography> | ||
<Button className={classes.button} onClick={() => window.open(social.x, '_blank')}> | ||
Follow us on X! | ||
</Button> | ||
</Box> | ||
<Button className={classes.transparentButton} disableRipple onClick={hideModal}> | ||
Close | ||
</Button> | ||
</Box> | ||
</Box> | ||
</> | ||
) | ||
} |
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,94 @@ | ||
import { makeStyles } from '@material-ui/core' | ||
import { colors, typography } from '@static/theme' | ||
|
||
const useStyles = makeStyles(() => ({ | ||
background: { | ||
background: colors.invariant.black, | ||
position: 'absolute', | ||
top: 0, | ||
bottom: 0, | ||
left: 0, | ||
right: 0, | ||
zIndex: 51, | ||
opacity: 0.7 | ||
}, | ||
container: { | ||
width: 544, | ||
borderRadius: 24, | ||
background: colors.invariant.component, | ||
position: 'absolute', | ||
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
zIndex: 52 | ||
}, | ||
title: { | ||
fontSize: 72, | ||
lineHeight: '72px', | ||
color: colors.invariant.pink, | ||
letterSpacing: '-0.12rem' | ||
}, | ||
lowerTitle: { | ||
color: colors.white.main, | ||
letterSpacing: '-0.06rem', | ||
...typography.heading1 | ||
}, | ||
description: { | ||
fontSize: 20, | ||
lineHeight: '28px', | ||
color: colors.invariant.textGrey, | ||
letterSpacing: '-0.03rem', | ||
fontWeight: 400, | ||
textAlign: 'center' | ||
}, | ||
button: { | ||
width: 480, | ||
height: 40, | ||
background: colors.invariant.greenLinearGradient, | ||
color: colors.invariant.dark, | ||
borderRadius: 12, | ||
textTransform: 'none', | ||
letterSpacing: '-0.03rem', | ||
...typography.body1, | ||
|
||
'&:hover': { | ||
background: colors.invariant.greenLinearGradientOpacity | ||
} | ||
}, | ||
transparentButton: { | ||
width: 480, | ||
backgroundColor: 'transparent', | ||
color: colors.invariant.textGrey, | ||
borderRadius: 12, | ||
textTransform: 'none', | ||
letterSpacing: '-0.03rem', | ||
textDecoration: 'underline', | ||
...typography.caption2, | ||
|
||
'&:hover': { | ||
backgroundColor: 'transparent', | ||
textDecoration: 'underline', | ||
color: colors.white.main | ||
} | ||
}, | ||
eclipseIcon: { | ||
position: 'absolute', | ||
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
zIndex: -1, | ||
opacity: 0.1 | ||
}, | ||
gradient: { | ||
borderRadius: 24, | ||
padding: 32, | ||
background: | ||
'radial-gradient(circle at top, rgba(239, 132, 245, 0.25), rgba(239, 132, 245, 0)), radial-gradient(circle at bottom, rgba(46, 224, 154, 0.25), rgba(46, 224, 154, 0))', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
gap: 32 | ||
} | ||
})) | ||
|
||
export default useStyles |
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
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
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.
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
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