Add module preload to demo page (#16274)

pull/16289/head
Steve Repsher 2023-04-24 05:27:40 -04:00 committed by GitHub
parent 609300f40b
commit 4e1e76ccc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,7 @@
<html>
<head>
<title>Home Assistant Demo</title>
<meta charset="utf-8" />
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" />
<link rel="icon" href="/static/icons/favicon.ico" />
<%= renderTemplate("../../../src/html/_header.html.template") %>
<link rel="mask-icon" href="/static/icons/mask-icon.svg" color="#03a9f4" />
<link
rel="apple-touch-icon"

View File

@ -6,4 +6,3 @@
<link rel="modulepreload" href="<%= entry %>" crossorigin="use-credentials" />
<% } %>
<% } %>
<%= renderTemplate("_style_base.html.template") %>

View File

@ -3,6 +3,7 @@
<head>
<title>Home Assistant</title>
<%= renderTemplate("_header.html.template") %>
<%= renderTemplate("_style_base.html.template") %>
<style>
.content {
padding: 20px 16px;

View File

@ -34,6 +34,7 @@
<meta name="referrer" content="same-origin" />
<meta name="theme-color" content="{{ theme_color }}" />
<meta name="color-scheme" content="dark light" />
<%= renderTemplate("_style_base.html.template") %>
<style>
html {
background-color: var(--primary-background-color, #fafafa);

View File

@ -3,6 +3,7 @@
<head>
<title>Home Assistant</title>
<%= renderTemplate("_header.html.template") %>
<%= renderTemplate("_style_base.html.template") %>
<style>
html {
color: var(--primary-text-color, #212121);