aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index
diff options
context:
space:
mode:
authorMantas <11616378+mistermantas@users.noreply.github.com>2019-01-27 10:43:29 +0200
committerMantas <11616378+mistermantas@users.noreply.github.com>2019-01-27 10:43:29 +0200
commit8dd25fab185f5e1d7dc2db10a833b4977f801cd5 (patch)
tree5a8a2f7b93f65b4faa60debae2b44d31f979775c /layouts/partials/index
parent5f364a5ef49c6ace597399442ba3556be2cfee89 (diff)
Fixing a11y, colors, UX, minor cleanup
Diffstat (limited to 'layouts/partials/index')
-rw-r--r--layouts/partials/index/announcements.html18
-rw-r--r--layouts/partials/index/components.html6
2 files changed, 17 insertions, 7 deletions
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 }}
- <div class="announcement-box">
+ <div class="announcement-box" style="border-bottom: 0">
{{ range $active }}
<div class="padding">
- <p><strong class="bold">{{ .Title }}</strong></p>
+ <p>
+ <a href="{{ .Permalink }}"><strong class="bold">{{ .Title }} →</strong></a>
+ </p>
+
+ <p><small>
+ {{ range .Params.Affected }}
+ <a href="/affected/{{ . | urlize }}" class="tag no-underline">{{ . }}</a>
+ {{ end }}
+ </small></p>
+
{{ .Content | safeHTML | truncate 500 "…" }}
- <p><a href="{{ .Permalink }}">{{ T "continueReading" }}</a></p>
+ <p></p>
</div>
- {{ else }}{{ end }}
+ <hr class="clean announcement-box">
+ {{ end }}
</div>
{{ 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 @@
<span class="component-status">
{{ if $thisIsDown }}
- {{ T "thisIsDown" }}
+ <b>{{ T "thisIsDown" }}</b>
{{ else }}
{{ if $thisIsDisrupted }}
- {{ T "thisIsDisrupted" }}
+ <b>{{ T "thisIsDisrupted" }}</b>
{{ else }}
{{ if $thisIsNotice }}
- {{ T "thisIsNotice" }}
+ <b>{{ T "thisIsNotice" }}</b>
{{ else }}
{{ T "thisIsOk" }}
{{ end }}{{ end }}{{ end }}