Initial commit
This commit is contained in:
44
templates/base.html
Normal file
44
templates/base.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title> {% block title %} Арка {% endblock %} </title>
|
||||
{% load static %}
|
||||
<link rel="icon" type="image/webp" href="{% static 'favicon.webp' %}">
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
|
||||
{% block styles %} {% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-wrapper">
|
||||
<img alt="logo" src="{% static 'favicon.webp' %}">
|
||||
<div>
|
||||
<h3>Арка</h3>
|
||||
<h6>Сайт для анонимного ремонта</h6>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
{% if user %}
|
||||
<h5 style="text-align: right">{{ user.user_name }}</h5>
|
||||
{% else %}
|
||||
<h5>Anonim</h5>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
<nav>
|
||||
<a href="{% url 'index' %}">На главную</a>
|
||||
<a href="{% url 'account' %}">Аккаунт</a>
|
||||
<a href="{% url 'dev_index' %}">Dev</a>
|
||||
<a href="{% url 'about' %}">О нас</a>
|
||||
{# <button id="theme-switcher">Переключить тему</button>#}
|
||||
</nav>
|
||||
<main id="content">
|
||||
{% block content %} тут должен быть контент {% endblock %}
|
||||
</main>
|
||||
|
||||
{# <footer> {% block footer %} {% endblock %} </footer>#}
|
||||
{# <script src="{% static 'js/main.js' %}"></script>#}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user