Add web/templates/base.html
This commit is contained in:
parent
7c08101e5b
commit
7785ef7fd7
47
web/templates/base.html
Normal file
47
web/templates/base.html
Normal file
@ -0,0 +1,47 @@
|
||||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Illustrations{% endblock %}</title>
|
||||
|
||||
<!-- Main CSS -->
|
||||
<link rel="stylesheet" href="{% static 'app.css' %}">
|
||||
|
||||
<!-- Optional: Add Google Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar">
|
||||
<div class="navbar-left">
|
||||
<a href="{% url 'search' %}" class="navbar-brand">Illustrations</a>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<a href="{% url 'search' %}" class="nav-button">Search</a>
|
||||
<a href="{% url 'stats' %}" class="nav-button">Statistics</a>
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'admin:index' %}" class="nav-button">Admin</a>
|
||||
<a href="{% url 'logout' %}" class="nav-button">Logout</a>
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}" class="nav-button">Login</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Main container -->
|
||||
<main class="content">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<p>© {{ current_year }} Illustrations Database</p>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user