Fix center login pages

This commit is contained in:
Henry Bravo 2017-06-01 15:40:19 -05:00
parent 851ae298e9
commit be04bee643
27 changed files with 319 additions and 92 deletions

View file

@ -4,20 +4,16 @@
* For details, see http://www.apache.org/licenses/LICENSE-2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/ */
@font-face { @font-face {
font-family: 'Montserrat-Regular'; font-family: 'Lato-Regular';
src: url('../fonts/Montserrat/Montserrat-Regular.ttf'); src: url('../fonts/Lato/Lato-Regular.ttf');
} }
@font-face { @font-face {
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
src: url('../fonts/Montserrat/Montserrat-Bold.ttf'); src: url('../fonts/Lato/Lato-Black.ttf');
} }
@font-face { @font-face {
font-family: 'Montserrat-Medium'; font-family: 'Lato-Light';
src: url('../fonts/Montserrat/Montserrat-Medium.ttf'); src: url('../fonts/Lato/Lato-Light.ttf');
}
@font-face {
font-family: 'Montserrat-Light';
src: url('../fonts/Montserrat/Montserrat-Light.ttf');
} }
body, body,
html { html {
@ -32,8 +28,8 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-family: 'Montserrat-Regular', sans-serif; font-family: 'Lato-Regular', sans-serif;
font-weight: 700; font-weight: 300;
} }
/*blue light #5A74AF*/ /*blue light #5A74AF*/
/*blue dark #29427A*/ /*blue dark #29427A*/
@ -128,6 +124,10 @@ h6 {
.navbar-transparent .navbar-nav>li>a:hover { .navbar-transparent .navbar-nav>li>a:hover {
color: #fff; color: #fff;
} }
.navbar-transparent .navbar-nav>li>a:focus, .navbar-transparent .navbar-nav>li>a:hover {
color: #fff;
background-color: transparent;
}
.navbar-default .btn-link { .navbar-default .btn-link {
box-shadow: none; box-shadow: none;
} }
@ -263,7 +263,7 @@ h6 {
margin: 0; margin: 0;
font-weight: 400; font-weight: 400;
font-size: 6em; font-size: 6em;
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.intro-divider { .intro-divider {
@ -274,7 +274,7 @@ h6 {
.intro-message > h3 { .intro-message > h3 {
font-weight: 300; font-weight: 300;
font-family: 'Montserrat-Light'; font-family: 'Lato-Light';
} }
.intro-pricing{ .intro-pricing{
@ -327,7 +327,7 @@ h6 {
margin-bottom: 25px; margin-bottom: 25px;
} }
.split-section .split-text .split-title h2{ .split-section .split-text .split-title h2{
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 50px; font-size: 50px;
line-height: 50px; line-height: 50px;
padding-bottom: 25px; padding-bottom: 25px;
@ -405,10 +405,10 @@ h6 {
} }
.pricing-section .card .title{ .pricing-section .card .title{
padding: 15px 40px; padding: 15px 40px;
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.pricing-section .card .title h3{ .pricing-section .card .title h3{
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.pricing-section .card .price{ .pricing-section .card .price{
background: #5A74AF; background: #5A74AF;
@ -433,7 +433,7 @@ h6 {
text-align: left; text-align: left;
} }
.pricing-section .text .section-heading{ .pricing-section .text .section-heading{
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 50px; font-size: 50px;
line-height: 50px; line-height: 50px;
padding-bottom: 25px; padding-bottom: 25px;
@ -460,7 +460,7 @@ h6 {
padding: 70px 0; padding: 70px 0;
} }
.request-section .title h2{ .request-section .title h2{
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 45px; font-size: 45px;
margin: 0; margin: 0;
color: #fff; color: #fff;
@ -536,7 +536,7 @@ h6 {
.contact-section .card .subtitle h3{ .contact-section .card .subtitle h3{
font-size: 30px; font-size: 30px;
margin-bottom: 23px; margin-bottom: 23px;
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.contact-section .card .social a:hover{ .contact-section .card .social a:hover{
text-decoration: none; text-decoration: none;
@ -547,7 +547,7 @@ h6 {
max-width: 468px; max-width: 468px;
} }
.contact-section .title h2{ .contact-section .title h2{
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 65px; font-size: 65px;
margin: 0; margin: 0;
color: #fff; color: #fff;
@ -577,7 +577,7 @@ h6 {
width: 50%; width: 50%;
} }
.price-calc-section .text .section-heading{ .price-calc-section .text .section-heading{
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 48px; font-size: 48px;
line-height: 48px; line-height: 48px;
padding-bottom: 25px; padding-bottom: 25px;
@ -620,10 +620,10 @@ h6 {
} }
.price-calc-section .card .title{ .price-calc-section .card .title{
padding: 15px 40px; padding: 15px 40px;
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.price-calc-section .card .title h3{ .price-calc-section .card .title h3{
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.price-calc-section .card .price{ .price-calc-section .card .price{
background: #5A74AF; background: #5A74AF;
@ -771,6 +771,29 @@ h6 {
border: 1px solid rgba(119, 119, 119, 0.4); border: 1px solid rgba(119, 119, 119, 0.4);
box-shadow: none; box-shadow: none;
} }
.navbar-default .nav-language .drop-language {
background: #fff;
/* border: 1px solid #fff; */
z-index: 100000;
left: 9px;
border: 1px solid rgba(119, 119, 119, 0.4);
box-shadow: none;
}
.navbar-default .nav-language .select-language {
color: #777;
}
.navbar-default .nav-language .drop-language a {
color: #777;
}
.navbar-transparent .navbar-nav>li>a:focus, .navbar-transparent .navbar-nav>li>a:hover {
color: #333;
background-color: transparent;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover {
color: #333;
background-color: transparent;
}
.split-section { .split-section {
padding: 10px 0; padding: 10px 0;
} }
@ -828,7 +851,7 @@ h6 {
margin-top: 20px; margin-top: 20px;
} }
.price-calc-section .text .section-heading { .price-calc-section .text .section-heading {
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 35px; font-size: 35px;
line-height: 35px; line-height: 35px;
padding-bottom: 15px; padding-bottom: 15px;
@ -842,6 +865,8 @@ h6 {
font-size: 18px; font-size: 18px;
text-align: center; text-align: center;
} }
} }
@media(max-width:540px) { @media(max-width:540px) {
@ -887,7 +912,7 @@ h6 {
.section-heading { .section-heading {
margin-bottom: 30px; margin-bottom: 30px;
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.section-heading-spacer { .section-heading-spacer {

View file

@ -0,0 +1,92 @@
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View file

@ -4,22 +4,20 @@
* For details, see http://www.apache.org/licenses/LICENSE-2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/ */
@font-face { @font-face {
font-family: 'Montserrat-Regular'; font-family: 'Lato-Regular';
src: url('../fonts/Montserrat/Montserrat-Regular.ttf'); src: url('../fonts/Lato/Lato-Regular.ttf');
} }
@font-face { @font-face {
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
src: url('../fonts/Montserrat/Montserrat-Bold.ttf'); src: url('../fonts/Lato/Lato-Black.ttf');
} }
@font-face { @font-face {
font-family: 'Montserrat-Medium'; font-family: 'Lato-Light';
src: url('../fonts/Montserrat/Montserrat-Medium.ttf'); src: url('../fonts/Lato/Lato-Light.ttf');
}
@font-face {
font-family: 'Montserrat-Light';
src: url('../fonts/Montserrat/Montserrat-Light.ttf');
} }
body, body,
html { html {
width: 100%; width: 100%;
@ -33,8 +31,8 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-family: 'Montserrat-Regular', sans-serif; font-family: 'Lato-Regular', sans-serif;
font-weight: 700; font-weight: 300;
} }
.topnav { .topnav {
font-size: 14px; font-size: 14px;
@ -229,15 +227,21 @@ h6 {
width: 100%; width: 100%;
margin: 0 auto; margin: 0 auto;
max-width: 390px; max-width: 390px;
margin-top: 60px;
} }
.auth-container .auth-center{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
width: 100%;
}
.auth-container .auth-title{ .auth-container .auth-title{
margin-top: 40px; margin-bottom: 50px;
} }
.auth-container .auth-title h2{ .auth-container .auth-title h2{
color: #fff; color: #fff;
font-family: 'Montserrat-Bold'; font-family: 'Lato-Black';
font-size: 44px; font-size: 44px;
text-align: center; text-align: center;
width: 425px; width: 425px;
@ -276,7 +280,7 @@ h6 {
font-size: 20px; font-size: 20px;
border-radius: 3px 3px 0px 0px; border-radius: 3px 3px 0px 0px;
margin: 0 auto; margin: 0 auto;
font-family: 'Montserrat-Medium'; font-family: 'Lato-Black';
} }
.auth-box .form{ .auth-box .form{
padding: 20px; padding: 20px;
@ -347,6 +351,11 @@ h6 {
width: 90%; width: 90%;
margin-bottom: 50px; margin-bottom: 50px;
} }
.auth-container.auth-signup .auth-title h2{
font-size: 20px;
width: 90%;
margin-bottom: 50px;
}
.auth-box .form { .auth-box .form {
padding: 15px; padding: 15px;
width: 90%; width: 90%;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,92 @@
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato"
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View file

@ -5,6 +5,9 @@
<div class="auth-container"> <div class="auth-container">
<div class="auth-bg"></div> <div class="auth-bg"></div>
<div class="auth-center">
<div class="auth-title"> <div class="auth-title">
<h2>{% trans "Your VM hosted in Switzerland"%}</h2> <h2>{% trans "Your VM hosted in Switzerland"%}</h2>
</div> </div>
@ -54,6 +57,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
</div> </div>

View file

@ -5,29 +5,31 @@
{% block content %} {% block content %}
<div class="auth-container"> <div class="auth-container">
<div class="auth-bg"></div> <div class="auth-bg"></div>
<div class="auth-title"> <div class="auth-center">
<h2>{% trans "Your VM hosted in Switzerland"%}</h2> <div class="auth-title">
</div> <h2>{% trans "Your VM hosted in Switzerland"%}</h2>
<div class="auth-content"> </div>
<div class="intro-message auth-box sign-up"> <div class="auth-content">
<h2 class="section-heading">{% trans "Reset your password"%}</h2> <div class="intro-message auth-box sign-up">
<form action="{% url 'hosting:reset_password' %}" method="post" class="form" novalidate> <h2 class="section-heading">{% trans "Reset your password"%}</h2>
{% csrf_token %} <form action="{% url 'hosting:reset_password' %}" method="post" class="form" novalidate>
{% for field in form %} {% csrf_token %}
{% bootstrap_field field show_label=False %} {% for field in form %}
{% endfor %} {% bootstrap_field field show_label=False %}
{% buttons %} {% endfor %}
<button type="submit" class="btn btn-block btn-success"> {% buttons %}
{% trans "Reset"%} <button type="submit" class="btn btn-block btn-success">
</button> {% trans "Reset"%}
{% endbuttons %} </button>
</form> {% endbuttons %}
<div class="auth-footer"> </form>
<div class="text"> <div class="auth-footer">
<span>{% trans "Already have an account ?"%}</span> <div class="text">
</div> <span>{% trans "Already have an account ?"%}</span>
<div class="links"> </div>
<a class="unlink" href="{% url 'hosting:login' %}">{% trans "Login"%}</a> <div class="links">
<a class="unlink" href="{% url 'hosting:login' %}">{% trans "Login"%}</a>
</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -2,34 +2,37 @@
{% load staticfiles bootstrap3 i18n %} {% load staticfiles bootstrap3 i18n %}
{% block content %} {% block content %}
<div class="auth-container"> <div class="auth-container auth-signup">
<div class="auth-bg"></div> <div class="auth-bg"></div>
<div class="auth-title"> <div class="auth-center ">
<h2>{% trans "Your VM hosted in Switzerland"%}</h2> <div class="auth-title">
</div> <h2>{% trans "Your VM hosted in Switzerland"%}</h2>
<div class="auth-content"> </div>
<div class="intro-message auth-box sign-up"> <div class="auth-content">
<h2 class="section-heading">{% trans "Sign up"%}</h2> <div class="intro-message auth-box sign-up">
<form action="{% url 'hosting:signup' %}" method="post" class="form" novalidate> <h2 class="section-heading">{% trans "Sign up"%}</h2>
{% csrf_token %} <form action="{% url 'hosting:signup' %}" method="post" class="form" novalidate>
{% for field in form %} {% csrf_token %}
{% bootstrap_field field show_label=False %} {% for field in form %}
{% endfor %} {% bootstrap_field field show_label=False %}
{% buttons %} {% endfor %}
<button type="submit" class="btn btn-block btn-info"> {% buttons %}
{% trans "Sign up"%} <button type="submit" class="btn btn-block btn-info">
</button> {% trans "Sign up"%}
{% endbuttons %} </button>
</form> {% endbuttons %}
<div class="auth-footer"> </form>
<div class="text"> <div class="auth-footer">
<span>{% trans "Already have an account ?"%}</span> <div class="text">
</div> <span>{% trans "Already have an account ?"%}</span>
<div class="links"> </div>
<a class="unlink" href="{% url 'hosting:login' %}">{% trans "Login"%}</a> <div class="links">
<a class="unlink" href="{% url 'hosting:login' %}">{% trans "Login"%}</a>
</div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}