From 202de1833252bd731deefd24064d881f52d315b5 Mon Sep 17 00:00:00 2001 From: Robert van Dijk Date: Wed, 3 Jan 2024 12:19:21 +0100 Subject: [PATCH] Update buienradar style, and add logo --- .../static/buienradar_logo.svg | 65 +++++++++++++++++++ .../buienradar_graph/static/css/style.css | 20 +++++- .../buienradar_graph/static/js/index.js | 5 +- .../templates/buienradar_graph/index.jinja2 | 7 +- 4 files changed, 92 insertions(+), 5 deletions(-) create mode 100644 narrowcast_content/buienradar_graph/static/buienradar_logo.svg diff --git a/narrowcast_content/buienradar_graph/static/buienradar_logo.svg b/narrowcast_content/buienradar_graph/static/buienradar_logo.svg new file mode 100644 index 0000000..438f7c1 --- /dev/null +++ b/narrowcast_content/buienradar_graph/static/buienradar_logo.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/narrowcast_content/buienradar_graph/static/css/style.css b/narrowcast_content/buienradar_graph/static/css/style.css index 4b4948b..eb10356 100644 --- a/narrowcast_content/buienradar_graph/static/css/style.css +++ b/narrowcast_content/buienradar_graph/static/css/style.css @@ -3,11 +3,27 @@ html { } body { - margin: 5px 50px 10px 20px; - padding: 60px; background-color: #ffffff; } +.logo { + margin-bottom: -30px; + float: right; +} + +.logo img { + width: 150px; +} + +.container { + margin: 0; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 80%; +} + .source { font-weight: normal; font-size: 8pt; diff --git a/narrowcast_content/buienradar_graph/static/js/index.js b/narrowcast_content/buienradar_graph/static/js/index.js index 294b689..adae32e 100644 --- a/narrowcast_content/buienradar_graph/static/js/index.js +++ b/narrowcast_content/buienradar_graph/static/js/index.js @@ -137,7 +137,7 @@ async function createChart() { font: { family: "'RTLGraphikTT-Semibold',Arial,Helvetica,sans-serif", weight: "normal", - size: 8, + size: 12, }, padding: 10, } @@ -158,6 +158,7 @@ async function createChart() { font: { family: "'RTLGraphikTT-Semibold',Arial,Helvetica,sans-serif", weight: "bold", + size: 16, }, // autoSkip: true, // maxTicksLimit: 10, @@ -201,6 +202,7 @@ async function createChart() { font: { family: "'RTLGraphikTT-Semibold',Arial,Helvetica,sans-serif", weight: "bold", + size: 16 }, position: 'end', yAdjust: '', @@ -222,6 +224,7 @@ async function createChart() { font: { family: "'RTLGraphikTT-Semibold',Arial,Helvetica,sans-serif", weight: "normal", + size: 16, }, position: 'end', yAdjust: '', diff --git a/narrowcast_content/buienradar_graph/templates/buienradar_graph/index.jinja2 b/narrowcast_content/buienradar_graph/templates/buienradar_graph/index.jinja2 index fa80f68..5de639b 100644 --- a/narrowcast_content/buienradar_graph/templates/buienradar_graph/index.jinja2 +++ b/narrowcast_content/buienradar_graph/templates/buienradar_graph/index.jinja2 @@ -8,9 +8,12 @@ -
+
+ -
Source: Buienradar®
+{#
Source: Buienradar®
#}