init page is done

This commit is contained in:
Nikolai Petukhov 2024-09-21 13:32:52 +03:00
parent 963c94c262
commit e75288a6f0
8 changed files with 155 additions and 2 deletions

BIN
images/home_wp.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1 +1,26 @@
@import url("reg/index.css");
@import url("reg/index.css");
@import url("init/index.css");
.MyButton {
text-decoration: none;
border: 2px solid black;
border-radius: 10px;
background-color: black;
color: white;
padding: 15px;
justify-content: center;
width: 9rem;
transition: background-color 0.2s ease-in, border 0.2s ease-in;
}
.MyButton:hover {
background-color: orange;
border: 2px solid orange;
cursor: pointer;
}

View File

@ -0,0 +1,19 @@
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,12 @@
import React from 'react';
const NavButton = (props) => {
return (
<a className="MyButton singleNavButton" href={props.nav}>
<p className="mclaren-regular">{props.text}</p>
</a>
);
};
export default NavButton;

View File

@ -0,0 +1,19 @@
.singleNavButton {
display: flex;
align-items: center;
margin-top: 1.5vw;
padding: 0;
background-color: white;
border-color: white;
border-radius: 3vw;
min-width: 20vw;
}
.singleNavButton p {
font-size: 1.4vw;
font-weight: bold;
}

View File

@ -0,0 +1,59 @@
@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%;
}

View File

@ -1,5 +1,6 @@
@import url('https://fonts.googleapis.com/css2?family=MonteCarlo&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');
@import url('https://fonts.googleapis.com/css2?family=McLaren&display=swap');
@import url("pages/index.css");
@import url("outer/index.css");
@ -26,9 +27,26 @@ code {
color: black;
}
/* Mobile devices */
@media only screen and (max-width: 800px) {
* {
font-size: 1.5vh;
}
}
html {
scroll-behavior: smooth;
}
.metal-mania-regular {
font-family: "Metal Mania", system-ui;
font-weight: 400;
font-style: normal;
}
.mclaren-regular {
font-family: "McLaren", system-ui;
font-weight: 400;
font-style: normal;
}

View File

@ -1,9 +1,10 @@
import React from "react";
import BackgroundInit from "../components/init/BackgroundInit.jsx";
const Init = () => {
return (
<div>
<h1 className="metal-mania-regular TestInit">Hello!</h1>
<BackgroundInit/>
</div>
)
}