diff --git a/src/App.tsx b/src/App.tsx index 7a4474b..1b9bf7d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -14,23 +14,19 @@ const App: React.FC = () => ( - {/* Постоянный Header */} -
+
+
- {/* Основной контейнер для контента */} -
+ {/* Контент с отступом равным высоте Header */} +
+ + + +
+
+
-
- - - -
- - {/* Постоянный Footer */} -
- -
); diff --git a/src/AppRoutes.tsx b/src/AppRoutes.tsx index b84559e..ef93dfd 100644 --- a/src/AppRoutes.tsx +++ b/src/AppRoutes.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { Route } from 'react-router-dom'; import Home from './pages/Home'; diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index d69985d..30af422 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,12 +1,12 @@ - +import { IonRouterLink } from '@ionic/react'; function Footer() { return ( -
-

Footer

- +
+ {/* Можно добавить содержимое футера */} + Футер
); } -export default Footer; +export default Footer; \ No newline at end of file diff --git a/src/components/Header.tsx b/src/components/Header.tsx index be63652..a97c857 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,16 +1,17 @@ -import React from 'react'; import { IonRouterLink } from '@ionic/react'; function Header() { return ( -
-

Вмеда

- - Зарегистрироваться +
+ + Вмеда + + + + Зарегистрироваться
); } -export default Header; - +export default Header; \ No newline at end of file diff --git a/src/components/MainContent.tsx b/src/components/MainContent.tsx deleted file mode 100644 index d2cb1c6..0000000 --- a/src/components/MainContent.tsx +++ /dev/null @@ -1,12 +0,0 @@ - - -function MainContent() { - return ( -
-

main content

-
- ); -} - -export default MainContent; - diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index b22097e..69848e6 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -2,7 +2,10 @@ function Home() { return ( <> -

Домашняя страница

+
+

Домашняя страница

+
+ ); } diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index af930ff..e84d66d 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -1,8 +1,7 @@ function Login() { return (
-

Войти/залогиниться

- +

Войти/залогиниться

); } diff --git a/src/pages/Register.tsx b/src/pages/Register.tsx index c95c62a..6d2a1f3 100644 --- a/src/pages/Register.tsx +++ b/src/pages/Register.tsx @@ -1,11 +1,7 @@ - - function Auth() { return ( -
- -

Страница регистрации

- +
+

Страница регистрации

); }