-
Notifications
You must be signed in to change notification settings - Fork 12
create markup #1
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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; | ||
| 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"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
| 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" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Очень приятно видеть альты для картинок :) |
||
| <div class="card__info"> | ||
| <span class="info__temp">79°</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> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для относительных величин шрифта лучше где-нибудь в body определить дефолтный размер, т.к. в браузерах может отличаться это значение