-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84fd0ae
commit b1fa0df
Showing
3 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
packages/frontend/src/components/general/NavigationBar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import * as React from 'react'; | ||
import { | ||
AppBar, | ||
Toolbar, | ||
makeStyles, | ||
fade, | ||
IconButton, | ||
Theme, | ||
createStyles, | ||
Typography, | ||
Button, | ||
} from '@material-ui/core'; | ||
import MenuIcon from '@material-ui/icons/Menu'; | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
flexGrow: 1, | ||
}, | ||
menuButton: { | ||
marginRight: theme.spacing(2), | ||
}, | ||
title: { | ||
flexGrow: 1, | ||
}, | ||
}), | ||
); | ||
|
||
export interface NavigationBarProps { | ||
readonly title: string; | ||
} | ||
|
||
export const NavigationBar = (props: NavigationBarProps) => { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<AppBar position={'static'}> | ||
<Toolbar> | ||
<IconButton edge={'start'} className={classes.menuButton} color={'inherit'} aria-label={'open drawer'}> | ||
<MenuIcon /> | ||
</IconButton> | ||
<Typography className={classes.title} variant={'h6'} noWrap> | ||
{props.title} | ||
</Typography> | ||
<Button color={'inherit'}>Login</Button> | ||
</Toolbar> | ||
</AppBar> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters