Страница с новостями
This commit is contained in:
parent
246a556b33
commit
20d4dd42a7
31
base.html
Normal file
31
base.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="./node_modules/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="./static/css/base.css">
|
||||
<title>Неконтакте</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="sticky-top">
|
||||
<nav class="navbar">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand">неконтакте</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="px-4 pt-4 d-flex position-relative">
|
||||
|
||||
</main>
|
||||
<footer class="py-2 d-flex justify-content-center">
|
||||
<span>© <span id="current-year"></span> Неконтакте</span>
|
||||
</footer>
|
||||
</body>
|
||||
<script>document.getElementById('current-year').innerHTML = new Date().getFullYear();</script>
|
||||
|
||||
</html>
|
259
feed.html
Normal file
259
feed.html
Normal file
@ -0,0 +1,259 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="module" src="./node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
|
||||
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="./node_modules/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="./static/css/base.css">
|
||||
<link rel="stylesheet" href="./static/css/feed.css">
|
||||
<link rel="stylesheet" href="./static/css/left-menu.css">
|
||||
<link rel="stylesheet" href="./static/css/center.css">
|
||||
<link rel="stylesheet" href="./static/css/post.css">
|
||||
<link rel="stylesheet" href="./static/css/avatar.css">
|
||||
<title>Неконтакте</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="sticky-top">
|
||||
<nav class="navbar">
|
||||
<div class="container-fluid d-flex justify-content-between">
|
||||
<a class="navbar-brand">
|
||||
<span class="logo-small d-sm-none">нк</span>
|
||||
<span class="logo-full d-none d-sm-block">неконтакте</span>
|
||||
</a>
|
||||
<div class="page-title position-fixed w-100 text-center">Новости</div>
|
||||
<div class="dropdown">
|
||||
<a class="dropdown-toggle d-flex align-items-center" href="#" role="button" id="dropdownMenuLink"
|
||||
data-bs-toggle="dropdown" aria-expanded="false" style="color: white;">
|
||||
<img src="./static/img/gachi.jpg"
|
||||
class="user-avatar avatar-small img-fluid rounded-circle me-2">
|
||||
<div class="post-author-name me-2 d-none d-md-block">
|
||||
Алексей Смирнов
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownMenuLink">
|
||||
<li><a class="dropdown-item" href="#"><i class="bi bi-gear me-2"></i>Настройки</a></li>
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
<li><a class="dropdown-item" href="#"><i class="bi bi-box-arrow-right me-2"></i>Выход</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="px-1 px-sm-2 px-lg-4 pt-2 pt-sm-4 d-flex position-relative">
|
||||
<div id="left-menu"
|
||||
class="p-3 d-none d-lg-flex flex-column justify-content-center align-content-around border border-dark rounded-2 position-fixed">
|
||||
<a href="/me.html" class="left-menu-item d-flex rounded-2 py-1 px-2">
|
||||
<i class="bi bi-person"></i>
|
||||
<span class="ms-2">Моя страница</span>
|
||||
</a>
|
||||
<a href="/feed.html" class="left-menu-item d-flex rounded-2 py-1 px-2">
|
||||
<i class="bi bi-layout-text-sidebar-reverse"></i>
|
||||
<span class="ms-2">Новости</span>
|
||||
</a>
|
||||
<a href="/messages.html" class="left-menu-item d-flex rounded-2 py-1 px-2">
|
||||
<i class="bi bi-chat-text"></i>
|
||||
<span class="ms-2">Сообщения</span>
|
||||
</a>
|
||||
<a href="/friends.html" class="left-menu-item d-flex rounded-2 py-1 px-2">
|
||||
<i class="bi bi-people"></i>
|
||||
<span class="ms-2">Друзья</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="wrapper d-flex justify-content-center">
|
||||
<div class="center">
|
||||
<div class="post mb-2 mb-sm-4 w-100 d-flex flex-column border rounded-2 border-dark">
|
||||
<div class="post-header py-1 px-2 d-flex border-bottom border-dark">
|
||||
<a class="d-flex justify-content-start align-items-center">
|
||||
<img src="./static/img/gachi.jpg"
|
||||
class="post-author-avatar avatar-small img-fluid rounded-circle">
|
||||
<div class="post-meta ms-2 d-flex flex-column justify-content-center">
|
||||
<div class="post-author-name">
|
||||
Алексей Смирнов
|
||||
</div>
|
||||
<div class="post-publication-datetime">
|
||||
15 сентября, 15:22
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="post-body">
|
||||
<div class="post-body-text m-2">
|
||||
<p>
|
||||
Корги – королевская порода с дружелюбным характером
|
||||
</p>
|
||||
<p>
|
||||
Привет, друзья! Сегодня я хочу рассказать вам о замечательной породе собак – корги. Эти
|
||||
милые создания с короткими лапами и длинными ушами покорили сердца многих людей, и не
|
||||
зря! Корги – это небольшие собаки, которые произошли из Уэльса. Они были выведены для
|
||||
охоты на зайцев и других мелких животных.
|
||||
</p>
|
||||
</div>
|
||||
<img src="./static/img/korgi.jpg" class="post-body-img img-fluid">
|
||||
</div>
|
||||
<div class="post-footer py-1 px-2 border-top border-dark d-flex">
|
||||
<div class="counter-block likes-block px-2 me-1 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M16 4a5.95 5.95 0 0 0-3.89 1.7l-.12.11-.12-.11A5.96 5.96 0 0 0 7.73 4 5.73 5.73 0 0 0 2 9.72c0 3.08 1.13 4.55 6.18 8.54l2.69 2.1c.66.52 1.6.52 2.26 0l2.36-1.84.94-.74c4.53-3.64 5.57-5.1 5.57-8.06A5.73 5.73 0 0 0 16.27 4zm.27 1.8a3.93 3.93 0 0 1 3.93 3.92v.3c-.08 2.15-1.07 3.33-5.51 6.84l-2.67 2.08a.04.04 0 0 1-.04 0L9.6 17.1l-.87-.7C4.6 13.1 3.8 11.98 3.8 9.73A3.93 3.93 0 0 1 7.73 5.8c1.34 0 2.51.62 3.57 1.92a.9.9 0 0 0 1.4-.01c1.04-1.3 2.2-1.91 3.57-1.91z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">734</span>
|
||||
</div>
|
||||
<div class="counter-block comments-block px-2 me-1 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M16.9 4H7.1c-1.15 0-1.73.11-2.35.44-.56.3-1 .75-1.31 1.31C3.11 6.37 3 6.95 3 8.1v5.8c0 1.15.11 1.73.44 2.35.3.56.75 1 1.31 1.31l.15.07c.51.25 1.04.35 1.95.37h.25v2.21c0 .44.17.85.47 1.16l.12.1c.64.55 1.6.52 2.21-.08L13.37 18h3.53c1.15 0 1.73-.11 2.35-.44.56-.3 1-.75 1.31-1.31.33-.62.44-1.2.44-2.35V8.1c0-1.15-.11-1.73-.44-2.35a3.17 3.17 0 0 0-1.31-1.31A4.51 4.51 0 0 0 16.9 4zM6.9 5.8h9.99c.88 0 1.18.06 1.5.23.25.13.44.32.57.57.17.32.23.62.23 1.5v6.16c-.02.61-.09.87-.23 1.14-.13.25-.32.44-.57.57-.32.17-.62.23-1.5.23h-4.02a.9.9 0 0 0-.51.26l-3.47 3.4V17.1c0-.5-.4-.9-.9-.9H6.74a2.3 2.3 0 0 1-1.14-.23 1.37 1.37 0 0 1-.57-.57c-.17-.32-.23-.62-.23-1.5V7.74c.02-.61.09-.87.23-1.14.13-.25.32-.44.57-.57.3-.16.58-.22 1.31-.23z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">344</span>
|
||||
</div>
|
||||
<div class="counter-block replies-block px-2 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M12 3.73c-1.12.07-2 1-2 2.14v2.12h-.02a9.9 9.9 0 0 0-7.83 10.72.9.9 0 0 0 1.61.46l.19-.24a9.08 9.08 0 0 1 5.84-3.26l.2-.03.01 2.5a2.15 2.15 0 0 0 3.48 1.69l7.82-6.14a2.15 2.15 0 0 0 0-3.38l-7.82-6.13c-.38-.3-.85-.46-1.33-.46zm.15 1.79c.08 0 .15.03.22.07l7.82 6.14a.35.35 0 0 1 0 .55l-7.82 6.13a.35.35 0 0 1-.57-.28V14.7a.9.9 0 0 0-.92-.9h-.23l-.34.02c-2.28.14-4.4.98-6.12 2.36l-.17.15.02-.14a8.1 8.1 0 0 1 6.97-6.53.9.9 0 0 0 .79-.9V5.87c0-.2.16-.35.35-.35z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">1</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post mb-2 mb-sm-4 w-100 d-flex flex-column border rounded-2 border-dark">
|
||||
<div class="post-header py-1 px-2 d-flex border-bottom border-dark">
|
||||
<a class="d-flex justify-content-start align-items-center">
|
||||
<img src="./static/img/gachi.jpg"
|
||||
class="post-author-avatar avatar-small img-fluid rounded-circle">
|
||||
<div class="post-meta ms-2 d-flex flex-column justify-content-center">
|
||||
<div class="post-author-name">
|
||||
Алексей Смирнов
|
||||
</div>
|
||||
<div class="post-publication-datetime">
|
||||
15 сентября, 15:22
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="post-body">
|
||||
<div class="post-body-text m-2">
|
||||
<p>
|
||||
Корги - это не просто милые собачки, а настоящие друзья, которые всегда готовы составить
|
||||
компанию в любых приключениях. Они очень умны и легко обучаемы, что делает их идеальными
|
||||
питомцами для семей с детьми. Однако, несмотря на свою популярность, корги все же
|
||||
остаются собаками, которые нуждаются в правильном уходе и заботе.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post-footer py-1 px-2 border-top border-dark d-flex">
|
||||
<div class="counter-block likes-block px-2 me-1 d-flex align-items-center rounded-4">
|
||||
<img src="./static/img/heart.svg" style="width: 24px;">
|
||||
<span class="count ms-1">734</span>
|
||||
</div>
|
||||
<div class="counter-block comments-block px-2 me-1 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M16.9 4H7.1c-1.15 0-1.73.11-2.35.44-.56.3-1 .75-1.31 1.31C3.11 6.37 3 6.95 3 8.1v5.8c0 1.15.11 1.73.44 2.35.3.56.75 1 1.31 1.31l.15.07c.51.25 1.04.35 1.95.37h.25v2.21c0 .44.17.85.47 1.16l.12.1c.64.55 1.6.52 2.21-.08L13.37 18h3.53c1.15 0 1.73-.11 2.35-.44.56-.3 1-.75 1.31-1.31.33-.62.44-1.2.44-2.35V8.1c0-1.15-.11-1.73-.44-2.35a3.17 3.17 0 0 0-1.31-1.31A4.51 4.51 0 0 0 16.9 4zM6.9 5.8h9.99c.88 0 1.18.06 1.5.23.25.13.44.32.57.57.17.32.23.62.23 1.5v6.16c-.02.61-.09.87-.23 1.14-.13.25-.32.44-.57.57-.32.17-.62.23-1.5.23h-4.02a.9.9 0 0 0-.51.26l-3.47 3.4V17.1c0-.5-.4-.9-.9-.9H6.74a2.3 2.3 0 0 1-1.14-.23 1.37 1.37 0 0 1-.57-.57c-.17-.32-.23-.62-.23-1.5V7.74c.02-.61.09-.87.23-1.14.13-.25.32-.44.57-.57.3-.16.58-.22 1.31-.23z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">344</span>
|
||||
</div>
|
||||
<div class="counter-block replies-block px-2 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M12 3.73c-1.12.07-2 1-2 2.14v2.12h-.02a9.9 9.9 0 0 0-7.83 10.72.9.9 0 0 0 1.61.46l.19-.24a9.08 9.08 0 0 1 5.84-3.26l.2-.03.01 2.5a2.15 2.15 0 0 0 3.48 1.69l7.82-6.14a2.15 2.15 0 0 0 0-3.38l-7.82-6.13c-.38-.3-.85-.46-1.33-.46zm.15 1.79c.08 0 .15.03.22.07l7.82 6.14a.35.35 0 0 1 0 .55l-7.82 6.13a.35.35 0 0 1-.57-.28V14.7a.9.9 0 0 0-.92-.9h-.23l-.34.02c-2.28.14-4.4.98-6.12 2.36l-.17.15.02-.14a8.1 8.1 0 0 1 6.97-6.53.9.9 0 0 0 .79-.9V5.87c0-.2.16-.35.35-.35z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">1</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="post mb-2 mb-sm-4 w-100 d-flex flex-column border rounded-2 border-dark">
|
||||
<div class="post-header py-1 px-2 d-flex border-bottom border-dark">
|
||||
<a class="d-flex justify-content-start align-items-center">
|
||||
<img src="./static/img/gachi.jpg"
|
||||
class="post-author-avatar avatar-small img-fluid rounded-circle">
|
||||
<div class="post-meta ms-2 d-flex flex-column justify-content-center">
|
||||
<div class="post-author-name">
|
||||
Алексей Смирнов
|
||||
</div>
|
||||
<div class="post-publication-datetime">
|
||||
15 сентября, 15:22
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="post-body">
|
||||
<img src="./static/img/korgi.jpg" class="post-body-img img-fluid">
|
||||
</div>
|
||||
<div class="post-footer py-1 px-2 border-top border-dark d-flex">
|
||||
<div class="counter-block likes-block px-2 me-1 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M16 4a5.95 5.95 0 0 0-3.89 1.7l-.12.11-.12-.11A5.96 5.96 0 0 0 7.73 4 5.73 5.73 0 0 0 2 9.72c0 3.08 1.13 4.55 6.18 8.54l2.69 2.1c.66.52 1.6.52 2.26 0l2.36-1.84.94-.74c4.53-3.64 5.57-5.1 5.57-8.06A5.73 5.73 0 0 0 16.27 4zm.27 1.8a3.93 3.93 0 0 1 3.93 3.92v.3c-.08 2.15-1.07 3.33-5.51 6.84l-2.67 2.08a.04.04 0 0 1-.04 0L9.6 17.1l-.87-.7C4.6 13.1 3.8 11.98 3.8 9.73A3.93 3.93 0 0 1 7.73 5.8c1.34 0 2.51.62 3.57 1.92a.9.9 0 0 0 1.4-.01c1.04-1.3 2.2-1.91 3.57-1.91z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">734</span>
|
||||
</div>
|
||||
<div class="counter-block comments-block px-2 me-1 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M16.9 4H7.1c-1.15 0-1.73.11-2.35.44-.56.3-1 .75-1.31 1.31C3.11 6.37 3 6.95 3 8.1v5.8c0 1.15.11 1.73.44 2.35.3.56.75 1 1.31 1.31l.15.07c.51.25 1.04.35 1.95.37h.25v2.21c0 .44.17.85.47 1.16l.12.1c.64.55 1.6.52 2.21-.08L13.37 18h3.53c1.15 0 1.73-.11 2.35-.44.56-.3 1-.75 1.31-1.31.33-.62.44-1.2.44-2.35V8.1c0-1.15-.11-1.73-.44-2.35a3.17 3.17 0 0 0-1.31-1.31A4.51 4.51 0 0 0 16.9 4zM6.9 5.8h9.99c.88 0 1.18.06 1.5.23.25.13.44.32.57.57.17.32.23.62.23 1.5v6.16c-.02.61-.09.87-.23 1.14-.13.25-.32.44-.57.57-.32.17-.62.23-1.5.23h-4.02a.9.9 0 0 0-.51.26l-3.47 3.4V17.1c0-.5-.4-.9-.9-.9H6.74a2.3 2.3 0 0 1-1.14-.23 1.37 1.37 0 0 1-.57-.57c-.17-.32-.23-.62-.23-1.5V7.74c.02-.61.09-.87.23-1.14.13-.25.32-.44.57-.57.3-.16.58-.22 1.31-.23z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">344</span>
|
||||
</div>
|
||||
<div class="counter-block replies-block px-2 d-flex align-items-center rounded-4">
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"></path>
|
||||
<path
|
||||
d="M12 3.73c-1.12.07-2 1-2 2.14v2.12h-.02a9.9 9.9 0 0 0-7.83 10.72.9.9 0 0 0 1.61.46l.19-.24a9.08 9.08 0 0 1 5.84-3.26l.2-.03.01 2.5a2.15 2.15 0 0 0 3.48 1.69l7.82-6.14a2.15 2.15 0 0 0 0-3.38l-7.82-6.13c-.38-.3-.85-.46-1.33-.46zm.15 1.79c.08 0 .15.03.22.07l7.82 6.14a.35.35 0 0 1 0 .55l-7.82 6.13a.35.35 0 0 1-.57-.28V14.7a.9.9 0 0 0-.92-.9h-.23l-.34.02c-2.28.14-4.4.98-6.12 2.36l-.17.15.02-.14a8.1 8.1 0 0 1 6.97-6.53.9.9 0 0 0 .79-.9V5.87c0-.2.16-.35.35-.35z"
|
||||
fill="currentColor" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<span class="count ms-1">1</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<footer class="py-2 d-flex justify-content-center border-top border-dark">
|
||||
<span>© <span id="current-year"></span> Неконтакте</span>
|
||||
</footer>
|
||||
</body>
|
||||
<script>document.getElementById('current-year').innerHTML = new Date().getFullYear();</script>
|
||||
|
||||
</html>
|
1728
package-lock.json
generated
1728
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -1,16 +1,20 @@
|
||||
{
|
||||
"name": "ip_pibd-21_potapov",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "http-server -p 3000 ./",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"start": "vite --host 0.0.0.0 --port 80",
|
||||
"serve": "http-server -p 3000 ./dist/",
|
||||
"build": "vite build",
|
||||
"prod": "npm-run-all build serve"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "5.3.2",
|
||||
"bootstrap-icons": "1.11.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"http-server": "14.1.1"
|
||||
"http-server": "14.1.1",
|
||||
"vite": "4.4.9",
|
||||
"npm-run-all": "4.1.5"
|
||||
}
|
||||
}
|
||||
|
4
static/css/avatar.css
Normal file
4
static/css/avatar.css
Normal file
@ -0,0 +1,4 @@
|
||||
.avatar-small {
|
||||
height: 35px;
|
||||
width: auto;
|
||||
}
|
47
static/css/base.css
Normal file
47
static/css/base.css
Normal file
@ -0,0 +1,47 @@
|
||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||
:root::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide scrollbar for IE, Edge and Firefox */
|
||||
:root {
|
||||
-ms-overflow-style: none;
|
||||
/* IE and Edge */
|
||||
scrollbar-width: none;
|
||||
/* Firefox */
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Roboto Slab;
|
||||
src: url("../fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf");
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: Roboto Slab;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
header {
|
||||
background-color: #235D70;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
color: white;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.navbar-brand:hover {
|
||||
color: white;
|
||||
}
|
19
static/css/center.css
Normal file
19
static/css/center.css
Normal file
@ -0,0 +1,19 @@
|
||||
.wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.center {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 992px) {
|
||||
.center {
|
||||
width: 40%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 576px) {
|
||||
.center {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
0
static/css/feed.css
Normal file
0
static/css/feed.css
Normal file
7
static/css/left-menu.css
Normal file
7
static/css/left-menu.css
Normal file
@ -0,0 +1,7 @@
|
||||
.left-menu-item {
|
||||
transition: .1s;
|
||||
}
|
||||
|
||||
.left-menu-item:hover {
|
||||
background-color: #e8e8e8;
|
||||
}
|
12
static/css/post.css
Normal file
12
static/css/post.css
Normal file
@ -0,0 +1,12 @@
|
||||
.post-meta {
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.counter-block {
|
||||
transition: .1s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.counter-block:hover {
|
||||
background-color: #e8e8e8;
|
||||
}
|
202
static/fonts/Roboto_Slab/LICENSE.txt
Normal file
202
static/fonts/Roboto_Slab/LICENSE.txt
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
71
static/fonts/Roboto_Slab/README.txt
Normal file
71
static/fonts/Roboto_Slab/README.txt
Normal file
@ -0,0 +1,71 @@
|
||||
Roboto Slab Variable Font
|
||||
=========================
|
||||
|
||||
This download contains Roboto Slab as both a variable font and static fonts.
|
||||
|
||||
Roboto Slab is a variable font with this axis:
|
||||
wght
|
||||
|
||||
This means all the styles are contained in a single file:
|
||||
RobotoSlab-VariableFont_wght.ttf
|
||||
|
||||
If your app fully supports variable fonts, you can now pick intermediate styles
|
||||
that aren’t available as static fonts. Not all apps support variable fonts, and
|
||||
in those cases you can use the static font files for Roboto Slab:
|
||||
static/RobotoSlab-Thin.ttf
|
||||
static/RobotoSlab-ExtraLight.ttf
|
||||
static/RobotoSlab-Light.ttf
|
||||
static/RobotoSlab-Regular.ttf
|
||||
static/RobotoSlab-Medium.ttf
|
||||
static/RobotoSlab-SemiBold.ttf
|
||||
static/RobotoSlab-Bold.ttf
|
||||
static/RobotoSlab-ExtraBold.ttf
|
||||
static/RobotoSlab-Black.ttf
|
||||
|
||||
Get started
|
||||
-----------
|
||||
|
||||
1. Install the font files you want to use
|
||||
|
||||
2. Use your app's font picker to view the font family and all the
|
||||
available styles
|
||||
|
||||
Learn more about variable fonts
|
||||
-------------------------------
|
||||
|
||||
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
|
||||
https://variablefonts.typenetwork.com
|
||||
https://medium.com/variable-fonts
|
||||
|
||||
In desktop apps
|
||||
|
||||
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
|
||||
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
|
||||
|
||||
Online
|
||||
|
||||
https://developers.google.com/fonts/docs/getting_started
|
||||
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
|
||||
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
|
||||
|
||||
Installing fonts
|
||||
|
||||
MacOS: https://support.apple.com/en-us/HT201749
|
||||
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
|
||||
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
|
||||
|
||||
Android Apps
|
||||
|
||||
https://developers.google.com/fonts/docs/android
|
||||
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
|
||||
|
||||
License
|
||||
-------
|
||||
Please read the full license text (LICENSE.txt) to understand the permissions,
|
||||
restrictions and requirements for usage, redistribution, and modification.
|
||||
|
||||
You can use them in your products & projects – print or digital,
|
||||
commercial or otherwise.
|
||||
|
||||
This isn't legal advice, please consider consulting a lawyer and see the full
|
||||
license for all details.
|
BIN
static/fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf
Normal file
BIN
static/fonts/Roboto_Slab/RobotoSlab-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Black.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Black.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Bold.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Bold.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-ExtraBold.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-ExtraLight.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Light.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Light.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Medium.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Medium.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Regular.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Regular.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-SemiBold.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-SemiBold.ttf
Normal file
Binary file not shown.
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Thin.ttf
Normal file
BIN
static/fonts/Roboto_Slab/static/RobotoSlab-Thin.ttf
Normal file
Binary file not shown.
BIN
static/img/gachi.jpg
Normal file
BIN
static/img/gachi.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
21
static/img/heart.svg
Normal file
21
static/img/heart.svg
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 23.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:none;}
|
||||
.st1{fill:#ED0226;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M0,0v24h24V0H0z M16.4,17.8l-0.9,0.7l-2.4,1.8c-0.7,0.5-1.6,0.5-2.3,0l-2.7-2.1c-5-4-6.2-5.5-6.2-8.5
|
||||
C2,6.6,4.6,4,7.7,4c1.6,0,3,0.6,4.1,1.7L12,5.8l0.1-0.1c1-1,2.4-1.6,3.9-1.7h0.3C19.4,4,22,6.6,22,9.7C22,12.7,21,14.1,16.4,17.8z"
|
||||
/>
|
||||
<path d="M20.2,10c-0.1,2.1-1.1,3.3-5.5,6.8L12,18.9c0,0,0,0,0,0l-2.4-1.8l-0.9-0.7C4.6,13.1,3.8,12,3.8,9.7c0-2.2,1.8-3.9,3.9-3.9
|
||||
c1.3,0,2.5,0.6,3.6,1.9c0.3,0.4,0.9,0.4,1.3,0.1c0,0,0.1-0.1,0.1-0.1c1-1.3,2.2-1.9,3.6-1.9c2.2,0,3.9,1.8,3.9,3.9V10z"/>
|
||||
<path class="st1" d="M22,9.7c0,3-1,4.4-5.6,8.1l-0.9,0.7l-2.4,1.8c-0.7,0.5-1.6,0.5-2.3,0l-2.7-2.1c-5-4-6.2-5.5-6.2-8.5
|
||||
C2,6.6,4.6,4,7.7,4c1.6,0,3,0.6,4.1,1.7L12,5.8l0.1-0.1c1-1,2.4-1.6,3.9-1.7h0.3C19.4,4,22,6.6,22,9.7z"/>
|
||||
<path class="st0" d="M20.2,9.7V10c-0.1,2.1-1.1,3.3-5.5,6.8L12,18.9c0,0,0,0,0,0l-2.4-1.8l-0.9-0.7C4.6,13.1,3.8,12,3.8,9.7
|
||||
c0-2.2,1.8-3.9,3.9-3.9c1.3,0,2.5,0.6,3.6,1.9c0.3,0.4,0.9,0.4,1.3,0.1c0,0,0.1-0.1,0.1-0.1c1-1.3,2.2-1.9,3.6-1.9
|
||||
C18.4,5.8,20.2,7.5,20.2,9.7z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
BIN
static/img/korgi.jpg
Normal file
BIN
static/img/korgi.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
Loading…
Reference in New Issue
Block a user