mirror of
https://github.com/git-pkgs/proxy.git
synced 2026-07-07 06:43:20 -04:00
- Move third-party JS into static/vendor/ and add lucide for icons; refine .gitignore so embedded vendor dirs aren't caught by the Go vendor rule. - Replace folder/file emojis in the source browser with lucide icons. - Wrap the header logo and title in a single anchor so the icon is clickable. - Drop the redundant "Powered by git-pkgs" footer block; add a GitHub repo link to the About column and bump the ecosystem count from 16+ to 17+. - Sticky footer pattern: body is min-h-full flex column with main growing to fill, so the footer sits at the bottom of short pages. - Hamburger menu under md: search and nav links collapse into a drawer toggled by a menu button; theme toggle stays visible at both sizes.
26 lines
1 KiB
HTML
26 lines
1 KiB
HTML
{{define "styles"}}
|
|
<script>
|
|
document.getElementById('theme-toggle').addEventListener('click', function() {
|
|
if (document.documentElement.classList.contains('dark')) {
|
|
document.documentElement.classList.remove('dark');
|
|
localStorage.theme = 'light';
|
|
} else {
|
|
document.documentElement.classList.add('dark');
|
|
localStorage.theme = 'dark';
|
|
}
|
|
});
|
|
|
|
(function() {
|
|
const toggle = document.getElementById('nav-toggle');
|
|
const menu = document.getElementById('mobile-nav');
|
|
if (!toggle || !menu) return;
|
|
toggle.addEventListener('click', function() {
|
|
const open = toggle.getAttribute('aria-expanded') === 'true';
|
|
toggle.setAttribute('aria-expanded', String(!open));
|
|
menu.classList.toggle('hidden');
|
|
toggle.querySelector('.nav-icon-open').classList.toggle('hidden');
|
|
toggle.querySelector('.nav-icon-close').classList.toggle('hidden');
|
|
});
|
|
})();
|
|
</script>
|
|
{{end}}
|