diff --git a/locale/en/LC_MESSAGES/django.mo b/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000..31340e8 Binary files /dev/null and b/locale/en/LC_MESSAGES/django.mo differ diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000..9bbcc9d --- /dev/null +++ b/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,48 @@ +msgid "" +msgstr "" +"Project-Id-Version: mandelstudio\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-14 01:00+0200\n" +"PO-Revision-Date: 2026-05-14 01:00+0200\n" +"Last-Translator: \n" +"Language-Team: English\n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Privacy & Cookies" +msgstr "Privacy & Cookies" + +msgid "" +"We use cookies to make sure our website works as well as possible. If you " +"continue using this website, we assume you agree." +msgstr "" +"We use cookies to make sure our website works as well as possible. If you " +"continue using this website, we assume you agree." + +msgid "Accept" +msgstr "Accept" + +msgid "Settings" +msgstr "Settings" + +msgid "You can update your cookie preferences at any time." +msgstr "You can update your cookie preferences at any time." + +msgid "Back" +msgstr "Back" + +msgid "Cookie settings" +msgstr "Cookie settings" + +msgid "" +"Choose which cookie categories you allow. Functional cookies are always " +"enabled because they are required for the website to work." +msgstr "" +"Choose which cookie categories you allow. Functional cookies are always " +"enabled because they are required for the website to work." + +msgid "Save preferences" +msgstr "Save preferences" diff --git a/locale/nl/LC_MESSAGES/django.mo b/locale/nl/LC_MESSAGES/django.mo new file mode 100644 index 0000000..7ac57fb Binary files /dev/null and b/locale/nl/LC_MESSAGES/django.mo differ diff --git a/locale/nl/LC_MESSAGES/django.po b/locale/nl/LC_MESSAGES/django.po new file mode 100644 index 0000000..83a626e --- /dev/null +++ b/locale/nl/LC_MESSAGES/django.po @@ -0,0 +1,49 @@ +msgid "" +msgstr "" +"Project-Id-Version: mandelstudio\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-14 01:00+0200\n" +"PO-Revision-Date: 2026-05-14 01:00+0200\n" +"Last-Translator: \n" +"Language-Team: Dutch\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "Privacy & Cookies" +msgstr "Privacy & Cookies" + +msgid "" +"We use cookies to make sure our website works as well as possible. If you " +"continue using this website, we assume you agree." +msgstr "" +"We maken gebruik van cookies om er zeker van te zijn dat onze website zo " +"goed mogelijk werkt. Als u deze website blijft gebruiken, gaan we ervan uit " +"dat u akkoord gaat." + +msgid "Accept" +msgstr "Accepteer" + +msgid "Settings" +msgstr "Instellingen" + +msgid "You can update your cookie preferences at any time." +msgstr "U kunt uw cookievoorkeuren op elk moment wijzigen." + +msgid "Back" +msgstr "Terug" + +msgid "Cookie settings" +msgstr "Cookie instellingen" + +msgid "" +"Choose which cookie categories you allow. Functional cookies are always " +"enabled because they are required for the website to work." +msgstr "" +"Kies welke cookiecategorieën u toestaat. Functionele cookies zijn altijd " +"ingeschakeld omdat ze nodig zijn om de website te laten werken." + +msgid "Save preferences" +msgstr "Voorkeuren opslaan" diff --git a/mandelstudio/settings/base.py b/mandelstudio/settings/base.py index b17177a..affc2b0 100644 --- a/mandelstudio/settings/base.py +++ b/mandelstudio/settings/base.py @@ -150,6 +150,7 @@ LANGUAGES = [ ("pt", "Português"), ("ru", "Русский"), ] +LOCALE_PATHS = [str(BASE_PATH / "locale")] STATIC_ROOT = str(BASE_PATH / "static") MEDIA_ROOT = str(BASE_PATH / "media") diff --git a/mandelstudio/static/mandelstudio/scss/layout_overrides.scss b/mandelstudio/static/mandelstudio/scss/layout_overrides.scss index e454a40..fccf083 100644 --- a/mandelstudio/static/mandelstudio/scss/layout_overrides.scss +++ b/mandelstudio/static/mandelstudio/scss/layout_overrides.scss @@ -101,6 +101,14 @@ header { -webkit-backdrop-filter: blur(16px); } + .cookie-consent-panel { + display: none; + + &.is-active { + display: block; + } + } + .cookie-banner-title { display: flex; align-items: center; @@ -126,7 +134,9 @@ header { } #cookie_popup_acceptButton, - #cookie_popup_settingsButton { + #cookie_popup_settingsToggle, + #cookie_popup_acceptButton_settings, + #cookie_model_saveButton { flex: 1 1 0; height: 46px; border-radius: 10px; @@ -149,7 +159,8 @@ header { } } - #cookie_popup_settingsButton { + #cookie_popup_settingsToggle, + #cookie_popup_acceptButton_settings { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.48); color: #fff; @@ -160,6 +171,31 @@ header { } } + #cookie_model_saveButton { + background: #2f80ed; + border-color: #2f80ed; + color: #fff; + + &:hover, + &:focus-visible { + background: #1f6fd8; + border-color: #1f6fd8; + } + } + + .cookie-consent-back { + border: 0; + background: transparent; + color: rgba(255, 255, 255, 0.95); + display: inline-flex; + align-items: center; + gap: 8px; + padding: 0; + margin-bottom: 10px; + font-size: 14px; + font-weight: 600; + } + .cookie-consent-hint { margin-top: 10px; font-size: 13px; diff --git a/mandelstudio/templates/cookie_jar/cookie_banner.html b/mandelstudio/templates/cookie_jar/cookie_banner.html index e4944c2..8df27ab 100644 --- a/mandelstudio/templates/cookie_jar/cookie_banner.html +++ b/mandelstudio/templates/cookie_jar/cookie_banner.html @@ -6,47 +6,108 @@ {% if cookie_jar.needs_display or cookie_jar.site_settings.strict_cookies and not cookie_jar.cookie %}