{"id":24956517,"url":"https://github.com/all-my-frontend-mini-projects/intro-section-with-dropdown-navigation_frontend_project","last_synced_at":"2025-04-10T18:53:41.054Z","repository":{"id":219019207,"uuid":"747956485","full_name":"all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project","owner":"all-my-frontend-mini-projects","description":"Explore our website seamlessly with the Intro Section featuring Dropdown Navigation! This component allows users to view the relevant dropdown menus on desktop and mobile when interacting with the navigation links, ensuring an optimal layout for the content depending on their device's screen size.","archived":false,"fork":false,"pushed_at":"2024-10-10T04:56:53.000Z","size":483,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T04:24:18.689Z","etag":null,"topics":["beginner-friendly","css","frontend-project","html","mern-stack","nextjs","nodejs","reactjs","responsive","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://dropdown-nav-intro-section.netlify.app/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/all-my-frontend-mini-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-25T01:07:27.000Z","updated_at":"2024-10-27T08:16:52.000Z","dependencies_parsed_at":"2024-01-25T02:26:12.997Z","dependency_job_id":"8ee00fea-1e1d-41ef-9fa9-39e86a167974","html_url":"https://github.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project","commit_stats":null,"previous_names":["sarthak-0-sach/intro-section-with-dropdown-navigation_frontend_project","all-my-frontend-mini-projects/intro-section-with-dropdown-navigation_frontend_project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FIntro-section-with-dropdown-navigation_frontend_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FIntro-section-with-dropdown-navigation_frontend_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FIntro-section-with-dropdown-navigation_frontend_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FIntro-section-with-dropdown-navigation_frontend_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/all-my-frontend-mini-projects","download_url":"https://codeload.github.com/all-my-frontend-mini-projects/Intro-section-with-dropdown-navigation_frontend_project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248275363,"owners_count":21076581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginner-friendly","css","frontend-project","html","mern-stack","nextjs","nodejs","reactjs","responsive","vanilla-javascript"],"created_at":"2025-02-03T06:35:40.323Z","updated_at":"2025-04-10T18:53:41.030Z","avatar_url":"https://github.com/all-my-frontend-mini-projects.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intro Section with Dropdown Navigation\n\n## Welcome! 👋\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [How to setup the project](#how-to-setup-the-project)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Continued development](#continued-development)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n- [Acknowledgments](#acknowledgments)\n\n## Overview\n\n### The challenge\n\nExplore our website seamlessly with the Intro Section featuring Dropdown Navigation! \n\nThis component allows users to:-\n- View the relevant dropdown menus on desktop and mobile when interacting with the navigation links\n- Ensuring an optimal layout for the content depending on their device's screen size. \n- Users can also see hover states for all interactive elements on the page.\n\n### How to setup the project\n\nTo set up the project locally, follow these steps:\n\n1. Clone the repository using GitHub Desktop or Git Bash:\n    ```bash\n    git clone https://github.com/SartHak-0-Sach/Intro-section-with-dropdown-navigation_frontend_project.git\n    ```\n2. Open the project folder in your code editor.\n3. Run the project using a live server extension or deploy it using Netlify, Vercel, or another web hosting and deployment service.\n\n### Screenshot\n\n![Design Preview](./design/active-states.jpg)\n\n### Links\n\n- Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Intro-section-with-dropdown-navigation_frontend_project)\n- Live Site URL: [Live Site](https://dropdown-nav-intro-section.netlify.app/)\n\n## My process\n\n### Built with\n\n- HTML5\n- CSS3\n- JavaScript\n\nYou will find all the required assets in the `/design` folder. The assets are already optimized.\n\nThere is also a `style-guide.md` file containing the information you'll need, such as color palette and fonts.\n\n### What I learned\n\nThis project can be of great help if one is looking for a kind of project that can help us revise a large variety of CSS and JS concepts all in one as implementing it successfully means knowing all fundamental concepts of programming well. One such example snippet is as shown below-\n\n```js\nconst toggleSubNavs = (navLinkTitle, i) =\u003e {\n  const subNavLink = navLinkTitle.nextElementSibling;\n  !navLinkTitle.parentElement.classList.contains(\"open\")\n    ? (subNavLink.style.maxHeight = `${subNavLink.scrollHeight + 32}px`)\n    : (subNavLink.style.maxHeight = \"0px\");\n  navLinkTitles.forEach((_navLinkTitle, _i) =\u003e {\n    if (i !== _i) {\n      const subNavLink = _navLinkTitle.nextElementSibling;\n      _navLinkTitle.parentElement.classList.remove(\"open\");\n      if (subNavLink) subNavLink.style.maxHeight = \"0px\";\n    }\n  });\n  navLinkTitle.parentElement.classList.toggle(\"open\");\n};\n\nnavLinkTitles.forEach((navLinkTitle, i) =\u003e {\n  navLinkTitle.addEventListener(\"click\", () =\u003e {\n    toggleSubNavs(navLinkTitle, i);\n  });\n});\n```\n\n### Continued development\n\nThe continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in JavaScript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of. \n\nThese key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day.\n\n### Useful resources\n\n- [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can.\n- [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫\n- [MDN documentation hover state for CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) - This is an amazing article which helped me finally understand hover states. I'd recommend it to anyone still learning this concept.\n\n## Author\n\n\u003cb\u003e\u003cstrong\u003eSarthak Sachdev\u003c/strong\u003e\u003c/b\u003e\n- Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/)\n- LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/)\n- Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69)\n\n## Acknowledgments\n\nI feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack.\n\n## Got feedback for me?\n\nI love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com.\n\nIf you liked this project make sure to spread the word and share it with all your friends.\n\n**Happy coding!** ☺️🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fall-my-frontend-mini-projects%2Fintro-section-with-dropdown-navigation_frontend_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fall-my-frontend-mini-projects%2Fintro-section-with-dropdown-navigation_frontend_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fall-my-frontend-mini-projects%2Fintro-section-with-dropdown-navigation_frontend_project/lists"}