Guest User

Untitled

a guest
Jan 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en-us">
  3.  
  4. <head>
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title>SecondTask</title>
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" media="screen" href="css/style.css" />
  10. </head>
  11.  
  12. <body>
  13.  
  14. <main>
  15. <header class="header">
  16. <div class="header__title">Smart Home Monitoring</div>
  17. <time class="header__time">Friday 2/23/2017</time>
  18. </header>
  19. <section>
  20. <div class="item">
  21. <h1> Temperature </h1>
  22. <br> <h2>75&deg;</h2>
  23. <br> <div class="item__positive"> + </div> &nbsp; &nbsp; &nbsp; &nbsp; <div class="item__positive"> - </div>
  24. </div>
  25. <div class="item">
  26. <h1> Electricity </h1>
  27. <br> <h2>84</h2>
  28. <br> <div class="item__valute"> kWh </div>
  29. </div>
  30. <div class="item">
  31. <h1> WiFi </h1>
  32. <br> <h2>21</h2>
  33. <br> <div class="item__valute"> Mb/s </div>
  34. </div>
  35. <div class="item">
  36. <h1>Security </h1>
  37. <br> <h2><i class="fa fa-unlock-alt" aria-hidden="true"></i></h2>
  38. <br> <div class="item__valute"> Unarmed </div>
  39. </div>
  40.  
  41. <div class="item item--hidden"><i class="fa fa-th downicon" aria-hidden="true"></i></div>
  42. <div class="item item--hidden"><i class="fa fa-cog downicon" aria-hidden="true"></i></div>
  43. </section>
  44.  
  45. <section>
  46.  
  47. <div class="item item-five-main">
  48. <div class="item-five"><i class="fa fa-th downicon" aria-hidden="true"></i></div>
  49. <div class="item-five"><i class="fa fa-cog downicon" aria-hidden="true"></i></div>
  50. </div>
  51.  
  52. <div class="item item-six-main">
  53. <div class="item-six">
  54. Monday <br>
  55. <img src="img/1.png" alt="Monday weather" height="62" width="62"> <br>
  56. <div class="item__valute">52&deg;</div>
  57. </div>
  58. <div class="item-six">
  59. Tuesday <br>
  60. <img src="img/5.png" alt="Tuesday weather" height="62" width="62"> <br>
  61. <div class="item__valute">58&deg;</div>
  62. </div>
  63. <div class="item-six">
  64. Wednesday <br>
  65. <img src="img/3.png" alt="Wednesday weather" height="62" width="62"> <br>
  66. <div class="item__valute">63&deg;</div>
  67. </div>
  68. <div class="item-six">
  69. Thursday <br>
  70. <img src="img/4.png" alt="Thursday weather" height="62" width="62"> <br>
  71. <div class="item__valute">59&deg;</div>
  72. </div>
  73. <div class="item-six">
  74. Friday <br>
  75. <img src="img/5.png" alt="Friday weather" height="62" width="62"> <br>
  76. <div class="item__valute">50&deg;</div>
  77. </div>
  78. <div class="item-six">
  79. Saturday <br>
  80. <img src="img/6.png" alt="Saturday weather" height="62" width="62"> <br>
  81. <div class="item__valute">47&deg;</div>
  82. </div>
  83. <div class="item-six">
  84. Sunday <br>
  85. <img src="img/7.png" alt="Monday weather" height="62" width="62"> <br>
  86. <div class="item__valute">49&deg;</div>
  87. </div>
  88. </div>
  89. </section>
  90. </main>
  91.  
  92.  
  93.  
  94. <script src="https://use.fontawesome.com/de6202bdee.js"></script>
  95. </body>
  96.  
  97. </html>
  98.  
  99. $navcolor: #07f;
  100. $white: #fff;
  101. $maincolor: #e5f0f8;
  102. $hoverover: #e5e5e5;
  103.  
  104. body {
  105. font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  106. font-weight: bold;
  107. }
  108.  
  109. main {
  110. background-color: $maincolor;
  111. height: 100%;
  112. margin: 0 auto;
  113. max-width: 1000px;
  114. }
  115.  
  116. section {
  117. display: flex;
  118. flex-wrap: wrap;
  119. justify-content: space-between;
  120. }
  121.  
  122. .header {
  123. background-color: $navcolor;
  124. color: $white;
  125. padding: 20px;
  126.  
  127. &__title {
  128. display: inline;
  129. text-transform: uppercase;
  130. }
  131.  
  132. &__time {
  133. float: right;
  134. }
  135. }
  136.  
  137. h2 {
  138. font-size: 50px;
  139. margin: 0;
  140. }
  141.  
  142. .item {
  143. background-color: $white;
  144. margin: 10px;
  145. text-align: center;
  146. width: 230px;
  147.  
  148. &__positive { display: inline; }
  149.  
  150. &__valute { margin-bottom: 20px; }
  151.  
  152. &--hidden { display: none; }
  153.  
  154. &-five-main {
  155. background-color: transparent;
  156. display: flex;
  157. flex-direction: column;
  158. justify-content: space-between;
  159. }
  160.  
  161. &-five {
  162. background-color: $white;
  163. flex: 1;
  164. font-size: 40px;
  165. padding: 10px;
  166. padding-top: 25px;
  167.  
  168. &:nth-child(2) {
  169. margin-top: 10px;
  170. }
  171.  
  172. }
  173.  
  174. &-six-main {
  175. display: flex;
  176. flex-grow: 5;
  177. flex-wrap: wrap;
  178. justify-content: space-between;
  179. }
  180.  
  181. &-six {
  182. padding-left: 10px;
  183. padding-right: 10px;
  184. padding-top: 20px;
  185.  
  186. img {
  187. padding-bottom: 20px;
  188. padding-top: 20px;
  189. }
  190.  
  191. &:hover {
  192. background-color: $hoverover;
  193. }
  194.  
  195. }
  196. }
  197.  
  198. @media(max-width: 1015px) {
  199. body {
  200. background-color: rgb(182, 253, 255);
  201. }
  202.  
  203. .item {
  204. &--hidden {
  205. display: block;
  206. font-size: 40px;
  207. padding-top: 80px;
  208. }
  209.  
  210. &-five-main { display: none; }
  211. }
  212.  
  213. }
  214.  
  215. @media(max-width: 765px) {
  216. body {
  217. background-color: rgb(205, 255, 182);
  218. }
  219.  
  220. .item {
  221. &--hidden {
  222. display: block;
  223. font-size: 40px;
  224. padding-bottom: 70px;
  225. padding-top: 70px;
  226. }
  227. }
  228.  
  229. }
  230.  
  231. @media(max-width: 515px) {
  232. body {
  233. background-color: rgb(255, 87, 227);
  234. }
  235.  
  236. .item {
  237. margin-left: 15px;
  238. width: 390px;
  239. }
  240.  
  241. .header {
  242. padding: 30px;
  243.  
  244. &__title {
  245. float: left;
  246. font-size: 12px;
  247. }
  248.  
  249. &__time {
  250. float: right;
  251. font-size: 12px;
  252. }
  253. }
  254.  
  255. }
Add Comment
Please, Sign In to add comment