diff --git a/src/App.css b/src/App.css index 80ee5cd..7b201a4 100644 --- a/src/App.css +++ b/src/App.css @@ -12,6 +12,7 @@ justify-content: space-between; align-items: baseline; width: 100%; + height: 5rem; border-bottom: 1px solid black; } @@ -35,4 +36,30 @@ display: hidden; flex-direction: column; align-items: center; +} + +.sidebar { + display: flex; + flex-direction: column; + width: 12rem; + position: fixed; + background-color: black; + color: white; + right: 0; + top: 5rem; + padding: 1.5rem; + transition: right 0.6s ease-out; +} + +.sidebar-hidden { + display: flex; + flex-direction: column; + width: 12rem; + position: fixed; + background-color: black; + color: white; + right: -15rem; + top: 5rem; + padding: 1.5rem; + transition: right 0.6s ease-out; } \ No newline at end of file diff --git a/src/features/navbar/Navbar.css b/src/features/navbar/Navbar.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/features/navbar/Navbar.js b/src/features/navbar/Navbar.js index ac3b552..9066a9d 100644 --- a/src/features/navbar/Navbar.js +++ b/src/features/navbar/Navbar.js @@ -1,13 +1,24 @@ -import React from "react"; +import React, { useState } from "react"; import SearchBar from "../searchBar/searchBar"; -import './Navbar.css'; +import Sidebar from "../sidebar/Sidebar"; export default function Navbar() { + const [collapsed, setCollapsed] = useState(true); + + const handleCollapse = () => { + setCollapsed(!collapsed); + } + return ( + <>
Expand sidebar here
+Hard coded subreddit
+Hard coded subreddit
+Hard coded subreddit
+Hard coded subreddit
+