Creating a margin css class

This commit is contained in:
ilyaszm 2019-07-24 15:59:42 +01:00
parent 7cba3f550a
commit a78575f4d6
3 changed files with 6 additions and 6 deletions

View File

@ -12,6 +12,10 @@ body {
margin: 0 auto margin: 0 auto
} }
.m-5-auto {
margin: 5rem auto
}
/*** Landing Page ***/ /*** Landing Page ***/
.main-title, .main-title,
.main-para { .main-para {
@ -70,10 +74,6 @@ body {
} }
/*** Login Page ***/ /*** Login Page ***/
.login-page {
margin: 5rem auto
}
h2 { h2 {
font-weight: 300 font-weight: 300
} }

View File

@ -9,7 +9,7 @@ const handleClick = () => {
export default function SignInPage() { export default function SignInPage() {
return ( return (
<div className="text-center login-page"> <div className="text-center m-5-auto">
<h2>Sign in to us</h2> <h2>Sign in to us</h2>
<form action="/home"> <form action="/home">
<p> <p>

View File

@ -6,7 +6,7 @@ import '../../App.css'
export default function SignUpPage() { export default function SignUpPage() {
return ( return (
<div className="text-center login-page"> <div className="text-center m-5-auto">
<h2>Join us</h2> <h2>Join us</h2>
<h3>Create your personal account</h3> <h3>Create your personal account</h3>
<form action="/home"> <form action="/home">