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

Develop #93

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Develop #93

wants to merge 6 commits into from

Conversation

Copy link

@qoa11a qoa11a left a comment

Choose a reason for hiding this comment

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

image
Something's wrong with your test. Fix it please. Write in chat in case you need help.

src/style.css Outdated
}

.nav__list:hover {
color: aqua;
Copy link

Choose a reason for hiding this comment

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

That's not the right color. Please take color from Figma design.

Copy link
Author

Choose a reason for hiding this comment

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

Okay, changed color to #00acdc per figma design

Copy link
Author

Choose a reason for hiding this comment

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

As far as tests, I've never been able to get them to pass properly even on the simplest of tasks. I'll ask in chat

src/style.css Outdated

.is-active {
color: aqua;
text-decoration: underline;
Copy link

Choose a reason for hiding this comment

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

It should be done with ::after and without text-decoration: underlane.

Copy link
Author

Choose a reason for hiding this comment

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

Used bottom-border instead, see change. I'm unclear how pseudo-element ::after is supposed to work, haven't gone over this in lectures.

src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated Show resolved Hide resolved
src/index.html Outdated
<li class="nav__list">Photo</li>
<li class="nav__list">Video</li>
</ul>
</div>

Choose a reason for hiding this comment

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

nesting for this task , follow below format

<body>
    <header class="header">
      <a href="#" class="logo">
        <img
          src=""
          alt=""
          class=""
        >
      </a>
      <nav class="nav">
        <ul class="nav__list">
          <li class="nav__item">
            <a href="#" class="nav__link is-active">Apple</a>
          </li>
          <li class="nav__item">
            <a href="#" class="nav__link">Samsung</a>
          </li>
          .........
          <li class="nav__item">
            <a href="#" class="nav__link">Video</a>
          </li>
        </ul>
        </nav>
    </header>
  </body>

Copy link
Author

Choose a reason for hiding this comment

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

I've altered the HTML accordingly. See latest revision and tell me what you think

@Dynamizx Dynamizx requested review from amitpatiljc and qoa11a and removed request for amitpatiljc and qoa11a November 17, 2022 18:24
Copy link

@amitpatiljc amitpatiljc left a comment

Choose a reason for hiding this comment

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

Please follow suggestions, but need to implement more than I have suggested

src/style.css Show resolved Hide resolved
src/style.css Show resolved Hide resolved
src/style.css Outdated
Comment on lines 12 to 15
.logo {
margin-left: 2.5%;
flex-grow: 3;
}

Choose a reason for hiding this comment

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

  1. you wont require both margin-left and flex-grow after you are done with suggestion for header class
  2. add height and width desired for the logo here

Copy link
Author

Choose a reason for hiding this comment

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

Removed and added height, width 40px. Cool, it still works

src/style.css Outdated
Comment on lines 17 to 21
.nav__list {
display: inline-flex;
justify-content: space-evenly;
list-style: none;
}

Choose a reason for hiding this comment

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

Suggested change
.nav__list {
display: inline-flex;
justify-content: space-evenly;
list-style: none;
}
.nav__list {
display: flex;
list-style: none;
}
}

this will fix the alignment

Copy link
Author

Choose a reason for hiding this comment

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

Also works

src/style.css Outdated
}

.is-active {
color: #00acdc;

Choose a reason for hiding this comment

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

use ::after instead of border-bottom and have position: absolute and make it position according to nav__link (for that you have to give nav__link position: relative

Copy link
Author

Choose a reason for hiding this comment

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

Unsure how to get this pseudo-element to work as it should, even when I copy the figma mockup directly I see no change

@Dynamizx Dynamizx requested a review from amitpatiljc November 18, 2022 11:55
Copy link

@jstmpelowycz jstmpelowycz left a comment

Choose a reason for hiding this comment

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

why all tests failed – issues with fonts, forgetting to reset default margins, issues with is-active, etc.
let it be this way, do not spend too much time on one task, keep moving, but make sure to review my comments down below

Comment on lines +21 to +24
.nav__list {
display: flex;
list-style: none;
}

Choose a reason for hiding this comment

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

you have to reset default paddings/margins for ul

Comment on lines +44 to +56
.nav__link::after {
position: absolute;
width: 37px;
height: 4px;
left: 509px;
top: 56px;
background: #00acdc;
border-radius: 8px;
/* padding-bottom: 20px; */
/* border-bottom: 4px solid #00acdc; */
}

/* .is-active {} */

Choose a reason for hiding this comment

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

  • these styles should be applied to .is-active, not .nav__link
  • to make that blue dash appear, add content: "" line in your styles

NB: do not just copy-paste styles from Figma, those are just auto-generated, literally hardcoded
some of them are required (colors, fonts, line-heights, paddings, etc.), some of them should not be copy-pasted (position, etc.)

@@ -6,9 +6,42 @@
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Moyo header</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto">

Choose a reason for hiding this comment

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

you've imported the font, but there is not font-weight, so you text does not match
should be something like this one

https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap

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.

4 participants