aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/BathNES.pm54
-rw-r--r--templates/web/bathnes/around/intro.html6
-rw-r--r--web/cobrands/bathnes/_colours.scss33
-rw-r--r--web/cobrands/bathnes/base.scss25
-rw-r--r--web/cobrands/bathnes/layout.scss81
-rw-r--r--web/cobrands/bathnes/logo.pngbin0 -> 9293 bytes
6 files changed, 199 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/BathNES.pm b/perllib/FixMyStreet/Cobrand/BathNES.pm
new file mode 100644
index 000000000..4200f8bd6
--- /dev/null
+++ b/perllib/FixMyStreet/Cobrand/BathNES.pm
@@ -0,0 +1,54 @@
+package FixMyStreet::Cobrand::BathNES;
+use parent 'FixMyStreet::Cobrand::Whitelabel';
+
+use strict;
+use warnings;
+
+sub council_area_id { return 2551; }
+sub council_area { return 'Bath and North East Somerset'; }
+sub council_name { return 'Bath and North East Somerset Council'; }
+sub council_url { return 'bathnes'; }
+
+sub contact_email {
+ my $self = shift;
+ return join( '@', 'fixmystreet', 'bathnes.gov.uk' );
+}
+
+sub example_places {
+ return ( 'BA1 1JQ', "Lansdown Grove" );
+}
+
+sub disambiguate_location {
+ my $self = shift;
+ my $string = shift;
+
+ my $town = 'Bath';
+
+ return {
+ %{ $self->SUPER::disambiguate_location() },
+ town => $town,
+ centre => '51.3559192103294,-2.47522827137605',
+ span => '0.166437921041471,0.429359043406088',
+ bounds => [ 51.2730478766607, -2.70792015294201, 51.4394857977022, -2.27856110953593 ],
+ };
+}
+
+sub pin_colour {
+ my ( $self, $p, $context ) = @_;
+ return 'grey' if $p->state eq 'not responsible';
+ return 'green' if $p->is_fixed || $p->is_closed;
+ return 'red' if $p->state eq 'confirmed';
+ return 'yellow';
+}
+
+sub send_questionnaires {
+ return 0;
+}
+
+sub enable_category_groups { 1 }
+
+sub default_show_name { 0 }
+
+sub default_map_zoom { 3 }
+
+1;
diff --git a/templates/web/bathnes/around/intro.html b/templates/web/bathnes/around/intro.html
new file mode 100644
index 000000000..a4c646948
--- /dev/null
+++ b/templates/web/bathnes/around/intro.html
@@ -0,0 +1,6 @@
+<h1>Report a Highways or Cleansing issue in Bath &amp; North East Somerset</h1>
+<h2>
+Report issues with Roads &amp; Pavements or your Environment, such as</h2>
+<h2>
+Potholes, Faulty street lighting, Street litter, Graffiti, and Abandoned Vehicles
+</h2>
diff --git a/web/cobrands/bathnes/_colours.scss b/web/cobrands/bathnes/_colours.scss
new file mode 100644
index 000000000..a5d58da01
--- /dev/null
+++ b/web/cobrands/bathnes/_colours.scss
@@ -0,0 +1,33 @@
+/* LAYOUT */
+
+// If you are wanting a right-to-left layout, uncomment the following line.
+// $direction: right;
+
+/* COLOURS */
+
+$bath_green: #25a445;
+$bath_blue: #0095C9;
+
+$primary: gray;
+$primary_b: #000000;
+$primary_text: #222222;
+
+$base_bg: white;
+$base_fg: #000;
+
+$map_nav_bg: #eee;
+$nav_fg: #000;
+$nav_fg_hover: $primary;
+
+// Colour used for front page 'how to report a problem' steps
+$col_big_numbers: $bath_blue;
+
+$col_click_map: $bath_green;
+
+$col_fixed_label: #00BD08;
+$col_fixed_label_dark: #4B8304;
+
+$front_main_background: $bath_blue;
+
+$menu-image: 'menu-black';
+$header-top-border: false;
diff --git a/web/cobrands/bathnes/base.scss b/web/cobrands/bathnes/base.scss
new file mode 100644
index 000000000..6f949dd49
--- /dev/null
+++ b/web/cobrands/bathnes/base.scss
@@ -0,0 +1,25 @@
+@import "../sass/h5bp";
+@import "./_colours";
+@import "../sass/mixins";
+
+@import "../sass/base";
+
+.nav-menu--mysoc {
+ display: none;
+}
+
+
+body.frontpage #site-logo,
+#site-logo
+{
+ background: url("/cobrands/bathnes/logo.png") 0 0 no-repeat;
+ background-size: contain;
+ width: 82px;
+ height: 40px;
+ top: 8px;
+ left: 4px;
+}
+
+h1, h2, h3, h4 {
+ color: $bath_green;
+}
diff --git a/web/cobrands/bathnes/layout.scss b/web/cobrands/bathnes/layout.scss
new file mode 100644
index 000000000..f4064f79f
--- /dev/null
+++ b/web/cobrands/bathnes/layout.scss
@@ -0,0 +1,81 @@
+@import "_colours";
+@import "../sass/layout";
+
+.big-green-banner {
+ text-transform: none;
+}
+
+body.frontpage {
+ #site-header {
+ height: 5em;
+ background-color: $map_nav_bg;
+ }
+
+ #site-logo {
+ top: 11px;
+ }
+
+ .nav-menu {
+ line-height: 3.25em;
+ }
+}
+
+body.mappage {
+ .nav-menu--main a.report-a-problem-btn {
+ color: white;
+ }
+}
+
+#front-main {
+ background-color: $front_main_background;
+
+ h1, h2, label {
+ color: white;
+ }
+
+ h1 {
+ font-size: 1.7em;
+ }
+ h2 {
+ font-size: 1.1em;
+ }
+}
+
+#site-logo,
+body.frontpage #site-logo,
+body.twothirdswidthpage #site-logo
+{
+ position: relative;
+ top: 6px;
+ left: 20px;
+ margin: 0;
+ padding: 0;
+ background: url("/cobrands/bathnes/logo.png") 0 0 no-repeat;
+ background-size: contain;
+ width: 160px;
+ height: 65px;
+ display: inline-block;
+}
+
+body.mappage {
+ #site-logo {
+ height: 54px;
+ width: 127px;
+ top: 7px;
+ left: 7px;
+ }
+
+ #site-header {
+ color: white;
+ background-color: $bath_blue;
+ }
+
+ .nav-menu a {
+ color: white;
+ }
+
+}
+
+.nav-wrapper .nav-wrapper-2 {
+ border-top-color: transparent;
+} \ No newline at end of file
diff --git a/web/cobrands/bathnes/logo.png b/web/cobrands/bathnes/logo.png
new file mode 100644
index 000000000..189af0f38
--- /dev/null
+++ b/web/cobrands/bathnes/logo.png
Binary files differ