2022-03-09 18:00:02 +01:00
|
|
|
import { h, Fragment, VNode } from "preact";
|
|
|
|
import { Divider } from "../mui/Divider";
|
2022-03-11 03:13:10 +01:00
|
|
|
import { Button } from "../mui/Button";
|
2022-03-09 18:00:02 +01:00
|
|
|
import { Typography } from "../mui/Typography";
|
|
|
|
import { Avatar } from "../mui/Avatar";
|
|
|
|
import { Grid } from "../mui/Grid";
|
|
|
|
import { Paper } from "../mui/Paper";
|
2022-03-11 03:13:10 +01:00
|
|
|
import { Icon } from "./styled";
|
|
|
|
import settingsIcon from "../../static/img/settings_black_24dp.svg";
|
|
|
|
// & > a > div.settings-icon {
|
|
|
|
// mask: url(${settingsIcon}) no-repeat center;
|
|
|
|
// background-color: white;
|
|
|
|
// width: 24px;
|
|
|
|
// height: 24px;
|
|
|
|
// margin-left: auto;
|
|
|
|
// margin-right: 8px;
|
|
|
|
// padding: 4px;
|
|
|
|
// }
|
|
|
|
// & > a.active {
|
|
|
|
// background-color: #f8faf7;
|
|
|
|
// color: #0042b2;
|
|
|
|
// font-weight: bold;
|
|
|
|
// }
|
|
|
|
// & > a.active > div.settings-icon {
|
|
|
|
// background-color: #0042b2;
|
|
|
|
// }
|
2022-03-09 18:00:02 +01:00
|
|
|
|
2022-03-11 03:13:10 +01:00
|
|
|
function SignalWifiOffIcon({ ...rest }: any): VNode {
|
|
|
|
return <Icon {...rest} />;
|
2022-03-09 18:00:02 +01:00
|
|
|
}
|
|
|
|
|
2022-03-11 03:13:10 +01:00
|
|
|
export function Banner({}: {}) {
|
2022-03-09 18:00:02 +01:00
|
|
|
return (
|
|
|
|
<Fragment>
|
2022-03-11 03:13:10 +01:00
|
|
|
<Paper elevation={3} /*className={classes.paper}*/>
|
|
|
|
<Grid
|
|
|
|
container
|
|
|
|
// wrap="nowrap"
|
|
|
|
// spacing={10}
|
|
|
|
alignItems="center"
|
|
|
|
columns={3}
|
|
|
|
>
|
|
|
|
<Grid item xs={1}>
|
|
|
|
<Avatar>
|
|
|
|
<SignalWifiOffIcon style={{ backgroundColor: "red" }} />
|
2022-03-09 18:00:02 +01:00
|
|
|
</Avatar>
|
|
|
|
</Grid>
|
2022-03-11 03:13:10 +01:00
|
|
|
<Grid item xs={1}>
|
2022-03-09 18:00:02 +01:00
|
|
|
<Typography>
|
|
|
|
You have lost connection to the internet. This app is offline.
|
|
|
|
</Typography>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2022-03-11 03:13:10 +01:00
|
|
|
<Grid container justifyContent="flex-end" spacing={8} columns={3}>
|
|
|
|
<Grid item xs={1}>
|
2022-03-09 18:00:02 +01:00
|
|
|
<Button color="primary">Turn on wifi</Button>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Paper>
|
|
|
|
<Divider />
|
|
|
|
{/* <CssBaseline /> */}
|
|
|
|
</Fragment>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Banner;
|