init
This commit is contained in:
commit
8851786e67
353 changed files with 36724 additions and 0 deletions
177
mainapp/templates/api/base.html
Executable file
177
mainapp/templates/api/base.html
Executable 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
241
mainapp/templates/api/index.html
Executable 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue