-
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
0288f87
commit 2c21e74
Showing
9 changed files
with
38,453 additions
and
11,753 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,22 +1,24 @@ | ||
import React from "react"; | ||
import College from "./College"; | ||
import Header from "./Header"; | ||
import CollegeShow from "./CollegeShow"; | ||
import { Switch, Route, Redirect } from "react-router"; | ||
|
||
function App() { | ||
return ( | ||
<Switch> | ||
<Route path='/colleges'> | ||
<College/> | ||
</Route> | ||
<Route path='colleges/:name'> | ||
<CollegeShow/> | ||
<Route path='/colleges'> | ||
<Header /> | ||
<College /> | ||
</Route> | ||
<Route path='colleges/:name'> | ||
<CollegeShow /> | ||
</Route> | ||
<Route path='/'> | ||
<Redirect to='/colleges'/> | ||
<Redirect to='/colleges' /> | ||
</Route> | ||
</Switch> | ||
) | ||
</Switch> | ||
); | ||
} | ||
|
||
export default App; |
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
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,44 @@ | ||
import React from "react"; | ||
import AppBar from "@material-ui/core/AppBar"; | ||
import imgSrc from "./img/collegereco-logo.png"; | ||
import Toolbar from "@material-ui/core/Toolbar"; | ||
import IconButton from "@material-ui/core/IconButton"; | ||
import Typography from "@material-ui/core/Typography"; | ||
import { makeStyles } from "@material-ui/core/styles"; | ||
import MenuIcon from "@material-ui/icons/Menu"; | ||
import SearchIcon from "@material-ui/icons/Search"; | ||
import MoreIcon from "@material-ui/icons/MoreVert"; | ||
|
||
const useStyles = makeStyles((theme) => ({ | ||
root: { | ||
flexGrow: 1, | ||
width: '100vw' | ||
}, | ||
toolbar: { | ||
minHeight: 128, | ||
alignItems: "flex-center", | ||
justifyContent: "center", | ||
paddingTop: theme.spacing(2), | ||
paddingBottom: theme.spacing(2), | ||
}, | ||
title: { | ||
flexGrow: 1, | ||
alignSelf: "flex-end", | ||
}, | ||
logo: { | ||
height: "100%", | ||
maxWidth: "45%", | ||
}, | ||
})); | ||
|
||
export default function ProminentAppBar() { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<AppBar className={classes.root} position='static'> | ||
<Toolbar className={classes.toolbar}> | ||
<img src={imgSrc} alt='logo' className={classes.logo} /> | ||
</Toolbar> | ||
</AppBar> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.