├── .gitignore ├── README.md ├── React-Sidebar-1.png ├── React-Sidebar-2.png ├── React-Sidebar-3.png ├── React-Sidebar-4.png ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.css ├── App.js ├── App.test.js ├── Pages ├── Calender.js ├── Documents.js ├── Home.js ├── MotionHoc.js ├── Projects.js └── Team.js ├── Sidebar └── index.js ├── assets ├── All Mail.svg ├── Forum.svg ├── draft.svg ├── home-solid.svg ├── important.svg ├── inbox.svg ├── logo.svg ├── meeting.svg ├── power-off-solid.svg ├── sceduled.svg ├── sent.svg ├── settings.svg ├── snooze.svg ├── social.svg ├── spam.svg ├── starred.svg └── trash.svg ├── index.css ├── index.js ├── logo.svg ├── reportWebVitals.js └── setupTests.js /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Build Sidebar navigation menu in ReactJS with react router and framer-motion for cool page transition effects😇 2 | 3 | This repository contains code for Sidebar in ReactJS. 4 | 5 | View Demo: 6 | https://react-sidebar.vercel.app/ 7 | 8 | If you want to learn how to create it please follow below tutorial:
9 | Change your Branch to starter-code To get started! 10 | 11 | https://youtu.be/6HfMm9D4jpU 12 | 13 | ### Images of Website: 14 | ![Codebucks](https://github.com/codebucks27/react-sidebar/blob/main/React-Sidebar-3.png) 15 | ![Codebucks](https://github.com/codebucks27/react-sidebar/blob/main/React-Sidebar-1.png) 16 | ![Codebucks](https://github.com/codebucks27/react-sidebar/blob/main/React-Sidebar-2.png) 17 | ![Codebucks](https://github.com/codebucks27/react-sidebar/blob/main/React-Sidebar-4.png) 18 | 19 | 20 | 21 | ### Resources Used in This Project 22 | 23 | Svg Icons : https://fontawesome.com/
24 | 25 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 26 | 27 | ## Available Scripts 28 | 29 | In the project directory, you can run: 30 | 31 | ### `npm start` 32 | 33 | Runs the app in the development mode.\ 34 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 35 | 36 | The page will reload if you make edits.\ 37 | You will also see any lint errors in the console. 38 | 39 | ### `npm test` 40 | 41 | Launches the test runner in the interactive watch mode.\ 42 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 43 | 44 | ### `npm run build` 45 | 46 | Builds the app for production to the `build` folder.\ 47 | It correctly bundles React in production mode and optimizes the build for the best performance. 48 | 49 | The build is minified and the filenames include the hashes.\ 50 | Your app is ready to be deployed! 51 | 52 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 53 | 54 | ### `npm run eject` 55 | 56 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 57 | 58 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 59 | 60 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 61 | 62 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 63 | 64 | ## Learn More 65 | 66 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 67 | 68 | To learn React, check out the [React documentation](https://reactjs.org/). 69 | 70 | ### Code Splitting 71 | 72 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 73 | 74 | ### Analyzing the Bundle Size 75 | 76 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 77 | 78 | ### Making a Progressive Web App 79 | 80 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 81 | 82 | ### Advanced Configuration 83 | 84 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 85 | 86 | ### Deployment 87 | 88 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 89 | 90 | ### `npm run build` fails to minify 91 | 92 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 93 | -------------------------------------------------------------------------------- /React-Sidebar-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/React-Sidebar-1.png -------------------------------------------------------------------------------- /React-Sidebar-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/React-Sidebar-2.png -------------------------------------------------------------------------------- /React-Sidebar-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/React-Sidebar-3.png -------------------------------------------------------------------------------- /React-Sidebar-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/React-Sidebar-4.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-sidebar", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.12.0", 7 | "@testing-library/react": "^11.2.7", 8 | "@testing-library/user-event": "^12.8.3", 9 | "framer-motion": "^10.16.16", 10 | "react": "^18.2.0", 11 | "react-dom": "^18.2.0", 12 | "react-router-dom": "^6.21.1", 13 | "react-scripts": "^5.0.1", 14 | "styled-components": "^6.1.3", 15 | "web-vitals": "^1.1.2" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts --openssl-legacy-provider start", 19 | "build": "react-scripts --openssl-legacy-provider build", 20 | "test": "react-scripts --openssl-legacy-provider test", 21 | "eject": "react-scripts --openssl-legacy-provider eject" 22 | }, 23 | "eslintConfig": { 24 | "extends": [ 25 | "react-app", 26 | "react-app/jest" 27 | ] 28 | }, 29 | "browserslist": { 30 | "production": [ 31 | ">0.2%", 32 | "not dead", 33 | "not op_mini all" 34 | ], 35 | "development": [ 36 | "last 1 chrome version", 37 | "last 1 firefox version", 38 | "last 1 safari version" 39 | ] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 15 | 19 | 20 | 29 | React Sidebar 30 | 31 | 32 | 33 |
34 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codebucks27/react-sidebar/5839d6a6756f16fe2b7511e502e6e8d2cfc79167/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import { Route, Routes, useLocation } from "react-router"; 2 | import Sidebar from "./Sidebar"; 3 | import Home from "./Pages/Home"; 4 | import Team from "./Pages/Team"; 5 | import Calender from "./Pages/Calender"; 6 | import Documents from "./Pages/Documents"; 7 | import Projects from "./Pages/Projects"; 8 | import styled from "styled-components"; 9 | import { AnimatePresence } from "framer-motion"; 10 | 11 | const Pages = styled.div` 12 | width: 100vw; 13 | height: 100vh; 14 | display: flex; 15 | justify-content: center; 16 | align-items: center; 17 | 18 | h1 { 19 | font-size: calc(2rem + 2vw); 20 | background: linear-gradient(to right, #803bec 30%, #1b1b1b 100%); 21 | -webkit-background-clip: text; 22 | -webkit-text-fill-color: transparent; 23 | } 24 | `; 25 | 26 | function App() { 27 | const location = useLocation(); 28 | return ( 29 | <> 30 | 31 | 32 | 33 | 34 | } /> 35 | } /> 36 | } /> 37 | } /> 38 | } /> 39 | 40 | 41 | 42 | 43 | ); 44 | } 45 | 46 | export default App; 47 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/Pages/Calender.js: -------------------------------------------------------------------------------- 1 | import MotionHoc from "./MotionHoc"; 2 | 3 | const CalenderComponent = () => { 4 | return

Calender

; 5 | }; 6 | 7 | const Calender = MotionHoc(CalenderComponent); 8 | 9 | export default Calender; 10 | -------------------------------------------------------------------------------- /src/Pages/Documents.js: -------------------------------------------------------------------------------- 1 | import MotionHoc from "./MotionHoc"; 2 | 3 | const DocumentsComponent = () => { 4 | return

Documents

; 5 | }; 6 | 7 | const Documents = MotionHoc(DocumentsComponent); 8 | 9 | export default Documents; 10 | -------------------------------------------------------------------------------- /src/Pages/Home.js: -------------------------------------------------------------------------------- 1 | import MotionHoc from "./MotionHoc"; 2 | 3 | const HomeComponent = () => { 4 | return

Home

; 5 | }; 6 | 7 | const Home = MotionHoc(HomeComponent); 8 | 9 | export default Home; 10 | -------------------------------------------------------------------------------- /src/Pages/MotionHoc.js: -------------------------------------------------------------------------------- 1 | //higher order component to add same functionality to each page 2 | 3 | import { motion } from "framer-motion"; 4 | 5 | const MotionHoc = (Component) => { 6 | return function HOC() { 7 | return ( 8 | 19 | 20 | 21 | ); 22 | }; 23 | }; 24 | 25 | export default MotionHoc; 26 | -------------------------------------------------------------------------------- /src/Pages/Projects.js: -------------------------------------------------------------------------------- 1 | import MotionHoc from "./MotionHoc"; 2 | 3 | const ProjectsComponent = () => { 4 | return

