From 2ce5bb8d7a06d77ea5a841bf2ffc3b4bc87433a5 Mon Sep 17 00:00:00 2001 From: Nikolai Petukhov Date: Sat, 21 Sep 2024 13:53:46 +0300 Subject: [PATCH] upd init page structure --- src/components/home/index.css | 0 src/components/index.css | 1 + src/components/init/BackgroundInit.jsx | 19 --------- src/components/init/InitTitle.jsx | 9 ++++ src/components/init/css/initTitle.css | 13 ++++++ src/components/init/css/navButton.css | 4 +- src/components/init/index.css | 59 +------------------------- src/pages/Home.jsx | 4 +- src/pages/Init.jsx | 16 +++++-- src/pages/css/init.css | 49 +++++++++++++++++++-- 10 files changed, 87 insertions(+), 87 deletions(-) create mode 100644 src/components/home/index.css delete mode 100644 src/components/init/BackgroundInit.jsx create mode 100644 src/components/init/InitTitle.jsx create mode 100644 src/components/init/css/initTitle.css diff --git a/src/components/home/index.css b/src/components/home/index.css new file mode 100644 index 0000000..e69de29 diff --git a/src/components/index.css b/src/components/index.css index 837bca9..5a72ae3 100644 --- a/src/components/index.css +++ b/src/components/index.css @@ -1,5 +1,6 @@ @import url("reg/index.css"); @import url("init/index.css"); +@import url("home/index.css"); .MyButton { text-decoration: none; diff --git a/src/components/init/BackgroundInit.jsx b/src/components/init/BackgroundInit.jsx deleted file mode 100644 index e52a94c..0000000 --- a/src/components/init/BackgroundInit.jsx +++ /dev/null @@ -1,19 +0,0 @@ -import React from 'react'; -import NavButton from "./NavButton.jsx"; -import { URLs } from './../../__data__/urls'; - -const BackgroundInit = () => { - return ( -
-
-

Enterfront

-
- - - -
-
- ); -}; - -export default BackgroundInit; diff --git a/src/components/init/InitTitle.jsx b/src/components/init/InitTitle.jsx new file mode 100644 index 0000000..66f8c1a --- /dev/null +++ b/src/components/init/InitTitle.jsx @@ -0,0 +1,9 @@ +import React from 'react'; + +const InitTitle = () => { + return ( +

Enterfront

+ ); +}; + +export default InitTitle; diff --git a/src/components/init/css/initTitle.css b/src/components/init/css/initTitle.css new file mode 100644 index 0000000..4129bff --- /dev/null +++ b/src/components/init/css/initTitle.css @@ -0,0 +1,13 @@ +.initTitle { + font-size: 7vw; + margin: 0; + color: white; + + text-align: center; +} + +@media only screen and (max-width: 800px) { + .initTitle { + font-size: 8vh; + } +} diff --git a/src/components/init/css/navButton.css b/src/components/init/css/navButton.css index 7a08b80..cba2775 100644 --- a/src/components/init/css/navButton.css +++ b/src/components/init/css/navButton.css @@ -1,4 +1,4 @@ -.singleNavButton { +.MyButton.singleNavButton { display: flex; align-items: center; @@ -12,7 +12,7 @@ min-width: 20vw; } -.singleNavButton p { +.MyButton.singleNavButton p { font-size: 1.4vw; font-weight: bold; } diff --git a/src/components/init/index.css b/src/components/init/index.css index 482cbcd..1f284ff 100644 --- a/src/components/init/index.css +++ b/src/components/init/index.css @@ -1,59 +1,2 @@ @import url("./css/navButton.css"); - -.backgroundImage { - width: 100%; - height: 100vh; - - background-color: darkgray; - background-size: cover; - background-position: center; - - position: relative; -} - -.blurEffect { - width: 100%; - height: 100%; - - background-image: url("./../../../images/home_wp.jpg"); - background-size: cover; - background-position: center; - - filter: blur(10px); - - position: absolute; - - top: 0; - left: 0; - z-index: 1; -} - -.overBlur { - position: relative; - z-index: 2; -} - -.initTitle { - font-size: 7vw; - margin: 0; - color: white; - - text-align: center; - - top: 10%; -} - -@media only screen and (max-width: 800px) { - .initTitle { - font-size: 8vh; - } -} - -.navButtons { - display: flex; - flex-direction: column; - - align-items: center; - - top: 17%; -} +@import url("./css/initTitle.css"); \ No newline at end of file diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index 75618f0..edd1a90 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -2,7 +2,9 @@ import React from "react"; const Home = () => { return ( -

Home

+
+ +
) } diff --git a/src/pages/Init.jsx b/src/pages/Init.jsx index cd29a6e..e3df466 100644 --- a/src/pages/Init.jsx +++ b/src/pages/Init.jsx @@ -1,10 +1,20 @@ import React from "react"; -import BackgroundInit from "../components/init/BackgroundInit.jsx"; +import NavButton from "../components/init/NavButton.jsx"; +import {URLs} from "../__data__/urls"; +import InitTitle from "../components/init/InitTitle.jsx"; const Init = () => { return ( -
- +
+
+
+ +
+
+ + + +
) } diff --git a/src/pages/css/init.css b/src/pages/css/init.css index 839d281..20139e3 100644 --- a/src/pages/css/init.css +++ b/src/pages/css/init.css @@ -1,4 +1,45 @@ -.TestInit { - color: blue; - font-size: 40px; -} \ No newline at end of file +.backgroundImage { + width: 100%; + height: 100vh; + + background-color: darkgray; + background-size: cover; + background-position: center; + + position: relative; +} + +.blurEffect { + width: 100%; + height: 100%; + + background-image: url("./../../../images/home_wp.jpg"); + background-size: cover; + background-position: center; + + filter: blur(10px); + + position: absolute; + + top: 0; + left: 0; + z-index: 1; +} + +.overBlur { + position: relative; + z-index: 2; +} + +.initTitlePos { + top: 10%; +} + +.navButtons { + display: flex; + flex-direction: column; + + align-items: center; + + top: 17%; +}