-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
new design and logic for the menu #1590 #1568
new design and logic for the menu #1590 #1568
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I agree with that, although on the other hand, wouldn't it be better to remove these dependencies that are only adding more load to the website? It might also be worth evaluating if these changes could optimize performance and maintenance in the long run. |
Sorry for the delay in responding, I was on vacation for the last two weeks :-) I'm ambivalent about this. Since @bjohansebas has already done the work, I don't know that there's a good reason NOT to accept this PR--ASSUMING that it doesn't introduce any new bugs or glitches. Since I'm just getting back and catching up after vacay, I haven't had time to look more closely at this to ensure that's the case. @chrisdel101 have you? We certainly appreciate the work you put in @bjohansebas but in the future it would be great to open an issue to discuss BEFORE doing the work for a PR. If you already did this and I just missed it, apologies, as I said I've been out for a couple weeks. I'm not saying that we won't accept a PR without prior discussion in an issue, but that's the preferred approach :-) |
I agree with you @crandmck 100% about per-discussing PRs, especially ones like this that are ethos shifting, whereas maybe small bug fixes could slip by without? This Improvements like this do have a legit place in web development. My thoughts are:
So, since you did all this work already it seems like a waste to throw it out. The main problems are:
SO...
This response got WAY too long and rambling. Did this make sense? |
This comment was marked as duplicate.
This comment was marked as duplicate.
Yes this looks good to me overall. Starting w/ the menu as you said is a good plan. Some things to consider:
Is this okay @crandmck? |
Yes, this is a good approach. Thanks for taking the lead on this @chrisdel101. And, of course, thanks @bjohansebas for all the refactoring effort. To help coordinate and simplify reviews, I would suggest opening an issue with the content of the above comment and then link that to all the PRs. |
99f8766
to
f3c78f3
Compare
I prefer not to impose a coding style. @chrisdel101, can you give it one last review so we can release 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 think maybe the express logo is too far in in large screens? If you agree, maybe this could stick the left corner more? I put the screen measurements in the corner so you can see where it's happening, or don't have a large screen.
I glanced at all the translations home pages and they all look good. For these, the logo is even further in, like https://deploy-preview-1568--expressjscom-preview.netlify.app/zh-tw/.
Unless this is what you are going for?
I got into testing this, and found a solution. I'll put it here, but you can do it your own way. I just spent the time playing around so thought I'd put it here. Or just ignore my code here. It's just an idea.
remove the header col gap
Add flex grow and margin-left
And then it seems to fix the translations too.
I do personally agree with removing the $
in the JS too just to keep the style consistent.
Everything else looks good that I checked. Once again, nice work. And thanks for making the first round of changes.
@chrisdel101, thanks for the suggestion. I've opted for a different solution, let me know if you like it or not. |
215278f
to
15445c8
Compare
I liked separating the |
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.
Looks great! Sorry I missed this before.
So the only thing I notice is that the nav menu breakpoint kicks in too early which makes it awkward to use on a laptop. I def want to see the nav links still at the same size in the new format. Can you lower the breakpoint to kick in at like 899 (like it was before?)
This is the current way. I can see the nav menu which I def want at this size.
And this is changed way
I guess it's this rule but I can't seem to change it in fire fox so I'm not able to see what it looks like. Change this back?
Old setting (with nav hidden) - can u see the breakpoint to this value?
@chrisdel101 Yeah, that's true, but the problem is that there are many items in the menu that, if it doesn't start from that point, it breaks the layout and this issue(#1589) would occur. |
I believe all the issues are already resolved, we can always make changes later. I need the approval of a person with write permissions to merge it (@UlisesGascon, @expressjs/docs-captains). |
Yeah your right. Maybe we can hide the last few links or something, since I don't want to have to click the hamburger all the time. LGTM. |
@chrisdel101 thanks for helping me get this onto the website |
* feat: drop dropi * fix theme position * merge menu.css to style.css * remove unused class * improve menu styles * fix dark mode * remove padding in logo * add support lts link * adapt headers in other langs * adapt other langs * revert remove ismobile.js * improve styles * fix dark mode subcontent * fix translate subcontent * fix dark mode in mobile * fix nav space * fix errors in chrome * small styles * add optional chaining * small changes * improve submenu logic * remove some !important * remove some !important * fix hover * Revert "add optional chaining" This reverts commit f3e40af. * fix mobile detect * small fix * remove $ * update style.css * improve layout
The new menu logic is designed, and the new styles are added to work correctly.
Changes
Preview
desktop
mobile