diff options
| author | realtradam <[email protected]> | 2024-05-15 00:44:53 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-05-15 00:44:53 -0400 |
| commit | d2ad5924bce17e3b07ee0af86a8739559dac3b35 (patch) | |
| tree | 4d7e4384d15e0617a4b380149c29ffaccbca69fa /app/javascript/components/Layout.jsx | |
| parent | a97531e77e9e3f0e391b2504fcb278cabc2b901e (diff) | |
| download | gameHolster-d2ad5924bce17e3b07ee0af86a8739559dac3b35.tar.gz gameHolster-d2ad5924bce17e3b07ee0af86a8739559dac3b35.zip | |
begin implementing game file upload and also styling
Diffstat (limited to 'app/javascript/components/Layout.jsx')
| -rw-r--r-- | app/javascript/components/Layout.jsx | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/app/javascript/components/Layout.jsx b/app/javascript/components/Layout.jsx index 6bf698a..0c5d5b6 100644 --- a/app/javascript/components/Layout.jsx +++ b/app/javascript/components/Layout.jsx @@ -1,15 +1,42 @@ import React from "react"; import { Outlet, Link } from "react-router-dom"; - +import Button from "./Button"; export default function Layout ({userData}) { console.log(userData); //const [userData, setUserData] = useState({ name: "" }); 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 id="page" className="star flex flex-row min-h-screen bg-amber-400 text-stone-950 bg-star bg-repeat bg-[length:170px_170px]"> + <div id="sidebar" className="flex flex-row h-screen fixed w-64 items-center bg-stone-800"> + <nav id="sidebar-content" className=" text-stone-50 p-6 w-full h-screen"> + { userData.name ? <div> Logged in as: {userData.name} </div> : <a href="https://github.com/login/oauth/authorize?client_id=74468ad0847e527262d9"> Login with Github </a> } + <div className="text-4xl py-12">Adam Malczewski</div> + <div className="flex flex-col items-center gap-1 w-full"> + <Button link={ <Link to="/" className="text-stone-50 bg-transparent" role="button">Home</Link> }/> + <Button link={ <Link to="/blogs" className="text-stone-50 bg-transparent" role="button">Blog</Link> }/> + <Button link={ <Link to="/games" className="text-stone-50 bg-transparent" role="button">Games</Link> }/> + <Button link={ <div className="text-stone-50 bg-transparent w-36 h-16 flex justify-center items-center"> + <a id="contact" href="mailto:[email protected]" className="w-36 h-16 relative text-center whitespace-nowrap flex p-4"> + <span className="contact pt-1 pl-[27px]">Contact</span> + <span className="contact pt-[7px] left-0 pl-3 text-sm">[email protected]</span> + </a> + </div> }/> + </div> + </nav> + <div id="sawtooth-wrap" className="sawtooth-left-wrap h-full"> + <div id="sawtooth" className="sawtooth-left w-4 h-full bg-amber-400"></div> + </div> + </div> + <div id="fake-sidebar" className="w-64 invisible"></div> + <div id="radial-wrap" className="flex-grow"> + <div id="content" className=""></div> + </div> + </div> + + <div style={{display: 'none'}} className=""> + <nav className=""> + <div className="h-full flex flex-col bg-stone-900 text-stone-50"> { userData.name ? <div> Logged in as: {userData.name} </div> : <a href="https://github.com/login/oauth/authorize?client_id=74468ad0847e527262d9"> Login with Github </a> } <div className="text-4xl py-12">Adam Malczewski</div> <div className="flex flex-row justify-center w-full block grow"> @@ -46,11 +73,11 @@ export default function Layout ({userData}) </div> </div> </div> - <div className="h-3/4 w-0.5 bg-slate-500 block rounded-full"> + <div className="sawtooth-right w-6 h-full block bg-zinc-800"> </div> </nav> <Outlet /> </div> -</> + </> ) }; |
