upd init page structure

This commit is contained in:
Nikolai Petukhov
2024-09-21 13:53:46 +03:00
parent e75288a6f0
commit 2ce5bb8d7a
10 changed files with 87 additions and 87 deletions

View File

@@ -2,7 +2,9 @@ import React from "react";
const Home = () => {
return (
<h1 className="">Home</h1>
<div>
</div>
)
}

View File

@@ -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 (
<div>
<BackgroundInit/>
<div className="backgroundImage">
<div className="blurEffect"></div>
<div className="overBlur initTitlePos">
<InitTitle/>
</div>
<div className="navButtons overBlur">
<NavButton nav={URLs.home.url} text={"Start chatting"}/>
<NavButton nav={URLs.auth.url} text={"Sign In"}/>
<NavButton nav={URLs.reg.url} text={"Sign Up"}/>
</div>
</div>
)
}

View File

@@ -1,4 +1,45 @@
.TestInit {
color: blue;
font-size: 40px;
}
.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%;
}