Skip to content

Commit

Permalink
added navbar logo toggle logic (tentative)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaMan committed Sep 3, 2021
1 parent 0f16ac5 commit 04a59aa
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import React from 'react';
import React, { useState } from 'react';
import NavbarLogo from './images/NavbarLogo.png';
// import NavbarLogo2 from './images/NavbarLogo2.png';
// import LogoToggle from './music/LogoToggle.mp3'

const Navbar = (props) => {
const { name, score, start } = props;
// const [ oldLogo, setOldLogo] = useState(false);

// const toggleLogo = () => {
// setOldLogo(!oldLogo)
// const toggleJingle = new Audio(LogoToggle);
// toggleJingle.play();
// }
return (
<div className="navbar">
<img src={NavbarLogo} alt="Logo" />
Expand Down
Binary file added src/components/images/NavbarLogo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/images/NavbarLogo2.png:Zone.Identifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://cdn2.steamgriddb.com/file/sgdb-cdn/icon/c133fb1bb634af68c5088f3438848bfd.png
HostUrl=https://cdn2.steamgriddb.com/file/sgdb-cdn/icon/c133fb1bb634af68c5088f3438848bfd.png
Binary file added src/components/music/LogoToggle.mp3
Binary file not shown.
4 changes: 4 additions & 0 deletions src/components/music/LogoToggle.mp3:Zone.Identifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=about:client
HostUrl=https://vgmsite.com/soundtracks/banjo-kazooie-s-great-adventure-complete-sound-version/kfjhnkzm/4-26%20Collect%20Extra%20Life.mp3

0 comments on commit 04a59aa

Please sign in to comment.