feat: logos

This commit is contained in:
Joshua Hsueh 2021-04-11 03:15:59 -04:00
parent 705279d958
commit 9b4476f083
3 changed files with 6 additions and 1 deletions

BIN
public/images/logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1016 KiB

BIN
public/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

View File

@ -5,6 +5,7 @@ import AuthenticationContext from './AuthenticationContext';
export default function Home() { export default function Home() {
const { user, isLoggedIn } = useContext(AuthenticationContext); const { user, isLoggedIn } = useContext(AuthenticationContext);
return ( return (
<div <div
style={{ style={{
@ -40,10 +41,14 @@ export default function Home() {
<br /> <br />
<div className="text-center"> <div className="text-center">
<img <img
id="logo"
alt="Carpool App" alt="Carpool App"
onMouseOver={(e) => (e.currentTarget.src = 'images/logo.gif')}
onMouseOut={(e) => (e.currentTarget.src = 'images/logo.png')}
className="text-center img-fluid" className="text-center img-fluid"
src="images/logo.png" src="images/logo.png"
width="350px" width="500px"
height="750px"
/> />
</div> </div>
<br /> <br />