Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
136 changes: 136 additions & 0 deletions Ilia Volkov/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-size: 1.6rem;

Choose a reason for hiding this comment

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

Для относительных величин шрифта лучше где-нибудь в body определить дефолтный размер, т.к. в браузерах может отличаться это значение

background-color: #4e5860;
}
.card {
max-width: 389px;
box-shadow: 0 21px 20px 1px rgba(0, 0, 0, 0.15), 0 0 10px rgba(0, 0, 0, 0.07);
border-radius: 10px 10px 29px 29px;
background-color: #f1f8f9;
margin: 20px auto;
}
.card__top {
position: relative;

display: flex;
flex-flow: column wrap;

padding: 6.8rem 1.7rem 2.8rem 2.2rem;
}
.card__refresh {
position: absolute;
top: 2%;
left: 92%;
width: 21px;
height: 19px;
cursor: pointer;
}
.card__img {
width: 146px;
height: 121px;

margin: auto;
}
.card__info {
display: flex;
flex-wrap: wrap;
align-items: center;
margin-top: 6.6rem;
}
.info__temp {
color: #8d9396;
font-family: "Proxima Nova";

Choose a reason for hiding this comment

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

Для шрифтов лучше указать фолбековый шрифт, если основной шрифт не подтянется.Например, почитать можно здесь: https://css-tricks.com/css-basics-fallback-font-stacks-robust-web-typography/

font-size: 5.8rem;
font-weight: 300;
text-transform: uppercase;
margin-right: 1rem;
}
.info__title {
margin-bottom: 0.6rem;

color: #bac2c6;
font-family: "Source Sans Pro";
font-size: 2.4rem;
font-weight: 300;
}
.info__descr {
color: #a2a9ad;
font-family: "Source Sans Pro - Semibold";
font-size: 1.6rem;
font-weight: 400;
}
.card__date {
max-width: 65px;
margin-left: auto;
margin-right: -1.7rem;
text-align: center;
font-size: 2rem;
text-transform: uppercase;

padding: 1rem 0;
color: #fff;
background-color: #54bae6;
}
.card__bottom {
display: flex;
flex-flow: column wrap;

padding: 4.6rem 4rem 2rem 4rem;
border-radius: 0 0 10px 10px;
color: #fff;
background-color: #2e3335;
}
.card__list {
display: flex;
flex-wrap: wrap;
list-style: none;
align-items: center;

width: 100%;
}
.list__item {
display: flex;
margin-left: 4.2rem;
align-items: center;
}
.list__item:first-child {
margin-left: 0;
}
.list__item span {
margin-left: 1.7rem;
}

.card__bullets {
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none;
margin-top: 4rem;
}
.bullets__item {
margin-left: 1rem;
}
.bullets__link {
display: block;
width: 1rem;
height: 1rem;
border-radius: 100%;
cursor: pointer;
border: 0.2rem solid rgba(255, 255, 255, 0.2);
}
.bullets__link--active {
display: block;
width: 1rem;
height: 1rem;
border-radius: 100%;

background: #fff;
}
Binary file added Ilia Volkov/img/cloudy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ilia Volkov/img/rain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ilia Volkov/img/refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ilia Volkov/img/sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Ilia Volkov/img/wind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions Ilia Volkov/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/style.css" />
<title>New Jersey</title>
</head>
<body>
<article class="card">
<div class="card__top">
<a><img src="img/refresh.png" alt="refresh" class="card__refresh"/></a>
<img src="img/refresh.png" alt="refresh" class="card__refresh" />
<img src="img/cloudy.png" alt="cloudy" class="card__img" />

Choose a reason for hiding this comment

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

Очень приятно видеть альты для картинок :)

<div class="card__info">
<span class="info__temp">79&#176;</span>
<div class="info__text">
<h3 class="info__title">Cloudy Skies</h3>
<p class="info__descr">Sicklerville, New Jersey</p>
</div>
<div class="card__date">
MAY 21
</div>
</div>
</div>
<div class="card__bottom">
<ul class="card__list">
<li class="list__item">
<img src="img/wind.png" alt="wind" /> <span>2 MPH</span>
</li>
<li class="list__item">
<img src="img/rain.png" alt="rain" /> <span>33%</span>
</li>
<li class="list__item">
<img src="img/sun.png" alt="sun" /> <span>83%</span>
</li>
</ul>
<ul class="card__bullets">
<li class="bullets__item">
<a class="bullets__link bullets__link--active"></a>
</li>
<li class="bullets__item"><a class="bullets__link"></a></li>
<li class="bullets__item"><a class="bullets__link"></a></li>
</ul>
</div>
</article>
</body>
</html>