Browse Source

HW2_1 and modul done

oleg_popov 1 year ago
parent
commit
f71eb7be42

+ 15 - 0
HW2_1/index.html

@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>HW2</title>
+</head>
+
+<body>
+    <script src="./work.js"></script>
+</body>
+
+</html>

+ 223 - 0
HW2_1/work.js

@@ -0,0 +1,223 @@
+// assign: evaluation
+var a = 5;
+var b, c;
+
+b = a * 5;
+b = c = (b / 2);
+
+// semicolon: error
+// a = 10 b = a * 10;
+// b = a*5  b = c = (b/2); 
+
+// semicolon: mistake
+var d = a * 5 
+* b 
+
+// Number: age
+const number = prompt('Сколько Вам лет?');
+const year = 2022;
+const date = (year - number)
+alert(`Ваш год рождения ${date} `);
+
+// Number: temperature
+const tempС = prompt('Введите температуру в градусах Цельсия');
+const tempF = tempС * 1.8 + 32;
+alert(`Температура в Фаренгейтах ${tempF}`);
+
+// Number: divide
+const firstNum = prompt('Введите делимое');
+const secondNum = prompt('Введите делитель');
+const result = Math.floor(firstNum / secondNum);
+alert(`Результат ${result}`);
+
+// Number: odd
+const enterNumber = prompt('Введите число');
+if (!isNaN(enterNumber)) {
+    if (enterNumber % 2 === 0) {
+        alert("Четное число");
+    }
+    else {
+        alert("Нечетное число");
+    }
+}
+else {
+    alert("Некорректное число.");
+}
+
+// String: greeting
+const greetingName = prompt("Как вас зовут?", "");
+alert("Рад познакомиться " + greetingName);
+
+// String: lexics
+var str = prompt("Введите текст");
+if ((!str.includes("suk")) && (str.indexOf("xyz") === -1)) {
+    alert("Вы культурный человек");
+}
+else {
+    alert("Ай Яй Яй");
+}
+
+// confirm
+const confirmType = confirm("Введите число");
+alert(confirmType); //true - если "ОК" , false - если "Отмена";
+
+// Boolean
+const confirmDev = confirm("Ты JS разработчик?");
+alert(confirmDev);
+const confirmCity = confirm("Ты из Харькова?");
+alert(confirmCity);
+
+// Boolean: if
+var gender = confirm("Вы мужчина?", "");
+if (gender) {
+    alert("Вы мужчина");
+}
+else {
+    alert("Вы женщина");
+}
+
+//  Array: real
+const clothes = ["hat", "shirt", "trousers"];
+const dishes = ["spoon", "fork", "plate"];
+
+// Array: booleans
+const confirmArray = [confirmDev, confirmCity, gender];
+
+// Array: plus
+let numArray = [5, 12, 18, 24];
+numArray[2] = numArray[0] + numArray[1];
+
+// Array: plus string
+let strArray = ["dev", "elo", "per", "result"];
+strArray[3] = strArray[0] + strArray[1] + strArray[2];
+
+// Object: real
+let hookah = {
+    brand: "Matt Pear",
+    color: "grey",
+    material: "steel",
+    price: 5000
+}
+
+let book = {
+    author: "Smith",
+    pages: 375,
+    price: 500
+}
+
+// Object: change
+hookah["color"] = "green";
+book.price = 300;
+
+// Comparison if
+var age = +prompt("Сколько вам лет?", "");
+if (age < 0) {
+    alert("еще не родился");
+}
+else if (age < 18) {
+    alert("школьник");
+}
+else if (age < 30) {
+    alert("молодежь");
+}
+else if (age < 45) {
+    alert("зрелость");
+}
+else if (age < 60) {
+    alert("закат");
+}
+else if (age > 60) {
+    alert("как пенсия?");
+}
+else {
+    alert("то ли киборг, то ли KERNESS");
+}
+
+// Comparison: sizes
+var size = +prompt("Укажите размер","");
+if (size === 40){ 
+    alert("S");
+}
+else if (size === 42 || size === 44){
+    alert("M");
+}
+else if (size === 46 || size === 48){
+    alert("L");
+}
+else if (size === 50 || size === 52){
+    alert("XL");
+}
+else if (size === 54){
+    alert("XXL");
+}
+
+var underwearSize = +prompt("Укажите размер","");
+if (underwearSize === 42){ 
+    alert("XXS");
+}
+else if (underwearSize === 44){
+    alert("XS");
+}
+else if (underwearSize === 46){
+    alert("S");
+}
+else if (underwearSize === 48){
+    alert("M");
+}
+else if (underwearSize === 50){
+    alert("L");
+}
+else if (underwearSize === 52){
+    alert("XL");
+}
+else if (underwearSize === 54){
+    alert("XXL");
+}
+else if (underwearSize === 56){
+    alert("XXXL");
+}
+
+var socksSize = +prompt("Укажите размер","");
+if (socksSize === 21){ 
+    alert(8);
+}
+else if (socksSize === 23){
+    alert(9);
+}
+else if (socksSize === 25){
+    alert(10);
+}
+else if (socksSize === 27){
+    alert(11);
+}
+
+
+// Comparison: object
+var underwearObject = {
+    waist: "63-65", 
+    hips: "89-92",
+    international: "XXS",
+    ukr: 42,
+    ge: 36,
+    us: 8,
+    fr: 38,
+    en: 24
+}
+
+// Ternary
+let genderTwo = confirm("Вы мужчина?") ? alert("Вы Мужчина!") : alert("Вы Женщина!");
+
+// Синий пояс Number: flats
+let numFloors = prompt("Введите количество этажей");
+let numFlatsOnFloor = prompt("Введите количество квартир на этаже");
+let flat = prompt("Введите номер квартиры");
+let numFlatsInEntrance = numFloors * numFlatsOnFloor;
+let entrance = Math.ceil(flat / numFlatsInEntrance);
+let floor;
+if (entrance === 1) {
+    floor = Math.ceil(flat / numFlatsOnFloor);
+}
+else {
+    floor = Math.ceil(flat / numFlatsInEntrance);
+}
+alert(`Подъезд ${entrance}, этаж ${floor}`);

+ 23 - 0
Modul_Project/.gitignore

@@ -0,0 +1,23 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# production
+/build
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*

+ 70 - 0
Modul_Project/README.md

@@ -0,0 +1,70 @@
+# Getting Started with Create React App
+
+This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
+
+## Available Scripts
+
+In the project directory, you can run:
+
+### `npm start`
+
+Runs the app in the development mode.\
+Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
+
+The page will reload when you make changes.\
+You may also see any lint errors in the console.
+
+### `npm test`
+
+Launches the test runner in the interactive watch mode.\
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+
+### `npm run build`
+
+Builds the app for production to the `build` folder.\
+It correctly bundles React in production mode and optimizes the build for the best performance.
+
+The build is minified and the filenames include the hashes.\
+Your app is ready to be deployed!
+
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+
+### `npm run eject`
+
+**Note: this is a one-way operation. Once you `eject`, you can't go back!**
+
+If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
+
+Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
+
+You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
+
+## Learn More
+
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
+
+To learn React, check out the [React documentation](https://reactjs.org/).
+
+### Code Splitting
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
+
+### Analyzing the Bundle Size
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
+
+### Making a Progressive Web App
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
+
+### Advanced Configuration
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
+
+### Deployment
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
+
+### `npm run build` fails to minify
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

File diff suppressed because it is too large
+ 28572 - 0
Modul_Project/package-lock.json


+ 38 - 0
Modul_Project/package.json

@@ -0,0 +1,38 @@
+{
+  "name": "myproject",
+  "version": "0.1.0",
+  "private": true,
+  "dependencies": {
+    "@testing-library/jest-dom": "^5.16.4",
+    "@testing-library/react": "^13.3.0",
+    "@testing-library/user-event": "^13.5.0",
+    "react": "^18.2.0",
+    "react-dom": "^18.2.0",
+    "react-scripts": "5.0.1",
+    "web-vitals": "^2.1.4"
+  },
+  "scripts": {
+    "start": "react-scripts start",
+    "build": "react-scripts build",
+    "test": "react-scripts test",
+    "eject": "react-scripts eject"
+  },
+  "eslintConfig": {
+    "extends": [
+      "react-app",
+      "react-app/jest"
+    ]
+  },
+  "browserslist": {
+    "production": [
+      ">0.2%",
+      "not dead",
+      "not op_mini all"
+    ],
+    "development": [
+      "last 1 chrome version",
+      "last 1 firefox version",
+      "last 1 safari version"
+    ]
+  }
+}

BIN
Modul_Project/public/image/eye.png


BIN
Modul_Project/public/image/first.png


BIN
Modul_Project/public/image/group.png


BIN
Modul_Project/public/image/microsoft.png


BIN
Modul_Project/public/image/rectangle.png


BIN
Modul_Project/public/image/second.png


BIN
Modul_Project/public/image/vk.png


+ 17 - 0
Modul_Project/public/index.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <link rel="preconnect" href="https://fonts.googleapis.com">
+    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+    <link href="https://fonts.googleapis.com/css2?family=Revalia&family=Roboto:wght@400;500&display=swap"
+        rel="stylesheet">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link rel="stylesheet" href="main.css">
+    <title>Modul</title>
+</head>
+  <body>
+    <div id="root"></div>
+  </body>
+</html>

+ 25 - 0
Modul_Project/public/manifest.json

@@ -0,0 +1,25 @@
+{
+  "short_name": "React App",
+  "name": "Create React App Sample",
+  "icons": [
+    {
+      "src": "favicon.ico",
+      "sizes": "64x64 32x32 24x24 16x16",
+      "type": "image/x-icon"
+    },
+    {
+      "src": "logo192.png",
+      "type": "image/png",
+      "sizes": "192x192"
+    },
+    {
+      "src": "logo512.png",
+      "type": "image/png",
+      "sizes": "512x512"
+    }
+  ],
+  "start_url": ".",
+  "display": "standalone",
+  "theme_color": "#000000",
+  "background_color": "#ffffff"
+}

+ 3 - 0
Modul_Project/public/robots.txt

@@ -0,0 +1,3 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
+Disallow:

+ 809 - 0
Modul_Project/src/App.css

@@ -0,0 +1,809 @@
+body {
+  margin: 0;
+}
+
+html {
+  box-sizing: border-box;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: inherit;
+}
+
+.wrapper {
+  width: 100%;
+  position: relative;
+  overflow: hidden;
+}
+
+img {
+  max-width: 100%;
+  height: auto;
+  vertical-align: top;
+}
+
+.header {
+  background: #EEEFF1;
+  position: relative;
+  padding: 15px 30px;
+}
+
+.header-wrap {
+  display: flex;
+  align-items: center;
+}
+
+.logo {
+  text-decoration: none;
+  color: #34547A;
+  font-size: 48px;
+  font-family: 'Revalia';
+  font-style: normal;
+  font-weight: 400;
+  line-height: 60px;
+  text-align: center;
+  padding-left: 300px;
+}
+
+header nav {
+  padding-right: 200px;
+}
+
+#burger {
+  position: absolute;
+  left: -9999999px;
+  opacity: 0;
+  visibility: hidden;
+}
+
+.burger {
+  display: block;
+  height: 16px;
+  width: 26px;
+  position: relative;
+  cursor: pointer;
+}
+
+.burger::before,
+.burger::after {
+  content: '';
+}
+
+.burger::before,
+.burger span,
+.burger::after {
+  height: 2px;
+  position: absolute;
+  left: 0;
+  right: 0;
+  background: #000;
+  border-radius: 2px;
+}
+
+.burger::before {
+  top: 0;
+}
+
+.burger span {
+  top: 7px;
+}
+
+.burger::after {
+  bottom: 0;
+}
+
+#burger:checked+.burger::before {
+  transition: transform .3s ease-in-out;
+  transform: rotate(45deg);
+  top: 7px;
+}
+
+#burger:checked+.burger::after {
+  transition: transform .3s ease-in-out;
+  transform: rotate(-45deg);
+  bottom: 7px;
+}
+
+#burger:checked+.burger span {
+  opacity: 0;
+}
+
+#burger:checked~.nav-list {
+  transition: opacity .3s ease-in-out;
+  opacity: 1;
+  visibility: visible;
+}
+
+
+.nav {
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+  flex-grow: 1;
+}
+
+.nav-list {
+  position: absolute;
+  list-style: none;
+  margin: 0;
+  padding-left: 0;
+  position: absolute;
+  top: 100%;
+  left: 0;
+  right: 0;
+  text-align: center;
+  opacity: 0;
+  visibility: hidden;
+
+}
+
+
+.nav-item {
+  padding-right: 40px;
+}
+
+.nav-link {
+  color: #000;
+  text-decoration: none;
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 16px;
+  line-height: 26px;
+  letter-spacing: 0.1em;
+}
+
+.nav-link:hover {
+  color: #34547A;
+}
+
+.container-design {
+  max-width: 1180px;
+  padding: 0 15px;
+  margin: 0 auto;
+}
+
+.section-design {
+  padding: 100px 0;
+  background: #EEEFF1;
+}
+
+.design-row {
+  display: flex;
+  margin: 0 -75px;
+
+}
+
+
+
+.design-col-one {
+  width: 50%;
+  padding: 0 75px;
+}
+
+.design-col-two {
+  width: 50%;
+  padding: 0 75px;
+}
+
+.design-bg {
+  padding-top: 67%;
+  background-size: cover;
+  background-position: center;
+  background-repeat: no-repeat;
+  background-image: url(image/frame.png);
+}
+
+.design-col-two h1 {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 48px;
+  line-height: 79px;
+}
+
+.design-col-two p {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 16px;
+  line-height: 26px;
+}
+
+.btn {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  max-width: 225px;
+  height: 65px;
+  text-decoration: none;
+  background-color: #34547A;
+  color: #FFFFFF;
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 16px;
+  line-height: 26px;
+  text-align: center;
+  letter-spacing: 0.1em;
+}
+
+.about_me {
+  display: flex;
+  box-sizing: border-box;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  padding-top: 120px;
+  padding-bottom: 100px;
+  max-width: 540px;
+  flex-grow: 1;
+  margin: 0 auto;
+}
+
+.about_me h1 {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 32px;
+  line-height: 38px;
+  text-align: center;
+}
+
+.about_me p {
+  text-align: center;
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 16px;
+  line-height: 26px;
+  color: #727272;
+}
+
+.group {
+  display: flex;
+  flex-direction: row;
+  flex-wrap: wrap;
+  background: #34547A;
+  text-decoration: none;
+  justify-content: center;
+  align-items: center;
+}
+
+.group-list {
+  display: flex;
+}
+
+.group-img {
+  text-decoration: none;
+}
+
+.group-item {
+  display: flex;
+  align-items: center;
+}
+
+.group-text {
+  padding-left: 20px;
+  color: #FFFFFF;
+}
+
+.group-text h3 {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 21px;
+  line-height: 25px;
+  padding-top: 5px;
+  margin: 0;
+}
+
+.group-text p {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 16px;
+  line-height: 26px;
+  padding-bottom: 5px;
+  margin: 0;
+}
+
+.work {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  background: #EEEFF1;
+  padding-bottom: 100px;
+}
+
+.work-text {
+  text-align: center;
+  max-width: 25%;
+  padding-bottom: 20px;
+}
+
+.work-text h2 {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 32px;
+  line-height: 38px;
+  text-align: center;
+}
+
+.work-text p {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 16px;
+  line-height: 26px;
+  text-align: center;
+  color: #727272;
+}
+
+
+.videosection {
+  display: flex;
+  position: relative;
+  max-width: 1100px;
+  height: 600px;
+  background-size: cover;
+  background-position: center;
+  background-repeat: no-repeat;
+  overflow: hidden;
+  z-index: 0;
+
+}
+
+#playbtn {
+  position: absolute;
+  display: block;
+  width: 100px;
+  height: 100px;
+  background: url('image/vector.png')no-repeat center top;
+  top: 42%;
+  left: 45%;
+}
+
+.container {
+  max-width: 1180px;
+  padding: 0 15px;
+  margin: 0 auto;
+}
+
+.section-skill {
+  padding: 100px 0;
+}
+
+.skill-row {
+  display: flex;
+  margin: 0 -75px;
+}
+
+.skill-col {
+  width: 50%;
+  padding: 0 75px;
+}
+
+.skill-text {
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+}
+
+.skill-bg {
+  padding-top: 80%;
+  background-size: cover;
+  background-position: center;
+  background-repeat: no-repeat;
+  background-image: url(image/photo.png);
+
+}
+
+.skill {
+  width: 85%;
+}
+
+.section-header {
+  padding-bottom: 25px;
+}
+
+.section-header .title {
+  font-size: 32px;
+  line-height: 1.18;
+  font-weight: 500;
+  margin: 0 0 25px
+}
+
+.skill-title {
+  color: #727272;
+  font-size: 16px;
+  line-height: 1.6;
+  display: block;
+  margin-bottom: 20px;
+}
+
+.skills-item:not(:last-child) {
+  margin-bottom: 30px;
+}
+
+.skill-wrap {
+  position: relative;
+  height: 4px;
+  background: #c4c4c4;
+}
+
+.skill {
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  background: #34547a;
+}
+
+.my_works {
+  display: flex;
+  flex-wrap: wrap;
+  justify-content: center;
+  flex-direction: row;
+  width: 100%;
+  background-color: #34547A;
+
+}
+
+.my_works-img {
+  position: relative;
+  width: 25%;
+  height: 100%;
+}
+
+.eye-over {
+  position: absolute;
+  z-index: 1;
+  text-align: center;
+  top: 50%;
+  left: 40%;
+  -webkit-transition: all .25s;
+  -o-transition: all .25s;
+  transition: all .25s;
+  opacity: 0;
+
+}
+
+.my_works-img:hover {
+  opacity: 0.6;
+}
+
+
+.my_works-img:hover .eye-over {
+  opacity: 1;
+
+}
+
+.microsoft {
+  display: flex;
+  flex-direction: row;
+  align-items: center;
+  justify-content: center;
+  flex-wrap: wrap;
+}
+
+.microsoft img {
+  padding-left: 30px;
+  padding-top: 70px;
+  padding-bottom: 100px;
+}
+
+.contact {
+  background-color: #EEEFF1;
+}
+
+.contact-item {
+  position: relative;
+  max-width: 540px;
+  text-align: center;
+  padding-top: 100px;
+  margin: auto;
+}
+
+.contact-text h2 {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 32px;
+  line-height: 38px;
+  text-align: center;
+}
+
+.contact-text p {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 16px;
+  line-height: 26px;
+  text-align: center;
+  color: #727272;
+}
+
+input[type="text"],
+input[type="email"] {
+  width: 255px;
+  height: 45px;
+  border-color: #e5e5e5;
+  color: #dcdcde;
+  font-size: 14px;
+  font-family: 'Roboto', sans-serif;
+  margin-bottom: 20px;
+  padding-left: 20px;
+
+}
+
+input[type="text"] {
+  float: left;
+}
+
+input[type="email"] {
+  float: right;
+}
+
+
+textarea {
+  padding-top: 20px;
+  padding-left: 20px;
+  width: 540px;
+  height: 175px;
+}
+
+.btn-contact {
+  border: none;
+  margin-bottom: 100px;
+  margin-top: 50px;
+  max-width: 190px;
+  padding: 20px 30px 20px 30px;
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 14px;
+  line-height: 23px;
+  text-align: center;
+  letter-spacing: 0.15em;
+  color: #FFFFFF;
+  background-color: #34547A;
+}
+
+footer {
+  display: flex;
+  background-color: #34547A;
+  justify-content: space-around;
+  align-items: center;
+  padding-bottom: 50px;
+  padding-top: 50px;
+}
+
+.footer-text h3 {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  font-size: 21px;
+  line-height: 25px;
+  color: #FFFFFF;
+}
+
+.footer-text p {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  font-size: 13px;
+  line-height: 21px;
+  color: #FFFFFF;
+
+}
+
+footer img {
+  padding-left: 22px;
+}
+
+@media (min-width: 320px) {
+  .logo {
+      padding-left: 50px;
+  }
+
+  header nav {
+      padding-right: 50px;
+  }
+
+
+}
+
+
+@media (min-width: 576px) {
+  .logo {
+      padding-left: 50px;
+  }
+
+  header nav {
+      padding-right: 50px;
+  }
+
+
+}
+
+@media (min-width: 768px) {
+  .logo {
+      padding-left: 50px;
+  }
+
+  header nav {
+      padding-right: 50px;
+  }
+
+}
+
+@media (min-width: 992px) {
+  .logo {
+      padding-left: 50px;
+  }
+
+  header nav {
+      padding-right: 50px;
+  }
+
+
+}
+
+@media(min-width: 1024px) {
+  .burger {
+      display: none;
+  }
+
+  .nav-list {
+      display: flex;
+      align-items: center;
+      opacity: 1;
+      visibility: visible;
+      position: static;
+  }
+
+  .nav-item {
+      padding-bottom: 0;
+  }
+
+  .nav-item+.nav-item {
+      padding-left: 15px;
+  }
+
+  .logo {
+      padding-left: 50px;
+  }
+
+  header nav {
+      padding-right: 50px;
+  }
+}
+
+@media(min-width: 1200px) {
+  .burger {
+      display: none;
+  }
+
+  .nav-list {
+      display: flex;
+      align-items: center;
+      opacity: 1;
+      visibility: visible;
+      position: static;
+  }
+
+  .nav-item {
+      padding-bottom: 0;
+  }
+
+  .nav-item+.nav-item {
+      padding-left: 15px;
+  }
+
+
+  .logo {
+      padding-left: 20px;
+  }
+
+  header nav {
+      padding-right: 20px;
+  }
+
+
+}
+
+
+@media(min-width: 1400px) {
+  .logo {
+      padding-left: 150px;
+  }
+
+  header nav {
+      padding-right: 50px;
+  }
+}
+
+@media(max-width:320px) {}
+
+@media(max-width:767px) {
+
+  .design-col-two h1 {
+      font-family: 'Roboto';
+      font-style: normal;
+      font-weight: 500;
+      font-size: 32px;
+      line-height: 20px;
+      margin: 5px auto;
+  }
+
+  .about_me {
+      padding-top: 25px;
+      padding-bottom: 25px;
+  }
+
+  .work-text {
+      max-width: 50%;
+  }
+
+
+  input[type="text"] {
+      float: none;
+  }
+
+  input[type="email"] {
+      float: none;
+  }
+
+  .design-col-two {
+      width: 80%;
+  }
+
+  .design-col-two h1 {
+      font-size: 27px;
+  }
+
+}
+
+@media(max-width:1024px) {
+  .section-design {
+      padding-top: 150px;
+  }
+
+  .design-row {
+      display: flex;
+      flex-direction: column;
+      align-items: center;
+  }
+
+  .design-col-two {
+      display: flex;
+      flex-direction: column;
+      justify-content: center;
+      align-items: center;
+
+  }
+
+  .design-col-two h1 {
+      font-family: 'Roboto';
+      font-style: normal;
+      font-weight: 500;
+      font-size: 32px;
+      line-height: 40px;
+  }
+
+  .about_me {
+      padding-top: 50px;
+      padding-bottom: 50px;
+  }
+
+  .skill-row {
+      align-content: center;
+      align-items: center;
+      flex-direction: column-reverse;
+  }
+
+}

