From 6ee5f3e0b37071485d8b2236a6353307e7f7846d Mon Sep 17 00:00:00 2001 From: divya-rathi Date: Sun, 8 Mar 2020 19:20:59 +0530 Subject: [PATCH] Login page modified. --- .idea/workspace.xml | 58 +++++++++++++++++++++++--------------------- app.py | 2 +- static/css/main.css | 57 +++++++++++++++++++++++++++++++++---------- templates/login.html | 35 ++++++++++---------------- 4 files changed, 89 insertions(+), 63 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 668500c..2c54fc8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,16 +1,10 @@ - - - - - + - - - - + + @@ -141,48 +135,57 @@ - - - + + - + - - + + + - + - + - + - + - + - + - + - + @@ -205,9 +208,10 @@ - - + + + diff --git a/app.py b/app.py index 9c5c7e5..d2eb4ce 100644 --- a/app.py +++ b/app.py @@ -43,4 +43,4 @@ def logout(): if __name__ == "__main__": app.secret_key = os.urandom(12) - app.run(debug=True,host='127.0.0.1', port=3800) \ No newline at end of file + app.run(debug=True) \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index 9260c38..1b365f6 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1,16 +1,47 @@ -@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap'); -@import url('https://fonts.googleapis.com/css?family=Aladin&display=swap'); -body,html{ - height: 100%; - margin: 20px; +body{ + background-image: url('../images/background_image_hogwarts3.jpg'); + background-repeat: no-repeat; + background-size: contain; + overflow-x:hidden; +} +input { + padding: 8px; + height: 36px; + width: 260px; + margin-top: 20px; + font-size: 18px; +} +button { + height: 30px; + width: 160px; + margin-top: 45px; + background-color: 0088ce; + color: #ffffff; + padding: 6px 10px; + font-size: 14px; + line-height: 1.3333333; + border-radius: 1px; + border: 1px solid transparent; +} +button:hover{ + background-color: #057dbb; + background-image: none; + border-color: #00659c; + color: #fff; } -.bg{ -background-image: url('../images/background_image_hogwarts3.jpg'); -min-height: 380px; - /* Center and scale the image nicely */ - background-position: center; - background-repeat: no-repeat; - background-size: cover; - position: relative; +nav{ + height: 40px; + background: #ffffff; +} +.block{ + padding-top: 16px; + margin-top: 80px; + height: 320px; + width: 320px; + background: #ffffff; + margin-left: 40%; +} +.register{ + margin-top: 7px; } \ No newline at end of file diff --git a/templates/login.html b/templates/login.html index 63a05bf..bba6950 100644 --- a/templates/login.html +++ b/templates/login.html @@ -4,32 +4,23 @@ - Login -
-
-
-

Login

-
-
- -
+ +
+ +

LOGIN

+ + +
+ +
+

Need an account? Sign up

- -
-
- -
-
-
- User

- Admin -
- -
- +