Projects

; 5 | }; 6 | 7 | const Projects = MotionHoc(ProjectsComponent); 8 | 9 | export default Projects; 10 | -------------------------------------------------------------------------------- /src/Pages/Team.js: -------------------------------------------------------------------------------- 1 | import MotionHoc from "./MotionHoc"; 2 | 3 | const TeamComponent = () => { 4 | return

Team

; 5 | }; 6 | 7 | const Team = MotionHoc(TeamComponent); 8 | 9 | export default Team; 10 | -------------------------------------------------------------------------------- /src/Sidebar/index.js: -------------------------------------------------------------------------------- 1 | import React, { useState } from "react"; 2 | 3 | //All the svg files 4 | import logo from "../assets/logo.svg"; 5 | import Home from "../assets/home-solid.svg"; 6 | import Team from "../assets/social.svg"; 7 | import Calender from "../assets/sceduled.svg"; 8 | import Projects from "../assets/starred.svg"; 9 | import Documents from "../assets/draft.svg"; 10 | import PowerOff from "../assets/power-off-solid.svg"; 11 | import styled from "styled-components"; 12 | import { NavLink } from "react-router-dom"; 13 | 14 | const Container = styled.div` 15 | position: fixed; 16 | 17 | .active { 18 | border-right: 4px solid var(--white); 19 | 20 | img { 21 | filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) 22 | brightness(103%) contrast(103%); 23 | } 24 | } 25 | `; 26 | 27 | const Button = styled.button` 28 | background-color: var(--black); 29 | border: none; 30 | width: 2.5rem; 31 | height: 2.5rem; 32 | border-radius: 50%; 33 | margin: 0.5rem 0 0 0.5rem; 34 | cursor: pointer; 35 | 36 | display: flex; 37 | justify-content: center; 38 | align-items: center; 39 | 40 | position: relative; 41 | 42 | &::before, 43 | &::after { 44 | content: ""; 45 | background-color: var(--white); 46 | height: 2px; 47 | width: 1rem; 48 | position: absolute; 49 | transition: all 0.3s ease; 50 | } 51 | 52 | &::before { 53 | top: ${(props) => (props.clicked ? "1.5" : "1rem")}; 54 | transform: ${(props) => (props.clicked ? "rotate(135deg)" : "rotate(0)")}; 55 | } 56 | 57 | &::after { 58 | top: ${(props) => (props.clicked ? "1.2" : "1.5rem")}; 59 | transform: ${(props) => (props.clicked ? "rotate(-135deg)" : "rotate(0)")}; 60 | } 61 | `; 62 | 63 | const SidebarContainer = styled.div` 64 | background-color: var(--black); 65 | width: 3.5rem; 66 | height: 80vh; 67 | margin-top: 1rem; 68 | border-radius: 0 30px 30px 0; 69 | padding: 1rem 0; 70 | 71 | display: flex; 72 | flex-direction: column; 73 | align-items: center; 74 | justify-content: space-between; 75 | 76 | position: relative; 77 | `; 78 | 79 | const Logo = styled.div` 80 | width: 2rem; 81 | 82 | img { 83 | width: 100%; 84 | height: auto; 85 | } 86 | `; 87 | 88 | const SlickBar = styled.ul` 89 | color: var(--white); 90 | list-style: none; 91 | display: flex; 92 | flex-direction: column; 93 | align-items: center; 94 | background-color: var(--black); 95 | 96 | padding: 2rem 0; 97 | 98 | position: absolute; 99 | top: 6rem; 100 | left: 0; 101 | 102 | width: ${(props) => (props.clicked ? "12rem" : "3.5rem")}; 103 | transition: all 0.5s ease; 104 | border-radius: 0 30px 30px 0; 105 | `; 106 | 107 | const Item = styled(NavLink)` 108 | text-decoration: none; 109 | color: var(--white); 110 | width: 100%; 111 | padding: 1rem 0; 112 | cursor: pointer; 113 | 114 | display: flex; 115 | padding-left: 1rem; 116 | 117 | &:hover { 118 | border-right: 4px solid var(--white); 119 | 120 | img { 121 | filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) 122 | brightness(103%) contrast(103%); 123 | } 124 | } 125 | 126 | img { 127 | width: 1.2rem; 128 | height: auto; 129 | filter: invert(92%) sepia(4%) saturate(1033%) hue-rotate(169deg) 130 | brightness(78%) contrast(85%); 131 | } 132 | `; 133 | 134 | const Text = styled.span` 135 | width: ${(props) => (props.clicked ? "100%" : "0")}; 136 | overflow: hidden; 137 | margin-left: ${(props) => (props.clicked ? "1.5rem" : "0")}; 138 | transition: all 0.3s ease; 139 | `; 140 | 141 | const Profile = styled.div` 142 | width: ${(props) => (props.clicked ? "14rem" : "3rem")}; 143 | height: 3rem; 144 | 145 | padding: 0.5rem 1rem; 146 | /* border: 2px solid var(--white); */ 147 | border-radius: 20px; 148 | 149 | display: flex; 150 | align-items: center; 151 | justify-content: center; 152 | margin-left: ${(props) => (props.clicked ? "9rem" : "0")}; 153 | 154 | background-color: var(--black); 155 | color: var(--white); 156 | 157 | transition: all 0.3s ease; 158 | 159 | img { 160 | width: 2.5rem; 161 | height: 2.5rem; 162 | border-radius: 50%; 163 | cursor: pointer; 164 | 165 | &:hover { 166 | border: 2px solid var(--grey); 167 | padding: 2px; 168 | } 169 | } 170 | `; 171 | 172 | const Details = styled.div` 173 | display: ${(props) => (props.clicked ? "flex" : "none")}; 174 | justify-content: space-between; 175 | align-items: center; 176 | `; 177 | 178 | const Name = styled.div` 179 | padding: 0 1.5rem; 180 | 181 | display: flex; 182 | flex-direction: column; 183 | justify-content: center; 184 | align-items: center; 185 | 186 | h4 { 187 | display: inline-block; 188 | } 189 | 190 | a { 191 | font-size: 0.8rem; 192 | text-decoration: none; 193 | color: var(--grey); 194 | 195 | &:hover { 196 | text-decoration: underline; 197 | } 198 | } 199 | `; 200 | 201 | const Logout = styled.button` 202 | border: none; 203 | width: 2rem; 204 | height: 2rem; 205 | background-color: transparent; 206 | 207 | img { 208 | width: 100%; 209 | height: auto; 210 | filter: invert(15%) sepia(70%) saturate(6573%) hue-rotate(2deg) 211 | brightness(100%) contrast(126%); 212 | transition: all 0.3s ease; 213 | &:hover { 214 | border: none; 215 | padding: 0; 216 | opacity: 0.5; 217 | } 218 | } 219 | `; 220 | 221 | const Sidebar = () => { 222 | const [click, setClick] = useState(false); 223 | const handleClick = () => setClick(!click); 224 | 225 | const [profileClick, setprofileClick] = useState(false); 226 | const handleProfileClick = () => setprofileClick(!profileClick); 227 | 228 | return ( 229 | 230 | 233 | 234 | 235 | logo 236 | 237 | 238 | setClick(false)} 240 | exact 241 | activeClassName="active" 242 | to="/" 243 | > 244 | Home 245 | Home 246 | 247 | setClick(false)} 249 | activeClassName="active" 250 | to="/team" 251 | > 252 | Team 253 | Team 254 | 255 | setClick(false)} 257 | activeClassName="active" 258 | to="/calender" 259 | > 260 | Calender 261 | Calender 262 | 263 | setClick(false)} 265 | activeClassName="active" 266 | to="/documents" 267 | > 268 | Documents 269 | Documents 270 | 271 | setClick(false)} 273 | activeClassName="active" 274 | to="/projects" 275 | > 276 | Projects 277 | Projects 278 | 279 | 280 | 281 | 282 | handleProfileClick()} 284 | src="https://picsum.photos/200" 285 | alt="Profile" 286 | /> 287 |
288 | 289 |

