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

gpg/gc-menu-nav #8797

Merged
merged 20 commits into from
Apr 22, 2021
Merged

gpg/gc-menu-nav #8797

merged 20 commits into from
Apr 22, 2021

Conversation

gdixon
Copy link
Contributor

@gdixon gdixon commented Apr 16, 2021

Description

This PR implements the new menu designs using an alternative approach (compared to #8756)

PRD: https://docs.google.com/...F7Cz_Fa0nAkMR3Yef1-eyU5c
Figma: https://www.figma.com/...Design-System---WIP-020221

Tasks from the PRD:

  1. Implements new component designs
  2. Replaces “Townsquare” with a “What’s Possible” drop down, expanding into Gitcoin’s Jobs to be Done in-app landing pages, which funnel users into one of Gitcoin’s main products.
  3. Shuttles “Townsquare” into the “Community” dropdown.
  4. Removes “Looking For Developers”
  5. Keeps the “Products” drop down as is.

In addition, this PR also:

  1. Applies branding and the main nav to the wiki
  2. Fixes logo for https://gitcoin.co/grants/quickstart
  3. Fixes block tags in (kudos) receive_bulk.html
  4. Fixes padding for notification dropdown area
  5. Fixes padding for search/results dropdown area
  6. Locks the body scroll when the nav is open in mobile view (so that the user can only interact with the nav)
  7. Sets all content in the mobile nav to height:auto so that there is only one scrollable area in the mobile nav
  8. Updates the Products menu to use a submenu to display additional links
  9. Updates the Company menu to be contained in a single column
  10. Implements transitions
  11. Implements hysteresis controls for Products submenu
  12. Implements alternative touch method for Products submenu
  13. Updates font-awesome (5.12.1 -> 5.15.3)
Refers/Fixes

Refers: #8756
Closes: #8367

Testing

This branch is live on the staging server 🚀

Desktop view

Screenshot 2021-04-17 at 00 02 02

Mobile view

Screenshot 2021-04-16 at 23 59 19

@gdixon gdixon changed the title WIP: gpg/gc-menu-nav gpg/gc-menu-nav Apr 20, 2021
@gdixon gdixon marked this pull request as ready for review April 20, 2021 18:13
Comment on lines 1419 to 1422
const breakpoint_sm = 576;
const breakpoint_md = 768;
const breakpoint_lg = 992;
const breakpoint_xl = 1200;
Copy link
Contributor

@octavioamu octavioamu Apr 20, 2021

Choose a reason for hiding this comment

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

Maybe you want to get it from the css variables
getComputedStyle(document.documentElement).getPropertyValue('--breakpoint-sm');
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;

But just a suggestion as probably could delay the nav  load to be ready 

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea 👍 I'm already reading --gc-menu-transition-duration from the styles so it shouldn't introduce any further delay...

I've bound the whole of navbar.js to DOMContentLoaded and added showMenu() to the click event - those changes are now on staging, it seems to work well but let me know if you think the delay is too much and I can switch it back. 7cd0d2e

<!-- Main -->
{% block 'main' %}
{% compress css file receive_bulk %}
<link rel="stylesheet" type="text/x-scss" href={% static "v2/scss/jquery-ui.scss" %} />
Copy link
Contributor

Choose a reason for hiding this comment

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

😢

Copy link
Contributor

@octavioamu octavioamu left a comment

Choose a reason for hiding this comment

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

This is great,
just an small thing, seems there are some regressions on https://stage.gitcoin.co/tip with the profile image and as the nav doesn't exist there

Copy link
Contributor

@chibie chibie left a comment

Choose a reason for hiding this comment

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

nice work man... this is 🔥

only replace URL paths with django URL tag... i pointed some but you can check others i may have missed

app/retail/templates/shared/nav.html Outdated Show resolved Hide resolved
app/retail/templates/shared/nav_hackathons.html Outdated Show resolved Hide resolved
app/retail/templates/wiki/base_site.html Outdated Show resolved Hide resolved
app/dashboard/templates/shared/cart_nav.html Outdated Show resolved Hide resolved
app/retail/templates/home/nav.html Outdated Show resolved Hide resolved
app/retail/templates/home/nav_mission.html Outdated Show resolved Hide resolved
@gdixon
Copy link
Contributor Author

gdixon commented Apr 21, 2021

This is great,
just an small thing, seems there are some regressions on https://stage.gitcoin.co/tip with the profile image and as the nav doesn't exist there

I've resolved this (f454427) and updated the navbar-brand logo, check it out on staging 👍

@gdixon gdixon requested a review from chibie April 21, 2021 23:44
@thelostone-mc thelostone-mc merged commit 36ffb82 into master Apr 22, 2021
@gdixon gdixon mentioned this pull request Apr 22, 2021
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.

gpg - navigation / main nav
4 participants