init: add fuse-react v8.3.5 skeleton

This commit is contained in:
2023-05-30 21:07:44 +01:00
commit 3a760d2646
543 changed files with 102541 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
import { styled } from '@mui/material/styles';
import Avatar from '@mui/material/Avatar';
import Typography from '@mui/material/Typography';
import { useSelector } from 'react-redux';
import { selectUser } from 'app/store/userSlice';
const Root = styled('div')(({ theme }) => ({
'& .username, & .email': {
transition: theme.transitions.create('opacity', {
duration: theme.transitions.duration.shortest,
easing: theme.transitions.easing.easeInOut,
}),
},
'& .avatar': {
background: theme.palette.background.default,
transition: theme.transitions.create('all', {
duration: theme.transitions.duration.shortest,
easing: theme.transitions.easing.easeInOut,
}),
bottom: 0,
'& > img': {
borderRadius: '50%',
},
},
}));
function UserNavbarHeader(props) {
const user = useSelector(selectUser);
return (
<Root className="user relative flex flex-col items-center justify-center p-16 pb-14 shadow-0">
<div className="flex items-center justify-center mb-24">
<Avatar
sx={{
backgroundColor: 'background.paper',
color: 'text.secondary',
}}
className="avatar text-32 font-bold w-96 h-96"
src={user.data.photoURL}
alt={user.data.displayName}
>
{user.data.displayName.charAt(0)}
</Avatar>
</div>
<Typography className="username text-14 whitespace-nowrap font-medium">
{user.data.displayName}
</Typography>
<Typography className="email text-13 whitespace-nowrap font-medium" color="text.secondary">
{user.data.email}
</Typography>
</Root>
);
}
export default UserNavbarHeader;