aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2017-07-18 14:58:38 +0100
committerZarino Zappia <mail@zarino.co.uk>2017-07-28 14:35:22 +0100
commit9d5e44842fdac0d3894ed82885a4079df85ba890 (patch)
treefa45b42ddeaa53e0c3d6bbb0f3778111fec54e94 /web
parent256833eca11be4450312a5f6626503669b4b16f7 (diff)
[fixmystreet.com] FMS Pro demo access request form
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet.com/fmsforcouncils.scss68
-rw-r--r--web/cobrands/fixmystreet.com/js.js12
2 files changed, 78 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet.com/fmsforcouncils.scss b/web/cobrands/fixmystreet.com/fmsforcouncils.scss
index bf156b73d..ee166b8fd 100644
--- a/web/cobrands/fixmystreet.com/fmsforcouncils.scss
+++ b/web/cobrands/fixmystreet.com/fmsforcouncils.scss
@@ -142,8 +142,71 @@ $fms-pink: #E65376;
color: #777;
}
+ .councils-hero__demo-access {
+ background-color: $fms-pink;
+ border-radius: 3px;
+ color: #fff;
+ padding: 2em;
+ margin: 4em auto -4em auto;
+ max-width: 26em;
+ position: relative;
+ z-index: 1;
+
+ @media (min-width: 44em) {
+ padding: 3em;
+ }
+
+ h2 {
+ text-align: center;
+ margin: 0 0 1em 0;
+ }
+
+ .form-group {
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+ label {
+ font-weight: normal;
+ }
+
+ // Avoid border collapse jump on jQuery.slideDown()
+ .form-group:first-child label {
+ margin-top: 0;
+ }
+
+ input[type="text"],
+ input[type="email"] {
+ border: 1px solid desaturate(darken($fms-pink, 10%), 20%);
+ width: 100%;
+ padding: 0.5em;
+ border-radius: 3px;
+ font-size: 1em;
+ box-sizing: border-box;
+ }
+
+ .btn {
+ display: block;
+ margin: 0 auto;
+ background-image: none;
+ background-color: desaturate(darken($fms-pink, 10%), 20%);
+ border: none;
+
+ &:hover,
+ &:active,
+ &:focus {
+ background-color: desaturate(darken($fms-pink, 20%), 20%);
+ }
+ }
+
+ .required,
+ .form-note {
+ color: mix($fms-pink, #fff, 30%);
+ }
+ }
+
.councils-sales {
- padding: 3em 0 5em;
+ padding: 2em 0 5em;
.councils-content-wrapper {
max-width: 58em;
}
@@ -188,7 +251,8 @@ $fms-pink: #E65376;
.councils-sales--benefits {
background-color: #F7F6F5;
border-bottom: 1px solid #e9e9e9;
- padding-top: 1em;
+ padding-top: 5em;
+
h2 {
font-size: 2.5em;
text-align: center;
diff --git a/web/cobrands/fixmystreet.com/js.js b/web/cobrands/fixmystreet.com/js.js
index f0598dbdb..5aecd820e 100644
--- a/web/cobrands/fixmystreet.com/js.js
+++ b/web/cobrands/fixmystreet.com/js.js
@@ -65,4 +65,16 @@ $(function(){
});
}
});
+
+ // Hide the demo access form behind a button, to save space on initial page load
+ $('.js-fms-pro-demo-form').each(function(){
+ var $form = $(this);
+ var $revealBtn = $('<button>').addClass('btn').text('Request access').on('click', function(){
+ $form.slideDown(250, function(){
+ $form.find('input[type="text"], input[type="text"]').eq(0).focus();
+ });
+ $(this).remove();
+ }).insertAfter($form);
+ $form.hide();
+ });
});