- Simple preferences page with engine selection - Light/dark theme toggle with localStorage persistence - Clean form layout without complex JS dependencies - Add dark theme CSS variables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
1.6 KiB
HTML
36 lines
1.6 KiB
HTML
{{define "base"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-theme="light">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="referrer" content="no-referrer">
|
|
<meta name="robots" content="noarchive">
|
|
<meta name="description" content="kafka — a privacy-respecting, open metasearch engine">
|
|
<title>{{if .Query}}{{.Query}} — {{end}}kafka</title>
|
|
<link rel="stylesheet" href="/static/css/kafka.css">
|
|
<link rel="icon" href="/static/img/favicon.svg" type="image/svg+xml">
|
|
<link title="kafka" type="application/opensearchdescription+xml" rel="search" href="/opensearch.xml">
|
|
<script>var s=document.documentElement;s.setAttribute('data-theme',localStorage.getItem('kafka-theme')||'light');</script>
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<a href="/" class="site-logo">
|
|
<svg class="site-logo-mark" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
<circle cx="11" cy="11" r="8"/>
|
|
<path d="m21 21-4.35-4.35"/>
|
|
</svg>
|
|
<span class="site-name">kafka</span>
|
|
</a>
|
|
</header>
|
|
|
|
<main class="{{if .Query}}page-results{{else}}page-home{{end}}">
|
|
{{template "content" .}}
|
|
</main>
|
|
|
|
<footer>
|
|
<p>Powered by <a href="https://git.ashisgreat.xyz/penal-colony/kafka">kafka</a> — a privacy-respecting, open metasearch engine{{if .SourceURL}} · <a href="{{.SourceURL}}">Source</a>{{end}} · <a href="https://www.gnu.org/licenses/agpl-3.0.html">AGPLv3</a></p>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
{{end}}
|