Files
go-pgp-server/templates/layout.html
2025-09-22 20:49:05 +02:00

72 lines
3.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{define "layout"}}
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>PGP Key Server</title>
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<script src="/assets/htmx.min.js"></script>
<style>
body { background: #0f172a; } /* slate-900 */
.card { border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25);}
.brand { color: #e2e8f0; } /* slate-200 */
.muted { color: #94a3b8; }
.search { border-radius: .75rem; }
</style>
</head>
<body class="py-4">
<div class="container">
<div class="d-flex justify-content-between align-items-center mb-4">
<div>
<h1 class="brand h3 mb-0">🔐 PGP Key Server</h1>
<div class="muted">Durchsuche öffentliche OpenPGP-Schlüssel</div>
</div>
<button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#uploadModal">+ Upload</button>
</div>
{{template "content" .}}
<!-- Upload Modal -->
<div class="modal fade" id="uploadModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Öffentlichen Schlüssel hochladen</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="/upload" method="post" enctype="multipart/form-data">
<div class="modal-body">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label">Name</label>
<input class="form-control" name="name" placeholder="Max Mustermann" required>
</div>
<div class="col-md-6">
<label class="form-label">E-Mail</label>
<input type="email" class="form-control" name="email" placeholder="max@example.com" required>
</div>
<div class="col-md-6">
<label class="form-label">Fingerprint (optional)</label>
<input class="form-control" name="fingerprint" placeholder="ABCD 1234 ...">
</div>
<div class="col-12">
<label class="form-label">PGP Public Key (.asc)</label>
<input type="file" class="form-control" name="file" accept=".asc,text/plain" required>
<div class="form-text">Nur ASCIIarmored öffentliche Schlüssel. Maximale Größe 2 MiB.</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Abbrechen</button>
<button class="btn btn-primary">Hochladen</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="/assets/js/bootstrap.bundle.min.js"></script>
</body>
</html>
{{end}}