From 8dd25fab185f5e1d7dc2db10a833b4977f801cd5 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Sun, 27 Jan 2019 10:43:29 +0200 Subject: Fixing a11y, colors, UX, minor cleanup --- layouts/partials/index/announcements.html | 18 ++++++++++++++---- layouts/partials/index/components.html | 6 +++--- layouts/partials/meta.html | 23 +++++------------------ 3 files changed, 22 insertions(+), 25 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html index a02045e..0be3835 100644 --- a/layouts/partials/index/announcements.html +++ b/layouts/partials/index/announcements.html @@ -2,13 +2,23 @@ {{ $active := where $incidents "Params.resolved" "=" false }} {{ if $active }} -
+
{{ range $active }}
-

{{ .Title }}

+

+ {{ .Title }} → +

+ +

+ {{ range .Params.Affected }} + {{ . }} + {{ end }} +

+ {{ .Content | safeHTML | truncate 500 "…" }} -

{{ T "continueReading" }}

+

- {{ else }}{{ end }} +
+ {{ end }}
{{ end }} \ No newline at end of file diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index 9424cd0..128b887 100644 --- a/layouts/partials/index/components.html +++ b/layouts/partials/index/components.html @@ -31,13 +31,13 @@ {{ if $thisIsDown }} - {{ T "thisIsDown" }} + {{ T "thisIsDown" }} {{ else }} {{ if $thisIsDisrupted }} - {{ T "thisIsDisrupted" }} + {{ T "thisIsDisrupted" }} {{ else }} {{ if $thisIsNotice }} - {{ T "thisIsNotice" }} + {{ T "thisIsNotice" }} {{ else }} {{ T "thisIsOk" }} {{ end }}{{ end }}{{ end }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index e2a5056..6544af8 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -23,23 +23,10 @@