fab and containers and stuff
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
|||||||
Badge,
|
Badge,
|
||||||
Box,
|
Box,
|
||||||
Divider,
|
Divider,
|
||||||
|
Fab,
|
||||||
Grid,
|
Grid,
|
||||||
IconButton,
|
IconButton,
|
||||||
Input,
|
Input,
|
||||||
@@ -20,7 +21,7 @@ import {
|
|||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import NirvanaLogo from './NirvanaLogo';
|
import NirvanaLogo from './NirvanaLogo';
|
||||||
import { blueGrey } from '@mui/material/colors';
|
import { blueGrey } from '@mui/material/colors';
|
||||||
import { FiActivity, FiInbox, FiMoreVertical, FiSearch } from 'react-icons/fi';
|
import { FiActivity, FiInbox, FiMoreVertical, FiSearch, FiSun } from 'react-icons/fi';
|
||||||
import KeyboardShortcutLabel from './KeyboardShortcutLabel';
|
import KeyboardShortcutLabel from './KeyboardShortcutLabel';
|
||||||
import { useSnackbar } from 'notistack';
|
import { useSnackbar } from 'notistack';
|
||||||
import { useKey } from 'react-use';
|
import { useKey } from 'react-use';
|
||||||
@@ -184,7 +185,7 @@ export default function Terminal() {
|
|||||||
</Stack>
|
</Stack>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={8} sx={{ backgroundColor: 'white' }}>
|
<Grid item xs={8} sx={{ backgroundColor: 'white', display: 'flex', flexDirection: 'column' }}>
|
||||||
<Stack
|
<Stack
|
||||||
direction={'row'}
|
direction={'row'}
|
||||||
sx={{ py: 2, px: 2, borderBottom: '1px solid', borderBottomColor: blueGrey[100] }}
|
sx={{ py: 2, px: 2, borderBottom: '1px solid', borderBottomColor: blueGrey[100] }}
|
||||||
@@ -192,10 +193,7 @@ export default function Terminal() {
|
|||||||
justifyContent={'flex-start'}
|
justifyContent={'flex-start'}
|
||||||
>
|
>
|
||||||
<Stack spacing={2} direction={'row'} alignItems={'center'}>
|
<Stack spacing={2} direction={'row'} alignItems={'center'}>
|
||||||
<Avatar
|
<Avatar alt={'Arjun Patel'} src="https://mui.com/static/images/avatar/2.jpg" />
|
||||||
alt={'Arjun Patel'}
|
|
||||||
src="https://lh3.googleusercontent.com/ogw/ADea4I6TRqnIptWNP25-iXdusoAHafj-cUPYkO53xKT2_H0=s64-c-mo"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Typography color={'GrayText'} variant="overline">
|
<Typography color={'GrayText'} variant="overline">
|
||||||
{'Viet Phan'}
|
{'Viet Phan'}
|
||||||
@@ -208,6 +206,28 @@ export default function Terminal() {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</Box>
|
</Box>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
|
<Container maxWidth={false} sx={{ position: 'relative', flex: 1 }}>
|
||||||
|
<Container maxWidth="sm">
|
||||||
|
<Stack justifyContent={'flex-start'} alignItems={'center'}>
|
||||||
|
<Typography variant="caption">yesterday</Typography>
|
||||||
|
</Stack>
|
||||||
|
</Container>
|
||||||
|
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
position: 'absolute',
|
||||||
|
zIndex: 10,
|
||||||
|
bottom: 0,
|
||||||
|
right: 0,
|
||||||
|
padding: 3,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Fab color="primary" aria-label="add" size="medium">
|
||||||
|
<FiSun />
|
||||||
|
</Fab>
|
||||||
|
</Box>
|
||||||
|
</Container>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createTheme } from '@mui/material';
|
import { createTheme, experimental_sx as sx } from '@mui/material';
|
||||||
import { blueGrey } from '@mui/material/colors';
|
import { blueGrey } from '@mui/material/colors';
|
||||||
|
|
||||||
export const NirvanaTheme = createTheme({
|
export const NirvanaTheme = createTheme({
|
||||||
@@ -19,6 +19,7 @@ export const NirvanaTheme = createTheme({
|
|||||||
main: '#FFB6B6',
|
main: '#FFB6B6',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
// Name of the component
|
// Name of the component
|
||||||
MuiButtonBase: {
|
MuiButtonBase: {
|
||||||
@@ -28,6 +29,11 @@ export const NirvanaTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiAvatar: {
|
MuiAvatar: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: sx({
|
||||||
|
boxShadow: 1,
|
||||||
|
}),
|
||||||
|
},
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
variant: 'rounded',
|
variant: 'rounded',
|
||||||
},
|
},
|
||||||
@@ -78,5 +84,13 @@ export const NirvanaTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
MuiFab: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: {
|
||||||
|
borderRadius: 5,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user