Kaynağa Gözat

15PH86P498X

Антон Фролов 4 yıl önce
işleme
5a450ef3a9

+ 178 - 0
Markup9/css/all.css

@@ -0,0 +1,178 @@
+body {
+    font: 18px/25px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
+}
+
+*,
+*:before,
+*:after {
+    box-sizing: border-box;
+}
+
+header {
+    display: flex;
+    justify-content: space-between;
+    background-color: yellow;
+    max-height: 15vh;
+    align-items: center;        
+}
+
+.logo img {
+    max-height: 10vh;
+}
+
+nav ul li {
+    display: inline;
+    padding-right: 20px;
+}
+
+nav ul li a:hover {
+    color: red;
+}
+
+nav ul li a {
+    text-decoration: none;
+}
+
+footer {
+    background-color: green;
+    text-align: center;
+}
+
+.wrapper {
+    display: flex;
+    min-height: 100vh;    
+}
+
+.aside1, .aside2 {
+    width: 210px;
+    text-align: center;
+    padding-top: 10px;
+}
+
+.aside1 {
+    order: 1;
+    background-color: palevioletred;
+}
+
+.aside2 {
+    order: 3;
+    background-color: grey;
+}
+
+.center { 
+    display: flex;
+    padding: 5px;
+    order: 2;
+    flex-direction: column;
+    align-items: center;
+    flex-grow: 1;
+}
+
+.square1,
+.square2,
+.square3,
+.square4,
+.square5,
+.square6 {
+    width: 300px;
+    border: solid 2px;
+    border-radius: 35px; 
+    display: flex; 
+    flex-direction: column;
+    align-items: center;
+    margin: 20px 0 20px 0;
+    padding: 10px;
+    text-align: center;
+}
+
+.bigsquare {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: space-around;
+    align-content: space-between;    
+}
+
+.bigsquare img {
+    border-radius: 50%;
+    max-width: 15vh; 
+    padding: 20px;   
+}
+
+h3+p {
+    display: flex;
+    flex-grow: 1;
+}
+
+button {
+    border-radius: 30px 30px;
+    color: white;
+    background-color: violet;
+    padding: 15px 32px  ;
+    margin: 4px 2px;
+}
+
+button:hover {
+    color: blue;
+    transition: all 0.5s ease-in-out;
+    transform: translateY(-20px);
+}
+
+.holder {   
+    display: flex;
+    flex-wrap: wrap;
+    height: 250px;
+    width: 500px;
+    border: solid 3px;
+    border-radius: 38px 38px 0 0;
+}
+
+.item {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+}
+
+.item:first-child {
+    background-color: #f00;
+    order: 1;
+    flex-grow:2;
+    width: 50%;
+    border-radius: 35px 0 0 0;
+}
+
+.item:nth-child(2) {
+    background-color: blue;
+    order: 4; 
+    flex-grow:1;
+    height: 50%;
+}
+
+.item:nth-child(3) {
+    background-color: magenta;
+    order: 3;
+    flex-grow:1;
+    height: 50%;
+}
+
+.item:nth-child(4) {
+    background-color: green;
+    order: 5;
+    flex-grow:1;
+    height: 50%;
+}
+
+.item:nth-child(5) {
+    background-color: greenyellow);
+    order: 2;
+    flex-grow:1;
+    height: 50%;
+}
+
+.item:last-child {
+    background-color: orange;
+    order: 2;
+    flex-grow:2;
+    height: 50%;
+    width: 50%;
+    border-radius: 0 35px 0 0;
+}

+ 379 - 0
Markup9/css/reset.css

