-
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.
dropdown login stats user profile in navbar navbar component; home component home page new layout Game details page created (#56) User profile page (#43) new styles for the home menu abrs user profile in navbar navbar component; home component home page new layout home page shared navbar new dropdown menu trash update of home css working logic style update lock json
- Loading branch information
Jakub-prog
committed
May 27, 2024
1 parent
5dd6c2b
commit 60789b8
Showing
20 changed files
with
1,060 additions
and
212 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,26 @@ | ||
import './App.scss' | ||
import User from "./User/User"; | ||
import {Link} from "react-router-dom"; | ||
import UserButtons from './User/UserButtons'; | ||
import './App.scss'; | ||
import Navbar from './Navbar'; | ||
import Home from './Home'; | ||
import { useState } from 'react'; | ||
|
||
function App() { | ||
const [isAuthenticated, setIsAuthenticated] = useState(false); | ||
const [isCollapsed, setIsCollapsed] = useState(false); | ||
|
||
|
||
const toggleUserBar = () => { | ||
setIsCollapsed(!isCollapsed); | ||
}; | ||
|
||
return ( | ||
<div className="app"> | ||
<UserButtons/> | ||
|
||
<Navbar isAuthenticated={isAuthenticated} user={null} /> | ||
{/* tutaj przesyla uzytkownika */} | ||
|
||
<div className="title"> | ||
<h1>Bot-Wars</h1> | ||
<div className="login-btns"> | ||
<User isLoggedIn={false}/> | ||
</div> | ||
</div> | ||
<div className="menu-btns"> | ||
<div className="menu-btn"> | ||
<Link to="index.html"> | ||
<button className="btn">Home</button> | ||
</Link> | ||
</div> | ||
<div className="menu-btn"> | ||
<Link to="tournaments/home"> | ||
<button className="btn">Tournaments</button> | ||
</Link> | ||
</div> | ||
<div className="menu-btn"> | ||
<Link to="games"> | ||
<button className="btn">Games</button> | ||
</Link> | ||
</div> | ||
<div className="menu-btn"> | ||
<Link to="about"> | ||
<button className="btn">About</button> | ||
</Link> | ||
</div> | ||
</div> | ||
<Home isAuthenticated={isAuthenticated} /> | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default App | ||
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
Oops, something went wrong.