UI: Implement Web Assets' theme system, and add 'dark' theme #103972

Merged
Márton Lente merged 23 commits from ui/theme-system into main 2024-09-30 15:03:39 +02:00
Showing only changes of commit 42cf6d703a - Show all commits

View File

@ -2,6 +2,13 @@
| {% load pipeline %} | {% load pipeline %}
| {% load static %} | {% load static %}
| {% block head_extra %}
| {% verbatim %}
script.
!function(){{const rootElement=document.documentElement;let themeValue;function getThemeValue(){themeValue=localStorage.getItem("dataTheme")}var data;getThemeValue(),themeValue&&(data=themeValue,getThemeValue(),rootElement.setAttribute("data-theme",data))}}();
| {% endverbatim %}
| {% endblock head_extra %}
| {% block header %} | {% block header %}
| {% block jumbotron %} | {% block jumbotron %}
| {% include "conference_main/components/hero.pug" with show_logo=True show_date=True show_location=True show_gradient=True show_overlay=True %} | {% include "conference_main/components/hero.pug" with show_logo=True show_date=True show_location=True show_gradient=True show_overlay=True %}