This commit is contained in:
relaxed 2024-08-18 03:34:33 +05:00
commit 8851786e67
353 changed files with 36724 additions and 0 deletions

23
mainapp/templates/400.html Executable file
View file

@ -0,0 +1,23 @@
{% extends "api/base.html" %}
{% load static %}
{% block headmain %}EKB{% endblock %}
{% block style%}
<!-- <link rel="stylesheet" href="{% static 'loginedtest/style.css' %}"> -->
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block maincontent %}
<div style="margin-top: 40px;">
<label>400 er....</label>
</div>
{% endblock %}
{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}

23
mainapp/templates/403.html Executable file
View file

@ -0,0 +1,23 @@
{% extends "api/base.html" %}
{% load static %}
{% block headmain %}EKB{% endblock %}
{% block style%}
<!-- <link rel="stylesheet" href="{% static 'loginedtest/style.css' %}"> -->
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block maincontent %}
<div style="margin-top: 40px;">
<label>403 er....</label>
</div>
{% endblock %}
{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}

23
mainapp/templates/404.html Executable file
View file

@ -0,0 +1,23 @@
{% extends "api/base.html" %}
{% load static %}
{% block headmain %}EKB{% endblock %}
{% block style%}
<!-- <link rel="stylesheet" href="{% static 'loginedtest/style.css' %}"> -->
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block maincontent %}
<div style="margin-top: 40px;">
<label>404 er....</label>
</div>
{% endblock %}
{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}

23
mainapp/templates/500.html Executable file
View file

@ -0,0 +1,23 @@
{% extends "api/base.html" %}
{% load static %}
{% block headmain %}EKB{% endblock %}
{% block style%}
<!-- <link rel="stylesheet" href="{% static 'loginedtest/style.css' %}"> -->
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block maincontent %}
<div style="margin-top: 40px;">
<label>500 er....</label>
</div>
{% endblock %}
{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}

177
mainapp/templates/api/base.html Executable file
View file

@ -0,0 +1,177 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="/static/tmp/1090nqu89m51511040957y20230425160312.png">
{% block style %}{% endblock %}
<title>{% block headmain %}{% endblock %}</title>
</head>
<body>
<nav class="navbar">
<div class="container">
<div class="navbar__wrap">
<div class="hamb">
<div class="hamb__field" id="hamb">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div>
<div class="coltxt" onclick="window.location.href='{% url 'home' %}'">
<div
style="
width: 100%;
font-size: 30px;
align-self: center;
height: 30px;
"
class="cool_text"
>
<div id="one" style="margin-left: 10px; padding-left: 10px">
E
</div>
<div id="two"><div id="twoo">КАТЕРИНБУРГ</div></div>
<div id="three" style="color: blue">G</div>
<div id="four"><div id="fourr">UIDE</div></div>
</div>
</div>
<div class="mobile_coltxt" onclick="window.location.href='/'">
<label>EKB</label
><label
style="
color: blue;
padding-left: 0px;
margin-left: 10px;
margin-right: 10px;
"
>GUIDE</label
>
</div>
<ul class="menu" id="menu2">
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'history' %}'"><label class="adalabel">И</label>стория</span>
<div class="moving_dropdown" style="font-size: 40px;">
<div class="move_me_content">
{% block history_dropdown %}{% endblock %}
</div>
</div>
</li>
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'placess' %}'"><label class="adalabel">М</label>еста</span>
<div class="moving_dropdown">
<div class="move_me_content">
{% block places_dropdown %}{% endblock %}
</div>
</div>
</li>
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'celebrity' %}'"><label class="adalabel">З</label>наменитости</span>
<div class="moving_dropdown">
<div class="move_me_content">
{% block celebrity_dropdown %}{% endblock %}
</div>
</div>
</li>
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'theaters_and_music' %}'"><label class="adalabel">Т</label>еатры и музыка</span>
<div class="moving_dropdown">
<div class="move_me_content" >
{% block theaters_and_music_dropdown %}{% endblock %}
</div>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="popup" id="popup">
<ul class="menu" id="menu">
<li><a href="/history">История</a></li>
<li><a href="/places">Места</a></li>
<li><a href="/celebrity">Знаменитости</a></li>
<li><a href="/theaters_and_music">Театры и музыка</a></li>
{% block moblie_menuu %}{% endblock %}
</ul>
</div>
<main class="main">
<div class="container">
<div class="content">
{% block maincontent %}{% endblock %}
</div>
</div>
</main>
<footer class="footer" style="">
<div class="container" style="background: #212429;">
<div class="content" style="
">
<div class="fo1" style="
">
<label>Основные разделы</label>
<br>
<label onclick="window.location.href='/history/'" style="
cursor: pointer;
">История</label>
<label onclick="window.location.href='/places/'" style="
cursor: pointer;
">Места</label>
<label onclick="window.location.href='/celebrity/'" style="
cursor: pointer;
">Знаменитости</label>
<label onclick="window.location.href='/theaters_and_music/'" style="
cursor: pointer;
">Театры и музыка</label>
</div>
<div class="fo2">
<!-- <label class="gkod_team_label" style=" -->
<!-- height: 50px; -->
<!-- width: 300px; -->
<!-- ">Made by Gkod team</label><label onclick="window.location.href='mailto:gkod@gkod.fun'" style=" -->
<!-- cursor: pointer; -->
<!-- ">gkod@gkod.fun</label> -->
<a class="gkod_team_label" href="https://ogkod.ru" style="height: 50px; width: 300px; color: inherit; text-decoration: none;">
Made by Gkod team
</a>
<a href="mailto:gkod@gkod.fun" style="color: inherit;">
van@ogkod.ru
</a>
</div>
<div style="display: flex;justify-content: center;align-items: center;flex-direction: column;margin-top: 30px;">
<label onclick="window.location.href='/coments'" style="
cursor: pointer;
">Форма для обратной связи
<hr style="max-width: 320px"></label>
<div style="
margin-top: 20px;
">
<img onclick="window.location.href='https://vk.com/okhlupin_k'" src="/static/tmp/sl286z9378p2687u5srp20230425131051.png"
style="height: 70px; cursor: pointer;" alt="vkicon"/>
<img onclick="window.location.href='https://t.me/koka_c17'" src="/static/tmp/q109d033r5q04i8734rl520230425155022.png"
style="height: 70px; cursor: pointer;" alt="tgicon"/></div>
</div>
</div>
</div>
</footer>
{% block js %}{% endblock %}
</body>
</html>

241
mainapp/templates/api/index.html Executable file
View file

