1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-07-22 04:57:30 +02:00
ntfy/web/src/components/AvatarBox.jsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
599 B
React
Raw Normal View History

2022-12-21 19:19:07 +01:00
import * as React from "react";
2023-06-26 23:34:22 +02:00
import { Avatar, Box, styled } from "@mui/material";
2023-02-11 20:13:10 +01:00
import logo from "../img/ntfy-filled.svg";
2022-12-21 19:19:07 +01:00
2023-06-26 23:34:22 +02:00
const AvatarBoxContainer = styled(Box)`
display: flex;
flex-grow: 1;
justify-content: center;
flex-direction: column;
align-content: center;
align-items: center;
height: 100dvh;
max-width: min(400px, 90dvw);
margin: auto;
`;
2022-12-21 19:19:07 +01:00
const AvatarBox = (props) => (
2023-06-26 23:34:22 +02:00
<AvatarBoxContainer>
2022-12-21 19:19:07 +01:00
<Avatar sx={{ m: 2, width: 64, height: 64, borderRadius: 3 }} src={logo} variant="rounded" />
{props.children}
2023-06-26 23:34:22 +02:00
</AvatarBoxContainer>
2022-12-21 19:19:07 +01:00
);
export default AvatarBox;