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

View File

@ -1,5 +1,6 @@
@import url("reg/index.css"); @import url("reg/index.css");
@import url("init/index.css"); @import url("init/index.css");
@import url("home/index.css");
.MyButton { .MyButton {
text-decoration: none; text-decoration: none;

View File

@ -1,19 +0,0 @@
import React from 'react';
import NavButton from "./NavButton.jsx";
import { URLs } from './../../__data__/urls';
const BackgroundInit = () => {
return (
<div className="backgroundImage">
<div className="blurEffect"></div>
<h1 className="metal-mania-regular initTitle overBlur">Enterfront</h1>
<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>
);
};
export default BackgroundInit;

View File

@ -0,0 +1,9 @@
import React from 'react';
const InitTitle = () => {
return (
<h1 className="metal-mania-regular initTitle">Enterfront</h1>
);
};
export default InitTitle;

View File

@ -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;
}
}

View File

@ -1,4 +1,4 @@
.singleNavButton { .MyButton.singleNavButton {
display: flex; display: flex;
align-items: center; align-items: center;
@ -12,7 +12,7 @@
min-width: 20vw; min-width: 20vw;
} }
.singleNavButton p { .MyButton.singleNavButton p {
font-size: 1.4vw; font-size: 1.4vw;
font-weight: bold; font-weight: bold;
} }

View File

@ -1,59 +1,2 @@
@import url("./css/navButton.css"); @import url("./css/navButton.css");
@import url("./css/initTitle.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%;
}

View File

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

View File

@ -1,10 +1,20 @@
import React from "react"; 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 = () => { const Init = () => {
return ( return (
<div> <div className="backgroundImage">
<BackgroundInit/> <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> </div>
) )
} }

View File

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