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 task solution #3384

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

add task solution #3384

wants to merge 2 commits into from

Conversation

Copy link

@darokrk darokrk left a comment

Choose a reason for hiding this comment

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

UI looks fine 👍🏽 , but code need few more improvements 🛠️ 👨🏽‍💻

src/style.css Outdated
.stars--3 .stars_star:nth-child(-n + 3),
.stars--4 .stars_star:nth-child(-n + 4),
.stars--5 .stars_star:nth-child(-n + 5) {
background-image: url(images\star-active.svg);
Copy link

Choose a reason for hiding this comment

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

The file path in CSS should use forward slashes, not backslashes. Replace 'images\star-active.svg' with 'images/star-active.svg'.

Copy link
Author

Choose a reason for hiding this comment

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

VS Code made file path with backslashes automatically. Corrected it manually.
Zrzut ekranu 2023-07-27 o 11 32 59

src/style.css Outdated
.stars_star {
width: 16px;
height: 16px;
background-image: url(images\star.svg);
Copy link

Choose a reason for hiding this comment

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

The file path in CSS should use forward slashes, not backslashes. Replace 'images\star.svg' with 'images/star.svg'.

src/index.html Outdated
@@ -8,6 +8,54 @@
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1>Stars</h1>
<main class="main">
<div class="stars stars--0">
Copy link

Choose a reason for hiding this comment

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

These HTML elements, following semantic tags should be rather instead of divs:

<ul>
  <li></li>
  <li></li>
  ...
</ul>

Copy link
Author

Choose a reason for hiding this comment

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

Done.
One question. Why PR #3381 is done with divs and it's approved?

src/style.css Outdated
margin-left: 4px;
}

.stars--1 .stars_star:nth-child(-n + 1),
Copy link

Choose a reason for hiding this comment

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

think using this selectors should be enough .stars--1 :nth-child(-n + 1),
.stars--2 :nth-child(-n + 1) etc..

@MarekSax MarekSax requested a review from darokrk July 27, 2023 09:48
Copy link

@darokrk darokrk left a comment

Choose a reason for hiding this comment

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

Well done 🏆

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