From ec69333eb3fd5b82b51631564c26161ef77aa658 Mon Sep 17 00:00:00 2001 From: ilyaszm Date: Tue, 23 Jul 2019 23:31:27 +0100 Subject: [PATCH] Creating a Sign in Form in the Login Page --- src/App.css | 121 ++++++++++++++++++++++++++- src/assets/css/landing-page.css | 54 ------------ src/components/pages/LandingPage.js | 6 +- src/components/pages/LoginPage.js | 30 ++++++- src/components/pages/RegisterPage.js | 61 +++++++++++++- 5 files changed, 208 insertions(+), 64 deletions(-) delete mode 100644 src/assets/css/landing-page.css diff --git a/src/App.css b/src/App.css index 3533108..b906463 100644 --- a/src/App.css +++ b/src/App.css @@ -1,3 +1,6 @@ + + +/*** General ***/ * { box-sizing: border-box; margin: 0; @@ -9,7 +12,117 @@ body { margin: 0 auto } -a { - text-decoration: none !important; - color: inherit -} \ No newline at end of file +/*** Landing Page ***/ +.main-title, +.main-para { + color: #f1f1f1 +} + +.main-title { + padding-top: 10rem; + font-size: 5rem; + font-family: 'Fascinate', cursive; + text-transform: uppercase +} + +.main-para { + font-size: 2.5rem; + 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; + transition: 0.5s; +} + +#reg_btn span:after { + content: '\00bb'; + position: absolute; + opacity: 0; + top: 0; + right: -20px; + transition: 0.5s; +} + +#reg_btn:hover span { + padding-right: 25px; +} + +#reg_btn:hover span:after { + opacity: 1; + right: 0; +} + +/*** Login Page ***/ +.login-page { + margin: 5rem auto +} + +h2 { + font-weight: 300 +} + +form { + display: inline-block; + background: #f3f3f3; + border: 1px solid #ddd; + border-radius: 2px; + padding: 2rem; + margin: 2rem 0 1rem 0 +} + +form label { + float: left; + font-size: .9rem +} + +.right-label { + float: right; + cursor: pointer +} + +input { + width: 15rem; + padding: .3rem; + border-radius: 5px; + outline: none; + border: none +} + +#sub_btn { + display: block; + width: 100%; + padding: .3rem; + border: none; + background: #222; + color: #fff; + border-radius: 3px; +} + +#sub_btn:hover { + background: #333; + transition: all .5s +} + +footer p { + margin: 0; + font-size: .9rem +} + +/*** Register Page ***/ diff --git a/src/assets/css/landing-page.css b/src/assets/css/landing-page.css deleted file mode 100644 index 0c485d8..0000000 --- a/src/assets/css/landing-page.css +++ /dev/null @@ -1,54 +0,0 @@ -h1, p { - color: #f1f1f1 -} - -h1 { - padding-top: 10rem; - font-size: 5rem; - font-family: 'Fascinate', cursive; - text-transform: uppercase -} - -p { - font-size: 2.5rem; - 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; - transition: 0.5s; -} - -#reg_btn span:after { - content: '\00bb'; - position: absolute; - opacity: 0; - top: 0; - right: -20px; - transition: 0.5s; -} - -#reg_btn:hover span { - padding-right: 25px; -} - -#reg_btn:hover span:after { - opacity: 1; - right: 0; -} \ No newline at end of file diff --git a/src/components/pages/LandingPage.js b/src/components/pages/LandingPage.js index 70a3784..9b97bf2 100644 --- a/src/components/pages/LandingPage.js +++ b/src/components/pages/LandingPage.js @@ -1,14 +1,14 @@ import React from 'react' import { Link } from 'react-router-dom' -import '../../assets/css/landing-page.css' +import '../../App.css' import BackgroundImage from '../../assets/images/bg.png' export default function LandingPage() { return (
-

login / register page

-

join us now and don't waste time

+

login / register page

+

join us now and don't waste time

+

+ +
+

First time? Create an account.

+

Back to Homepage.

+
) } diff --git a/src/components/pages/RegisterPage.js b/src/components/pages/RegisterPage.js index 7dc2562..30aa629 100644 --- a/src/components/pages/RegisterPage.js +++ b/src/components/pages/RegisterPage.js @@ -1,9 +1,68 @@ import React from 'react' +import '../../App.css' + export default function SignUpPage() { return (
-

Register Page

+

join us

+
+

+
+ + + +

+

+
+ +

+

+
+ +

+

+
+ +

+

+
+ +

+

+
+ +

+

+
+ +

+

+ +

+

+ + +

+
) }