Начал доводить шаблоны под единый стиль
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{% static '/css/main.css' %}">
|
||||
{% block head_extra %}{% endblock %}
|
||||
<title>{% block title %}Музыкальный сервис{% endblock %}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1><a class="logo-link" href="{% url 'index:main_index'%}">Музыкальный сервис</a></h1>
|
||||
<nav class="main-nav">
|
||||
<a class="nav-link" href="{% url 'music:track_list' %}">Треки</a>
|
||||
<a class="nav-link" href="{% url 'music:artist_list' %}">Артисты</a>
|
||||
<a class="nav-link" href="{% url 'music:album_list' %}">Альбомы</a>
|
||||
</nav>
|
||||
{% block header_extra %}{% endblock %}
|
||||
</header>
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
{% block content_extra %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
1
music_storage/templates/index.html
Normal file
1
music_storage/templates/index.html
Normal file
@@ -0,0 +1 @@
|
||||
{% extends "base.html" %}
|
||||
0
music_storage/templates/music/album_list.html
Normal file
0
music_storage/templates/music/album_list.html
Normal file
0
music_storage/templates/music/artist_list.html
Normal file
0
music_storage/templates/music/artist_list.html
Normal file
Reference in New Issue
Block a user