UI: Implement Web Assets' theme system, and add 'dark' theme #103972
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user