Add Technical Kiwi website with Go, templ, and HTMX.
Single-page site with gallery by album and event, contact form over SMTP, Docker dev/prod setup, and on-server image derivatives. Gallery photos stay local (app/images/ is gitignored). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
43
app/templates/layout.templ
Normal file
43
app/templates/layout.templ
Normal file
@@ -0,0 +1,43 @@
|
||||
package templates
|
||||
|
||||
templ Layout(title string, preloadImage string, content templ.Component) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
|
||||
<meta name="theme-color" content="#14100c"/>
|
||||
<title>{ title }</title>
|
||||
<meta name="description" content="Technical Kiwi Limited — electronic engineering, DevOps, and interactive art from New Zealand."/>
|
||||
<link rel="stylesheet" href="/static/style.css"/>
|
||||
if preloadImage != "" {
|
||||
<link rel="preload" as="image" href={ preloadImage } fetchpriority="high"/>
|
||||
}
|
||||
</head>
|
||||
<body hx-boost="true">
|
||||
<header class="site-header">
|
||||
<a href="/" class="logo">
|
||||
<span class="logo-mark" aria-hidden="true">T</span>
|
||||
<span class="logo-text">Technical Kiwi</span>
|
||||
</a>
|
||||
<nav class="site-nav">
|
||||
<a href="#services">Services</a>
|
||||
<a href="https://git.technical.kiwi/" rel="noopener noreferrer" target="_blank">Code</a>
|
||||
<a href="#gallery">Gallery</a>
|
||||
<a href="#contact">Contact</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
@content
|
||||
</main>
|
||||
<footer class="site-footer">
|
||||
<p>
|
||||
© { currentYear() } Technical Kiwi Limited. New Zealand.
|
||||
<a href="https://git.technical.kiwi/" rel="noopener noreferrer" target="_blank">git.technical.kiwi</a>
|
||||
</p>
|
||||
</footer>
|
||||
<div id="modal-root"></div>
|
||||
<script src="/static/htmx.min.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
}
|
||||
Reference in New Issue
Block a user