go-http-skeleton/web/components/base.templ

35 lines
1.4 KiB
Plaintext
Raw Normal View History

package components
templ Page(content templ.Component) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="description" content="A sane golang website template."/>
<link rel="preload" as="style" href="static/css/fonts.css" media="screen,print"/>
<link rel="preload" as="style" href="static/css/site.screen.css" media="screen"/>
<link rel="preload" as="font" href="static/css/fonts/poppins-western.woff2" media="screen,print" crossorigin/>
<link rel="preload" as="font" href="static/css/fonts/poppins-western-bold.woff2" media="screen,print" crossorigin/>
<link rel="preload" as="font" href="static/css/fonts/interface-Regular.woff2" media="screen,print" crossorigin/>
<link rel="stylesheet" href="static/css/fonts.css" media="screen,print"/>
<link rel="stylesheet" href="static/css/site.screen.css" media="screen"/>
<link rel="stylesheet" href="static/css/site.print.css" media="print"/>
<link rel="apple-touch-icon" href="static/apple-touch-icon.png"/>
<link rel="icon" href="static/favicon.ico"/>
<link rel="icon" href="static/favicon.svg" type="image/svg+xml"/>
<title>Awesome content</title>
</head>
<body>
<div id="fauxBody">
@Header()
<main>
@content
</main>
<a href="#top" id="backToTop"><span>Back To Top</span></a>
@Footer()
</div>
</body>
</html>
}