@@ -0,0 +1,379 @@
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
+
+/* Document
+   ========================================================================== */
+
+/**
+ * 1. Correct the line height in all browsers.
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
+ */
+
+html {
+    line-height: 1.15;
+    /* 1 */
+    -webkit-text-size-adjust: 100%;
+    /* 2 */
+}
+
+/* Sections
+   ========================================================================== */
+
+/**
+ * Remove the margin in all browsers.
+ */
+
+body {
+    margin: 0;
+}
+
+/**
+ * Render the `main` element consistently in IE.
+ */
+
+main {
+    display: block;
+}
+
+/**
+ * Correct the font size and margin on `h1` elements within `section` and
+ * `article` contexts in Chrome, Firefox, and Safari.
+ */
+
+h1 {
+    font-size: 2em;
+    margin: 0.67em 0;
+}
+
+/* Grouping content
+   ========================================================================== */
+
+/**
+ * 1. Add the correct box sizing in Firefox.
+ * 2. Show the overflow in Edge and IE.
+ */
+
+hr {
+    box-sizing: content-box;
+    /* 1 */
+    height: 0;
+    /* 1 */
+    overflow: visible;
+    /* 2 */
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+pre {
+    font-family: monospace, monospace;
+    /* 1 */
+    font-size: 1em;
+    /* 2 */
+}
+
+/* Text-level semantics
+   ========================================================================== */
+
+/**
+ * Remove the gray background on active links in IE 10.
+ */
+
+a {
+    background-color: transparent;
+}
+
+/**
+ * 1. Remove the bottom border in Chrome 57-
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
+ */
+
+abbr[title] {
+    border-bottom: none;
+    /* 1 */
+    text-decoration: underline;
+    /* 2 */
+    text-decoration: underline dotted;
+    /* 2 */
+}
+
+/**
+ * Add the correct font weight in Chrome, Edge, and Safari.
+ */
+
+b,
+strong {
+    font-weight: bolder;
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+code,
+kbd,
+samp {
+    font-family: monospace, monospace;
+    /* 1 */
+    font-size: 1em;
+    /* 2 */
+}
+
+/**
+ * Add the correct font size in all browsers.
+ */
+
+small {
+    font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` elements from affecting the line height in
+ * all browsers.
+ */
+
+sub,
+sup {
+    font-size: 75%;
+    line-height: 0;
+    position: relative;
+    vertical-align: baseline;
+}
+
+sub {
+    bottom: -0.25em;
+}
+
+sup {
+    top: -0.5em;
+}
+
+/* Embedded content
+   ========================================================================== */
+
+/**
+ * Remove the border on images inside links in IE 10.
+ */
+
+img {
+    border-style: none;
+}
+
+/* Forms
+   ========================================================================== */
+
+/**
+ * 1. Change the font styles in all browsers.
+ * 2. Remove the margin in Firefox and Safari.
+ */
+
+button,
+input,
+optgroup,
+select,
+textarea {
+    font-family: inherit;
+    /* 1 */
+    font-size: 100%;
+    /* 1 */
+    line-height: 1.15;
+    /* 1 */
+    margin: 0;
+    /* 2 */
+}
+
+/**
+ * Show the overflow in IE.
+ * 1. Show the overflow in Edge.
+ */
+
+button,
+input {
+    /* 1 */
+    overflow: visible;
+}
+
+/**
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
+ * 1. Remove the inheritance of text transform in Firefox.
+ */
+
+button,
+select {
+    /* 1 */
+    text-transform: none;
+}
+
+/**
+ * Correct the inability to style clickable types in iOS and Safari.
+ */
+
+button,
+[type="button"],
+[type="reset"],
+[type="submit"] {
+    -webkit-appearance: button;
+}
+
+/**
+ * Remove the inner border and padding in Firefox.
+ */
+
+button::-moz-focus-inner,
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+    border-style: none;
+    padding: 0;
+}
+
+/**
+ * Restore the focus styles unset by the previous rule.
+ */
+
+button:-moz-focusring,
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
+    outline: 1px dotted ButtonText;
+}
+
+/**
+ * Correct the padding in Firefox.
+ */
+
+fieldset {
+    padding: 0.35em 0.75em 0.625em;
+}
+
+/**
+ * 1. Correct the text wrapping in Edge and IE.
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
+ * 3. Remove the padding so developers are not caught out when they zero out
+ *    `fieldset` elements in all browsers.
+ */
+
+legend {
+    box-sizing: border-box;
+    /* 1 */
+    color: inherit;
+    /* 2 */
+    display: table;
+    /* 1 */
+    max-width: 100%;
+    /* 1 */
+    padding: 0;
+    /* 3 */
+    white-space: normal;
+    /* 1 */
+}
+
+/**
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
+ */
+
+progress {
+    vertical-align: baseline;
+}
+
+/**
+ * Remove the default vertical scrollbar in IE 10+.
+ */
+
+textarea {
+    overflow: auto;
+}
+
+/**
+ * 1. Add the correct box sizing in IE 10.
+ * 2. Remove the padding in IE 10.
+ */
+
+[type="checkbox"],
+[type="radio"] {
+    box-sizing: border-box;
+    /* 1 */
+    padding: 0;
+    /* 2 */
+}
+
+/**
+ * Correct the cursor style of increment and decrement buttons in Chrome.
+ */
+
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+    height: auto;
+}
+
+/**
+ * 1. Correct the odd appearance in Chrome and Safari.
+ * 2. Correct the outline style in Safari.
+ */
+
+[type="search"] {
+    -webkit-appearance: textfield;
+    /* 1 */
+    outline-offset: -2px;
+    /* 2 */
+}
+
+/**
+ * Remove the inner padding in Chrome and Safari on macOS.
+ */
+
+[type="search"]::-webkit-search-decoration {
+    -webkit-appearance: none;
+}
+
+/**
+ * 1. Correct the inability to style clickable types in iOS and Safari.
+ * 2. Change font properties to `inherit` in Safari.
+ */
+
+::-webkit-file-upload-button {
+    -webkit-appearance: button;
+    /* 1 */
+    font: inherit;
+    /* 2 */
+}
+
+/* Interactive
+   ========================================================================== */
+
+/*
+ * Add the correct display in Edge, IE 10+, and Firefox.
+ */
+
+details {
+    display: block;
+}
+
+/*
+ * Add the correct display in all browsers.
+ */
+
+summary {
+    display: list-item;
+}
+
+/* Misc
+   ========================================================================== */
+
+/**
+ * Add the correct display in IE 10+.
+ */
+
+template {
+    display: none;
+}
+
+/**
+ * Add the correct display in IE 10.
+ */
+
+[hidden] {
+    display: none;
+}

BIN
Markup9/image/af.jpg


BIN
Markup9/image/favicon.ico


BIN
Markup9/image/logo-coral.png


+ 38 - 0
Markup9/index.html

@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="zxx">
+    <head>
+        <meta charset="UTF-8">
+        <title>Markup ext 2 Занятие № 9. Антон Фролов</title>
+        <link rel="stylesheet" href="css/reset.css">
+        <link rel="stylesheet" href="css/all.css">
+        <link rel="icon" href="image/favicon.ico">
+    </head>
+    <body>
+        <header>
+            <strong class="logo">
+                <a href="index.html"><img src="image/logo-coral.png" alt="Логотип"></a>
+            </strong>
+            <nav>
+                <ul>
+                    <li><a href="index.html">Item 1</a></li>
+                    <li><a href="level2.html">Уровень 2</a></li>
+                    <li><a href="level3.html">Уровень 3</a></li>
+                    <li><a href="#">Item 4</a></li>
+                    <li><a href="#">Item 5</a></li>
+                </ul>
+            </nav>
+        </header>
+        <main>
+            <div class="wrapper">
+                <div class="center">
+                    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cupiditate, vero minima ullam porro quis
+                        maxime, fugit id distinctio facilis doloremque asperiores exercitationem nobis aliquam animi,
+                        unde iure a? Corrupti, voluptatibus.</p>
+                </div>
+                <div class="aside1">Aside1</div>
+                <div class="aside2">Aside2</div>
+            </div>
+        </main>
+        <footer>Footer</footer>        
+    </body>
+</html>

+ 88 - 0
Markup9/level2.html

@@ -0,0 +1,88 @@
+<!DOCTYPE html>
+<html lang="zxx">
+
+<head>
+    <meta charset="UTF-8">
+    <title>Markup ext 2 Занятие № 9. Антон Фролов. Задание 2</title>
+    <link rel="stylesheet" href="css/reset.css">
+    <link rel="stylesheet" href="css/all.css">
+    <link rel="icon" href="image/favicon.ico">
+</head>
+
+<body>
+    <header>
+        <strong class="logo">
+            <a href="index.html"><img src="image/logo-coral.png" alt="Логотип"></a>
+        </strong>
+        <nav>
+            <ul>
+                <li><a href="index.html">Item 1</a></li>
+                <li><a href="level2.html">Уровень 2</a></li>
+                <li><a href="level3.html">Уровень 3</a></li>
+                <li><a href="#">Item 4</a></li>
+                <li><a href="#">Item 5</a></li>
+            </ul>
+        </nav>
+    </header>
+    <main>
+        <div class="wrapper">
+            <div class="center">
+                <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Cupiditate, vero minima ullam porro quis
+                    maxime, fugit id distinctio facilis doloremque asperiores exercitationem nobis aliquam animi,
+                    unde iure a? Corrupti, voluptatibus.</p>
+                <h2>Our work</h2>
+                <div class="bigsquare">
+                    <div class="square1">
+                        <img src="image/af.jpg" alt="Улыбка">
+                        <h3>Lorem ipsum dolor sit amet</h3>
+                        <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Illum id, sed ad sunt
+                            exercitationem voluptate. Corporis modi beatae esse incidunt quasi ut assumenda.
+                            Exercitationem neque quam facilis minima possimus suscipit?</p>
+                        <button class="button">Go</button>
+                    </div>
+                    <div class="square2">
+                        <img src="image/af.jpg" alt="Улыбка">
+                        <h3>Lorem ipsum dolor sit amet</h3>
+                        <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Illum id, sed ad sunt
+                            exercitationem voluptate. Corporis modi beatae esse incidunt quasi ut assumenda.
+                            Exercitationem neque quam facilis minima possimus suscipit?</p>
+                        <button class="button">Go</button>
+                    </div>
+                    <div class="square3">
+                        <img src="image/af.jpg" alt="Улыбка">
+                        <h3>Lorem ipsum dolor sit amet</h3>
+                        <p>Lorem </p>
+                        <button class="button">Go</button>
+                    </div>
+                    <div class="square4">
+                        <img src="image/af.jpg" alt="Улыбка">
+                        <h3>Lorem ipsum dolor sit amet</h3>
+                        <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Illum id, sed ad sunt
+                            exercitationem voluptate. Corporis modi beatae esse incidunt quasi ut assumenda.
+                            Exercitationem neque quam facilis minima possimus suscipit?</p>
+                        <button class="button">Go</button>
+                    </div>
+                    <div class="square5">
+                        <img src="image/af.jpg" alt="Улыбка">
+                        <h3>Lorem ipsum dolor sit amet</h3>
+                        <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Illum id, sed ad sunt
+                            exercitationem voluptate. Corporis modi beatae esse incidunt quasi ut assumenda.
+                            Exercitationem neque quam facilis minima possimus suscipit?</p>
+                        <button class="button">Go</button>
+                    </div>
+                    <div class="square6">
+                        <img src="image/af.jpg" alt="Улыбка">
+                        <h3>Lorem ipsum dolor sit amet</h3>
+                        <p>Lorem ipsum dolor sit amet consectetur</p>
+                        <button class="button">Go</button>
+                    </div>
+                </div>
+            </div>
+            <div class="aside1">Aside1</div>
+            <div class="aside2">Aside2</div>
+        </div>
+    </main>
+    <footer>Footer</footer>
+</body>
+
+</html>

+ 45 - 0
Markup9/level3.html

@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="zxx">
+
+<head>
+    <meta charset="UTF-8">
+    <title>Markup ext 2 Занятие № 9. Антон Фролов</title>
+    <link rel="stylesheet" href="css/reset.css">
+    <link rel="stylesheet" href="css/all.css">
+    <link rel="icon" href="image/favicon.ico">
+</head>
+
+<body>
+    <header>
+        <strong class="logo">
+            <a href="index.html"><img src="image/logo-coral.png" alt="Логотип"></a>
+        </strong>
+        <nav>
+            <ul>
+                <li><a href="index.html">Item 1</a></li>
+                <li><a href="level2.html">Уровень 2</a></li>
+                <li><a href="level3.html">Уровень 3</a></li>
+                <li><a href="#">Item 4</a></li>
+                <li><a href="#">Item 5</a></li>
+            </ul>
+        </nav>
+    </header>
+    <main>
+        <div class="wrapper">
+            <div class="center">
+                <div class="holder">
+                    <div class="item">1</div>
+                    <div class="item">2</div>
+                    <div class="item">3</div>
+                    <div class="item">4</div>
+                    <div class="item">5</div>
+                </div>
+            </div>
+            <div class="aside1">Aside1</div>
+            <div class="aside2">Aside2</div>
+        </div>
+    </main>
+    <footer>Footer</footer>
+</body>
+
+</html>