-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56dc17c
commit 2679c39
Showing
4 changed files
with
227 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
.card-menu { | ||
--count-column: 1; | ||
|
||
padding: 50px 40px; | ||
display: grid; | ||
grid-template-columns: repeat(var(--count-column) 200px); | ||
grid-template-rows: repeat(2, 406px); | ||
gap: 48px 46px; | ||
|
||
@media (min-width: 488px) { | ||
--count-column: 2; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
--count-column: 3; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
--count-column: 4; | ||
} | ||
} | ||
|
||
.card { | ||
width: 200px; | ||
padding: 32px 16px 16px; | ||
box-sizing: border-box; | ||
border-radius: 5px; | ||
background-color: 1px solid #f3f3f3; | ||
transition: transform 300ms; | ||
|
||
&:hover { | ||
transform: scale(1.2); | ||
|
||
.card_title { | ||
color: #34568b; | ||
} | ||
} | ||
|
||
&__title { | ||
display: flex; | ||
font-weight: 500; | ||
font-size: 12px; | ||
margin-top: 40px; | ||
margin-bottom: 0; | ||
line-height: 18px; | ||
color: #060b35; | ||
} | ||
|
||
&__info { | ||
width: 98px; | ||
height: 14px; | ||
font-weight: 400; | ||
font-size: 10px; | ||
margin-right: 68px; | ||
margin-top: 4px; | ||
margin-bottom: 16px; | ||
line-height: 14px; | ||
color: #616070; | ||
} | ||
|
||
&_imagep { | ||
width: 160px; | ||
height: 134px; | ||
margin: 0 auto 40px; | ||
display: block; | ||
} | ||
|
||
&__price { | ||
display: flex; | ||
margin-top: 24px; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
&__ptext { | ||
font-weight: 400; | ||
font-size: 12px; | ||
line-height: 18px; | ||
color: #616070; | ||
} | ||
|
||
&__pnumber { | ||
font-weight: 700; | ||
font-size: 16px; | ||
line-height: 18px; | ||
color: #060b35; | ||
} | ||
|
||
&__raiting { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
&__rewiews { | ||
font-weight: 400; | ||
font-size: 10px; | ||
line-height: 16px; | ||
color: #060b35; | ||
} | ||
|
||
&__buy { | ||
color: #fff; | ||
background-color: #00acdc; | ||
border: 1px solid #00acdc; | ||
border-radius: 5px; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 40px; | ||
margin-top: 16px; | ||
font-size: 14px; | ||
font-weight: 700; | ||
text-decoration: none; | ||
display: flex; | ||
} | ||
|
||
&__buy:hover { | ||
color: #00acdc; | ||
background-color: #fff; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
:root { | ||
--blue-color: rgba(0, 172, 220, 1); /* CSS-змінна для синього кольору */ | ||
} | ||
|
||
body { | ||
padding: 0; | ||
box-sizing: border-box; | ||
margin: 0; | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
header { | ||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.18); | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.navigation__item { | ||
text-align: center; | ||
position: relative; | ||
font-size: 12px; | ||
text-decoration: none; | ||
color: black; | ||
height: 60px; /* Висота посилання */ | ||
line-height: 60px; /* Вирівнювання тексту вертикально */ | ||
|
||
&--is-active::after { | ||
content: ''; | ||
position: absolute; | ||
bottom: -22px; | ||
left: 0; | ||
width: 100%; | ||
height: 4px; | ||
background-color: var(--blue-color); | ||
border-radius: 2px; | ||
} | ||
} | ||
|
||
nav ul { | ||
list-style: none; | ||
display: flex; | ||
margin: 0; | ||
} | ||
|
||
.container { | ||
position: relative; | ||
margin-right: 40px; | ||
} | ||
|
||
.logo { | ||
height: 40px; | ||
width: 40px; | ||
margin-left: 50px; | ||
} | ||
|
||
nav ul li { | ||
position: relative; | ||
margin: 0 10px; | ||
} | ||
|
||
nav ul li:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
nav ul li:last-child { | ||
margin-right: 0; | ||
} | ||
|
||
.box:hover { | ||
color: var(--blue-color); | ||
} | ||
|
||
[data-qa='hover']:hover { | ||
color: var(--blue-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.stars { | ||
display: flex; | ||
|
||
&__star { | ||
height: 16px; | ||
width: 16px; | ||
background-image: url(../images/star.svg); | ||
background-repeat: no-repeat; | ||
margin-right: 4px; | ||
background-position: center; | ||
} | ||
|
||
&__star:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
&__star:nth-child(-n + 4) { | ||
background-image: url(../images/star-active.svg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
@import 'header'; | ||
@import 'card'; | ||
@import 'stars'; | ||
|
||
body { | ||
margin: 0; | ||
font-family: Roboto, serif, sans-serif; | ||
font-weight: 500; | ||
font-size: 12px; | ||
} |