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

Adding-burgerbutton #18

Merged
merged 5 commits into from
May 23, 2024
Merged

Conversation

IvonneBenitesRodriguez
Copy link
Owner

About this part of the project:

I wanted to give this project a functionality for the mobile version so it can appear a hamburger icon,
the user can click on it so all the links can be displayed vertically in a bar named BurgerButton.jsx
I used for it a hook named useState, and created a function named handleClick, I also imported a library named styled-components so I can give the style directly in the component.
I used also ternary operators to add a conditional functionality in my Navbar function.

Besides of it, I created another component named BurgerButton.jsx
The BurgerButton component is passing properties as parameters, including a handleClick method.
When the user clicks on the hamburger icon, the handleClick method is called, and the clicked prop determines
whether the icon should appear as open or closed. The three elements represent the lines of the hamburger icon.

Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
my-coffee-elections-4rc4 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 3:44am
my-coffee-elections-kfjl ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 3:44am
my-coffee-elections-udmy ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 3:44am

@IvonneBenitesRodriguez IvonneBenitesRodriguez merged commit 1ab4c22 into development May 23, 2024
7 checks passed
Copy link

netlify bot commented May 23, 2024

Deploy Preview for spontaneous-melba-5a0ebf failed.

Name Link
🔨 Latest commit a2f72d4
🔍 Latest deploy log https://app.netlify.com/sites/spontaneous-melba-5a0ebf/deploys/664ebb9eef5b560008de6d4b

Copy link

netlify bot commented May 23, 2024

Deploy Preview for tiny-pasca-40edf0 failed.

Name Link
🔨 Latest commit a2f72d4
🔍 Latest deploy log https://app.netlify.com/sites/tiny-pasca-40edf0/deploys/664ebb9e86f1d60008207b23

Copy link

netlify bot commented May 23, 2024

Deploy Preview for melodic-druid-f0aa0c failed.

Name Link
🔨 Latest commit a2f72d4
🔍 Latest deploy log https://app.netlify.com/sites/melodic-druid-f0aa0c/deploys/664ebb9e0452260008b1f6fa

Copy link

netlify bot commented May 23, 2024

Deploy Preview for benevolent-caramel-267921 failed.

Name Link
🔨 Latest commit a2f72d4
🔍 Latest deploy log https://app.netlify.com/sites/benevolent-caramel-267921/deploys/664ebb9e279b0f0008ff5f4f

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.

1 participant