From ba9ba3a55e6f4ee1b3673f19cd5b1ede0c4b2b75 Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 9 Jun 2020 17:01:30 +0200 Subject: [PATCH] Add cookie note so we don't break the law --- src/sass/index.scss | 8 ++++++++ src/views/preferences.nim | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/sass/index.scss b/src/sass/index.scss index 52f6bb7..9e048b6 100644 --- a/src/sass/index.scss +++ b/src/sass/index.scss @@ -95,6 +95,14 @@ legend { margin-bottom: 8px; } +.cookie-note { + border-top: 1px solid var(--border_grey); + border-bottom: 1px solid var(--border_grey); + padding: 6px 0 8px 0; + margin-bottom: 8px; + margin-top: 16px; +} + ul { padding-left: 1.3em; } diff --git a/src/views/preferences.nim b/src/views/preferences.nim index 7a415f6..0ea1fbd 100644 --- a/src/views/preferences.nim +++ b/src/views/preferences.nim @@ -39,6 +39,9 @@ proc renderPreferences*(prefs: Prefs; path: string; themes: seq[string]): VNode renderPrefs() + h4(class="cookie-note"): + text "Preferences are stored client-side using cookies without any personal information." + button(`type`="submit", class="pref-submit"): text "Save preferences"