Skip to content

Commit

Permalink
[Lincolnshire] Move and restyle site messages on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton authored and MorayMySoc committed Jul 5, 2024
1 parent 7ca8c02 commit d6e2519
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/web/base/around/postcode_form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<main id="front-main">
<div id="front-main-container">
[% UNLESS possible_location_matches %]
[% INCLUDE 'around/intro.html' %]
[% PROCESS 'around/intro.html' %]
[% END %]

[%
Expand Down
3 changes: 2 additions & 1 deletion templates/web/base/front/site-message.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[% site_message = c.cobrand.site_message %]
[% IF site_message %]
[% IF site_message && !rendered_site_message %]
<div class="site-message">
[% site_message | html_para %]
</div>
[% END %]
[% rendered_site_message = 1 %]
1 change: 1 addition & 0 deletions templates/web/base/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[% rendered_site_message = 0 %]
[% pre_container_extra = PROCESS 'around/postcode_form.html' %]
[% SET bodyclass = 'frontpage fullwidthpage' %]
[% INCLUDE 'header.html', title = '', inline_css = 1 %]
Expand Down
4 changes: 3 additions & 1 deletion templates/web/base/report/new/form_after_heading.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[% site_message = c.cobrand.site_message('reporting') %]
[% IF site_message %]
[% site_message | safe %]
<div class="site-message__reporting">
[% site_message | safe | html_para %]
</div>
[% END %]

2 changes: 2 additions & 0 deletions templates/web/lincolnshire/around/intro.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[% PROCESS 'front/site-message.html' %]

<h1>Report, view, or discuss local problems</h1>
<h2>(like potholes, broken paving slabs, or street lighting)</h2>
17 changes: 15 additions & 2 deletions web/cobrands/lincolnshire/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ h1, h2, h3 {
background-image: url(/cobrands/lincolnshire/images/logo.png);
}

.site-message {
background-color: $lincs-pop;
color: #fff;
border: 0;
}

.site-message__reporting {
background-color: $lincs-pop;
color: #fff;
padding: 1em;
margin: 1em 0;
}

.body.frontpage, body.twothirdswidthpage, body.fullwidthpage, body.authpage {
#site-logo {
@media (min-width: 48em) {
Expand Down Expand Up @@ -81,7 +94,7 @@ h1, h2, h3 {
}
}

.form-box,
.form-box,
.alerts__cta-box {
background-color: $lincs-panel;
}
Expand Down Expand Up @@ -130,7 +143,7 @@ body.mappage .big-green-banner {
}

.fms-admin-warning {
background-color: $lincs-error;
background-color: $lincs-error;
border-color: darken($lincs-error, 10%);
}

Expand Down

0 comments on commit d6e2519

Please sign in to comment.