diff --git a/hosting/static/hosting/css/landing-page.css b/hosting/static/hosting/css/landing-page.css index 84650ab4..1fd3ef65 100644 --- a/hosting/static/hosting/css/landing-page.css +++ b/hosting/static/hosting/css/landing-page.css @@ -82,24 +82,25 @@ h6 { text-align: center; color: #f8f8f8; position: relative; - padding-bottom: 25%; - padding-top: 10%; } .intro-login { - background: url(../img/login-bg.jpg) no-repeat center center; + background: url(../img/intro-bg.jpg) no-repeat center center; background-size: cover; height: 100%; } .intro-signup { - background: url(../img/signup-bg.png) no-repeat center center; + background: url(../img/intro-bg.jpg) no-repeat center center; background-size: cover; height: 100%; + display: flex; + justify-content: center; + align-items: center; } .intro-reset-password { - background: url(../img/signup-bg.png) no-repeat center center; + background: url(../img/intro-bg.jpg) no-repeat center center; background-size: cover; height: 100%; } @@ -193,7 +194,108 @@ h6 { float: right; margin-top: 0; } +/*------Auth section---------*/ +.auth-container{ + display: flex; + align-items: center; + justify-content: center; + background: url(../img/auth-bg.jpg) no-repeat center center; + background-size: cover; + height: 100vh; + position: relative; +} +.auth-container .container{ + z-index: 1000; +} +.auth-container .auth-content{ + width: 80%; + margin: 0 auto; + max-width: 390px; + margin-top: 60px; +} +.auth-container .auth-title h2{ + color: #fff; + font-family: 'Montserrat-Bold'; + font-size: 44px; + text-align: center; + width: 425px; + margin: 0 auto; + margin-bottom: 30px; + position: relative; +} +.auth-container .auth-title h2::after{ + content: ""; + position: absolute; + bottom: -20px; + background: #fff; + height: 7px; + width: 70px; + left: 50%; + transform: translate(-50%, 0); +} +.auth-container::before{ + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: rgba(75, 75, 101, 0.55); + z-index: 1; +} +.auth-box{ + background: #fff; + padding: 0; + padding-bottom: 30px; + box-sizing: border-box; + box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); + border-radius: 4px; + z-index: 10; +} +.auth-box .section-heading{ + text-align: left; + margin-bottom: 20px; + background-color: rgba(33, 69, 113, 0.82); + color: #fff; + padding: 10px; + text-align: center; + text-transform: uppercase; + letter-spacing: 3px; + font-size: 17px; + border-radius: 3px 3px 0px 0px; +} +.auth-box .form{ + padding: 20px; + width: 80%; + margin: 0 auto; +} +.auth-box .form .red{ + color: #ea3a3a; +} +.auth-box .form .btn{ + box-shadow: 0 0px 9px rgba(0,0,0,0.19), 0 3px 5px rgba(0,0,0,0.23); + letter-spacing: 3px; + font-size: 17px; + text-transform: uppercase; +} +.auth-box .form .form-control{ + height: 44px; + font-size: 16px; +} +.auth-box .auth-footer { + text-align: center; + padding: 10px; +} +.auth-box .auth-footer .text{ + color: #777; +} +.auth-box .auth-footer .links a{ + color: #1e94cc; +} +.auth-box .auth-footer .links a:hover{ + color: #1e94cc; +} @media (max-width: 1199px) { ul.banner-social-buttons { float: left; @@ -218,7 +320,17 @@ h6 { margin-bottom: 0; } } - +@media (max-width: 540px) { + .auth-container .auth-title h2{ + font-size: 32px; + width: 90%; + margin-bottom: 50px; + } + .auth-box .form { + padding: 15px; + width: 90%; + } +} footer { padding: 2%; background-color: #f8f8f8; @@ -250,4 +362,5 @@ a.unlink { a.unlink:hover { color: inherit; -} \ No newline at end of file +} + diff --git a/hosting/static/hosting/img/auth-bg.jpg b/hosting/static/hosting/img/auth-bg.jpg new file mode 100644 index 00000000..b2450fab Binary files /dev/null and b/hosting/static/hosting/img/auth-bg.jpg differ diff --git a/hosting/templates/hosting/base_short.html b/hosting/templates/hosting/base_short.html index c6d1772e..864c8835 100644 --- a/hosting/templates/hosting/base_short.html +++ b/hosting/templates/hosting/base_short.html @@ -44,6 +44,7 @@ + {% if request.user.is_authenticated %} + {% endif %} @@ -123,6 +124,7 @@ {% endblock %} + {% if request.user.is_authenticated %} - + {% endif %} diff --git a/hosting/templates/hosting/login.html b/hosting/templates/hosting/login.html index 3f3a60b7..19a1caec 100644 --- a/hosting/templates/hosting/login.html +++ b/hosting/templates/hosting/login.html @@ -3,12 +3,15 @@ {% load staticfiles bootstrap3%} {% block content %} -
+
-
- +
+

{% trans "Your VM hosted in Switzerland"%}

+
+
+ {% if messages %} -
    +
      {% for message in messages %}
    • {{ message }}
    • {% endfor %} @@ -23,31 +26,33 @@
{% endif %} {% endblock %} - - -
+ +

{% trans "Login"%}

{% csrf_token %} {% for field in form %} {% bootstrap_field field show_label=False type='fields'%} {% endfor %} -

{{form.non_field_errors|striptags}}

+

{{form.non_field_errors|striptags}}

{% buttons %} - {% endbuttons %}
- {% trans "Don't have an account yet ? "%}{% trans "Sign up"%} -
- {% trans "Forgot your password ? "%} - -
    - -
+