diff --git a/src/index.css b/src/index.css
index 49776bb..fe5e20d 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1,3 +1,9 @@
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
@@ -6,6 +12,7 @@ body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
+
}
code {
diff --git a/src/s1-main/App.module.css b/src/s1-main/App.module.css
index 2f8034e..a672827 100644
--- a/src/s1-main/App.module.css
+++ b/src/s1-main/App.module.css
@@ -1,6 +1,5 @@
.App {
- padding-top: 107px;
- padding-bottom: 63px;
+ --header_height: 60px;
}
.hw {
@@ -14,6 +13,7 @@
line-height: 27px;
margin-bottom: 10px;
margin-left: 70px;
+ margin-top: 47px;
}
.hwContainer {
diff --git a/src/s1-main/App.tsx b/src/s1-main/App.tsx
index fc9b704..5d2671c 100644
--- a/src/s1-main/App.tsx
+++ b/src/s1-main/App.tsx
@@ -23,9 +23,9 @@ const App = () => {
{/**/}
{/**/}
{/**/}
-
+ {/**/}
- {/**/}
+
)
}
diff --git a/src/s2-homeworks/hw05/HW5.tsx b/src/s2-homeworks/hw05/HW5.tsx
index 6aa155c..b8e5456 100644
--- a/src/s2-homeworks/hw05/HW5.tsx
+++ b/src/s2-homeworks/hw05/HW5.tsx
@@ -1,20 +1,16 @@
import React from 'react'
-import Header from './Header'
+import { HashRouter } from 'react-router-dom'
+import { Layout } from './layout/Layout'
import Pages from './Pages'
-import {HashRouter} from 'react-router-dom'
function HW5() {
return (
-
+
{/*в gh-pages лучше работает HashRouter*/}
-
-
-
-
-
-
-
-
+
+
+
+
)
}
diff --git a/src/s2-homeworks/hw05/Header.module.css b/src/s2-homeworks/hw05/Header.module.css
deleted file mode 100644
index 87d0be7..0000000
--- a/src/s2-homeworks/hw05/Header.module.css
+++ /dev/null
@@ -1,39 +0,0 @@
-.link {
- text-decoration: none;
- color: #7af;
- margin: 10px;
-}
-
-.link:hover {
- color: #c9f;
-}
-
-.active {
- color: #5ff;
-}
-
-.burgerMenu {
- width: 21px;
- height: 21px;
-
- margin: 10px;
-
- background: #99ff99;
-}
-
-.header {
- display: flex;
- justify-content: flex-end;
-
- width: 280px;
-}
-
-.showMenu {
- transition-duration: 500ms;
- transform: translate(0);
-}
-
-.hideMenu {
- transition-duration: 500ms;
- transform: translate(-220px);
-}
\ No newline at end of file
diff --git a/src/s2-homeworks/hw05/Header.tsx b/src/s2-homeworks/hw05/Header.tsx
deleted file mode 100644
index c3ef5dd..0000000
--- a/src/s2-homeworks/hw05/Header.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import React, {useState} from 'react'
-import {NavLink} from 'react-router-dom'
-import {PATH} from './Pages'
-import s from './Header.module.css'
-
-function Header() {
- const [isShow, setShow] = useState(false)
-
- // hw5-menu изначально отсутствует, при нажатии на бургер - появляется, при повторном нажатии исчезает
- return (
-