+ 206 - 0
Modul_Project/src/App.js

@@ -0,0 +1,206 @@
+import './App.css';
+
+function App() {
+    return (
+        <div className="wrapper">
+            <Header />
+            <main className="main">
+                <Design />
+                <AboutMe />
+                <section className="group">
+                    <Project />
+                    <Project />
+                    <Project />
+                    <Project />
+                    <Project />
+                    <Project />
+                    <Project />
+                </section>
+                <Skill />
+                <Work />
+
+                <section className="my_works">
+                    <MyWorksImage img="image/second.png" alt="second" />
+                    <MyWorksImage img="image/first.png" alt="first" />
+                    <MyWorksImage img="image/second.png" alt="second" />
+                    <MyWorksImage img="image/first.png" alt="first" />
+                    <MyWorksImage img="image/first.png" alt="first" />
+                    <MyWorksImage img="image/second.png" alt="second" />
+                    <MyWorksImage img="image/first.png" alt="first" />
+                    <MyWorksImage img="image/second.png" alt="second" />
+                </section>
+
+                <section className="microsoft">
+                    <Image img="image/microsoft.png" alt="microsoft" />
+                    <Image img="image/microsoft.png" alt="microsoft" />
+                    <Image img="image/microsoft.png" alt="microsoft" />
+                    <Image img="image/microsoft.png" alt="microsoft" />
+                </section>
+                <Contact />
+            </main>
+            <Footer />
+        </div>
+
+    );
+}
+
+const Header = () =>
+    <header className="header">
+        <div className="header-wrap">
+            <a href="/#" className="logo">WD
+            </a>
+            <nav className="nav">
+                <input type="checkbox" name="burger" id="burger"></input>
+                <label htmlFor="burger" className="burger">
+                    <span></span>
+                </label>
+                <ul className="nav-list">
+                    <li className="nav-item">
+                        <a href="/#" className="nav-link">ГЛАВНАЯ</a>
+                    </li>
+                    <li className="nav-item">
+                        <a href="/#" className="nav-link">ОБ АВТОРЕ</a>
+                    </li>
+                    <li className="nav-item">
+                        <a href="/#" className="nav-link">РАБОТА</a>
+                    </li>
+                    <li className="nav-item">
+                        <a href="/#" className="nav-link">ПРОЦЕСС</a>
+                    </li>
+                    <li className="nav-item">
+                        <a href="/#" className="nav-link">КОНТАКТЫ</a>
+                    </li>
+                </ul>
+            </nav>
+        </div>
+    </header>
+
+const Design = () =>
+    <section className="section-design">
+        <div className="container-design">
+            <div className="design-row">
+                <div className="design-col-one">
+                    <div className="design-bg"></div>
+                </div>
+                <div className="design-col-two">
+
+                    <h1>Дизайн и верстка</h1>
+                    <p>Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне. Lorem Ipsum
+                        является стандартной "рыбой" для текстов на латинице с начала XVI века.</p>
+                    <Button name="НАПИСАТЬ МНЕ" />
+                </div>
+            </div>
+        </div>
+    </section>
+
+const AboutMe = () =>
+    <section className="about_me">
+        <h1>Обо мне</h1>
+        <p>Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне. Lorem Ipsum является
+            стандартной "рыбой" для текстов на латинице с начала XVI века.</p>
+    </section>
+
+const Project = () =>
+    <ul className="group-list">
+        <li className="group-item">
+            <div className="group-img">
+                <img src="image/group.png" alt="group"></img>
+            </div>
+            <div className="group-text">
+                <h3>40+</h3>
+                <p>Проектов</p>
+            </div>
+        </li>
+    </ul>
+
+const Skill = () =>
+    <section className="section-skill">
+        <div className="container">
+            <div className="skill-row">
+                <div className="skill-col">
+                    <header className="sectio-header">
+                        <h1 className="title">Мои навыки</h1>
+                    </header>
+                    <div className="skills">
+                        <SkillItem />
+                        <SkillItem />
+                        <SkillItem />
+                    </div>
+                </div>
+                <div className="skill-col">
+                    <div className="skill-bg"></div>
+                </div>
+            </div>
+        </div>
+    </section>
+
+const SkillItem = () =>
+    <div className="skills-item">
+        <span className="skill-title">Adobe Photoshop</span>
+        <div className="skill-wrap">
+            <div className="skill"></div>
+        </div>
+    </div>
+
+const Work = () =>
+    <section className="work">
+        <div className="work-text">
+            <h2>Как я работаю</h2>
+            <p>Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне. Lorem Ipsum является
+                стандартной "рыбой" для текстов на латинице с начала XVI века.</p>
+        </div>
+        <div className="videosection">
+            <video poster="image/Rectangle.png">
+                <source src="video.mp4" type="video/mpeg"></source>
+            </video>
+            <div id="playbtn"></div>
+        </div>
+    </section>
+
+const MyWorksImage = ({ img, alt }) =>
+    <div className="my_works-img">
+        <Image img={img} alt={alt} />
+        <div className="eye-over">
+            <Image img="image/eye.png" alt="eye" />
+        </div>
+    </div>
+
+const Contact = () =>
+    <section className="contact">
+        <div className="contact-item">
+            <div className="contact-text">
+                <h2>Хотите веб-сайт?</h2>
+                <p>Lorem Ipsum - это текст-"рыба", часто используемый в печати и вэб-дизайне. Lorem Ipsum
+                    является
+                    стандартной "рыбой" для текстов на латинице с начала XVI века.</p>
+            </div>
+            <form>
+                <input type="text" name="contactname" placeholder="Ваше имя"></input>
+                <input type="email" name="contactmail" placeholder="Ваш e-mail"></input>
+                <textarea placeholder="Сообщение"></textarea>
+                <Button name="Отправить" />
+            </form>
+        </div>
+    </section>
+
+const Footer = () =>
+    <footer className="footer">
+        <div className="footer-name">
+            <div className="footer-text">
+                <h3>Иванов Иван</h3>
+                <p>(с) 2018. Все права защищены.</p>
+            </div>
+        </div>
+        <div className="footer-icon">
+            <Image img="image/vk.png" alt="vk" />
+            <Image img="image/vk.png" alt="vk" />
+            <Image img="image/vk.png" alt="vk" />
+        </div>
+    </footer>
+
+
+const Image = ({ img, alt }) => <img src={img} alt={alt}></img>
+
+const Button = ({ name }) => <input className="btn-contact" type="submit" value={name}></input>
+
+export default App;

