backgroundoo/templates/main.templ
Andrei Vavilov - SKIDATA 6b177c7e90 init commit
2026-04-09 13:39:43 +02:00

34 lines
1.6 KiB
Plaintext

package templates
import "github.com/bergbauer888/backgroundoo/templates/pages"
templ Layout(title string, metaTags, bodyContent templ.Component) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' data: https://fonts.gstatic.com; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' ws://localhost:*; img-src 'self' data:*;"/>
<meta name="theme-color" content="#FEFEF5"/>
<title>{ title }</title>
@metaTags
<link rel="dns-prefetch" href="//fonts.googleapis.com"/>
<link rel="dns-prefetch" href="//fonts.gstatic.com"/>
<link rel="preconnect" href="//fonts.googleapis.com" crossorigin/>
<link rel="preconnect" href="//fonts.gstatic.com" crossorigin/>
<link rel="manifest" href="/static/manifest.webmanifest"/>
<link rel="apple-touch-icon" href="/static/apple-touch-icon.png"/>
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml"/>
<link rel="icon" href="/static/favicon.png" sizes="any"/>
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet"/>
<link href="/static/styles.css" rel="stylesheet"/>
</head>
<body onload={ pages.BodyScripts() }>
@bodyContent
<script src="/static/scripts.js"></script>
</body>
</html>
}