diff options
author | Martin Wright <martin@mynameismartin.com> | 2015-07-10 12:03:05 +0100 |
---|---|---|
committer | Martin Wright <martin@mynameismartin.com> | 2015-08-07 14:11:25 +0100 |
commit | a69dd1720faba129992a192dc937d091bc18a2fd (patch) | |
tree | e538029aee391ced9202a88fc635267186b58f91 | |
parent | baa4f027c96c3783e81129200c9692a513548bec (diff) |
add hero styling and background image
-rw-r--r-- | assets/images/homepage-background-small.jpg | bin | 0 -> 31521 bytes | |||
-rw-r--r-- | assets/images/homepage-background.jpg | bin | 0 -> 73454 bytes | |||
-rw-r--r-- | assets/stylesheets/responsive/custom.scss | 60 | ||||
-rw-r--r-- | lib/views/general/_frontpage_intro_sentence.html.erb | 4 |
4 files changed, 60 insertions, 4 deletions
diff --git a/assets/images/homepage-background-small.jpg b/assets/images/homepage-background-small.jpg Binary files differnew file mode 100644 index 0000000..2bf1d52 --- /dev/null +++ b/assets/images/homepage-background-small.jpg diff --git a/assets/images/homepage-background.jpg b/assets/images/homepage-background.jpg Binary files differnew file mode 100644 index 0000000..698dfc3 --- /dev/null +++ b/assets/images/homepage-background.jpg diff --git a/assets/stylesheets/responsive/custom.scss b/assets/stylesheets/responsive/custom.scss index 6ce1db0..94ad1a1 100644 --- a/assets/stylesheets/responsive/custom.scss +++ b/assets/stylesheets/responsive/custom.scss @@ -786,3 +786,63 @@ li:nth-child(3) { } +.homepage-hero { + background-color: $color_black; + background-image: image-url('homepage-background-small.jpg'); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + color: $color_white; + padding: 2em 0 5em; + position: relative; + @include respond-min($main_menu-mobile_menu_cutoff) { + padding: 5em 0 8em; + background-image: image-url('homepage-background.jpg'); + } + + a { + color: $color_yellow; + &:hover, + &:active, + &:focus { + color: $color_white; + } + } + + .button { + color: $color_white; + background-color: $color_yellow; + border-color: darken($color_yellow, 15%); + color: $color_black; + transition: color 300ms ease-out; + &:hover, + &:active, + &:focus { + color: $color_white; + background-color: $color_blue; + border-color: darken($color_blue, 15%); + transition: color 300ms ease-out; + } + } +} + +.intro__title { + color: $color_white; + text-shadow: 0 1px 2px transparentize($color_black, 0.7); +} + +.new-request__content { + background-color: $color_black; + border-radius: 5px; + padding: 1.888888889em; +} + +.new-request__title { + color: $color_white; + font-size: 1.4375em; + margin: 0 0 0.5em; +} + +.new-request__description { + color: transparentize($color_white, 0.2); +} diff --git a/lib/views/general/_frontpage_intro_sentence.html.erb b/lib/views/general/_frontpage_intro_sentence.html.erb deleted file mode 100644 index cfba8f6..0000000 --- a/lib/views/general/_frontpage_intro_sentence.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -<h2> - Your <strong>Right to Know</strong> -</h2> -<p>Every citizen has the right to access information held by public bodies. <strong>By law, they have to respond</strong>. <a href="<%= help_about_url %>">Find out more about Freedom of Information.</a></p> |