Files
smartbar/templates/index.gohtml

30 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-08-10 17:17:01 -07:00
<!doctype html>
2025-08-31 15:05:56 -07:00
<html lang="en">
2025-08-10 17:17:01 -07:00
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>All Pages</title>
2025-08-10 18:02:12 -07:00
<link rel="stylesheet" href="assets/css/base.css" />
2025-08-10 17:17:01 -07:00
<style>
html, body { margin: 0; padding: 0; height: 100%; }
body { background: #eeeeee; }
.main { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; box-sizing: border-box; }
.thumb { display: flex; flex-direction: column; align-items: center; }
2025-08-10 17:36:57 -07:00
.label { font: 12px/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #555; margin: 0.25rem 0; }
2025-08-10 17:51:50 -07:00
.thumb iframe { display:block; width: var(--page-w, 5.5in); height: var(--page-h, 8.5in); border: 0; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.18); }
2025-08-10 17:17:01 -07:00
</style>
</head>
2025-08-10 17:36:57 -07:00
<body style="--page-w: 5.5in; --page-h: 8.5in;">
2025-08-10 17:17:01 -07:00
<div class="main">
{{ range .Pages }}
<div class="thumb">
2025-08-10 17:47:57 -07:00
<a class="label" href="{{ .Href }}">{{ .Name }}</a>
2025-08-10 17:36:57 -07:00
<iframe src="{{ .Href }}" loading="lazy"></iframe>
2025-08-10 17:17:01 -07:00
</div>
{{ end }}
</div>
</body>
</html>