diff --git a/app/assets/stylesheets/components/banner.scss b/app/assets/stylesheets/components/banner.scss index 583026dba..97154f5fd 100644 --- a/app/assets/stylesheets/components/banner.scss +++ b/app/assets/stylesheets/components/banner.scss @@ -109,13 +109,65 @@ } +.banner-intro { + + margin: $gutter 0 -90px 0; + padding: $gutter-half $gutter; + background: $govuk-blue; + color: $white; + overflow: hidden; + + .heading-medium { + @include core-24; + } + + a { + &:link, + &:visited { + color: $white; + } + + &:hover, + &:active { + color: $light-blue-25; + } + } + + .button-block { + line-height: 3.68em; + } + + .button { + + @include core-19; + background: $white; + padding: 0.3684210526em 0.8421052632em 0.2105263158em 0.7421052632em; + display: inline-block; + margin-top: $gutter-half; + margin-right: 0.3em; + box-shadow: 0 2px 0 mix($govuk-blue, $text-colour); + + &:link, + &:visited, + &:hover { + color: $govuk-blue; + } + + &:hover { + background: $light-blue-25; + outline: none; + } + + } + +} + .banner-tour { @extend %banner; background: $govuk-blue; color: $white; margin-top: $gutter; - margin-bottom: $gutter * -3; padding: $gutter; height: 475px; overflow: hidden; @@ -166,17 +218,4 @@ } - th { - padding: inherit 5px; - background: $grey-3; - border-left: 5px solid $grey-3; - border-right: 5px solid $grey-3; - } - - tr:last-child { - td { - border: none; - } - } - } diff --git a/app/assets/stylesheets/components/phone.scss b/app/assets/stylesheets/components/phone.scss new file mode 100644 index 000000000..97f22fbba --- /dev/null +++ b/app/assets/stylesheets/components/phone.scss @@ -0,0 +1,40 @@ +.phone { + + background: $black; + border-radius: 15px; + padding: 15px; + + &-speaker { + margin: 5px auto 20px; + border-radius: 5px; + width: 30px; + height: 7px; + background: rgba($white, 0.2); + } + + &-screen { + background: $white; + color: $black; + min-height: 377px; + border-radius: 1px; + } + + &-recipient { + @include core-16($tabular-numbers: true); + margin: 0 0 5px 7px; + padding-top: 10px; + color: $secondary-text-colour; + } + + &-sms { + padding: 10px; + margin: 10px; + background: $panel-colour; + border-radius: 5px; + } + +} + +.phone-container { + margin-bottom: -200px; +} diff --git a/app/assets/stylesheets/main.scss b/app/assets/stylesheets/main.scss index b6cc06f93..f4b29ea9f 100644 --- a/app/assets/stylesheets/main.scss +++ b/app/assets/stylesheets/main.scss @@ -52,6 +52,7 @@ $path: '/static/images/'; @import 'components/secondary-button'; @import 'components/show-more'; @import 'components/message'; +@import 'components/phone'; @import 'views/job'; @import 'views/edit-template'; diff --git a/app/main/views/sign_out.py b/app/main/views/sign_out.py index 3388fcc45..42ddefdd7 100644 --- a/app/main/views/sign_out.py +++ b/app/main/views/sign_out.py @@ -13,4 +13,4 @@ from app.main import main def sign_out(): session.clear() logout_user() - return redirect(url_for('main.sign_in')) + return redirect(url_for('main.index')) diff --git a/app/templates/components/phone.html b/app/templates/components/phone.html new file mode 100644 index 000000000..dd1b72607 --- /dev/null +++ b/app/templates/components/phone.html @@ -0,0 +1,16 @@ +{% macro phone(recipient, message) %} +
If you’ve used GOV.UK Notify before, sign in to your account
-