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

solve task #3393

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
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
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Stars block
Replace `<your_account>` with your Github username and copy the links to Pull Request description:
- [DEMO LINK](https://<your_account>.github.io/layout_stars/)
- [TEST REPORT LINK](https://<your_account>.github.io/layout_stars/report/html_report/)
- [DEMO LINK](https://Kredinec.github.io/layout_stars/)
- [TEST REPORT LINK](https://Kredinec.github.io/layout_stars/report/html_report/)

> Follow [this instructions](https://mate-academy.github.io/layout_task-guideline)
___
Expand Down
73 changes: 72 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,77 @@
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1>Stars</h1>

<div class="frame">
<div class="container">
Viktor-Kost marked this conversation as resolved.
Show resolved Hide resolved
<div class="stars stars--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 stars--1">
Viktor-Kost marked this conversation as resolved.
Show resolved Hide resolved
<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>
<div class="stars stars--2">
<div class="stars__star stars_star--active"></div>
Viktor-Kost marked this conversation as resolved.
Show resolved Hide resolved

<div class="stars__star stars_star--active"></div>

<div class="stars_star"></div>

<div class="stars_star"></div>

<div class="stars_star"></div>
</div>
<div class="stars stars--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 stars--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 stars--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>
Viktor-Kost marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
</div>
</body>
</html>

34 changes: 34 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
body {
margin: 0;
}

h1 {
text-align: center;
}
Viktor-Kost marked this conversation as resolved.
Show resolved Hide resolved

.frame {
display: flex;
justify-content: center;
}
Kredinec marked this conversation as resolved.
Show resolved Hide resolved

.container {
justify-content: center;
}

.stars {
display: flex;
}

.stars_star {
background: url("./images/star.svg") center no-repeat;
width: 16px;
height: 16px;
margin-right: 4px;
Viktor-Kost marked this conversation as resolved.
Show resolved Hide resolved
}

.stars_star--active {
background: url("./images/star-active.svg") center no-repeat;
width: 16px;
height: 16px;
margin-right: 4px;
}