-
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
37f5c2b
commit e8a9bf7
Showing
4 changed files
with
77 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> | ||
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> | ||
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" /> | ||
|
||
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" /> | ||
<title>Elite-SE | Sexy</title> | ||
</head> | ||
|
||
<title>Elite-SE | Sexy</title> | ||
</head> | ||
|
||
<body> | ||
<!-- React root container dom element --> | ||
<div id="root" /> | ||
<noscript>You need to enable javascript to be able to use this WebApp</noscript> | ||
</body> | ||
|
||
</html> | ||
<body style="margin: 0"> | ||
<!-- React root container dom element --> | ||
<div id="root" /> | ||
<noscript>You need to enable javascript to be able to use this WebApp</noscript> | ||
</body> | ||
</html> |
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