Skip to content

Commit

Permalink
Merge branch 'placeholder' of https://github.com/GTZ-STUDIO/LvlUp.gg
Browse files Browse the repository at this point in the history
…into placeholder
  • Loading branch information
NicBG committed Feb 24, 2024
2 parents 0be1a0d + 9e0c006 commit 7e0d504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
6 changes: 2 additions & 4 deletions lvlgg_frontend/src/Components/ExplorePage.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import React from 'react'
import '../App.css'
import {Button} from './Button'
import './ExplorePage.css'


function ExplorePage() {
return (
<div className='explore-container'>
<video src="/videos/video-6.mp4" autoPlay loop muted />

<video src="/videos/video-6.mp4" autoPlay loop muted />
</div>
)
}

export default ExplorePage
export default ExplorePage
13 changes: 1 addition & 12 deletions lvlgg_frontend/src/Components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,12 @@ import { AuthContext } from '../Contexts/AuthContext';

function Navbar() {
const [click, setClick] = useState(false)
const [button, setButton] = useState(true)
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
const { isSignedIn, setIsSignedIn } = useContext(AuthContext);

const handleClick = () => setClick(!click)
const closeMobileMenu = () => setClick(false)

const showButton = () => {
if(window.innerWidth <= 960) {
setButton(false)
} else {
setButton(true)
}
};

const handleDropDown = () => {
setIsDropdownOpen(!isDropdownOpen);
};
Expand All @@ -33,8 +24,6 @@ const handleSignOut = () => {
setIsSignedIn(false);
};

window.addEventListener('resize', showButton);

return (
<>
<nav className='navbar'>
Expand Down Expand Up @@ -84,4 +73,4 @@ window.addEventListener('resize', showButton);
)
}

export default Navbar
export default Navbar

0 comments on commit 7e0d504

Please sign in to comment.