Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update script.js #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update script.js #3

wants to merge 1 commit into from

Conversation

RiyaAroraDev
Copy link
Owner

In the JavaScript file, I made several enhancements to improve interactivity and user experience. First, I implemented functionality for the FAQ section, allowing answers to smoothly expand and collapse when questions are clicked, ensuring that only one answer is visible at a time. Additionally, I refined the toggle behavior of the navigation bar for smaller screens, enhancing the user experience when opening and closing the menu. I also introduced code to dynamically render project items in the "Projects" section, making it easier to add more projects without hard-coding HTML. Lastly, I implemented a smooth scroll feature that enables users to navigate to different sections of the webpage seamlessly when clicking on navbar links. These updates collectively enhance the webpage's functionality and usability.

What does this PR do?

This pull request enhances the overall functionality and user experience of the website. It includes several updates, such as implementing smooth scrolling for navigation links, improving the toggle behavior of the navigation menu on smaller screens, and adding dynamic rendering of project items in the "Projects" section. Additionally, the FAQ section has been enhanced with expandable and collapsible answers. These changes aim to create a more interactive and user-friendly interface.

Fixes #(issue)
Fixes BeehiveCommunity#123 (replace with your actual issue number)

Type of change

-New feature (non-breaking change which adds functionality)
-Chore (refactoring code, technical debt, workflow improvements)

How should this be tested?

To verify these changes, please follow these steps:

Navigate to the homepage and click on each FAQ question to ensure the answers expand and collapse correctly.
Resize the browser window to test the navigation toggle functionality for smaller screens.
Click on each project item in the "Projects" section to verify that they are rendered dynamically and display the correct content.
Click on the navigation links to ensure smooth scrolling to the respective sections.
Test A
Test B

Mandatory Tasks

self-reviewed the code. A decent size PR without self-review might be rejected.

In the JavaScript file, I made several enhancements to improve interactivity and user experience. First, I implemented functionality for the FAQ section, allowing answers to smoothly expand and collapse when questions are clicked, ensuring that only one answer is visible at a time. Additionally, I refined the toggle behavior of the navigation bar for smaller screens, enhancing the user experience when opening and closing the menu. I also introduced code to dynamically render project items in the "Projects" section, making it easier to add more projects without hard-coding HTML. Lastly, I implemented a smooth scroll feature that enables users to navigate to different sections of the webpage seamlessly when clicking on navbar links. These updates collectively enhance the webpage's functionality and usability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add Issue/Pull Request Section Template
1 participant