Commit 1d7b3015 by Galen Frechette

adds signup modal

parent cd8051fb
$(document).ready(function () { $(document).ready(function () {
$('a.login').click(function() { $('a#login').click(function() {
$('.modal-wrapper').addClass("visible"); $('.modal.login-modal').addClass("visible");
$('.modal-overlay').addClass("visible");
}); });
$('div.close-modal').click(function() { $('div.close-modal').click(function() {
$('.modal-wrapper').removeClass("visible"); $('.modal.login-modal').removeClass("visible");
$('.modal-overlay').removeClass("visible");
});
$('a#signup').click(function() {
$('.modal.signup-modal').addClass("visible");
$('.modal-overlay').addClass("visible");
});
$('div.close-modal').click(function() {
$('.modal.signup-modal').removeClass("visible");
$('.modal-overlay').removeClass("visible");
}); });
}); });
@mixin vertically-and-horizontally-centered ( $height, $width ) { @mixin vertically-and-horizontally-centered ( $height, $width ) {
left: 50%; left: 50%;
margin-left: -$width / 2; margin-left: -$width / 2;
margin-top: -$height / 2; //margin-top: -$height / 2;
min-height: $height; min-height: $height;
min-width: $width; min-width: $width;
position: fixed; position: absolute;
top: 45%; top: 150px;
} }
...@@ -34,7 +34,7 @@ form { ...@@ -34,7 +34,7 @@ form {
} }
input[type="submit"] { input[type="submit"] {
@include button(shiny, $pink); @include button(shiny, $blue);
@include border-radius(3px); @include border-radius(3px);
font: normal italic 1.2rem/1.6rem $serif; font: normal italic 1.2rem/1.6rem $serif;
height: 35px; height: 35px;
......
.modal-wrapper { .modal-overlay {
@include background-image(radial-gradient(50% 45%, circle cover, rgba(0,0,0, 0.3), rgba(0,0,0, 0.8))); //background: rgba(255,255,255, 0.7);
@include background-image(radial-gradient(50% 30%, circle cover, rgba(0,0,0, 0.3), rgba(0,0,0, 0.8)));
bottom: 0; bottom: 0;
content: ""; content: "";
display: none; display: none;
...@@ -12,51 +13,162 @@ ...@@ -12,51 +13,162 @@
&.visible { &.visible {
display: block; display: block;
} }
}
.login-modal { .modal {
background: rgba(0,0,0, 0.6); background: rgba(0,0,0, 0.6);
border: 1px solid rgba(0, 0, 0, 0.9); border: 1px solid rgba(0, 0, 0, 0.9);
@include border-radius(0px); @include border-radius(0px);
@include box-shadow(0 15px 70px 5px rgba(0,0,0, 0.5)); @include box-shadow(0 15px 80px 15px rgba(0,0,0, 0.5));
color: #fff; color: #fff;
padding: 8px; display: none;
width: grid-width(6); padding: 8px;
width: grid-width(6);
z-index: 10;
&.visible {
display: block;
}
&.login-modal {
@include vertically-and-horizontally-centered(410px, grid-width(6)); @include vertically-and-horizontally-centered(410px, grid-width(6));
z-index: 10;
.inner-wrapper { .inner-wrapper {
background: rgb(240,240,240);
@include border-radius(0px);
border: 1px solid rgba(0, 0, 0, 0.9);
@include box-shadow(inset 0 1px 0 0 rgba(255, 255, 255, 0.7));
height: 410px; height: 410px;
}
}
&.signup-modal {
@include vertically-and-horizontally-centered(965px, grid-width(6));
.inner-wrapper {
height: 965px;
}
}
.inner-wrapper {
background: rgb(240,240,240);
@include border-radius(0px);
border: 1px solid rgba(0, 0, 0, 0.9);
@include box-shadow(inset 0 1px 0 0 rgba(255, 255, 255, 0.7));
overflow: hidden;
position: relative;
header {
margin-bottom: 30px;
overflow: hidden; overflow: hidden;
padding: 28px 20px 0px;
position: relative; position: relative;
z-index: 2;
header { &::before {
margin-bottom: 30px; @include background-image(radial-gradient(50% 50%, circle closest-side, rgba(255,255,255, 0.8) 0%, rgba(255,255,255, 0) 100%));
overflow: hidden; content: "";
padding: 28px 20px 0px; display: block;
height: 400px;
left: 0px;
margin: 0 auto;
position: absolute;
top: -140px;
width: 100%;
z-index: 1;
}
hr {
@extend .faded-hr-divider-light;
border: none;
margin: 0px;
position: relative; position: relative;
z-index: 2; z-index: 2;
&::before { &::after {
@include background-image(radial-gradient(50% 50%, circle closest-side, rgba(255,255,255, 0.8) 0%, rgba(255,255,255, 0) 100%)); @extend .faded-hr-divider;
bottom: 0px;
content: ""; content: "";
display: block; display: block;
height: 400px;
left: 0px;
margin: 0 auto;
position: absolute; position: absolute;
top: -140px; top: -1px;
width: 100%; }
z-index: 1; }
h3 {
color: $lighter-base-font-color;
font: normal 1.4rem/1.8rem $serif;
padding-bottom: 20px;
text-align: center;
text-shadow: 0 1px rgba(255,255,255, 0.4);
text-transform: uppercase;
vertical-align: middle;
position: relative;
z-index: 2;
}
}
form {
margin-bottom: 12px;
padding: 0px 20px;
position: relative;
z-index: 2;
label {
display: none;
}
input[type="checkbox"] {
margin-right: 5px;
}
input[type="email"],
input[type="text"],
input[type="password"] {
background: rgb(255,255,255);
display: block;
height: 45px;
margin-bottom: 20px;
width: 100%;
}
label.remember-me,
label.terms-of-service,
label.honor-code {
background: rgb(233,233,233);
border: 1px solid rgb(200,200,200);
@include border-radius(3px);
@include box-shadow(0 1px 0 0 rgba(255,255,255, 0.6));
display: block;
margin-bottom: 20px;
padding: 8px 10px;
&:hover {
background: rgb(230,230,230);
}
a {
//color: $base-font-color;
font: normal 1.2rem/1.6rem $serif;
text-decoration: underline;
&:hover {
//color: $lighter-base-font-color;
}
}
}
.honor-code-summary {
margin-bottom: 20px;
padding: 0px 10px;
position: relative;
p {
color: $lighter-base-font-color;
font: 300 1.2rem/1.6rem $sans-serif;
} }
hr { hr {
@extend .faded-hr-divider-light; @extend .faded-hr-divider-light;
border: none; border: none;
margin: 0px; margin-top: 30px;
position: relative; position: relative;
z-index: 2; z-index: 2;
...@@ -70,53 +182,26 @@ ...@@ -70,53 +182,26 @@
} }
} }
h3 { ul {
color: $lighter-base-font-color; @include box-sizing(border-box);
font: normal 1.4rem/1.8rem $serif; margin: 0;
padding-bottom: 20px; padding: 0 0 0 20px;
text-align: center; width: 100%;
text-shadow: 0 1px rgba(255,255,255, 0.4);
text-transform: uppercase;
vertical-align: middle;
position: relative;
z-index: 2;
}
}
form {
margin-bottom: 12px;
padding: 0px 20px;
position: relative;
z-index: 2;
label { li {
display: none; color: $lighter-base-font-color;
} font: 300 1.2rem/1.6rem $sans-serif;
margin-bottom: 10px;
input[type="checkbox"] { &:last-child {
margin-right: 5px; margin-bottom: 0px;
}
}
} }
}
input[type="email"], .submit {
input[type="password"] { padding-top: 18px;
background: rgb(255,255,255);
display: block;
height: 45px;
margin-bottom: 20px;
width: 100%;
}
label.remember-me {
background: rgb(230,230,230);
border: 1px solid rgb(200,200,200);
@include border-radius(3px);
@include box-shadow(0 1px 0 0 rgba(255,255,255, 0.6));
display: block;
margin-bottom: 38px;
padding: 8px 10px;
position: relative;
}
input[type="submit"] { input[type="submit"] {
display: block; display: block;
...@@ -125,56 +210,56 @@ ...@@ -125,56 +210,56 @@
width: 70%; width: 70%;
} }
} }
}
.login-extra { .login-extra {
position: relative; position: relative;
z-index: 2; z-index: 2;
p { p {
color: $lighter-base-font-color;
font: normal italic 1.2rem/1.6rem $serif;
text-align: center;
a {
color: $lighter-base-font-color; color: $lighter-base-font-color;
font: normal italic 1.2rem/1.6rem $serif; font: normal italic 1.2rem/1.6rem $serif;
text-align: center; text-decoration: underline;
a {
color: $lighter-base-font-color;
font: normal italic 1.2rem/1.6rem $serif;
text-decoration: underline;
&:hover { &:hover {
color: $base-font-color; color: $base-font-color;
}
} }
}
span + a { span + a {
margin-left: 15px; margin-left: 15px;
}
} }
} }
}
.close-modal { .close-modal {
@include border-radius(2px); @include border-radius(2px);
cursor: pointer; cursor: pointer;
@include inline-block; @include inline-block;
padding: 10px; padding: 10px;
position: absolute; position: absolute;
right: 2px; right: 2px;
top: 0px; top: 0px;
z-index: 3; z-index: 3;
.inner { .inner {
p { p {
color: $lighter-base-font-color; color: $lighter-base-font-color;
font: normal 1.2rem/1.2rem $sans-serif; font: normal 1.2rem/1.2rem $sans-serif;
text-align: center; text-align: center;
text-shadow: 0 1px rgba(255,255,255, 0.8); text-shadow: 0 1px rgba(255,255,255, 0.8);
@include transition(all, 0.15s, ease-out); @include transition(all, 0.15s, ease-out);
}
} }
}
&:hover { &:hover {
p { p {
color: $base-font-color; color: $base-font-color;
}
} }
} }
} }
......
...@@ -340,7 +340,7 @@ a:link, a:visited { ...@@ -340,7 +340,7 @@ a:link, a:visited {
.container:after { .container:after {
clear: both; } clear: both; }
.faded-hr-divider, .horizontal-divider, .modal-wrapper .login-modal .inner-wrapper header hr::after, .home .university-partners:before, .home .university-partners:after { .faded-hr-divider, .horizontal-divider, .modal .inner-wrapper header hr::after, .modal .inner-wrapper form .honor-code-summary hr::after, .home .university-partners:before, .home .university-partners:after {
background-image: -webkit-linear-gradient(180deg, rgba(200, 200, 200, 0) 0%, #c8c8c8 50%, rgba(200, 200, 200, 0)); background-image: -webkit-linear-gradient(180deg, rgba(200, 200, 200, 0) 0%, #c8c8c8 50%, rgba(200, 200, 200, 0));
background-image: -moz-linear-gradient(180deg, rgba(200, 200, 200, 0) 0%, #c8c8c8 50%, rgba(200, 200, 200, 0)); background-image: -moz-linear-gradient(180deg, rgba(200, 200, 200, 0) 0%, #c8c8c8 50%, rgba(200, 200, 200, 0));
background-image: -ms-linear-gradient(180deg, rgba(200, 200, 200, 0) 0%, #c8c8c8 50%, rgba(200, 200, 200, 0)); background-image: -ms-linear-gradient(180deg, rgba(200, 200, 200, 0) 0%, #c8c8c8 50%, rgba(200, 200, 200, 0));
...@@ -349,7 +349,7 @@ a:link, a:visited { ...@@ -349,7 +349,7 @@ a:link, a:visited {
height: 1px; height: 1px;
width: 100%; } width: 100%; }
.faded-hr-divider-light, .horizontal-divider::after, .modal-wrapper .login-modal .inner-wrapper header hr { .faded-hr-divider-light, .horizontal-divider::after, .modal .inner-wrapper header hr, .modal .inner-wrapper form .honor-code-summary hr {
background-image: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0)); background-image: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0));
background-image: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0)); background-image: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0));
background-image: -ms-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0)); background-image: -ms-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0));
...@@ -877,29 +877,29 @@ form { ...@@ -877,29 +877,29 @@ form {
box-shadow: 0 0 6px 0 rgba(29, 157, 217, 0.4), inset 0 0 4px 0 rgba(0, 0, 0, 0.15); box-shadow: 0 0 6px 0 rgba(29, 157, 217, 0.4), inset 0 0 4px 0 rgba(0, 0, 0, 0.15);
outline: none; } outline: none; }
form input[type="submit"] { form input[type="submit"] {
border: 1px solid #410017; border: 1px solid #002e88;
border-bottom: 1px solid #380000; border-bottom: 1px solid #001e5f;
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
-moz-border-radius: 5px; -moz-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
-webkit-box-shadow: inset 0 1px 0 0 #db4274; -webkit-box-shadow: inset 0 1px 0 0 #42bae5;
-moz-box-shadow: inset 0 1px 0 0 #db4274; -moz-box-shadow: inset 0 1px 0 0 #42bae5;
box-shadow: inset 0 1px 0 0 #db4274; box-shadow: inset 0 1px 0 0 #42bae5;
color: white; color: white;
display: inline-block; display: inline-block;
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
background-color: #b62568; background-color: #1d9dd9;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b62568), color-stop(50%, #7e0047), color-stop(50%, #600038), color-stop(100%, #67003a)); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #1d9dd9), color-stop(50%, #006bb8), color-stop(50%, #0052a9), color-stop(100%, #0057ab));
background-image: -webkit-linear-gradient(top, #b62568 0%, #7e0047 50%, #600038 50%, #67003a 100%); background-image: -webkit-linear-gradient(top, #1d9dd9 0%, #006bb8 50%, #0052a9 50%, #0057ab 100%);
background-image: -moz-linear-gradient(top, #b62568 0%, #7e0047 50%, #600038 50%, #67003a 100%); background-image: -moz-linear-gradient(top, #1d9dd9 0%, #006bb8 50%, #0052a9 50%, #0057ab 100%);
background-image: -ms-linear-gradient(top, #b62568 0%, #7e0047 50%, #600038 50%, #67003a 100%); background-image: -ms-linear-gradient(top, #1d9dd9 0%, #006bb8 50%, #0052a9 50%, #0057ab 100%);
background-image: -o-linear-gradient(top, #b62568 0%, #7e0047 50%, #600038 50%, #67003a 100%); background-image: -o-linear-gradient(top, #1d9dd9 0%, #006bb8 50%, #0052a9 50%, #0057ab 100%);
background-image: linear-gradient(top, #b62568 0%, #7e0047 50%, #600038 50%, #67003a 100%); background-image: linear-gradient(top, #1d9dd9 0%, #006bb8 50%, #0052a9 50%, #0057ab 100%);
padding: 8px 20px; padding: 8px 20px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-shadow: 0 -1px 1px #2a0000; text-shadow: 0 -1px 1px #001067;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
...@@ -914,17 +914,17 @@ form { ...@@ -914,17 +914,17 @@ form {
vertical-align: top; } vertical-align: top; }
form input[type="submit"]:hover:not(:disabled) { form input[type="submit"]:hover:not(:disabled) {
cursor: pointer; cursor: pointer;
background-color: #a91656; background-color: #108ec7;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #a91656), color-stop(50%, #740035), color-stop(50%, #590026), color-stop(100%, #600029)); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #108ec7), color-stop(50%, #005fa6), color-stop(50%, #004897), color-stop(100%, #004d9a));
background-image: -webkit-linear-gradient(top, #a91656 0%, #740035 50%, #590026 50%, #600029 100%); background-image: -webkit-linear-gradient(top, #108ec7 0%, #005fa6 50%, #004897 50%, #004d9a 100%);
background-image: -moz-linear-gradient(top, #a91656 0%, #740035 50%, #590026 50%, #600029 100%); background-image: -moz-linear-gradient(top, #108ec7 0%, #005fa6 50%, #004897 50%, #004d9a 100%);
background-image: -ms-linear-gradient(top, #a91656 0%, #740035 50%, #590026 50%, #600029 100%); background-image: -ms-linear-gradient(top, #108ec7 0%, #005fa6 50%, #004897 50%, #004d9a 100%);
background-image: -o-linear-gradient(top, #a91656 0%, #740035 50%, #590026 50%, #600029 100%); background-image: -o-linear-gradient(top, #108ec7 0%, #005fa6 50%, #004897 50%, #004d9a 100%);
background-image: linear-gradient(top, #a91656 0%, #740035 50%, #590026 50%, #600029 100%); } background-image: linear-gradient(top, #108ec7 0%, #005fa6 50%, #004897 50%, #004d9a 100%); }
form input[type="submit"]:active:not(:disabled) { form input[type="submit"]:active:not(:disabled) {
-webkit-box-shadow: inset 0 0 20px 0 #470000, 0 1px 0 white; -webkit-box-shadow: inset 0 0 20px 0 #00295f, 0 1px 0 white;
-moz-box-shadow: inset 0 0 20px 0 #470000, 0 1px 0 white; -moz-box-shadow: inset 0 0 20px 0 #00295f, 0 1px 0 white;
box-shadow: inset 0 0 20px 0 #470000, 0 1px 0 white; } box-shadow: inset 0 0 20px 0 #00295f, 0 1px 0 white; }
form input[type="submit"]:disabled { form input[type="submit"]:disabled {
opacity: 0.5; opacity: 0.5;
cursor: not-allowed; } cursor: not-allowed; }
...@@ -1680,12 +1680,12 @@ header.app { ...@@ -1680,12 +1680,12 @@ header.app {
border-radius: 0px 3px 3px 0px; border-radius: 0px 3px 3px 0px;
height: 36px; } height: 36px; }
.modal-wrapper { .modal-overlay {
background-image: -webkit-radial-gradient(50% 45%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)); background-image: -webkit-radial-gradient(50% 30%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
background-image: -moz-radial-gradient(50% 45%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)); background-image: -moz-radial-gradient(50% 30%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
background-image: -ms-radial-gradient(50% 45%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)); background-image: -ms-radial-gradient(50% 30%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
background-image: -o-radial-gradient(50% 45%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)); background-image: -o-radial-gradient(50% 30%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
background-image: radial-gradient(50% 45%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)); background-image: radial-gradient(50% 30%, circle cover, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
bottom: 0; bottom: 0;
content: ""; content: "";
display: none; display: none;
...@@ -1694,158 +1694,216 @@ header.app { ...@@ -1694,158 +1694,216 @@ header.app {
right: 0; right: 0;
top: 0; top: 0;
z-index: 5; } z-index: 5; }
.modal-wrapper.visible { .modal-overlay.visible {
display: block; } display: block; }
.modal-wrapper .login-modal {
background: rgba(0, 0, 0, 0.6); .modal {
border: 1px solid rgba(0, 0, 0, 0.9); background: rgba(0, 0, 0, 0.6);
-webkit-border-radius: 0px; border: 1px solid rgba(0, 0, 0, 0.9);
-moz-border-radius: 0px; -webkit-border-radius: 0px;
border-radius: 0px; -moz-border-radius: 0px;
-webkit-box-shadow: 0 15px 70px 5px rgba(0, 0, 0, 0.5); border-radius: 0px;
-moz-box-shadow: 0 15px 70px 5px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 15px 80px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0 15px 70px 5px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 15px 80px 15px rgba(0, 0, 0, 0.5);
color: #fff; box-shadow: 0 15px 80px 15px rgba(0, 0, 0, 0.5);
padding: 8px; color: #fff;
width: 485px; display: none;
padding: 8px;
width: 485px;
z-index: 10; }
.modal.visible {
display: block; }
.modal.login-modal {
left: 50%; left: 50%;
margin-left: -242.5px; margin-left: -242.5px;
margin-top: -205px;
min-height: 410px; min-height: 410px;
min-width: 485px; min-width: 485px;
position: fixed; position: absolute;
top: 45%; top: 150px; }
z-index: 10; } .modal.login-modal .inner-wrapper {
.modal-wrapper .login-modal .inner-wrapper { height: 410px; }
background: #f0f0f0; .modal.signup-modal {
-webkit-border-radius: 0px; left: 50%;
-moz-border-radius: 0px; margin-left: -242.5px;
border-radius: 0px; min-height: 965px;
border: 1px solid rgba(0, 0, 0, 0.9); min-width: 485px;
-webkit-box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7); position: absolute;
-moz-box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7); top: 150px; }
box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7); .modal.signup-modal .inner-wrapper {
height: 410px; height: 965px; }
.modal .inner-wrapper {
background: #f0f0f0;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
border: 1px solid rgba(0, 0, 0, 0.9);
-webkit-box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
-moz-box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
overflow: hidden;
position: relative; }
.modal .inner-wrapper header {
margin-bottom: 30px;
overflow: hidden; overflow: hidden;
position: relative; } padding: 28px 20px 0px;
.modal-wrapper .login-modal .inner-wrapper header { position: relative;
margin-bottom: 30px; z-index: 2; }
overflow: hidden; .modal .inner-wrapper header::before {
padding: 28px 20px 0px; background-image: -webkit-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -moz-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -ms-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -o-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
content: "";
display: block;
height: 400px;
left: 0px;
margin: 0 auto;
position: absolute;
top: -140px;
width: 100%;
z-index: 1; }
.modal .inner-wrapper header hr {
border: none;
margin: 0px;
position: relative; position: relative;
z-index: 2; } z-index: 2; }
.modal-wrapper .login-modal .inner-wrapper header::before { .modal .inner-wrapper header hr::after {
background-image: -webkit-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%); bottom: 0px;
background-image: -moz-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -ms-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -o-radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
background-image: radial-gradient(50% 50%, circle closest-side, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
content: ""; content: "";
display: block; display: block;
height: 400px;
left: 0px;
margin: 0 auto;
position: absolute; position: absolute;
top: -140px; top: -1px; }
width: 100%; .modal .inner-wrapper header h3 {
z-index: 1; } color: #a0a0a0;
.modal-wrapper .login-modal .inner-wrapper header hr { font: normal 1.4rem/1.8rem Georgia, Cambria, "Times New Roman", Times, serif;
padding-bottom: 20px;
text-align: center;
text-shadow: 0 1px rgba(255, 255, 255, 0.4);
text-transform: uppercase;
vertical-align: middle;
position: relative;
z-index: 2; }
.modal .inner-wrapper form {
margin-bottom: 12px;
padding: 0px 20px;
position: relative;
z-index: 2; }
.modal .inner-wrapper form label {
display: none; }
.modal .inner-wrapper form input[type="checkbox"] {
margin-right: 5px; }
.modal .inner-wrapper form input[type="email"],
.modal .inner-wrapper form input[type="text"],
.modal .inner-wrapper form input[type="password"] {
background: white;
display: block;
height: 45px;
margin-bottom: 20px;
width: 100%; }
.modal .inner-wrapper form label.remember-me,
.modal .inner-wrapper form label.terms-of-service,
.modal .inner-wrapper form label.honor-code {
background: #e9e9e9;
border: 1px solid #c8c8c8;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6);
-moz-box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6);
box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6);
display: block;
margin-bottom: 20px;
padding: 8px 10px; }
.modal .inner-wrapper form label.remember-me:hover,
.modal .inner-wrapper form label.terms-of-service:hover,
.modal .inner-wrapper form label.honor-code:hover {
background: #e6e6e6; }
.modal .inner-wrapper form label.remember-me a,
.modal .inner-wrapper form label.terms-of-service a,
.modal .inner-wrapper form label.honor-code a {
font: normal 1.2rem/1.6rem Georgia, Cambria, "Times New Roman", Times, serif;
text-decoration: underline; }
.modal .inner-wrapper form .honor-code-summary {
margin-bottom: 20px;
padding: 0px 10px;
position: relative; }
.modal .inner-wrapper form .honor-code-summary p {
color: #a0a0a0;
font: 300 1.2rem/1.6rem "Open Sans", Verdana, Geneva, sans-serif; }
.modal .inner-wrapper form .honor-code-summary hr {
border: none; border: none;
margin: 0px; margin-top: 30px;
position: relative; position: relative;
z-index: 2; } z-index: 2; }
.modal-wrapper .login-modal .inner-wrapper header hr::after { .modal .inner-wrapper form .honor-code-summary hr::after {
bottom: 0px; bottom: 0px;
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
top: -1px; } top: -1px; }
.modal-wrapper .login-modal .inner-wrapper header h3 { .modal .inner-wrapper form .honor-code-summary ul {
color: #a0a0a0; -webkit-box-sizing: border-box;
font: normal 1.4rem/1.8rem Georgia, Cambria, "Times New Roman", Times, serif; -moz-box-sizing: border-box;
padding-bottom: 20px; box-sizing: border-box;
text-align: center; margin: 0;
text-shadow: 0 1px rgba(255, 255, 255, 0.4); padding: 0 0 0 20px;
text-transform: uppercase;
vertical-align: middle;
position: relative;
z-index: 2; }
.modal-wrapper .login-modal .inner-wrapper form {
margin-bottom: 12px;
padding: 0px 20px;
position: relative;
z-index: 2; }
.modal-wrapper .login-modal .inner-wrapper form label {
display: none; }
.modal-wrapper .login-modal .inner-wrapper form input[type="checkbox"] {
margin-right: 5px; }
.modal-wrapper .login-modal .inner-wrapper form input[type="email"],
.modal-wrapper .login-modal .inner-wrapper form input[type="password"] {
background: white;
display: block;
height: 45px;
margin-bottom: 20px;
width: 100%; } width: 100%; }
.modal-wrapper .login-modal .inner-wrapper form label.remember-me { .modal .inner-wrapper form .honor-code-summary ul li {
background: #e6e6e6; color: #a0a0a0;
border: 1px solid #c8c8c8; font: 300 1.2rem/1.6rem "Open Sans", Verdana, Geneva, sans-serif;
-webkit-border-radius: 3px; margin-bottom: 10px; }
-moz-border-radius: 3px; .modal .inner-wrapper form .honor-code-summary ul li:last-child {
border-radius: 3px; margin-bottom: 0px; }
-webkit-box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6); .modal .inner-wrapper form .submit {
-moz-box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6); padding-top: 18px; }
box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.6); .modal .inner-wrapper form .submit input[type="submit"] {
display: block;
margin-bottom: 38px;
padding: 8px 10px;
position: relative; }
.modal-wrapper .login-modal .inner-wrapper form input[type="submit"] {
display: block; display: block;
height: 45px; height: 45px;
margin: 0 auto; margin: 0 auto;
width: 70%; } width: 70%; }
.modal-wrapper .login-modal .inner-wrapper .login-extra { .modal .inner-wrapper .login-extra {
position: relative; position: relative;
z-index: 2; } z-index: 2; }
.modal-wrapper .login-modal .inner-wrapper .login-extra p { .modal .inner-wrapper .login-extra p {
color: #a0a0a0;
font: normal italic 1.2rem/1.6rem Georgia, Cambria, "Times New Roman", Times, serif;
text-align: center; }
.modal .inner-wrapper .login-extra p a {
color: #a0a0a0; color: #a0a0a0;
font: normal italic 1.2rem/1.6rem Georgia, Cambria, "Times New Roman", Times, serif; font: normal italic 1.2rem/1.6rem Georgia, Cambria, "Times New Roman", Times, serif;
text-align: center; } text-decoration: underline; }
.modal-wrapper .login-modal .inner-wrapper .login-extra p a { .modal .inner-wrapper .login-extra p a:hover {
color: #a0a0a0; color: #3c3c3c; }
font: normal italic 1.2rem/1.6rem Georgia, Cambria, "Times New Roman", Times, serif; .modal .inner-wrapper .login-extra p span + a {
text-decoration: underline; } margin-left: 15px; }
.modal-wrapper .login-modal .inner-wrapper .login-extra p a:hover { .modal .inner-wrapper .close-modal {
color: #3c3c3c; } -webkit-border-radius: 2px;
.modal-wrapper .login-modal .inner-wrapper .login-extra p span + a { -moz-border-radius: 2px;
margin-left: 15px; } border-radius: 2px;
.modal-wrapper .login-modal .inner-wrapper .close-modal { cursor: pointer;
-webkit-border-radius: 2px; display: inline-block;
-moz-border-radius: 2px; vertical-align: baseline;
border-radius: 2px; zoom: 1;
cursor: pointer; *display: inline;
display: inline-block; *vertical-align: auto;
vertical-align: baseline; padding: 10px;
zoom: 1; position: absolute;
*display: inline; right: 2px;
*vertical-align: auto; top: 0px;
padding: 10px; z-index: 3; }
position: absolute; .modal .inner-wrapper .close-modal .inner p {
right: 2px; color: #a0a0a0;
top: 0px; font: normal 1.2rem/1.2rem "Open Sans", Verdana, Geneva, sans-serif;
z-index: 3; } text-align: center;
.modal-wrapper .login-modal .inner-wrapper .close-modal .inner p { text-shadow: 0 1px rgba(255, 255, 255, 0.8);
color: #a0a0a0; -webkit-transition: all, 0.15s, ease-out;
font: normal 1.2rem/1.2rem "Open Sans", Verdana, Geneva, sans-serif; -moz-transition: all, 0.15s, ease-out;
text-align: center; -ms-transition: all, 0.15s, ease-out;
text-shadow: 0 1px rgba(255, 255, 255, 0.8); -o-transition: all, 0.15s, ease-out;
-webkit-transition: all, 0.15s, ease-out; transition: all, 0.15s, ease-out; }
-moz-transition: all, 0.15s, ease-out; .modal .inner-wrapper .close-modal:hover p {
-ms-transition: all, 0.15s, ease-out; color: #3c3c3c; }
-o-transition: all, 0.15s, ease-out;
transition: all, 0.15s, ease-out; }
.modal-wrapper .login-modal .inner-wrapper .close-modal:hover p {
color: #3c3c3c; }
.home { .home {
margin: 50px 10px 100px; } margin: 50px 10px 100px; }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
@import 'shared_header'; @import 'shared_header';
@import 'shared_list_of_courses'; @import 'shared_list_of_courses';
@import 'shared_course_filter'; @import 'shared_course_filter';
@import 'shared_login_modal'; @import 'shared_modal';
@import 'index'; @import 'index';
@import 'dashboard'; @import 'dashboard';
......
<%namespace name='static' file='static_content.html'/> <%namespace name='static' file='static_content.html'/>
<section class="modal-wrapper"> <section class="modal login-modal">
<section class="login-modal"> <div class="inner-wrapper">
<div class="inner-wrapper"> <header>
<header> <h3>Log In</h3>
<h3>Log In</h3> <hr>
<hr> </header>
</header>
<form id="login_form" method="post"> <form id="login_form" method="post">
<label>E-mail</label> <label>E-mail</label>
<input name="email" type="email" placeholder="e-mail"> <input name="email" type="email" placeholder="E-mail">
<label>Password</label> <label>Password</label>
<input name="password" type="password" placeholder="password"> <input name="password" type="password" placeholder="Password">
<label class="remember-me"> <label class="remember-me">
<input name="remember" type="checkbox"> <input name="remember" type="checkbox">
Remember me Remember me
</label> </label>
<div class="submit">
<input name="submit" type="submit" value="Submit"> <input name="submit" type="submit" value="Submit">
</form> </div>
</form>
<section class="login-extra"> <section class="login-extra">
<p> <p>
<span>Not enrolled? <a href="#">Sign up.</a></span> <span>Not enrolled? <a href="#">Sign up.</a></span>
<a href="#" class="pwd-reset">Forgot password?</a> <a href="#" class="pwd-reset">Forgot password?</a>
</p> </p>
</section> </section>
<div class="close-modal"> <div class="close-modal">
<div class="inner"> <div class="inner">
<p>&#10005;</p> <p>&#10005;</p>
</div>
</div> </div>
</div> </div>
</section> </div>
</section> </section>
<script type="text/javascript"> <script type="text/javascript">
function getCookie(name) { function getCookie(name) {
var cookieValue = null; var cookieValue = null;
......
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
<ol> <ol>
<li class="primary"> <li class="primary">
<div class="divider"></div> <div class="divider"></div>
<a href="#" class="login">Log In</a> <a href="#" id="login">Log In</a>
<div class="divider"></div> <div class="divider"></div>
<a href="#" class="signup">Sign Up</a> <a href="#" id="signup">Sign Up</a>
<div class="divider"></div> <div class="divider"></div>
</li> </li>
</ol> </ol>
...@@ -61,4 +61,8 @@ ...@@ -61,4 +61,8 @@
%if not user.is_authenticated(): %if not user.is_authenticated():
<%include file="login_modal.html" /> <%include file="login_modal.html" />
<%include file="signup_modal.html" />
<section class="modal-overlay">
</section>
%endif %endif
<%namespace name='static' file='static_content.html'/>
<section class="modal signup-modal">
<div class="inner-wrapper">
<header>
<h3>Sign Up for edX</h3>
<hr>
</header>
<form id="login_form" method="post">
<label>E-mail</label>
<input name="email" type="email" placeholder="E-mail">
<label>Password</label>
<input name="password" type="password" placeholder="Password">
<label>Public Username</label>
<input name="username" type="text" placeholder="Public Username">
<label>Full Name</label>
<input name="fullname" type="text" placeholder="Full Name">
<label>Your Location</label>
<input name="location" type="text" placeholder="Your Location">
<label>Prefered Language</label>
<input name="language" type="text" placeholder="Prefered Language">
<label class="terms-of-service">
<input name="terms-of-service" type="checkbox">
I agree to the
<a href="#">Terms of Service</a>
</label>
<label class="honor-code">
<input name="honor-code" type="checkbox">
I agree to the
<a href="#">Honor Code</a>
, sumarized below as:
</label>
<div class="honor-code-summary">
<ul>
<li>
<p>Complete all mid-terms and final exams with only my own work.</p>
</li>
<li>
<p>Maintain only one account, and not share the username or password.</p>
</li>
<li>
<p>Not engage in any activity that would dishonestly improve my results, or improve or hurt those of others.</p>
</li>
<li>
<p>Not post answers to problems that are being used to assess student performance.</p>
</li>
</ul>
<hr>
</div>
<div class="submit">
<input name="submit" type="submit" value="Create My Account">
</div>
</form>
<section class="login-extra">
<p>
<span>Already have an account? <a href="#">Login.</a></span>
</p>
</section>
<div class="close-modal">
<div class="inner">
<p>&#10005;</p>
</div>
</div>
</div>
</section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment