Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

[DEV-026] Navbar #45

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

[DEV-026] Navbar #45

wants to merge 3 commits into from

Conversation

magnesium4
Copy link
Member

[DEV-026] Navbar

Fixes: #26

  • Has the code been formatted?
  • Have dependencies/packages been added?

Changes

Fixed the colours and margins of Navbar to match the figma stories.
Light mode and dark mode colours currently look the same, other than for the colour of the toggle icon.

Testing

  • Does the code have sufficient automated test coverage? If not, include a reasoning and steps required to manually QA

@magnesium4 magnesium4 added the frontend Work related to the frontend label Jan 6, 2021
@magnesium4 magnesium4 requested a review from jcserv January 6, 2021 22:05
@vercel
Copy link

vercel bot commented Jan 6, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/white-van/dialog/504jo3hi6
✅ Preview: https://dialog-git-dev-026.white-van.vercel.app

@jcserv jcserv requested a review from AipioxTechson January 6, 2021 22:50
Copy link
Contributor

@jcserv jcserv left a comment

Choose a reason for hiding this comment

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

Great work! Few improvements:

  1. You'll need to make sure it passes the linter. Run make prettier in the root directory and then solve any linting issues that pop up.
  2. Could you make the Dialog text link to the homepage?
  3. Add on checks similar to the existing one to verify that the login button is there, that the logo is there, and that clicking on the logo goes to the homepage.

Copy link
Member

@AipioxTechson AipioxTechson left a comment

Choose a reason for hiding this comment

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

Awesome Work!! Added some comments on some bookkeeping things!

const boxBg = useColorModeValue("#343A40", "#343A40");
const buttonBg = useColorModeValue("#2D9CDB", "#2D9CDB");
const iconColor = useColorModeValue("#ECC94B", "light");

Copy link
Member

Choose a reason for hiding this comment

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

Nice fix for this! we will probably need to implement a custom colorScheme so we can use the LightMode DarkMode components properly, but that can be done on a later date

Sign Up
</Button>
<Button m="1" size="sm">
<Button m="1" size="sm" bg={buttonBg} color={textColor}>
Login
</Button>
Copy link
Member

@AipioxTechson AipioxTechson Jan 9, 2021

Choose a reason for hiding this comment

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

Can we i18n Sign up and Login?

return (
<Flex w="100%" m="2" mb="4">
<Box m="2">
<Flex w="101%" mb="4" bg={boxBg} boxShadow="lg">
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: Since this component is used outside of the main landmark, we need to provide a semantic landmark HTML element as the wrapper rather than it being a div, can we convert this to use a nav?

Suggested change
<Flex w="101%" mb="4" bg={boxBg} boxShadow="lg">
<Flex w="101%" mb="4" bg={boxBg} boxShadow="lg" as="nav">

For reference: https://www.w3.org/TR/wai-aria-practices/examples/landmarks/HTML5.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frontend Work related to the frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navbar
4 participants