Created
June 25, 2024 10:59
-
-
Save kianurivzzz/72ea1b5d052b5324eba61b5909c586fe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="styles/app.css"> | |
<title>Карточки товара</title> | |
</head> | |
<body> | |
<header class="header p-2 bg-light"> | |
<span class="font-2 font-bold">Логотип</span> | |
<nav> | |
<ul class="nav-horizontal"> | |
<li><a href="#" class="active-link mr-1">Главная</a></li> | |
<li><a href="#" class="mr-1">О нас</a></li> | |
<li><a href="#" class="mr-1">Продукция</a></li> | |
<li><a href="#" class="mr-1">Контакты</a></li> | |
</ul> | |
</nav> | |
</header> | |
<main> | |
<div class="container mt-2"> | |
<section class="catalog"> | |
<div class="catalog-item"> | |
<div class="img">Картинка</div> | |
<div class="catalog-item-name">Товар</div> | |
<div class="catalog-item-price">1100 руб.</div> | |
</div> | |
<div class="catalog-item"> | |
<div class="img">Картинка</div> | |
<div class="catalog-item-name">Товар</div> | |
<div class="catalog-item-price">1100 руб.</div> | |
</div> | |
<div class="catalog-item"> | |
<div class="img">Картинка</div> | |
<div class="catalog-item-name">Товар</div> | |
<div class="catalog-item-price">1100 руб.</div> | |
</div> | |
<div class="catalog-item"> | |
<div class="img">Картинка</div> | |
<div class="catalog-item-name">Товар</div> | |
<div class="catalog-item-price">1100 руб.</div> | |
</div> | |
</section> | |
</div> | |
</main> | |
</body> | |
</html> |
This file contains hidden or 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
* { | |
box-sizing: border-box; | |
} | |
body { | |
margin: 0; | |
padding: 0; | |
color: #303846; | |
font-size: 16px; | |
font-family: sans-serif; | |
line-height: 1.5; | |
background: #f0f3f4; | |
} | |
h1 { | |
padding-right: 15px; | |
padding-left: 15px; | |
font-weight: bold; | |
font-size: 3em; | |
} | |
h2 { | |
padding-right: 15px; | |
padding-left: 15px; | |
font-weight: bold; | |
font-size: 2em; | |
} | |
.h-150 { | |
height: 150px; | |
} | |
.p-2 { | |
padding: 2em; | |
} | |
.mr-1 { | |
margin-right: 1em; | |
} | |
.font-2 { | |
font-size: 2em; | |
} | |
.font-bold { | |
font-weight: bold; | |
} | |
.bg-light { | |
background: #f7f7f7; | |
} | |
.justify-content-between { | |
justify-content: space-between; | |
} | |
.mt-2 { | |
margin-top: 2em; | |
} | |
.header { | |
display: flex; | |
align-items: center; | |
justify-content: space-between; | |
border-bottom: 1px solid #e0dfdf; | |
} | |
.nav-horizontal { | |
display: flex; | |
justify-content: space-between; | |
list-style: none; | |
} | |
.nav-horizontal a { | |
color: #666; | |
font-weight: bold; | |
text-decoration: none; | |
} | |
.nav-horizontal .active-link { | |
color: #424e75; | |
} | |
.nav-horizontal a:hover { | |
color: #c44741; | |
} | |
.container { | |
padding-right: 15px; | |
padding-left: 15px; | |
} | |
.catalog { | |
/* BEGIN (write your solution here) */ | |
/* END */ | |
} | |
.catalog-item { | |
/* BEGIN (write your solution here) */ | |
/* END */ | |
padding: 10px 25px; | |
background: #f9f9f9; | |
border: 1px solid #e8e8e8; | |
} | |
.catalog-item .img { | |
height: 150px; | |
} | |
.catalog-item-name { | |
font-weight: bold; | |
font-size: 1.2em; | |
} | |
.catalog-item-price { | |
color: #666; | |
font-weight: bold; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment