112 lines
4.6 KiB
HTML
112 lines
4.6 KiB
HTML
{% load tailwind_tags %}
|
|
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta viewport="width=device-width, initial-scale=1.0">
|
|
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
|
<title>
|
|
{% if config.TF_CLUB_NAME != "TeamForge" %}{{ config.TF_CLUB_NAME }} - {% endif %}TeamForge
|
|
</title>
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/choices.js@11.1.0/public/assets/styles/choices.min.css"/>
|
|
<script src="https://cdn.jsdelivr.net/npm/choices.js@11.1.0/public/assets/scripts/choices.min.js"></script>
|
|
|
|
<link href="{% static "css/fontawesome.css" %}" rel="stylesheet"/>
|
|
<link href="{% static "css/solid.css" %}" rel="stylesheet"/>
|
|
<link href="{% static "css/regular.css" %}" rel="stylesheet"/>
|
|
<link href="{% static "css/brands.css" %}" rel="stylesheet"/>
|
|
|
|
{% tailwind_css %}
|
|
</head>
|
|
|
|
<body>
|
|
<header id="site-header" class="sticky top-0 z-50 bg-white shadow transition-all duration-300">
|
|
<div class="mx-auto max-w-6xl px-6 py-4 flex items-center justify-between transition-all duration-300">
|
|
<h1 class="text-2xl font-bold tracking-tight transition-all duration-300">MY LOGO</h1>
|
|
|
|
<nav class="flex items-center space-x-6 text-lg">
|
|
<a href="#" class="hover:text-blue-600 transition-colors">Home</a>
|
|
<a href="#" class="hover:text-blue-600 transition-colors">About</a>
|
|
<a href="#" class="hover:text-blue-600 transition-colors">Contact</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="mx-auto max-w-6xl px-6 pt-8 space-y-8">
|
|
<p class="text-gray-700">
|
|
Scroll down to see the navbar shrink
|
|
</p>
|
|
|
|
<div class="h-[2000px] bg-gray-200 rounded-lg"></div>
|
|
</main>
|
|
|
|
|
|
{% comment %}<div class="navbar bg-base-200 shadow-sm sticky top-0 z-10">
|
|
<div class="flex-1">
|
|
<label for="drawer-button" aria-label="open sidebar" class="btn btn-square btn-outline lg:hidden">
|
|
<!-- Sidebar toggle icon -->
|
|
<i class="fa-solid fa-bars"></i>
|
|
</label>
|
|
|
|
<div class="flex flex-row items-center px-4 py-2 gap-4">
|
|
{% if config.TF_CLUB_LOGO != "teamforge/logo.png" %}
|
|
<img class="max-h-18 transform-gpu mask mask-circle" src="{% static config.TF_CLUB_LOGO %}" alt="{{ config.TF_CLUB_NAME }} Logo"/>
|
|
{% else %}
|
|
<img class="max-h-18 transform-gpu" src="{% static config.TF_CLUB_LOGO %}" alt="{{ config.TF_CLUB_NAME }} Logo"/>
|
|
{% endif %}
|
|
|
|
<a class="font-jersey text-4xl">{{ config.TF_CLUB_NAME }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mr-2 flex flex-row gap-2">
|
|
<div class="avatar avatar-placeholder">
|
|
<div class="bg-neutral text-neutral-content w-12 rounded-full">
|
|
<span>BS</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="drawer lg:drawer-open">
|
|
<input id="drawer-button" type="checkbox" class="drawer-toggle"/>
|
|
<div class="drawer-content flex flex-col items-center justify-center">
|
|
{% block content %}PAGE CONTENT{% endblock content %}
|
|
</div>
|
|
|
|
<div class="drawer-side z-0">
|
|
<label for="drawer-button" aria-label="close sidebar" class="drawer-overlay"></label>
|
|
<div class="flex min-h-full flex-col items-start bg-base-200 py-4 px-8">
|
|
{% block sidebar %}SIDEBAR CONTENT{% endblock sidebar %}
|
|
</div>
|
|
</div>
|
|
</div>{% endcomment %}
|
|
</body>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
const header = document.getElementById("site-header");
|
|
let lastScrollY = window.scrollY;
|
|
const threshold = 40; // Amount to scroll before shrinking
|
|
|
|
const onScroll = () => {
|
|
const current = window.scrollY;
|
|
|
|
if (current > threshold) {
|
|
header.classList.add("navbar-small");
|
|
} else {
|
|
header.classList.remove("navbar-small");
|
|
}
|
|
|
|
lastScrollY = current;
|
|
};
|
|
|
|
window.addEventListener("scroll", onScroll, {passive: true});
|
|
});
|
|
</script>
|
|
</html> |