-
Notifications
You must be signed in to change notification settings - Fork 15
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
Added Animated Hamburger Menu #488
Added Animated Hamburger Menu #488
Conversation
@sushantgwr87 is attempting to deploy a commit to the Meili Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey @sushantgwr87 thanks so much for you contribution 🙏
|
@bidoubiwa Updated the Code and Removed Errors. Kindly Check Once Again. |
I still see linting errors 😔 See https://github.com/meilisearch/landing/pull/488/files |
Yeah, Actually my system shows different lint errors and here bit more. No problem I will fix all (this time both check) and will let you know. |
Sir Kindly run the checks again, this time I guess errors should be gone. Before I was not using prettier extension that's why it linted different errors in VS code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
src/blocks/Header/MobileHeader.js
Outdated
<DialogDisclosure {...dialog} style={{ color: 'white', height: '24px' }}> | ||
<MenuBtnWrapper clicked={dialog.visible}> | ||
<MenuBtnBar /> | ||
<MenuBtnBar /> | ||
<MenuBtnBar /> | ||
</MenuBtnWrapper> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a Hamburger
component out of it and add it in an apart file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. working on it. I will create file in same folder regarding it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefered you add it in the components
folder.
I made it. Check once if its correct or not. I created Hamburger Taking whole DialogDisclosure part in it and then importing the hamburger in MobileHeader.js. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave DialogDisclosure in MobileHeader.js
Okay Updating it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the Hamburger in the components folder ?
Yes Updating it |
Updated Sir, Check Once. |
Hey @sushantgwr87 Since @mdubus is not present, I can not be sure that everything is as wanted. So unfortunately, we'll have to wait until next week to approve or not your pr. These are the questions that I'm thinking about:
|
No Problem. Will See it on next Week. |
Hello @sushantgwr87 👋 Thanks a lot for your PR and sorry for the inconvenience of me not being there during the first week of Hacktoberfest. Is there a reason why you chose to create a custom Component for this instead of using Lottie as recommended in the issue? Thanks a lot and have a good day ✨ |
@mdubus No Sir. There is no specific reason for not using Lottie file for this. Actually we are already using styled components so I thought this animation can be easily created without much fuss and with little bit of css animation, it will work as needed. Though If you think I should use Lottie file for it, I can work on that and create it using that. |
Thanks a lot for your answer 🙏 Indeed it would be great if you could use Lottie instead, for multiple reasons:
Thanks a lot for your time, and I deeply apologize for the inconvenience 🙏 |
Understood and No Worries. I will ping you once I fix it. Thank you. |
@mdubus Hello Sir, Need help in fixing Lottie component or code for animation. I created Hamburger menu animation using Lottie file and already made Lottie component. Problem is whole animation runs on button click from I tried using segments but seems they don't work with this package I guess as it does not shows props relating it or such toggle support. I am still researching on this for solution but any insights will help surely. Lottie File used(White version of this): Lottie Code:
Video for problem: |
Hello @sushantgwr87 👋 Thanks a lot for reporting here your issues with the Lottie file. Indeed, I can see can the Lottie animation I provided in the issue goes from front to back and then back to front, and it's not ideal in our context. Therefore, I adapted the Lottie animation thanks to the Lottie Editor, and I just cropped the end of the animation. Here it is: (as GitHub doesn't support json files as attachments, I just compressed it as a zip. You'll have to unzip it 😉). Then, you can play it from back to front regarding if the modal is opened or not, with the Don't hesitate if you have any questions or if you need further help on this. Have a nice day! ✨ |
Hello Ma'am 😃, Great Thanks for that Lottie animation file and guidance as well. I updated the Lottie code in MobileHeader File:
I added your given Lottie json file in Lottie folder and imported them as needed. Kindly check once if everything is correct or any other update/fix is needed. Thanks for help 😸 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost perfect ✨
Can you please:
- Check if the old
Hamburger
andCross
icon are still used, and delete them if it's not the case (check the svg icon & rerun theyarn icons
command if necessary, also check theIcons
story of Storybook) 🙏 - Rebase your PR on main
Thanks a lot! 🦕
fc56dd5
to
efdf161
Compare
…/sushantgwr87/landing into sushantgwr87-Animated-Burger-fix
…/sushantgwr87/landing into sushantgwr87-Animated-Burger-fix
Hello, Sorry for mess-up and for any inconvenience I caused during rebasing and updating files. Actually I am still confused what should I do regarding I have updated both main and this repo, after messing things up badly 🥲 . I used rebasing commands to update branches but still confused what actually I need to do here. Other Details:I have removed unused Icons from MobileHeader.js File and checked for any other icons. I have not deleted any icon file though. Thanks and Sorry for asking too much help 😓 |
Hello @sushantgwr87 No problem 😀 Here is how you can achieve it:
Hope this helps ✨ |
Thanks for guide Ma'am. I updated my main repo and opened a new pull request. You can check here PR. |
Thanks @sushantgwr87 🙏 Closing in favor of #513 |
Animated Hamburger Menu Pull Request
What does this PR do?
Fixes #245
Link to the issue
Description
Added styled component with animation for mobile header burger menu. Removed svg icons used for it as well.
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!