сообщения и друзья

This commit is contained in:
Никита Потапов 2023-10-13 11:28:14 +04:00
parent 1595decb97
commit cbcc23a80a
3 changed files with 352 additions and 1 deletions

171
friends.html Normal file
View File

@ -0,0 +1,171 @@
<!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/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 class="vh-100 d-flex flex-column">
<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 flex-fill">
<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 position-relative">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Найти друзей">
<button class="btn btn-outline-secondary" type="button" id="button-addon"><i
class="bi bi-search"></i></button>
</div>
<div class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-meta">
г. Санкт-Петербург, 25 лет
</div>
</div>
</a>
<button class="btn btn-close" title="Удалить из друзей"></button>
</div>
<div class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-meta">
г. Санкт-Петербург, 25 лет
</div>
</div>
</a>
<button class="btn btn-close" title="Удалить из друзей"></button>
</div>
<div class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-meta">
г. Санкт-Петербург, 25 лет
</div>
</div>
</a>
<button class="btn btn-close" title="Удалить из друзей"></button>
</div>
<div class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-meta">
г. Санкт-Петербург, 25 лет
</div>
</div>
</a>
<button class="btn btn-close" title="Удалить из друзей"></button>
</div>
<div class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-meta">
г. Санкт-Петербург, 25 лет
</div>
</div>
</a>
<button class="btn btn-close" title="Удалить из друзей"></button>
</div>
<div class="people-row p-2 d-flex justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-meta">
г. Санкт-Петербург, 25 лет
</div>
</div>
</a>
<button class="btn btn-close" title="Удалить из друзей"></button>
</div>
</div>
</div>
</main>
<footer class="py-2 d-flex justify-content-center border-top border-dark">
<span>&copy; <span id="current-year"></span> Неконтакте</span>
</footer>
</body>
<script>document.getElementById('current-year').innerHTML = new Date().getFullYear();</script>
</html>

View File

@ -41,7 +41,7 @@
<div class="mb-3">
<input type="password" class="form-control" placeholder="Пароль" id="inputPassword">
</div>
<button type="submit" class="btn btn-primary w-100 mb-3">Войти</button>
<button type="submit" class="btn btn-outline-secondary w-100 mb-3">Войти</button>
<div class="d-flex justify-content-between">
<a>
Забыли пароль?

180
messages.html Normal file
View File

@ -0,0 +1,180 @@
<!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/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 class="vh-100 d-flex flex-column">
<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 flex-fill">
<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 position-relative">
<a class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
<a class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
<a class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
<a class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
<a class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
<a class="people-row border-bottom border-dark p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
<a class="people-row p-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-start align-items-center" style="font-size: small;">
<img src="./static/img/gachi.jpg" class="user-avatar avatar-small img-fluid rounded-circle">
<div class="user-info ms-2 d-flex flex-column justify-content-center">
<div class="user-name">
Алексей Смирнов
</div>
<div class="user-message-text px-2 py-1 rounded-3"
style="background-color: #e8e8e8; font-size: smaller;">
Если бы ты знал как мне плохо от этих лабораторок...
</div>
</div>
</div>
</a>
</div>
</div>
</main>
<footer class="py-2 d-flex justify-content-center border-top border-dark">
<span>&copy; <span id="current-year"></span> Неконтакте</span>
</footer>
</body>
<script>document.getElementById('current-year').innerHTML = new Date().getFullYear();</script>
</html>