Restyle _base.html to match coop light theme
Sky-blue header bar, light body (bg-stone-50), Font Awesome, hyperscript. Block-based layout: cart_mini, brand, nav_tree, auth_menu, sub_nav, content. Keeps dark-* custom colors for content panels. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,71 +1,91 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="dark">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Art-DAG{% endblock %}</title>
|
||||
|
||||
<!-- Tailwind CSS -->
|
||||
<script src="{{ TAILWIND_CDN }}"></script>
|
||||
{{ TAILWIND_CONFIG | safe }}
|
||||
|
||||
<!-- Tailwind CSS (same CDN as coop) -->
|
||||
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
dark: {
|
||||
600: '#374151',
|
||||
700: '#1f2937',
|
||||
800: '#111827',
|
||||
900: '#030712',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- HTMX -->
|
||||
<script src="{{ HTMX_CDN }}"></script>
|
||||
<script src="https://unpkg.com/htmx.org@2.0.8"></script>
|
||||
<!-- Hyperscript (for nav-tree scrolling arrows) -->
|
||||
<script src="https://unpkg.com/hyperscript.org@0.9.12"></script>
|
||||
<!-- Font Awesome (for auth-menu + nav icons) -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
<style>
|
||||
/* Custom scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: #1f2937;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #4b5563;
|
||||
border-radius: 4px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #6b7280;
|
||||
}
|
||||
|
||||
/* HTMX loading indicator */
|
||||
.htmx-request .htmx-indicator {
|
||||
opacity: 1;
|
||||
}
|
||||
.htmx-indicator {
|
||||
opacity: 0;
|
||||
transition: opacity 200ms ease-in;
|
||||
}
|
||||
.htmx-indicator { display: none; }
|
||||
.htmx-request .htmx-indicator { display: inline-flex; }
|
||||
img { max-width: 100%; height: auto; }
|
||||
.no-scrollbar::-webkit-scrollbar { display: none; }
|
||||
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
|
||||
.scrollbar-hide::-webkit-scrollbar { display: none; }
|
||||
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
|
||||
</style>
|
||||
<script>
|
||||
if (matchMedia('(hover: hover) and (pointer: fine)').matches) {
|
||||
document.documentElement.classList.add('hover-capable');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-dark-800 text-gray-100 min-h-screen">
|
||||
{% block nav %}
|
||||
<nav class="bg-dark-700 border-b border-dark-600">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="flex items-center justify-between h-16">
|
||||
<div class="flex items-center space-x-8">
|
||||
<a href="/" class="text-xl font-bold text-white">
|
||||
{% block brand %}Art-DAG{% endblock %}
|
||||
</a>
|
||||
{% block nav_items %}{% endblock %}
|
||||
</div>
|
||||
<div class="flex items-center space-x-4">
|
||||
{% block nav_right %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<body class="bg-stone-50 text-stone-900 min-h-screen">
|
||||
{% block header %}
|
||||
{# Coop-style header: sky banner with title, nav-tree, auth-menu, cart-mini #}
|
||||
<div class="w-full">
|
||||
<div class="flex flex-col items-center md:flex-row justify-center md:justify-between w-full p-1 bg-sky-500">
|
||||
<div class="w-full flex flex-row items-top">
|
||||
{# Cart mini #}
|
||||
{% block cart_mini %}{% endblock %}
|
||||
|
||||
{# Site title #}
|
||||
<div class="font-bold text-5xl flex-1">
|
||||
<a href="/" class="flex justify-center md:justify-start">
|
||||
<h1>{% block brand %}Art-DAG{% endblock %}</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{# Desktop nav: nav-tree + auth-menu #}
|
||||
<nav class="hidden md:flex gap-4 text-sm ml-2 justify-end items-center flex-0">
|
||||
{% block nav_tree %}{% endblock %}
|
||||
{% block auth_menu %}{% endblock %}
|
||||
</nav>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
{# Mobile auth #}
|
||||
<div class="block md:hidden text-md font-bold">
|
||||
{% block auth_menu_mobile %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<main class="container mx-auto px-4 py-8">
|
||||
{# App-specific sub-nav (Runs, Recipes, Effects, etc.) #}
|
||||
{% block sub_nav %}{% endblock %}
|
||||
|
||||
<main class="max-w-screen-2xl mx-auto px-4 py-4">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user