Link to the app - https://menu-v.netlify.app/
- Clone the repo
- To intall node_modules
npm i
- To run the app
npm run dev
File - menu.json [src\components\Navbar\data\menu.json]
The menu data is structured as an array of menu items. Each menu item represents a navigation item in the application's menu bar. Menu items can have categories, which further organize the content, and each category may contain subcategories.
- id: (number) - Unique identifier for the menu item.
- name: (string) - The display name of the menu item.
- url: (string) - The URL associated with the menu item.
- categories: (array) - Optional. An array containing category objects, if applicable.
- id: (number) - Unique identifier for the category.
- name: (string) - Optional. The display name of the category (used as heading).
- url: (string) - The URL associated with the category.
- subcategories: (array) - An array containing subcategory objects, if applicable.
- id: (number) - Unique identifier for the subcategory.
- name: (string) - The display name of the subcategory.
- url: (string) - The URL associated with the subcategory.
[
{
"id": 1,
"name": "Home",
"url": "/",
"categories": [
{
"id": 11,
"name": "Main Categories",
"url": "/main-categories",
"subcategories": [
{
"id": 111,
"name": "All",
"url": "/all"
}
// Other subcategories...
]
}
]
}
// Other menu items...
]
- Each menu item corresponds to a navigation link in the menu bar.
- Categories can be used to further organize content within menu items, and subcategories can be nested within categories.
![home](https://private-user-images.githubusercontent.com/90110521/311336810-872ed250-7975-49b1-be7e-99966c946b48.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NjYyMjIsIm5iZiI6MTcyMTc2NTkyMiwicGF0aCI6Ii85MDExMDUyMS8zMTEzMzY4MTAtODcyZWQyNTAtNzk3NS00OWIxLWJlN2UtOTk5NjZjOTQ2YjQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNz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