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

add solution #4909

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

add solution #4909

wants to merge 2 commits into from

Conversation

V-Shut
Copy link

@V-Shut V-Shut commented Apr 29, 2024

  • DEMO LINK

  • TEST REPORT LINK

  • Yellow stars are added with container modifier + pseudo-selector (NO extra classes)

  • Each BEM block has its own separate file

  • All Typical Mistakes from BEM lesson theory are checked.

  • Code follows all the Code Style Rules ❗️

@V-Shut V-Shut changed the title Develop add task solution May 1, 2024
@V-Shut V-Shut changed the title add task solution code correction May 2, 2024
@V-Shut V-Shut changed the title code correction add solution May 2, 2024
Copy link

@dinaminahi dinaminahi left a comment

Choose a reason for hiding this comment

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

Good job 👍 But we need to do few fixes
Please, read carefully the checklist to the task checklist to the task

src/style.css Outdated
margin: 10px auto 10px 50px;
}

nav {

Choose a reason for hiding this comment

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

Please, check the checklist to the task . Let`s use classes instead of tags for selectors . Fix it through all your file
image

src/index.html Outdated
Comment on lines 41 to 57
<ul class="noPadding">
<a
class="link is-active"
href="APPLE"
>
APPLE
</a>
</ul>

<ul>
<a
class="link"
href="SAMSUNG"
>
SAMSUNG
</a>
</ul>

Choose a reason for hiding this comment

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

Let's create one list(ul) and use li tags for it`s children, that is how lists work

Suggested change
<ul class="noPadding">
<a
class="link is-active"
href="APPLE"
>
APPLE
</a>
</ul>
<ul>
<a
class="link"
href="SAMSUNG"
>
SAMSUNG
</a>
</ul>
<ul class="noPadding">
<li class="list__item">
<a class="link is-active" href="APPLE">
APPLE
</a>
</li>
<li class="list__item">
<a class="link" href="SAMSUNG">
SAMSUNG
</a>
</li>
</ul>

src/style.css Outdated
width: 100%;
box-sizing: border-box;
background-color: rgb(255, 255, 255);
max-height: 60px;

Choose a reason for hiding this comment

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

No need for this line, it is said in the task to set height of 60px only to links

src/style.css Outdated
display: flex;
text-align: center;
margin: 0 50px 0 auto;
height: 60px;

Choose a reason for hiding this comment

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

Same here, remove it from here and add to the link

src/style.css Outdated
border: 1px solid #00acdc;
display: flex;
position: absolute;
margin-top: 19px;

Choose a reason for hiding this comment

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

and if you move the height property to the link instead of nav, you wont need to set margin here

.link {
text-decoration: none;
color: black;
padding: 23px 0;

Choose a reason for hiding this comment

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

Use flexbox, not padding to center the text

Copy link

@dinaminahi dinaminahi left a comment

Choose a reason for hiding this comment

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

Better ⭐ but still few fixes needed
It is said in the task to set the height to links not the nav itself, please fix it
Also run npm run deploy, because the link shows your old code

@V-Shut V-Shut requested a review from dinaminahi May 3, 2024 14:51
Copy link

@dinaminahi dinaminahi left a comment

Choose a reason for hiding this comment

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

Waiting for height to be set on nav link instead of all nav
So I want you to put height: 60px in .nav__link class and remove from .nav class

If you have any questions, please write it here on in QnA chat, I will help 😉

@V-Shut
Copy link
Author

V-Shut commented May 3, 2024

Waiting for height to be set on nav link instead of all nav So I want you to put height: 60px in .nav__link class and remove from .nav class

If you have any questions, please write it here on in QnA chat, I will help 😉

Sorry, just thought I did not pressed re-request bottom) Did not expect you check it so soon)

@V-Shut V-Shut requested a review from dinaminahi May 3, 2024 18:41
Copy link

@dinaminahi dinaminahi left a comment

Choose a reason for hiding this comment

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

Good job 😉 Approved ✅

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.

2 participants