@ -0,0 +1,241 @@
{% extends "api/base.html" %}
{% load static %}
{% block headmain %}EKB{% endblock %}
{% block style%}
<!-- <link rel="stylesheet" href="{% static 'loginedtest/style.css' %}"> -->
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block moblie_menuu %}
{% if is_valid == "yes"%}
{% if testthing %}
{% for object in testthing %}
{% if object.0 == 'header' %}
<li><a href="/{{papka}}?type={{papka}}&title={{title}}#hh{{ forloop.counter }}">{{object.1}}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% elif is_valid == "no" %}
{% if testthing %}
{% for object in testthing %}
<li><a href="?type={{object.papka}}&title={{object.title}}">{{object.title}}</a></li>
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
{% block history_dropdown %}
{% if random_history %}
{% for ran in random_history %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block places_dropdown %}
{% if random_places %}
{% for ran in random_places %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block celebrity_dropdown %}
{% if random_celebrity %}
{% for ran in random_celebrity %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block theaters_and_music_dropdown %}
{% if random_theaters_and_music %}
{% for ran in random_theaters_and_music %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}" style="font-size: 15px;">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block maincontent %}
{% if is_valid == "yes"%}
<div class="n_bar">
{% if testthing %}
{% for object in testthing %}
{% if object.0 == 'header' %}
{% if forloop.counter == 1 %}
<a href="#hh{{ forloop.counter }}" style="word-wrap: break-word; overflow-wrap: break-word; padding-top: 10px;" class="button2">{{object.1}}</a>
{% else %}
<a href="#hh{{ forloop.counter }}" style="word-wrap: break-word; overflow-wrap: break-word;" class="button2">{{object.1}}</a>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</div>
<div class="in_content">
<br>
<label style="font-size: 40px; width: 40px; margin-top: 20px; word-wrap: break-word;">{% if title %}{{title}}{% else %}Нету названия!{% endif %}
<hr style="max-width: auto; margin-left: 0px;"></label>
{% if testthing %}
{% for object in testthing %}
{% if object.0 == 'header' %}
<div id="hh{{ forloop.counter }}"></div>
{% if forloop.counter == 1 %}
<div>
{% else %}
<br>
<br>
<br>
{% endif %}
<label style="font-size: 40px; width: 40px; overflow-wrap: break-word;">{{object.1}}<hr style="max-width: auto; margin-left:0;"></label>
{% endif %}
{% if object.0 == 'text' %}
<br>
<br>
<pre style="max-width: 650px; word-wrap: break-word; text-align: left;font-size: 20px; white-space: pre-wrap;">{{object.1}}</pre>
{% endif %}
{% if object.0 == 'img' %}
{% for picture in object.1 %}
{% if picture %}
<img src="{% static picture %}" class="img_content" alt="imgg">
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if authtor %}
<br>
<label>{{authtor}}</label>
{% endif %}
<br>
{{date}}
<br>
<br>
<button onclick="topFunction()" id="myBtn" title="Go to top">Наверх</button>
{% elif is_valid == "no" %}
<div class="n_bar">
{% if testthing %}
{% for object in testthing %}
{% if forloop.counter == 1 %}
<a href="#hh{{ forloop.counter }}" style="word-wrap: break-word; overflow-wrap: break-word; padding-top: 20px;" class="button2">{{object.title}}</a>
{% else %}
<a href="#hh{{ forloop.counter }}" style="word-wrap: break-word; overflow-wrap: break-word;" class="button2">{{object.title}}</a>
{% endif %}
{% endfor %}
{% endif %}
</div>
<div class="in_content" style="padding-top: 25px;">
<label style="font-size: 40px; width: 40px;">{{namee}}<hr style="max-width: 400px; margin-left:0;"></label>
{% for object in testthing %}
{% if forloop.counter == 1 %}
<label style="font-size: 30px; margin-top: 20px;" onclick="window.location.href='?type={{object.papka}}&title={{object.title}}'">{{object.title}}<hr style="margin-left:0;"></label>
<label style="font-size: 20px; ">{{object.desc}}</label>
<br>
{% if object.img_preview %}
<img src="{% static object.img_preview %}" class="img_content">
{% endif %}
<button class="more_butt" onclick="window.location.href='?type={{object.papka}}&title={{object.title}}'">Подробнее</button>
{% else %}
<div id="hh{{ forloop.counter }}"></div>
<br>
<br>
<br>
<label style="font-size: 30px; margin-top: 20px;" onclick="window.location.href='?type={{object.papka}}&title={{object.title}}'">{{object.title}}<hr style=" margin-left:0;"></label>
<label style="font-size: 20px; ">{{object.desc}}</label>
<br>
{% if object.img_preview %}
<img src="{% static object.img_preview %}" class="img_content">
<br>
{% endif %}
<button class="more_butt" onclick="window.location.href='?type={{object.papka}}&title={{object.title}}'">Подробнее</button>
{% endif %}
{% endfor %}
</div>
{% else %}
<div class="in_content" style="padding-top: 25px;">
<label style="font-size: 40px; width: 40px;">{{namee}}<hr style="max-width: 400px; margin-left:0;"></label>
</div>
{% endif %}
{% endblock %}
{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}

View file

@ -0,0 +1,147 @@
{% extends "home/base.html" %}
{% load static %}
{% block styles %}
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block headmain %}EKB{% endblock %}
{% block history_dropdown %}
{% if random_history %}
{% for ran in random_history %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block places_dropdown %}
{% if random_places %}
{% for ran in random_places %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block celebrity_dropdown %}
{% if random_celebrity %}
{% for ran in random_celebrity %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block theaters_and_music_dropdown %}
{% if random_theaters_and_music %}
{% for ran in random_theaters_and_music %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block maincontent %}
<style type="text/css">
h1 {
margin-bottom: 20px;
text-align: center;
color: #333;
}
form {
max-width: 600px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
margin-top: 40px;
}
fieldset {
border: none;
margin-bottom: 20px;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
font-size: 16px;
margin-bottom: 10px;
resize: none;
background-color: #f9f9f9;
}
input[type="submit"] {
border: none;
background-color: #333;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #444;
}
</style>
<form action="/res" method="">
{% csrf_token %}
<fieldset>
<label for="name">Имя:</label>
<input type="text" id="name" name="name" required>
</fieldset>
<fieldset>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</fieldset>
<fieldset>
<label for="phone">Телефон:</label>
<input type="tel" id="phone" name="phone" placeholder="+7 XXX XXX XX XX">
</fieldset>
<fieldset>
<label for="message">Сообщение:</label>
<textarea id="message" name="message" rows="5" required></textarea>
</fieldset>
<input type="submit" value="Отправить">
</form>
{% endblock %}
{% block js %}
<script src="{% static 'first/script.js' %}"></script>
{% endblock %}

View file

@ -0,0 +1,67 @@
{% extends "home/base.html" %}
{% load static %}
{% block styles %}
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block headmain %}EKB{% endblock %}
{% block history_dropdown %}
{% if random_history %}
{% for ran in random_history %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block places_dropdown %}
{% if random_places %}
{% for ran in random_places %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block celebrity_dropdown %}
{% if random_celebrity %}
{% for ran in random_celebrity %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block theaters_and_music_dropdown %}
{% if random_theaters_and_music %}
{% for ran in random_theaters_and_music %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block maincontent %}
<div style="margin-top: 40px;">
<label style="font-size: 40px;">Спасибо {{coms_name}}, ваш комментарий отправлен</label>
</div>
{% endblock %}
{% block js %}
<script src="{% static 'first/script.js' %}"></script>
{% endblock %}

197
mainapp/templates/home/base.html Executable file
View file

@ -0,0 +1,197 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="/static/tmp/1090nqu89m51511040957y20230425160312.png">
{% block styles %}{% endblock %}
<title>{% block headmain %}{% endblock %}</title>
</head>
<body>
<nav class="navbar">
<div class="container">
<div class="navbar__wrap">
<div class="hamb">
<div class="hamb__field" id="hamb">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div>
<div class="coltxt" onclick="window.location.href='{% url 'home' %}'">
<div
style="
width: 100%;
font-size: 30px;
align-self: center;
height: 30px;
"
class="cool_text"
>
<div id="one" style="margin-left: 10px; padding-left: 10px">
E
</div>
<div id="two"><div id="twoo">КАТЕРИНБУРГ</div></div>
<div id="three" style="color: blue">G</div>
<div id="four"><div id="fourr">UIDE</div></div>
</div>
</div>
<div class="mobile_coltxt" onclick="window.location.href='/'">
<label>EKB</label
><label
style="
color: blue;
padding-left: 0px;
margin-left: 10px;
margin-right: 10px;
"
>GUIDE</label
>
</div>
<ul class="menu" id="menu">
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'history' %}'"><label class="adalabel">И</label>стория</span>
<div class="moving_dropdown">
<div class="move_me_content">
{% block history_dropdown %}{% endblock %}
</div>
</div>
</li>
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'placess' %}'"><label class="adalabel">М</label>еста</span>
<div class="moving_dropdown">
<div class="move_me_content">
{% block places_dropdown %}{% endblock %}
</div>
</div>
</li>
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'celebrity' %}'"><label class="adalabel">З</label>наменитости</span>
<div class="moving_dropdown">
<div class="move_me_content">
{% block celebrity_dropdown %}{% endblock %}
</div>
</div>
</li>
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'theaters_and_music' %}'"><label class="adalabel">Т</label>еатры и музыка</span>
<div class="moving_dropdown">
<div class="move_me_content">
{% block theaters_and_music_dropdown %}{% endblock %}
</div>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="popup" id="popup">
<ul class="menu" id="menu">
<li><a href="/history">История</a></li>
<li><a href="/places">Места</a></li>
<li><a href="/celebrity">Знаменитости</a></li>
<li><a href="/theaters_and_music">Театры и музыка</a></li>
<!-- <li style="width: 100%; justify-content: center">
<div class="dropdown" style="width: 100%">
<button
style="
border: none;
background-color: white;
width: 100%;
display: flex;
justify-content: center;
padding: 20px 0;
font-size: 20px;
font-weight: bold;
color: black;
border-top: 2px solid #e2e8f0;
border-bottom: 2px solid #e2e8f0;
margin-bottom: 10px;
"
>
test dropdown menu
</button>
<div class="dropdown-content">
<a href="/history">history</a>
<a href="/places">places</a>
<a href="/celebrities">celebrities</a>
</div>
</div>
</li> -->
</ul>
</div>
<main class="main">
<div class="container">
<div class="content">
{% block maincontent %}{% endblock %}
</div>
</div>
</main>
<footer class="footer" style="">
<div class="container" style="background: #212429;">
<div class="content" style="
">
<div class="fo1" style="
">
<label>Основные разделы</label>
<br>
<label onclick="window.location.href='/history/'" style="
cursor: pointer;
">История</label>
<label onclick="window.location.href='/places/'" style="
cursor: pointer;
">Места</label>
<label onclick="window.location.href='/celebrity/'" style="
cursor: pointer;
">Знаменитости</label>
<label onclick="window.location.href='/theaters_and_music/'" style="
cursor: pointer;
">Театры и музыка</label>
</div>
<div class="fo2">
<a class="gkod_team_label" href="https://ogkod.ru" style="height: 50px; width: 300px; color: inherit; text-decoration: none;">
Made by Gkod team
</a>
<a href="mailto:gkod@gkod.fun" style="color: inherit;">
van@ogkod.ru
</a>
</div>
<div style="display: flex;justify-content: center;align-items: center;flex-direction: column;margin-top: 30px;">
<label onclick="window.location.href='/coments'" style="
cursor: pointer;
">Форма для обратной связи
<hr style="max-width: 320px"></label>
<div style="
margin-top: 20px;
">
<img onclick="window.location.href='https://vk.com/okhlupin_k'" src="/static/tmp/sl286z9378p2687u5srp20230425131051.png"
style="height: 70px; cursor: pointer;" alt="vkicon"/>
<img onclick="window.location.href='https://t.me/koka_c17'" src="/static/tmp/q109d033r5q04i8734rl520230425155022.png"
style="height: 70px; cursor: pointer;" alt="tgicon"/></div>
</div>
</div>
</div>
</footer>
{% block js %}{% endblock %}
</body>
</html>

133
mainapp/templates/home/index.html Executable file
View file

