Adding Home page

This commit is contained in:
ilyaszm 2019-07-24 20:29:38 +01:00
parent 5c753e4ab0
commit a79b0d730a
3 changed files with 27 additions and 25 deletions

View File

@ -1,5 +1,3 @@
/*** General ***/
* {
box-sizing: border-box;
@ -16,6 +14,20 @@ body {
margin: 5rem auto
}
.primary-button {
margin-top: 5rem;
margin-right: 1rem;
padding: .6rem;
width: 10rem;
background: #222;
border: none;
color: #fff;
font-size: 1.2rem;
transition: all .5s;
cursor: pointer;
text-transform: capitalize
}
/*** Landing Page ***/
.main-title,
.main-para {
@ -34,21 +46,6 @@ body {
text-Transform: capitalize
}
#log_btn,
#reg_btn {
margin-top: 5rem;
margin-right: 1rem;
padding: .6rem;
width: 10rem;
background: #222;
border: none;
color: #fff;
font-size: 1.2rem;
transition: all .5s;
cursor: pointer;
text-transform: capitalize
}
#reg_btn span {
display: inline-block;
position: relative;
@ -138,4 +135,9 @@ form span {
#reset_pass_lbl {
float: left
}
/*** Home Page ***/
.home-page-title {
color: #222
}

View File

@ -1,9 +1,13 @@
import React from 'react'
import { Link } from 'react-router-dom'
export default function HomePage() {
return (
<div>
<h1>Home Page</h1>
<div className="text-center">
<h1 className="main-title home-page-title">welcome to our app</h1>
<Link to="/">
<button className="primary-button">Log out</button>
</Link>
</div>
)
}

View File

@ -11,14 +11,10 @@ export default function LandingPage() {
<p className="main-para text-center">join us now and don't waste time</p>
<div className="buttons text-center">
<Link to="/login">
<button href="https://google.com" id="log_btn">
login
</button>
<button className="primary-button">log in</button>
</Link>
<Link to="/register">
<button href="https://google.com" id="reg_btn">
<span>register </span>
</button>
<button className="primary-button" id="reg_btn"><span>register </span></button>
</Link>
</div>
</header>