+ 8 - 0
Modul_Project/src/App.test.js

@@ -0,0 +1,8 @@
+import { render, screen } from '@testing-library/react';
+import App from './App';
+
+test('renders learn react link', () => {
+  render(<App />);
+  const linkElement = screen.getByText(/learn react/i);
+  expect(linkElement).toBeInTheDocument();
+});

BIN
Modul_Project/src/image/frame.png


BIN
Modul_Project/src/image/photo.png


BIN
Modul_Project/src/image/vector.png


+ 13 - 0
Modul_Project/src/index.css

@@ -0,0 +1,13 @@
+body {
+  margin: 0;
+  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
+    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
+    sans-serif;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+code {
+  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
+    monospace;
+}

+ 17 - 0
Modul_Project/src/index.js

@@ -0,0 +1,17 @@
+import React from 'react';
+import ReactDOM from 'react-dom/client';
+import './index.css';
+import App from './App';
+import reportWebVitals from './reportWebVitals';
+
+const root = ReactDOM.createRoot(document.getElementById('root'));
+root.render(
+  <React.StrictMode>
+    <App />
+  </React.StrictMode>
+);
+
+// If you want to start measuring performance in your app, pass a function
+// to log results (for example: reportWebVitals(console.log))
+// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
+reportWebVitals();

File diff suppressed because it is too large
+ 1 - 0
Modul_Project/src/logo.svg


+ 13 - 0
Modul_Project/src/reportWebVitals.js

@@ -0,0 +1,13 @@
+const reportWebVitals = onPerfEntry => {
+  if (onPerfEntry && onPerfEntry instanceof Function) {
+    import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
+      getCLS(onPerfEntry);
+      getFID(onPerfEntry);
+      getFCP(onPerfEntry);
+      getLCP(onPerfEntry);
+      getTTFB(onPerfEntry);
+    });
+  }
+};
+
+export default reportWebVitals;

+ 5 - 0
Modul_Project/src/setupTests.js

@@ -0,0 +1,5 @@
+// jest-dom adds custom jest matchers for asserting on DOM nodes.
+// allows you to do things like:
+// expect(element).toHaveTextContent(/react/i)
+// learn more: https://github.com/testing-library/jest-dom
+import '@testing-library/jest-dom';