@ -0,0 +1,133 @@
{% extends "home/base.html" %}
{% load static %}
{% block styles %}
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block headmain %}EKB{% endblock %}
{% block history_dropdown %}
{% if random_history %}
{% for ran in random_history %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block places_dropdown %}
{% if random_places %}
{% for ran in random_places %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block celebrity_dropdown %}
{% if random_celebrity %}
{% for ran in random_celebrity %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block theaters_and_music_dropdown %}
{% if random_theaters_and_music %}
{% for ran in random_theaters_and_music %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}" style="font-size: 15px;">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block maincontent %}
<div class="div_ekb">
<label class="div_ekb_text">Екатеринбург</label>
</div>
<div class="div_ekb">
<label class="div_ekb_sub_text">
Екатеринбург - это крупнейший город на Урале, расположенный в центре России. Город является культурным и экономическим центром региона. Екатеринбург славится своими промышленными предприятиями, университетами, театрами и музеями. Здесь можно увидеть множество достопримечательностей, где сочетаются архитектурные стили разных эпох.
</label>
</div>
<div class="moblie_div_ekb">
<label class="mobile_div_ekb_text">Екатеринбург</label>
</div>
<div class="moblie_div_ekb">
<label class="mobile_div_ekb_sub_text">
Екатеринбург - это крупнейший город на Урале, расположенный в центре России. Город является культурным и экономическим центром региона. Екатеринбург славится своими промышленными предприятиями, университетами, театрами и музеями. Здесь можно увидеть множество достопримечательностей, где сочетаются архитектурные стили разных эпох.
</label>
</div>
<div class="card" style="margin-top: 50px; background-color: #495B71;">
<div class="card_img">
<img src="{% static 'first/img/p1.png' %}" class="card_in_img" onclick="window.location.href='{% url 'history' %}'"/>
</div>
<div class="card_text">
<div class="card_in_text" style="color:white;">
Екатеринбург был основан в 1723 году на границе Европы и Азии и назван в честь императрицы Екатерины I. Город был центром металлургии и лесопильного дела в Российской империи. В период СССР город стал центром тяжелой промышленности и научных исследований.
</div>
</div>
</div>
<div class="card" style="margin-top: 25px;background-color: #C0C7CF;">
<div class="card_text">
<div class="card_in_text">
Разнообразная культурная жизнь Екатеринбурга привлекает внимание многих знаменитостей. Здесь проходят выставки, концерты, фестивали, театральные постановки, в которых задействованы знаменитые артисты и музыканты.
</div>
</div>
<div class="card_img">
<img src="{% static 'first/img/p2.png' %}" class="card_in_img" onclick="window.location.href='{% url 'placess' %}'"/>
</div>
</div>
<div class="card" style="margin-top: 25px;">
<div class="card_img">
<img src="{% static 'first/img/p3.png' %}" class="card_in_img" onclick="window.location.href='{% url 'celebrity' %}'"/>
</div>
<div class="card_text">
<div class="card_in_text" style="color:white;">
Здесь есть множество музеев, театров, концертных залов и выставочных центров. В городе есть знаменитый театр оперы и балета, библиотеки, кинотеатры, кафе и рестораны.
</div>
</div>
</div>
<div class="card" style="margin-top: 25px;background-color: #d5bb97;">
<div class="card_text">
<div class="card_in_text">
Екатеринбург считается одним из культурных центров России. В городе находится множество театров, где вы сможете насладиться прекрасными постановками как классических, так и современных произведений. Кроме того, Екатеринбург предлагает богатую музыкальную жизнь.
</div>
</div>
<div class="card_img">
<img src="{% static 'first/img/p4.png' %}" class="card_in_img" onclick="window.location.href='{% url 'theaters_and_music' %}'"/>
</div>
</div>
{% endblock %}
{% block js %}
<script src="{% static 'first/script.js' %}"></script>
{% endblock %}

View file

@ -0,0 +1,65 @@
{% extends "home/base.html" %}
{% load static %}
{% block styles %}
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
{% endblock %}
{% block headmain %}EKB{% endblock %}
{% block history_dropdown %}
{% if random_history %}
{% for ran in random_history %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block places_dropdown %}
{% if random_places %}
{% for ran in random_places %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block celebrity_dropdown %}
{% if random_celebrity %}
{% for ran in random_celebrity %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block theaters_and_music_dropdown %}
{% if random_theaters_and_music %}
{% for ran in random_theaters_and_music %}
<a href="/{{ran.papka}}/?type={{ran.papka}}&title={{ran.title}}" style="font-size: 15px;">{{ran.title}}</a>
{% endfor %}
{% else %}
<a href="">ошибка....</a>
{% endif %}
{% endblock %}
{% block maincontent %}
<video controls="" name="media">
<source src="https://xn--80abgfb1ad.xn--p1ai/static/video/wg4h45rbw.mp4" type="video/mp4">
</video>
{% endblock %}
{% block js %}
<script src="{% static 'first/script.js' %}"></script>
{% endblock %}