Emmanuil 5 éve
commit
8c57a5248d
6 módosított fájl, 272 hozzáadás és 0 törlés
  1. BIN
      images/card01.png
  2. 42 0
      index.html
  3. 43 0
      style/reset.css
  4. 187 0
      style/style.css
  5. BIN
      valid css.png
  6. BIN
      valid html.png

BIN
images/card01.png


+ 42 - 0
index.html

@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <title>Homework 4</title>
+    <link rel="stylesheet" href="style/reset.css" />
+    <link rel="stylesheet" href="style/style.css" />
+  </head>
+  <body>
+
+    <!-- Уровень1 -->
+    <div class="block-menu">
+      <h1>MENU HERE</h1>
+      <nav class="menu">
+        <ul>
+          <li><a href="#">HOME</a></li>
+          <li><a href="#">CONTACTS</a></li>
+          <li><a href="#">OUR TEAM</a></li>
+          <li><a href="#">FAQ</a></li>
+          <li><a href="#">ABOUT</a></li>
+          <li><a href="#">NEWS</a></li>
+        </ul>
+      </nav>
+    </div>
+
+    <!-- Уровень2 -->
+    <header class="header">
+      <blockquote>Судьба тасует карты, а мы ими играем.</blockquote>
+      <p>Артур Шопенгауэр</p>
+      <img class="card1" src="images/card01.png" alt="card" />
+      <img class="card2" src="images/card01.png" alt="card" />
+      <img class="card3" src="images/card01.png" alt="card" />
+    </header>
+
+    <!-- Уровень 3 -->
+    <div class="square">
+      <div class="moving-block"></div>
+    </div>
+    
+  </body>
+</html>

+ 43 - 0
style/reset.css

@@ -0,0 +1,43 @@
+html, body, div, span, applet, object, iframe,
+    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+    a, abbr, acronym, address, big, cite, code,
+    del, dfn, em, img, ins, kbd, q, s, samp,
+    small, strike, strong, sub, sup, tt, var,
+    b, u, i, center,
+    dl, dt, dd, ol, ul, li,
+    fieldset, form, label, legend,
+    table, caption, tbody, tfoot, thead, tr, th, td,
+    article, aside, canvas, details, embed, 
+    figure, figcaption, footer, header, hgroup, 
+    menu, nav, output, ruby, section, summary,
+    time, mark, audio, video {
+    	margin: 0;
+    	padding: 0;
+    	border: 0;
+    	font-size: 100%;
+    	font: inherit;
+    	vertical-align: baseline;
+    }
+    /* HTML5 display-role reset for older browsers */
+    article, aside, details, figcaption, figure, 
+    footer, header, hgroup, menu, nav, section {
+    	display: block;
+    }
+    body {
+    	line-height: 1;
+    }
+    ol, ul {
+    	list-style: none;
+    }
+    blockquote, q {
+    	quotes: none;
+    }
+    blockquote:before, blockquote:after,
+    q:before, q:after {
+    	content: '';
+    	content: none;
+    }
+    table {
+    	border-collapse: collapse;
+    	border-spacing: 0;
+    }

+ 187 - 0
style/style.css

@@ -0,0 +1,187 @@
+*,
+*::before,
+*::after {
+  box-sizing: border-box;
+}
+
+/* Уровень 1 */
+.block-menu {
+  position: relative;
+  background: #818181;
+  width: 30px;
+  height: 100vh;
+  display: inline-block;
+  transition: width 1s;
+}
+
+h1 {
+  color: #ffffff;
+  transform: rotate(90deg);
+  white-space: nowrap;
+  position: absolute;
+  top: 300px;
+  left: -34px;
+  font-weight: bold;
+  transition: transform 1s, visibility 0.7s, color 1s;
+}
+
+.block-menu:hover {
+  width: 300px;
+}
+
+.block-menu:hover h1 {
+  transform: translateX(270px) rotate(90deg);
+  color: #9e9e9e;
+  visibility: hidden;
+}
+
+.menu {
+  line-height: 2.5;
+  position: absolute;
+  top: 100px;
+  left: -150px;
+  visibility: hidden;
+  transition: transform 1s, visibility 0.3s;
+}
+
+li::before {
+  content: "";
+  display: inline-block;
+  border: 3px black solid;
+  background: orange;
+  width: 12px;
+  height: 12px;
+  transform: rotate(45deg);
+}
+
+a {
+  padding-left: 15px;
+  text-decoration: none;
+  color: #ffffff;
+  font-weight: bold;
+  font-size: 20px;
+}
+
+.block-menu:hover .menu {
+  visibility: visible;
+  opacity: 1;
+  transform: translateX(200px);
+}
+
+a:hover {
+  color: rgb(255, 208, 0);
+  transition: color 0.3s linear;
+}
+
+/* Уровень 2  */
+.header {
+  background: #0d5825;
+  width: 600px;
+  height: 625px;
+  font-size: 25px;
+  color: white;
+  text-align: center;
+  padding-top: 40px;
+  position: relative;
+  float: right;
+  margin-right: 449px;
+}
+
+blockquote::before {
+  content: "\201C";
+}
+
+blockquote::after {
+  content: "\201D	";
+}
+
+blockquote {
+  font-weight: bold;
+}
+
+p {
+  line-height: 1.3;
+  font-style: italic;
+}
+
+img {
+  width: 150px;
+  position: absolute;
+  left: 150px;
+}
+
+.card1 {
+  top: 250px;
+  transform: rotate(-30deg);
+  transition: transform 0.5s;
+}
+
+.card2 {
+  left: 210px;
+  top: 250px;
+  transform: rotate(-15deg);
+  transition: transform 0.5s;
+}
+
+.card3 {
+  left: 267px;
+  top: 270px;
+  transform: rotate(5deg);
+  transition: transform 0.5s;
+}
+
+.card1:hover {
+  transform: translateY(-30px) rotate(-30deg);
+}
+
+.card2:hover {
+  transform: translateY(-30px) rotate(-15deg);
+}
+
+.card3:hover {
+  transform: translateY(-30px) rotate(5deg);
+}
+
+/* Уровень 3 */
+/* Я не сделал на всю ширину экрана, потому что не 
+знаю какой у вас размер */
+.square {
+  width: 449px;
+  height: 625px;
+  position: absolute;
+  right: 0;
+  display: inline-block;
+}
+.moving-block {
+  width: 100px;
+  height: 100px;
+  background: rgb(255, 0, 0);
+  position: absolute;
+  animation: moving 8s linear infinite normal both;
+}
+
+@keyframes moving {
+  0% {
+    top: 0;
+    left: 0;
+  }
+  25% {
+    top: 525px;
+    left: 0;
+    background: rgb(0, 0, 255);
+  }
+  50% {
+    left: 349px;
+    bottom: 0;
+    background: rgb(3, 153, 3);
+  }
+  75% {
+    bottom: 525px;
+    right: 0;
+    background: rgb(255, 255, 0);
+  }
+  100% {
+    right: 349px;
+    background: rgb(255, 0, 0);
+  }
+}

BIN
valid css.png


BIN
valid html.png