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

multi: Add Navbar #2763

Merged
merged 4 commits into from May 19, 2022
Merged

Conversation

victorgcramos
Copy link
Member

This PR adds the Navbar component implementation on common-ui,
and adds its on our politeia app-shell.

common-ui package:

  • Add Navbar component
  • Add ThemeToggle component

politeia app:

  • Add Navbar on app
  • add politeia logo

UI Preview

Light Theme:
Screen Shot 2022-05-10 at 6 27 17 PM

Dark Theme:
Screen Shot 2022-05-10 at 6 27 33 PM

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

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

  1. The Politeia Logo should be clickable and redirect to the Home.
  2. Where is the .splash class used?
  3. How would I add a hamburger menu to the nav when the children on the right are wrapped?
  4. Your React.Children.maps on Navbar are a bit confusing. Can you add comments or think about alternative implementations?
  5. A little observation: If we are always importing Column as Col from pi-ui, why not exporting Col instead of Column?
  6. The navbar is looking a little bit different than the actual prod app. See:

Prod:
Screen Shot 2022-05-11 at 17 35 25

This PR:
Screen Shot 2022-05-11 at 17 35 45

Background color, font color and spacing are different. Spacing is pretty minimal and if it looks good I'm OK but we should match background color and font color.

  1. Responsive version can be improved a lot comparing to the prod version.

@victorgcramos victorgcramos marked this pull request as draft May 11, 2022 21:01
@victorgcramos
Copy link
Member Author

@tiagoalvesdulce sorry, PR still WIP. Forgot to make it a draft. My bad. Thanks for the feedback, though! I'll keep that in mind!

@victorgcramos
Copy link
Member Author

Navbar for small screens:

Screen Shot 2022-05-13 at 6 55 44 PM

@victorgcramos victorgcramos marked this pull request as ready for review May 13, 2022 21:56
Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

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

LGTM

@tiagoalvesdulce tiagoalvesdulce merged commit f3d48f1 into decred:master May 19, 2022
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.

None yet

2 participants