Jhon Doe

290 | view profile 291 |
292 | 293 | 294 | logout 295 | 296 |
297 |
298 |
299 |
300 | ); 301 | }; 302 | 303 | export default Sidebar; 304 | -------------------------------------------------------------------------------- /src/assets/All Mail.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/Forum.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/draft.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/home-solid.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/important.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/inbox.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /src/assets/meeting.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/power-off-solid.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/sceduled.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/sent.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/settings.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/snooze.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/social.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/spam.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/starred.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/trash.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | /* Basic styling */ 2 | 3 | :root { 4 | /* Colors */ 5 | --black: #09090c; 6 | --grey: #a4b2bc; 7 | --white: #fff; 8 | --background: rgba(137, 171, 245, 0.37); 9 | } 10 | 11 | html { 12 | overflow: hidden; 13 | } 14 | 15 | *, 16 | *::before, 17 | *::after { 18 | margin: 0; 19 | padding: 0; 20 | box-sizing: border-box; 21 | } 22 | 23 | body { 24 | background-color: var(--background); 25 | font-family: "Poppins", sans-serif; 26 | } 27 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | // import ReactDOM from "react-dom"; 3 | import "./index.css"; 4 | import App from "./App"; 5 | import { BrowserRouter } from "react-router-dom"; 6 | // import reportWebVitals from './reportWebVitals'; 7 | import { createRoot } from "react-dom/client"; 8 | 9 | const domNode = document.getElementById("root"); 10 | const root = createRoot(domNode); 11 | root.render( 12 | 13 | 14 | 15 | ); 16 | 17 | // ReactDOM.render( 18 | // 19 | // 20 | // 21 | // 22 | // , 23 | // document.getElementById("root") 24 | // ); 25 | 26 | // If you want to start measuring performance in your app, pass a function 27 | // to log results (for example: reportWebVitals(console.log)) 28 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 29 | // reportWebVitals(); 30 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | --------------------------------------------------------------------------------