PROD [Live] : https://react-strapi-submenus-v2-prod.netlify.app/
-
Navbar, Hero, Sidebar and Submenu components.
Navbarconsists of theStrapilogo, page links where each page link opens submenu.- On screens <992px, the Navbar will have logo, Toggle to open sidebar.
Heroconsists of a header and paragraph.Sidebarwill appear as an alternative to Navbar to show the page menus when the user is on mobile view for a flexible user experience along with a Close button.- Each
Submenuis a page with a menu ofSublinkswhich is implemented in a way with smooth transiton while switching instead of vertical menus. - Routes has not been set for any of the Submenus links but Netlify handles them as Page not Found and buttons are not given any click functionality.
-
Data is handled by
data.jsxand styles are handled byindex.css -
To run the project locally, clone the repo,
npm installto install the dependencies, andnpm run devto start up the development server on default port 5173.
HTML, CSS, JavaScript, ECMAScript, React ~ Context API - Hooks ~ useState, useContext
Netlify
Note: I have developed this project ~ [14] as part of React 18 Tutorial and Projects Course (2023) taught by John Smilga.