Поправил CSS

This commit is contained in:
Денис Буторин 2025-07-05 05:36:09 +03:00
parent 1227529163
commit 17bf5cd14e
Signed by: dekabu
GPG key ID: 867F0C8041D69B4C
8 changed files with 163 additions and 148 deletions

View file

@ -3,31 +3,31 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ошибка 404</title> <title>Ошибка 404 | КОМП</title>
<link rel="stylesheet" href="style/main.css"> <link rel="stylesheet" href="/style/main.css">
</head> </head>
<body> <body>
<header> <header>
<div class="heigher"> <div class="heigher">
<div class="left"> <div class="left">
<div class="logo"> <a href="/" class="logo">
КОМП КОМП
</div> </a>
<nav> <nav>
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
</nav> </nav>
</div> </div>
<div class="right"> <div class="right">
<nav class="non-logged" style="display: none"> <nav class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</nav> </nav>
<nav class="logged" style="display: none"> <nav class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</nav> </nav>
<button> <button>
<svg width="25" height="25"> <svg width="25" height="25">
@ -39,30 +39,31 @@
</div> </div>
</div> </div>
<nav id="menu"> <nav id="menu">
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
<div class="non-logged" style="display: none"> <div class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</div> </div>
<div class="logged" style="display: none"> <div class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</div> </div>
</nav> </nav>
</header> </header>
<main> <main>
Не найдено! <h1>Ошибка 404: запрашиваемый ресурс не найден!</h1>
<br/>
<p>Измените запрос или <a href="/">перейдите на главную</a></p>
</main> </main>
<footer> <footer>
<div>Казанское объединение молодых поэтов</div> <div>Казанское объединение молодых поэтов</div>
<div> <div>
<a href="https://t.me/komppoet">Telegram</a> <a href="https://t.me/komppoet">Telegram</a><a href="https://git.debu.su/komp">Исходный код</a>
<a href="https://git.debu.su/komp">Исходный код</a>
</div> </div>
</footer> </footer>
<script src="js/main.js"></script> <script src="/js/main.js"></script>
</body> </body>
</html> </html>

View file

@ -4,30 +4,30 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Добавить стихотворение | КОМП</title> <title>Добавить стихотворение | КОМП</title>
<link rel="stylesheet" href="style/main.css"> <link rel="stylesheet" href="/style/main.css">
</head> </head>
<body> <body>
<header> <header>
<div class="heigher"> <div class="heigher">
<div class="left"> <div class="left">
<div class="logo"> <a href="/" class="logo">
КОМП КОМП
</div> </a>
<nav> <nav>
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
</nav> </nav>
</div> </div>
<div class="right"> <div class="right">
<nav class="non-logged" style="display: none"> <nav class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</nav> </nav>
<nav class="logged" style="display: none"> <nav class="logged" style="display: none">
<a href="add" class="active">Добавить</a> <a href="/add" class="button active">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</nav> </nav>
<button> <button>
<svg width="25" height="25"> <svg width="25" height="25">
@ -39,17 +39,17 @@
</div> </div>
</div> </div>
<nav id="menu"> <nav id="menu">
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
<div class="non-logged" style="display: none"> <div class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</div> </div>
<div class="logged" style="display: none"> <div class="logged" style="display: none">
<a href="add" class="active">Добавить</a> <a href="/add" class="button active">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</div> </div>
</nav> </nav>
</header> </header>
@ -73,11 +73,10 @@
<footer> <footer>
<div>Казанское объединение молодых поэтов</div> <div>Казанское объединение молодых поэтов</div>
<div> <div>
<a href="https://t.me/komppoet">Telegram</a> <a href="https://t.me/komppoet">Telegram</a><a href="https://git.debu.su/komp">Исходный код</a>
<a href="https://git.debu.su/komp">Исходный код</a>
</div> </div>
</footer> </footer>
<script src="js/main.js"></script> <script src="/js/main.js"></script>
<script src="js/add.js"></script> <script src="/js/add.js"></script>
</body> </body>
</html> </html>

View file

@ -4,30 +4,30 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${TITLE}</title> <title>${TITLE}</title>
<link rel="stylesheet" href="style/main.css"> <link rel="stylesheet" href="/style/main.css">
</head> </head>
<body> <body>
<header> <header>
<div class="heigher"> <div class="heigher">
<div class="left"> <div class="left">
<div class="logo"> <a href="/" class="logo">
КОМП КОМП
</div> </a>
<nav> <nav>
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
</nav> </nav>
</div> </div>
<div class="right"> <div class="right">
<nav class="non-logged" style="display: none"> <nav class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</nav> </nav>
<nav class="logged" style="display: none"> <nav class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</nav> </nav>
<button> <button>
<svg width="25" height="25"> <svg width="25" height="25">
@ -39,17 +39,17 @@
</div> </div>
</div> </div>
<nav id="menu"> <nav id="menu">
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
<div class="non-logged" style="display: none"> <div class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</div> </div>
<div class="logged" style="display: none"> <div class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</div> </div>
</nav> </nav>
</header> </header>

