Изменения от 29.06: проект всё ещё в стадии зародыша
This commit is contained in:
parent
e3f6c44f1e
commit
dde28033ce
10 changed files with 446 additions and 10 deletions
29
head.html
Normal file
29
head.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>${TITLE}</title>
|
||||
<link rel="stylesheet" href="style/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="left">
|
||||
<div class="logo">
|
||||
КОМП
|
||||
</div>
|
||||
<nav>
|
||||
<a href="/">Стихи</a>
|
||||
<a href="/news">Новости</a>
|
||||
<a href="/people">Участники</a>
|
||||
<a href="/about">О нас</a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="right">
|
||||
<nav>
|
||||
<a href="/signup">Регистрация</a>
|
||||
<a href="/login">Вход</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
29
index.html
29
index.html
|
@ -14,18 +14,33 @@
|
|||
</div>
|
||||
<nav>
|
||||
<a href="/" class="active">Стихи</a>
|
||||
<a href="/news">Новости</a>
|
||||
<a href="/people">Участники</a>
|
||||
<a href="/about">О нас</a>
|
||||
<a href="news">Новости</a>
|
||||
<a href="people">Участники</a>
|
||||
<a href="about">О нас</a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="right">
|
||||
<nav>
|
||||
<a href="/signup">Регистрация</a>
|
||||
<a href="/login">Вход</a>
|
||||
<nav id="non-login" style="display: none;">
|
||||
<a href="signup">Регистрация</a>
|
||||
<a href="login">Вход</a>
|
||||
</nav>
|
||||
<nav id="login" style="display: none;">
|
||||
<a href="add">Добавить</a>
|
||||
<a href="my">Профиль</a>
|
||||
</nav>
|
||||
<button>Меню</button>
|
||||
</div>
|
||||
</header>
|
||||
Привет, КОМП
|
||||
<main>
|
||||
|
||||
</main>
|
||||
<footer>
|
||||
<div>Казанское объединение молодых поэтов</div>
|
||||
<div>
|
||||
<a href="https://t.me/komppoet">Telegram</a>
|
||||
<a href="https://git.debu.su/komp">Исходный код</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
10
js/login.js
Normal file
10
js/login.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const login = document.getElementById('login')
|
||||
const password = document.getElementById('password')
|
||||
const checkbox = document.getElementById('checkbox')
|
||||
const submit = document.getElementById('submit')
|
||||
|
||||
submit.onclick = () => { alert('Hello world!') }
|
||||
|
||||
function check() {
|
||||
fetch(`api/checklogin/${login.value}`)
|
||||
}
|
4
js/main.js
Normal file
4
js/main.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
if (localStorage.login)
|
||||
document.getElementById('login').style.display = ''
|
||||
else
|
||||
document.getElementById('non-login').style.display = ''
|
64
login.html
Normal file
64
login.html
Normal file
|
@ -0,0 +1,64 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Регистрация | КОМП</title>
|
||||
<link rel="stylesheet" href="style/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="left">
|
||||
<div class="logo">
|
||||
КОМП
|
||||
</div>
|
||||
<nav>
|
||||
<a href="/">Стихи</a>
|
||||
<a href="news">Новости</a>
|
||||
<a href="people">Участники</a>
|
||||
<a href="about">О нас</a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="right">
|
||||
<nav id="non-login" style="display: none;">
|
||||
<a href="signup">Регистрация</a>
|
||||
<a href="login" class="active">Вход</a>
|
||||
</nav>
|
||||
<nav id="login" style="display: none;">
|
||||
<a href="add">Добавить</a>
|
||||
<a href="my">Профиль</a>
|
||||
</nav>
|
||||
<button>Меню</button>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<div id="form">
|
||||
<div id="label">Вход</div>
|
||||
<form method="post" action="api/login">
|
||||
<label>
|
||||
<p>Логин</p>
|
||||
<input type="text" name="login" class="input" required>
|
||||
</label>
|
||||
<label>
|
||||
<p>Пароль</p>
|
||||
<input type="password" name="password" class="input" required>
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" checked>
|
||||
Запомнить это устройство
|
||||
</label>
|
||||
<input type="submit" value="Войти">
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div>Казанское объединение молодых поэтов</div>
|
||||
<div>
|
||||
<a href="https://t.me/komppoet">Telegram</a>
|
||||
<a href="https://git.debu.su/komp">Исходный код</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/login.js"></script>
|
||||
</body>
|
||||
</html>
|
71
signup.html
Normal file
71
signup.html
Normal file
|
@ -0,0 +1,71 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Регистрация | КОМП</title>
|
||||
<link rel="stylesheet" href="style/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="left">
|
||||
<div class="logo">
|
||||
КОМП
|
||||
</div>
|
||||
<nav>
|
||||
<a href="/">Стихи</a>
|
||||
<a href="news">Новости</a>
|
||||
<a href="people">Участники</a>
|
||||
<a href="about">О нас</a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="right">
|
||||
<nav id="non-login" style="display: none;">
|
||||
<a href="signup" class="active">Регистрация</a>
|
||||
<a href="login">Вход</a>
|
||||
</nav>
|
||||
<nav id="login" style="display: none;">
|
||||
<a href="add">Добавить</a>
|
||||
<a href="my">Профиль</a>
|
||||
</nav>
|
||||
<button>Меню</button>
|
||||
</div>
|
||||
</header>
|
||||
<main>
|
||||
<div id="form">
|
||||
<div id="label">Регистрация</div>
|
||||
<form method="post" action="api/signup">
|
||||
<label>
|
||||
<p>Имя</p>
|
||||
<input type="text" class="input" name="name" placeholder="Александр" required>
|
||||
</label>
|
||||
<label>
|
||||
<p>Фамилия</p>
|
||||
<input type="text" class="input" name="subname" placeholder="Пушкин" required>
|
||||
</label>
|
||||
<label>
|
||||
<p>Логин</p>
|
||||
<input type="text" class="input" name="login" placeholder="pushkin1799" required>
|
||||
</label>
|
||||
<label>
|
||||
<p>Пароль</p>
|
||||
<input type="password" name="password" class="input" required>
|
||||
</label>
|
||||
<label>
|
||||
<p>Повторите пароль</p>
|
||||
<input type="password" class="input" required>
|
||||
</label>
|
||||
<input type="submit" value="Зарегистрироваться">
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
<div>Казанское объединение молодых поэтов</div>
|
||||
<div>
|
||||
<a href="https://t.me/komppoet">Telegram</a>
|
||||
<a href="https://git.debu.su/komp">Исходный код</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
93
style/fonts/PlayfairDisplay/OFL.txt
Normal file
93
style/fonts/PlayfairDisplay/OFL.txt
Normal file
|
@ -0,0 +1,93 @@
|
|||
Copyright 2017 The Playfair Display Project Authors (https://github.com/clauseggers/Playfair-Display), with Reserved Font Name "Playfair Display"
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
Binary file not shown.
145
style/main.css
145
style/main.css
|
@ -5,8 +5,8 @@
|
|||
--header-button-active-color: rgb(210, 210, 210);
|
||||
--header-button-hover-color: rgb(205, 205, 205);
|
||||
--header-button-font-color: black;
|
||||
|
||||
--border-color: var(--header-button-active-color)
|
||||
--border-color: var(--header-button-active-color);
|
||||
--accent-color: tomato
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
@ -14,6 +14,11 @@
|
|||
src: url(fonts/Libertinus/LibertinusSerif-Regular.woff2)
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Playfair Display';
|
||||
src: url(fonts/PlayfairDisplay/PlayfairDisplay-VariableFont_wght.ttf)
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: Libertinus;
|
||||
padding: 0;
|
||||
|
@ -21,6 +26,19 @@
|
|||
font-size: 18px;
|
||||
}
|
||||
|
||||
*::selection {
|
||||
color: white;
|
||||
background: var(--accent-color)
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent-color);
|
||||
text-decoration: none
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background-color);
|
||||
}
|
||||
|
@ -29,10 +47,11 @@ header {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 56px;
|
||||
min-height: 50px;
|
||||
padding-inline: 6px;
|
||||
background: var(--header-color);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
header a {
|
||||
|
@ -51,12 +70,118 @@ header a.active {
|
|||
|
||||
header a:hover {
|
||||
background: var(--header-button-hover-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
header .logo {
|
||||
display: none;
|
||||
font-size: 150%;
|
||||
}
|
||||
.right > button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1
|
||||
}
|
||||
|
||||
#form {
|
||||
width: 500px;
|
||||
margin: 20px calc(50vw - 250px);
|
||||
border-radius: 5px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-color);
|
||||
background: color-mix(in srgb, var(--background-color), black 2%);
|
||||
}
|
||||
|
||||
form {
|
||||
padding: 20px
|
||||
}
|
||||
|
||||
#label {
|
||||
background: var(--header-color);
|
||||
text-align: center;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 10px
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
label p {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.input {
|
||||
height: 40px;
|
||||
padding: 0 15px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid var(--border-color);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.input:hover {
|
||||
border-color: color-mix(in srgb, var(--border-color), black 30%);
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
border-color: var(--accent-color);
|
||||
}
|
||||
|
||||
#form .input {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input[type=checkbox] {
|
||||
accent-color: var(--accent-color);
|
||||
}
|
||||
|
||||
input[type=submit] {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border-radius: 5px;
|
||||
margin-top: 15px;
|
||||
background: var(--accent-color);
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
input[type=submit]:hover {
|
||||
background: color-mix(in srgb, var(--accent-color), black 20%);
|
||||
}
|
||||
|
||||
#fullverse {
|
||||
margin: 20px
|
||||
}
|
||||
|
||||
#fullverse h1 {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
#fullverse a {
|
||||
display: block;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
background: var(--header-color);
|
||||
border-top: 1px solid var(--border-color)
|
||||
}
|
||||
|
||||
@media (max-width: 748px) {
|
||||
nav {
|
||||
|
@ -64,5 +189,19 @@ header .logo {
|
|||
}
|
||||
header .logo {
|
||||
display: block;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.right > button {
|
||||
display: block;
|
||||
}
|
||||
footer {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 555px) {
|
||||
#form {
|
||||
width: 90vw;
|
||||
margin: 20px 5vw;
|
||||
}
|
||||
}
|
||||
|
|
11
tail.html
Normal file
11
tail.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
</main>
|
||||
<footer>
|
||||
<div>Казанское объединение молодых поэтов</div>
|
||||
<div>
|
||||
<a href="https://t.me/komppoet">Telegram</a>
|
||||
<a href="https://git.debu.su/komp">Исходный код</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue