70 lines
1.7 KiB
JavaScript
70 lines
1.7 KiB
JavaScript
import * as React from 'react';
|
|
import AppBar from '@mui/material/AppBar';
|
|
import Box from '@mui/material/Box';
|
|
import Toolbar from '@mui/material/Toolbar';
|
|
import Typography from '@mui/material/Typography';
|
|
import Container from '@mui/material/Container';
|
|
import Avatar from '@mui/material/Avatar';
|
|
|
|
|
|
|
|
|
|
const MyAppBar = () => {
|
|
|
|
return (
|
|
<AppBar position="static"
|
|
color='secondary'
|
|
>
|
|
<Container maxWidth="xl">
|
|
<Toolbar disableGutters>
|
|
<Box sx={{ flexGrow:1 }} />
|
|
<Avatar src="/logo.png" sx={{ display: { xs: 'none', md: 'flex' }, mr: 2 }} />
|
|
<Typography
|
|
|
|
variant="h5"
|
|
noWrap
|
|
component="a"
|
|
href=""
|
|
sx={{
|
|
mr: 2,
|
|
display: { xs: 'none', md: 'flex' },
|
|
flexGrow: 1,
|
|
fontFamily: 'monospace',
|
|
fontWeight: 700,
|
|
letterSpacing: '.3rem',
|
|
color: 'inherit',
|
|
textDecoration: 'none',
|
|
}}
|
|
>
|
|
Enrekang Kurir
|
|
</Typography>
|
|
<Avatar src="/logo.png" sx={{ display: { xs: 'flex', md: 'none' }, mr: 2 }} />
|
|
<Typography
|
|
variant="h5"
|
|
noWrap
|
|
component="a"
|
|
href=""
|
|
sx={{
|
|
mr: 2,
|
|
display: { xs: 'flex', md: 'none' },
|
|
flexGrow: 1,
|
|
fontFamily: 'monospace',
|
|
fontWeight: 700,
|
|
letterSpacing: '.3rem',
|
|
color: 'inherit',
|
|
textDecoration: 'none',
|
|
}}
|
|
>
|
|
Enrekang Kurir
|
|
</Typography>
|
|
|
|
|
|
|
|
</Toolbar>
|
|
</Container>
|
|
</AppBar>
|
|
|
|
);
|
|
};
|
|
export default MyAppBar;
|