View file

@ -4,30 +4,30 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Стихи | КОМП</title> <title>Стихи | КОМП</title>
<link rel="stylesheet" href="style/main.css"> <link rel="stylesheet" href="/style/main.css">
</head> </head>
<body> <body>
<header> <header>
<div class="heigher"> <div class="heigher">
<div class="left"> <div class="left">
<div class="logo"> <a href="/" class="logo">
КОМП КОМП
</div> </a>
<nav> <nav>
<a href="/" class="active">Стихи</a> <a href="/" class="button active">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
</nav> </nav>
</div> </div>
<div class="right"> <div class="right">
<nav class="non-logged" style="display: none"> <nav class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</nav> </nav>
<nav class="logged" style="display: none"> <nav class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</nav> </nav>
<button> <button>
<svg width="25" height="25"> <svg width="25" height="25">
@ -39,30 +39,29 @@
</div> </div>
</div> </div>
<nav id="menu"> <nav id="menu">
<a href="/" class="active">Стихи</a> <a href="/" class="button active">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
<div class="non-logged" style="display: none"> <div class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</div> </div>
<div class="logged" style="display: none"> <div class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</div> </div>
</nav> </nav>
</header> </header>
<main> <main>
<input class="input search" id="text" placeholder="Введите название для поиска">
</main> </main>
<footer> <footer>
<div>Казанское объединение молодых поэтов</div> <div>Казанское объединение молодых поэтов</div>
<div> <div>
<a href="https://t.me/komppoet">Telegram</a> <a href="https://t.me/komppoet">Telegram</a><a href="https://git.debu.su/komp">Исходный код</a>
<a href="https://git.debu.su/komp">Исходный код</a>
</div> </div>
</footer> </footer>
<script src="js/main.js"></script> <script src="/js/main.js"></script>
</body> </body>
</html> </html>

View file

@ -4,30 +4,30 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Вход | КОМП</title> <title>Вход | КОМП</title>
<link rel="stylesheet" href="style/main.css"> <link rel="stylesheet" href="/style/main.css">
</head> </head>
<body> <body>
<header> <header>
<div class="heigher"> <div class="heigher">
<div class="left"> <div class="left">
<div class="logo"> <a href="/" class="logo">
КОМП КОМП
</div> </a>
<nav> <nav>
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
</nav> </nav>
</div> </div>
<div class="right"> <div class="right">
<nav class="non-logged" style="display: none"> <nav class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login" class="active">Вход</a> <a href="/login" class="button active">Вход</a>
</nav> </nav>
<nav class="logged" style="display: none"> <nav class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</nav> </nav>
<button> <button>
<svg width="25" height="25"> <svg width="25" height="25">
@ -39,17 +39,17 @@
</div> </div>
</div> </div>
<nav id="menu"> <nav id="menu">
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
<div class="non-logged" style="display: none"> <div class="non-logged" style="display: none">
<a href="signup">Регистрация</a> <a href="/signup" class="button">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button active">Вход</a>
</div> </div>
<div class="logged" style="display: none"> <div class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</div> </div>
</nav> </nav>
</header> </header>
@ -76,11 +76,10 @@
<footer> <footer>
<div>Казанское объединение молодых поэтов</div> <div>Казанское объединение молодых поэтов</div>
<div> <div>
<a href="https://t.me/komppoet">Telegram</a> <a href="https://t.me/komppoet">Telegram</a><a href="https://git.debu.su/komp">Исходный код</a>
<a href="https://git.debu.su/komp">Исходный код</a>
</div> </div>
</footer> </footer>
<script src="js/main.js"></script> <script src="/js/main.js"></script>
<script src="js/login.js"></script> <script src="/js/login.js"></script>
</body> </body>
</html> </html>

View file

