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

Increased length of clickable space in navbar #566

Merged
merged 18 commits into from
Oct 30, 2022
Merged

Conversation

karnikaavelumani
Copy link
Collaborator

@karnikaavelumani karnikaavelumani commented Sep 15, 2022

Previously, in mobile mode, the size of the clickable area in the navbar was significantly small so it required you to press the names of the pages directly rather than the surrounding area itself.
Animation

Now it has been updated to encompass a larger area of clickable space. The size should be from one end of the screen to the other end.
Animation2

I am open to suggestions if whether we should have a title for the navbar, such as like "Menu", so that I can push down all the pages and make it easier to click if they are all situated near the bottom. I am also unsure of how to fix the words stacking on top of each other in "Node Buds". I am aware we have removed that page from the navbar, but for future pages it should not be stacked.

Fixes #279.

This PR additionally makes the navbar transparent, which addresses #580.

@vercel
Copy link

vercel bot commented Sep 15, 2022

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

Name Status Preview Updated
acm-csuf-site ✅ Ready (Inspect) Visit Preview Oct 30, 2022 at 10:48AM (UTC)

@karnikaavelumani
Copy link
Collaborator Author

@diamondburned This was an issue you pointed out so let me know what you think about this solution!

src/lib/components/sections/navbar.svelte Outdated Show resolved Hide resolved
src/lib/components/sections/navbar.svelte Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview September 18, 2022 04:04 Inactive
@vercel vercel bot temporarily deployed to Preview September 25, 2022 02:13 Inactive
@vercel vercel bot temporarily deployed to Preview September 25, 2022 02:59 Inactive
@vercel vercel bot temporarily deployed to Preview October 6, 2022 09:11 Inactive
@karnikaavelumani
Copy link
Collaborator Author

Fixes #511 as well

@diamondburned
Copy link
Collaborator

I prefer the old dark navbar better with the dark theme, but I think the new changes are overall more consistent with the design.

@karnikaavelumani
Copy link
Collaborator Author

I'll try to actually change it back to the dark theme navbar but add perhaps a shadow.

Copy link
Contributor

@jaasonw jaasonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this navbar need refactor tbh

src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
src/lib/components/nav/bar.svelte Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to Preview October 11, 2022 07:59 Inactive
Copy link
Contributor

@jaasonw jaasonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. acm icon is above overlay
  2. backdrop animation is too slow
  3. mobile navbar is too tall
Snapchat-1859405296.mp4
Snapchat-420092908.mp4

@vercel vercel bot temporarily deployed to Preview October 11, 2022 19:46 Inactive
@jaasonw
Copy link
Contributor

jaasonw commented Oct 11, 2022

Screen_Recording_20221011_125415_Samsung.Internet.mp4

possible to disable scrolling here too?

Copy link
Contributor

@jaasonw jaasonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

button not seem to work here

Screen_Recording_20221011_125627_Samsung.Internet.mp4

@jaasonw jaasonw marked this pull request as draft October 14, 2022 03:38
@vercel vercel bot temporarily deployed to Preview October 14, 2022 16:59 Inactive
@vercel vercel bot temporarily deployed to Preview October 14, 2022 17:09 Inactive
Copy link
Collaborator

@JustinStitt JustinStitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

your contribution improves the mobile experience.

we are, however, starting to realize the technical debt with the current navbar structure. Perhaps a refactor is needed.

we may also want to package up some of these frequently used css properties like:

position: absolute;
width: 100%;
height: 100%;

into their own class to reduce code bloat/smell.

we may also want to reduce the css nesting levels. i am not sure on the best approach but some of these elements are nested 5-6 levels deep and all within a media query as well. unmaintainable!!! (separate issue to be solved alongside the html refactor prob)

svelte.config.js Show resolved Hide resolved
Copy link
Contributor

@jaasonw jaasonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. logo z index wrong again
  2. overlay transition seem to not correct
Snapchat-1135243973.mp4

@vercel vercel bot temporarily deployed to Preview October 15, 2022 07:28 Inactive
@vercel vercel bot temporarily deployed to Preview October 15, 2022 08:04 Inactive
@vercel vercel bot temporarily deployed to Preview October 15, 2022 08:10 Inactive
@karnikaavelumani
Copy link
Collaborator Author

When you get a chance, please take a look at this @jaasonw! Thank you!

@jaasonw
Copy link
Contributor

jaasonw commented Oct 26, 2022

the reason it's taking so long is cus im still looking into fixing the exit animation and havent had the time

@karnikaavelumani
Copy link
Collaborator Author

We can make it a separate issue if you would like, but if not I will also look into it as well. Thank you for letting me know.

@vercel vercel bot temporarily deployed to Preview October 30, 2022 10:47 Inactive
@jaasonw jaasonw marked this pull request as ready for review October 30, 2022 10:48
@vercel vercel bot temporarily deployed to Preview October 30, 2022 10:48 Inactive
Copy link
Contributor

@jaasonw jaasonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@karnikaavelumani karnikaavelumani merged commit ba03ec2 into main Oct 30, 2022
@jaasonw jaasonw deleted the fix/279 branch October 30, 2022 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants