init page is done
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
19
src/components/init/BackgroundInit.jsx
Normal file
19
src/components/init/BackgroundInit.jsx
Normal 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;
|
||||
12
src/components/init/NavButton.jsx
Normal file
12
src/components/init/NavButton.jsx
Normal 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;
|
||||
19
src/components/init/css/navButton.css
Normal file
19
src/components/init/css/navButton.css
Normal 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;
|
||||
}
|
||||
|
||||
59
src/components/init/index.css
Normal file
59
src/components/init/index.css
Normal 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%;
|
||||
}
|
||||
Reference in New Issue
Block a user