@ -4,30 +4,30 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Регистрация | КОМП</title> <title>Регистрация | КОМП</title>
<link rel="stylesheet" href="style/main.css"> <link rel="stylesheet" href="/style/main.css">
</head> </head>
<body> <body>
<header> <header>
<div class="heigher"> <div class="heigher">
<div class="left"> <div class="left">
<div class="logo"> <a href="/" class="logo">
КОМП КОМП
</div> </a>
<nav> <nav>
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
</nav> </nav>
</div> </div>
<div class="right"> <div class="right">
<nav class="non-logged" style="display: none"> <nav class="non-logged" style="display: none">
<a href="signup" class="active">Регистрация</a> <a href="/signup" class="button active">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</nav> </nav>
<nav class="logged" style="display: none"> <nav class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</nav> </nav>
<button> <button>
<svg width="25" height="25"> <svg width="25" height="25">
@ -39,17 +39,17 @@
</div> </div>
</div> </div>
<nav id="menu"> <nav id="menu">
<a href="/">Стихи</a> <a href="/" class="button">Стихи</a>
<a href="news">Новости</a> <a href="/news" class="button">Новости</a>
<a href="people">Участники</a> <a href="/people" class="button">Участники</a>
<a href="about">О нас</a> <a href="/about" class="button">О нас</a>
<div class="non-logged" style="display: none"> <div class="non-logged" style="display: none">
<a href="signup" class="active">Регистрация</a> <a href="/signup" class="button active">Регистрация</a>
<a href="login">Вход</a> <a href="/login" class="button">Вход</a>
</div> </div>
<div class="logged" style="display: none"> <div class="logged" style="display: none">
<a href="add">Добавить</a> <a href="/add" class="button">Добавить</a>
<a href="my">Профиль</a> <a href="/my" class="button">Профиль</a>
</div> </div>
</nav> </nav>
</header> </header>
@ -84,11 +84,10 @@
<footer> <footer>
<div>Казанское объединение молодых поэтов</div> <div>Казанское объединение молодых поэтов</div>
<div> <div>
<a href="https://t.me/komppoet">Telegram</a> <a href="https://t.me/komppoet">Telegram</a><a href="https://git.debu.su/komp">Исходный код</a>
<a href="https://git.debu.su/komp">Исходный код</a>
</div> </div>
</footer> </footer>
<script src="js/main.js"></script> <script src="/js/main.js"></script>
<script src="js/signup.js"></script> <script src="/js/signup.js"></script>
</body> </body>
</html> </html>

View file

@ -70,7 +70,11 @@ header {
background: var(--header-button-hover-color); background: var(--header-button-hover-color);
} }
header a { .logo {
color: black
}
.button {
display: inline-block; display: inline-block;
padding: 8px 12px; padding: 8px 12px;
margin-inline: 2px; margin-inline: 2px;
@ -84,17 +88,17 @@ header a {
display: none; display: none;
} }
#menu a { #menu .button {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
margin-bottom: 4px; margin-bottom: 4px;
} }
header a.active { header .button.active {
background: var(--header-button-active-color); background: var(--header-button-active-color);
} }
header a:hover { header .button:hover {
background: var(--header-button-hover-color); background: var(--header-button-hover-color);
text-decoration: none; text-decoration: none;
} }
@ -111,16 +115,26 @@ body {
} }
main { main {
flex: 1 flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
text-align: center
}
.search {
width: 500px;
text-align: center
} }
#form { #form {
width: 500px; width: 500px;
margin: 30px calc(50vw - 250px) 50px;
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: hidden;
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
background: color-mix(in srgb, var(--background-color), black 2%); background: color-mix(in srgb, var(--background-color), black 2%);
text-align: left;
} }
form { form {
@ -186,7 +200,6 @@ input[type=submit]:hover {
.content { .content {
width: 800px; width: 800px;
margin: 30px calc(50vw - 400px) 50px;
} }
.content h1 { .content h1 {
margin-bottom: 20px; margin-bottom: 20px;
@ -224,7 +237,8 @@ select {
} }
#fullverse { #fullverse {
margin: 20px margin: 20px;
text-align: left;
} }
h1 { h1 {
@ -245,6 +259,10 @@ footer {
border-top: 1px solid var(--border-color) border-top: 1px solid var(--border-color)
} }
footer a:first-child {
margin-right: 10px;
}
@media (max-width: 748px) { @media (max-width: 748px) {
.heigher nav { .heigher nav {
display: none; display: none;
@ -265,14 +283,15 @@ footer {
} }
@media (max-width: 555px) { @media (max-width: 555px) {
.search {
width: 90vw;
}
#form { #form {
width: 90vw; width: 90vw;
margin: 30px 5vw 50px;
} }
} }
@media (max-width: 888px) { @media (max-width: 888px) {
.content { .content {
width: 90vw; width: 90vw;
margin: 30px 5vw 50px
} }
} }

View file

@ -2,10 +2,9 @@
<footer> <footer>
<div>Казанское объединение молодых поэтов</div> <div>Казанское объединение молодых поэтов</div>
<div> <div>
<a href="https://t.me/komppoet">Telegram</a> <a href="https://t.me/komppoet">Telegram</a><a href="https://git.debu.su/komp">Исходный код</a>
<a href="https://git.debu.su/komp">Исходный код</a>
</div> </div>
</footer> </footer>
<script src="js/main.js"></script> <script src="/js/main.js"></script>
</body> </body>
</html> </html>