mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-20 09:14:16 +00:00
add footer
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -44,6 +44,22 @@
|
||||
0 8px 25px oklch(78% 0.12 175 / 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
THEME-AWARE ICON SWITCHING
|
||||
======================================== */
|
||||
.icon-light {
|
||||
display: block;
|
||||
}
|
||||
.icon-dark {
|
||||
display: none;
|
||||
}
|
||||
[data-theme="dark"] .icon-light {
|
||||
display: none;
|
||||
}
|
||||
[data-theme="dark"] .icon-dark {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ========================================
|
||||
CUSTOM COMPONENTS (Not in DaisyUI)
|
||||
======================================== */
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{{ define "footer" }}
|
||||
<footer class="footer footer-center bg-base-200 text-base-content p-6 mt-auto">
|
||||
<nav class="flex flex-wrap justify-center gap-4 text-sm">
|
||||
<a href="/privacy" class="link link-hover inline-flex items-center gap-1">
|
||||
<i data-lucide="shield" class="size-4"></i> Privacy
|
||||
</a>
|
||||
<a href="/terms" class="link link-hover inline-flex items-center gap-1">
|
||||
<i data-lucide="scroll-text" class="size-4"></i> Terms
|
||||
</a>
|
||||
<a href="https://bsky.app/profile/atcr.io" target="_blank" rel="noopener" class="link link-hover inline-flex items-center gap-1">
|
||||
<svg class="size-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 568 501"><path fill="currentColor" d="M123.121 33.664C188.241 82.553 258.281 181.68 284 234.873c25.719-53.192 95.759-152.32 160.879-201.21C491.866-1.611 568-28.906 568 57.947c0 17.346-9.945 145.713-15.778 166.555-20.275 72.453-94.155 90.933-159.875 79.748C507.222 323.8 536.444 388.56 473.333 453.32c-119.86 122.992-172.272-30.859-185.702-70.281-2.462-7.227-3.614-10.608-3.631-7.733-.017-2.875-1.169.506-3.631 7.733-13.43 39.422-65.842 193.273-185.702 70.281-63.111-64.76-33.89-129.52 80.986-149.071-65.72 11.185-139.6-7.295-159.875-79.748C9.945 203.659 0 75.291 0 57.946 0-28.906 76.135-1.612 123.121 33.664Z"/></svg>
|
||||
Bluesky
|
||||
</a>
|
||||
<a href="https://tangled.org/evan.jarrett.net/at-container-registry" target="_blank" rel="noopener" class="link link-hover inline-flex items-center gap-1">
|
||||
<img src="https://assets.tangled.network/tangled_dolly_face_only_black_on_trans.svg" alt="" class="size-4 icon-light">
|
||||
<img src="https://assets.tangled.network/tangled_dolly_face_only_white_on_trans.svg" alt="" class="size-4 icon-dark">
|
||||
Source
|
||||
</a>
|
||||
</nav>
|
||||
</footer>
|
||||
{{ end }}
|
||||
@@ -16,7 +16,7 @@
|
||||
<span class="hidden sm:inline">@{{ .User.Handle }}</span>
|
||||
<i data-lucide="chevron-down" class="size-3.5"></i>
|
||||
</summary>
|
||||
<ul class="dropdown-content menu bg-base-100 rounded-box z-50 w-52 p-2 shadow-lg">
|
||||
<ul class="dropdown-content menu bg-base-100 text-base-content rounded-box z-50 w-52 p-2 shadow-lg">
|
||||
<li><a href="/u/{{ .User.Handle }}">Your Repositories</a></li>
|
||||
<li><a href="/settings">Settings</a></li>
|
||||
<li class="border-t border-base-300 mt-2 pt-2">
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
</div>
|
||||
</main>
|
||||
<script>lucide.createIcons();</script>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -68,6 +68,8 @@
|
||||
|
||||
<!-- Modal container for HTMX -->
|
||||
<div id="modal"></div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -136,6 +136,8 @@ export PATH="/usr/local/bin:$PATH"</code></div>
|
||||
</script>
|
||||
|
||||
<div id="modal"></div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -61,6 +61,8 @@
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -333,6 +333,8 @@
|
||||
</main>
|
||||
|
||||
<div id="modal"></div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -310,6 +310,7 @@
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
|
||||
<!-- Modal container for HTMX -->
|
||||
<div id="modal"></div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -572,6 +572,8 @@
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -199,6 +199,8 @@
|
||||
</main>
|
||||
|
||||
<div id="modal"></div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
@@ -69,6 +69,8 @@
|
||||
|
||||
<!-- Modal container for HTMX -->
|
||||
<div id="modal"></div>
|
||||
|
||||
{{ template "footer" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
+2
-1
@@ -4,7 +4,8 @@ module.exports = {
|
||||
"./pkg/appview/templates/**/*.html",
|
||||
"./pkg/appview/public/js/**/*.js",
|
||||
],
|
||||
// DaisyUI handles dark mode via data-theme
|
||||
// Enable dark: variant based on 'dark' class (already toggled in head.html)
|
||||
darkMode: 'class',
|
||||
theme: {
|
||||
extend: {
|
||||
// Only keep custom extensions not covered by DaisyUI
|
||||
|
||||
Reference in New Issue
Block a user