-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: antonnell <antonnell.crypto@gmail.com>
- Loading branch information
Showing
4 changed files
with
175 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"main": "shutdownNotice.js" | ||
} |
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,32 @@ | ||
import { Dialog, Typography, Button } from '@material-ui/core'; | ||
import classes from "./shutdownNotice.module.css"; | ||
import PowerSettingsNewIcon from "@material-ui/icons/PowerSettingsNew"; | ||
|
||
export default function shutdownNotice({ close }) { | ||
|
||
return ( | ||
<Dialog fullScreen open={ true } onClose={close} > | ||
<div className={ classes.dialogContainer }> | ||
<div className={classes.warningContainer}> | ||
<PowerSettingsNewIcon className={ classes.warningIcon } /> | ||
<Typography className={classes.para2} align='center'> | ||
This service will no longer be available from 03 April 2022. | ||
</Typography> | ||
<Typography className={classes.para2} align='center'> | ||
The source code is open source, anyone that would like to continue hosting this service is welcome to. | ||
</Typography> | ||
<div className={ classes.buttonsContainer }> | ||
<Button | ||
fullWidth | ||
variant='contained' | ||
size='large' | ||
className={classes.primaryButton } | ||
onClick={close}> | ||
<Typography className={ classes.buttonTextPrimary }>Okay</Typography> | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</Dialog> | ||
) | ||
} |
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,130 @@ | ||
.dialogContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-width: 100vw; | ||
min-height: 100vh; | ||
} | ||
|
||
.warningContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
max-width: 540px; | ||
} | ||
|
||
.warningIcon { | ||
width: 140px !important; | ||
height: 140px !important; | ||
margin-bottom: 30px !important; | ||
font-size: 30px !important; | ||
fill: #646464 !important; | ||
} | ||
|
||
.title1 { | ||
font: normal normal normal 23px/36px Inter !important; | ||
letter-spacing: 0px !important; | ||
} | ||
|
||
.title2 { | ||
font: normal normal bold 29px/36px Inter !important; | ||
letter-spacing: 0px !important; | ||
margin-bottom: 36px !important; | ||
} | ||
|
||
.para1 { | ||
text-align: center; | ||
font: normal normal bold 20px/28px Inter !important; | ||
letter-spacing: 0px !important; | ||
margin-bottom: 33px !important; | ||
} | ||
|
||
.para2 { | ||
font: normal normal normal 16px/26px Inter !important; | ||
letter-spacing: 0px; | ||
color: #646464; | ||
margin-bottom: 32px !important; | ||
} | ||
|
||
.buttonsContainer { | ||
padding: 0px 24px; | ||
} | ||
|
||
.primaryButton { | ||
margin-bottom: 20px !important; | ||
background: transparent linear-gradient(180deg, #1C45F4 0%, #0F1DD3 100%) 0% 0% no-repeat padding-box !important; | ||
min-width: 457px !important; | ||
} | ||
|
||
.secondaryButton { | ||
|
||
} | ||
|
||
.buttonTextPrimary { | ||
font: normal normal bold 16px/19px Inter !important; | ||
letter-spacing: 0px !important; | ||
color: #FFFFFF !important; | ||
text-transform: none; | ||
} | ||
|
||
.buttonTextSecondary { | ||
font: normal normal bold 16px/19px Inter !important; | ||
letter-spacing: 0px !important; | ||
color: #000 !important; | ||
text-transform: none; | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.warningContainer { | ||
max-width: 340px; | ||
} | ||
|
||
.para1 { | ||
font: normal normal bold 16px/28px Inter !important; | ||
} | ||
|
||
.warningIcon { | ||
height: 50px !important; | ||
margin-bottom: 30px !important; | ||
} | ||
|
||
.buttonTextPrimary { | ||
font: normal normal bold 16px/19px Inter !important; | ||
} | ||
|
||
.primaryButton { | ||
margin-bottom: 20px !important; | ||
background: transparent linear-gradient(180deg, #1C45F4 0%, #0F1DD3 100%) 0% 0% no-repeat padding-box !important; | ||
min-width: 320px !important; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 360px) { | ||
.warningContainer { | ||
max-width: 260px; | ||
} | ||
|
||
.para1 { | ||
font: normal normal bold 15px/22px Inter !important; | ||
} | ||
|
||
.para2 { | ||
font: normal normal bold 13px/18px Inter !important; | ||
} | ||
|
||
.warningIcon { | ||
height: 40px !important; | ||
margin-bottom: 20px !important; | ||
} | ||
|
||
.buttonTextPrimary { | ||
font: normal normal bold 13px/16px Inter !important; | ||
} | ||
|
||
.primaryButton { | ||
margin-bottom: 20px !important; | ||
background: transparent linear-gradient(180deg, #1C45F4 0%, #0F1DD3 100%) 0% 0% no-repeat padding-box !important; | ||
min-width: 260px !important; | ||
} | ||
} |
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
310c368
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: