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

View file

@ -0,0 +1,254 @@
{% load static %}
<!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="stylesheet" href="{% static 'loginedtest/style.css' %}">
<link rel="stylesheet" href="{% static 'first/style.css' %}" />
<title>Preview</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' %}'" {% if papka == 'history'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">И</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' %}'" {% if papka == 'places'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">М</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' %}'" {% if papka == 'celebrity'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">З</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' %}'" {% if papka == 'theaters_and_music'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">Т</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 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" style="background-color: white;">
<a href="/history">history</a>
<a href="/places">places</a>
<a href="/celebrities">celebrities</a>
</div>
</div>
</li>
<li><a href="/history">История</a></li>
<li><a href="/places">Места</a></li>
<li><a href="/celebrities">Знаменитости</a></li>
<li><a href="/theaters">Театры и музыка</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">
<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 %}
<img src="{% static picture %}" class="img_content" alt="imgg">
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if authtor %}
<br>
<label>{{authtor}}</label>
{% endif %}
<br>
{{date}}
<br>
<br>
<form method="post" action="{% url 'posttodb' %}">
{% csrf_token %}
<textarea style="display: none;" name="papka">{{papka}}</textarea>
<textarea style="display: none;" name="title">{{title}}</textarea>
<textarea style="display: none;" name="authtor">{{authtor}}</textarea>
<textarea style="display: none;" name="date">{{date}}</textarea>
<textarea style="display: none;" name="testthing">{{testthing}}</textarea>
<textarea style="display: none;" name="desc">{{desc}}</textarea>
<textarea style="display: none;" name="img_preview">{{img_preview}}</textarea>
<button style="width: 200px;height: 40px; border: none; ">post</button>
</form>
<br>
<br>
</div>
</div>
</main>
<script src="{% static 'first/script.js' %}"></script>
<footer class="footer">
<div class="container" style="background: #212429;">
<div class="content">
<label class="gkod_team_label">Made by <label>Gkod</label> team</label
><br />
ggkkoodd@gmail.com
<br />
<br />
<label onclick="window.location.href='/coments'"
>Форма для обратной связи
<hr style="max-width: 320px"
/></label>
</div>
</div>
</footer>
</body>
</html>

View file

@ -0,0 +1,10 @@
<form method="post" action="{% url 'editdbsite' %}">
{% csrf_token %}
<label>user</label>
<input name="userrr">
<br>
<label>password</label>
<input name="password" type="password">
<br>
<button type="submit">login</button>
</form>

View file

