diff options
| author | realtradam <[email protected]> | 2024-04-27 21:18:00 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-04-27 21:18:00 -0400 |
| commit | 3108882fd50308ed1e3d0a587ce2709aa12a6d9e (patch) | |
| tree | 70cbe4582fa9a45b264416bd7b178b71a228f00a /app/javascript/components | |
| parent | 425939bc7d49436dea66dcb88fce2e22ad6e64e4 (diff) | |
| download | gameHolster-3108882fd50308ed1e3d0a587ce2709aa12a6d9e.tar.gz gameHolster-3108882fd50308ed1e3d0a587ce2709aa12a6d9e.zip | |
tailwind and auth tweaks
Diffstat (limited to 'app/javascript/components')
| -rw-r--r-- | app/javascript/components/Home.jsx | 2 | ||||
| -rw-r--r-- | app/javascript/components/Layout.jsx | 56 |
2 files changed, 57 insertions, 1 deletions
diff --git a/app/javascript/components/Home.jsx b/app/javascript/components/Home.jsx index 563ec88..efe3cd5 100644 --- a/app/javascript/components/Home.jsx +++ b/app/javascript/components/Home.jsx @@ -2,7 +2,7 @@ import React from "react"; import { Link } from "react-router-dom"; export default () => ( - <div className="vw-100 vh-100 primary-color d-flex align-items-center justify-content-center"> + <div className="vh-100 primary-color d-flex align-items-center justify-content-center"> <div className="jumbotron jumbotron-fluid bg-transparent"> <div className="container secondary-color"> <h1 className="display-4">Games!</h1> diff --git a/app/javascript/components/Layout.jsx b/app/javascript/components/Layout.jsx new file mode 100644 index 0000000..74568cd --- /dev/null +++ b/app/javascript/components/Layout.jsx @@ -0,0 +1,56 @@ +import React from "react"; +import { Outlet, Link } from "react-router-dom"; + +export default function Layout ({userData}) +{ + //console.log(userData); + //const [userData, setUserData] = useState({ login: "" }); + return ( + <> + <div className="flex flex-row h-screen bg-slate-800 text-slate-100"> + <nav className="flex flex-row h-full w-64 p-4 gap-4 items-center"> + <div className="h-full flex flex-col"> + <div>Logged in as: {userData.login}</div> + <div className="text-4xl py-12">Adam Malczewski</div> + <div className="flex flex-row justify-center w-full block grow"> + <div className="block grow"> + <ul className="navbar-nav"> + <li className="text-center"> + <Link + to="/" + className="hover:text-slate-100/50 underline" + role="button" + > + Home + </Link> + </li> + <li className="text-center"> + <Link + to="/blogs" + className="hover:text-slate-100/50 underline" + role="button" + > + Blog + </Link> + </li> + <li className="text-center"> + <Link + to="/games" + className="hover:text-slate-100/50 underline" + role="button" + > + Games + </Link> + </li> + </ul> + </div> + </div> + </div> + <div className="h-3/4 w-0.5 bg-slate-500 block rounded-full"> + </div> + </nav> + <Outlet /> + </div> +</> + ) +}; |
