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

Solution #3505

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,56 @@
</head>
<body>
<h1>Stars</h1>
<div class="page">
<div class="page__container">
<div class="stars star--0">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="stars star--1">
<div class="stars__star stars__star--active"></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2023-08-22 at 07 10 36

missed requirements

Copy link
Author

Choose a reason for hiding this comment

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

я неправильно розумію вимоги - я додала в кожен з 5ти блоків клас stars--N ?

Copy link
Author

Choose a reason for hiding this comment

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

oops, stars (not star)

<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="stars star--2">
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>

Choose a reason for hiding this comment

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

Need to fix it everywhere

Suggested change
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>

<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="stars star--3">
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="stars star--4">
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star"></div>
</div>

<div class="stars star--5">
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
</div>
</div>
</div>
</body>
</html>
39 changes: 39 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
html {
margin: 0;
padding: 0;
box-sizing: border-box;
}

.page {
display: flex;
}

.page__container {
display: flex;
flex-direction: column;
}

.stars {
display: flex;
}

.stars__star {
width: 16px;
height: 16px;
background-image: url(/images/star.svg);
background-position: center;
background-repeat: no-repeat;
margin-left: 4px;
}

.stars :first-child {
margin-left: 0;
}

.stars :last-child {
margin-right: 0;
}

.stars__star--active {
background-image: url(/images/star-active.svg);
}
Loading