diff --git a/assets/404_tv_box_dark_theme.svg b/assets/404_tv_box_dark_theme.svg new file mode 100644 index 000000000..6217ccd3f --- /dev/null +++ b/assets/404_tv_box_dark_theme.svg @@ -0,0 +1,1261 @@ + + + + + + Layer 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/404_tv_box_light_theme.svg b/assets/404_tv_box_light_theme.svg new file mode 100644 index 000000000..9c2f97050 --- /dev/null +++ b/assets/404_tv_box_light_theme.svg @@ -0,0 +1,1261 @@ + + + + + + Layer 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/invidious/views/error.ecr b/src/invidious/views/error.ecr index 04eb74d54..bc35524ff 100644 --- a/src/invidious/views/error.ecr +++ b/src/invidious/views/error.ecr @@ -1,8 +1,23 @@ +<% + dark_mode = env.get("preferences").as(Preferences).dark_mode +%> + <% content_for "header" do %> <%= "Error" %> - Invidious <% end %>
- <%= error_message %> +
+ <%= error_message %> + <% if dark_mode == "dark" %> +
+ SVG Image +
+ <% else %> +
+ SVG Image +
+ <% end %> +
<%= next_steps %>