update
This commit is contained in:
46
templates/base.html
Normal file
46
templates/base.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}Arbit{% endblock %}</title>
|
||||
<style>
|
||||
:root { color-scheme: light; --bg: #f6f2ea; --panel: #fffaf2; --ink: #1f2937; --muted: #6b7280; --accent: #1f6f78; --border: #d6cbbd; }
|
||||
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(180deg, #f8f3ea 0%, #f2ece1 100%); color: var(--ink); }
|
||||
header, main { max-width: 1200px; margin: 0 auto; padding: 1.25rem; }
|
||||
.shell { display: grid; gap: 1rem; }
|
||||
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05); }
|
||||
.grid { display: grid; gap: 1rem; }
|
||||
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
input, select, textarea, button { font: inherit; padding: 0.75rem 0.85rem; border-radius: 10px; border: 1px solid var(--border); width: 100%; box-sizing: border-box; }
|
||||
button { background: var(--accent); color: white; border: none; cursor: pointer; }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 0.75rem 0.5rem; vertical-align: top; }
|
||||
.muted { color: var(--muted); }
|
||||
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
|
||||
.spaced { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
|
||||
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header class="spaced">
|
||||
<div>
|
||||
<strong>Arbit</strong>
|
||||
<div class="muted">Thrift inventory and resale tracking</div>
|
||||
</div>
|
||||
<nav class="row">
|
||||
{% if user.is_authenticated %}
|
||||
<span class="muted">Signed in as {{ user.username }}</span>
|
||||
<a href="{% url 'logout' %}">Log out</a>
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}">Log in</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user