@ -0,0 +1,192 @@
{% load static %}
<div></div>
<!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">
<style type="text/css">
* {
font-size: 20px;
}
button {
border: none;
width: 200px;
height: 40px;
margin-top: 10px;
background: black;
color: white;
}
.btnn, .file-upload > input[type='file'] {
border: none;
height: 40px;
margin-top: 10px;
}
.file-upload {
display: inline-block;
}
.file-upload > input[type='file'] {
top: 0;
right: 0;
height: 100%;
opacity: 0;
cursor: pointer;
width: 0;
height: 0;
}
.file-upload > span {
display: inline-block;
padding: 5px 10px;
background-color: #000;
border-radius: 5px;
border: 1px solid #aaa;
color: #fff;
cursor: pointer;
}
.post-container {
width: 600px;
height: 500px;
border: 2px solid black;
border-radius: 10px;
margin: 0 auto;
display: flex;
padding: 10px;
}
.post-container > div {
width: 250px;
height: 500px;
}
.post-container label {
font-size: 16px;
}
.post-container input, .post-container textarea {
width: 100%;
height: 35px;
margin-bottom: 10px;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
.post-container textarea {
height: 200px;
}
.preview-container {
width: 600px;
border: 2px solid black;
border-radius: 10px;
margin: 20px auto 0;
padding: 10px;
}
.preview-container label {
font-size: 16px;
}
.preview-container textarea, .preview-container select, .preview-container button {
margin-top: 10px;
width: 100%;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
}
.preview-container select {
height: 40px;
}
.preview-container button {
height: 40px;
background: black;
color: white;
border: none;
font-size: 20px;
}
</style>
<title>make post</title>
</head>
<body>
<div>
<form method="POST" action="{% url 'postres' %}" enctype="multipart/form-data">
{% csrf_token %}
<div class="post-container">
<div>
<label for="post_name">Название статьи</label>
<input id="post_name" name="postname" value="" required>
<label for="log">log</label>
<textarea id="log"></textarea>
<label for="authtor">Автор</label>
<input id="authtor" name="authtor" value="" style="width: 160px;">
</div>
<div>
<label for="header">Заголовок (max 69)</label>
<input id="header" name="header" value="" maxlength="69">
<label for="text">Текст</label>
<textarea id="text" name="text"></textarea>
<label for="img">Картинка:</label>
<label class="file-upload">
<span>Выбрать картинку/картинки</span>
<input type="file" accept="image/jpeg, image/png" id="img" name="imgg" multiple>
</label>
<button type="button" onclick="clear_all()">Очистить</button>
<button>Добавить</button>
</div>
</div>
</form>
<form method="POST" action="{% url 'blog_preview' %}" enctype="multipart/form-data" target="_blank">
{% csrf_token %}
<textarea style="display: none" name="to_list" id="to_list">
</textarea>
<textarea style="display: none" name="postnamee" id="post_namee">
</textarea>
<textarea style="display: none" name="authtorr" id="authtorr">
</textarea>
<div class="preview-container">
<div style="display: flex; flex-direction: column; margin-right: 20px;">
<label for="desc">Описание</label>
<textarea id="desc" name="desc"></textarea>
</div>
<div style="display: flex; flex-direction: column;">
<label style="font-size: 16px;">Картинка для предпросмотра</label>
<label class="file-upload" style="margin-top: 10px;">
<span>Выбрать картинку</span>
<input type="file" accept="image/jpeg, image/png" id="imgg_preview" name="imgg_preview">
</label>
<select name="papka" required>
<option value=""> </option>
<option value="history">История</option>
<option value="places">Места</option>
<option value="celebrity">Знаменитости</option>
<option value="theaters_and_music">Театры и музыка</option>
</select>
<button type="submit">Перейти к предпросмотру</button>
</div>
</div>
</form>
</div>
<script src="{% static 'loginedtest/script.js' %}"></script>
</body>
</html>

View file

@ -0,0 +1,226 @@
<!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" />
{% 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="menu">
<li>
<span class="activate_dropdown" onclick="window.location.href='{% url 'history' %}'" {% if papka == 'history'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">И</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' %}'" {% if papka == 'places'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">М</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' %}'" {% if papka == 'celebrity'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">З</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' %}'" {% if papka == 'theaters_and_music'%}style="background-color: rgba(75, 75, 225); color: white;"{% endif%}><label style="color:blue">Т</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 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" style="background-color: white">
<a href="/history">history</a>
<a href="/places">places</a>
<a href="/celebrities">celebrities</a>
</div>
</div>
</li>
<li><a href="/history">История</a></li>
<li><a href="/places">Места</a></li>
<li><a href="/celebrities">Знаменитости</a></li>
<li><a href="/theaters">Театры и музыка</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">
<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>
</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>

View file

@ -0,0 +1,109 @@
{% extends "preview_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 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 class="n_bar">
<a href="#hh{{ forloop.counter }}" style="word-wrap: break-word; overflow-wrap: break-word; padding-top: 10px;" class="button2">{{title}}</a>
</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>
<label style="font-size: 30px; margin-top: 20px;">{{title}}<hr style="max-width: 90px; margin-left:0;"></label>
<label style="font-size: 20px; ">{{desc}}</label>
<br>
<!-- <img src="{% static 'places/img/p1.jpg' %}" class="img_content"> -->
{% if img_preview %}
<img src="{% static img_preview %}" class="img_content">
{% endif %}
<button class="more_butt">Подробнее</button>
<br>
<br>
<form method="post" action="{% url 'blog_preview2' %}">
{% csrf_token %}
<textarea style="display: none;" name="papka">{{papka}}</textarea>
<textarea style="display: none;" name="title">{{title}}</textarea>
<textarea style="display: none;" name="authtor">{{authtor}}</textarea>
<textarea style="display: none;" name="testthing">{{testthing}}</textarea>
<textarea style="display: none;" name="desc">{{desc}}</textarea>
<textarea style="display: none;" name="img_preview">{{img_preview}}</textarea>
<button style="width: 200px;height: 40px; border: none; ">Далее</button>
</form>
<br>
<br>
{% endblock %}
{% block js %}<script src="{% static 'first/script.js' %}"></script>{% endblock %}