upd init page structure
This commit is contained in:
@@ -2,7 +2,9 @@ import React from "react";
|
||||
|
||||
const Home = () => {
|
||||
return (
|
||||
<h1 className="">Home</h1>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user