Лаба 2 с отчетом

This commit is contained in:
ekallin 2023-11-05 00:08:01 +04:00
parent 374188f39b
commit 6ab99d390f
23 changed files with 4772 additions and 96 deletions

BIN
IP_LAB2.docx Normal file

Binary file not shown.

BIN
Shit.zip Normal file

Binary file not shown.

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ru">
<head>
<meta charset="UTF-8">
@ -8,12 +8,11 @@
<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/personalPage.css">
<link rel="stylesheet" href="./static/css/admin.css">
<title>LiveCinema</title>
</head>
<body>
<body class="d-flex flex-column min-vh-100">
<header class="sticky-top">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
@ -44,38 +43,48 @@
<li class="nav-item">
<a class="nav-link" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container-fluid h-100 w-100" id="main-page">
<div class="container-fluid h-100 w-100">
<div class="container-films d-flex justify-content-center align-items-center">
<span class="text-center">
Просмотренные фильмы
</span>
</div>
<!-- ПОСМОТРИ ДОМА ОБЯЗАТЕЛЬНО MARGIG -->
<div class="viewed-row d-flex flex-row">
<img src="./static/fotos/akademy-ambrella.jpeg" class="w-50 h-50 img-fluid rounded-3">
<img src="./static/fotos/drama.jpeg" class="w-50 h-50 img-fluid rounded-3">
<img src="./static/fotos/ment-s_rub.jpeg" class="w-50 h-50 img-fluid rounded-3">
</div>
<main class="flex-fill d-flex flex-column px-1 px-md-2">
<div class="control-group py-2">
<button id="items-add" class="btn btn-light">Добавить фильм (диалог)</button>
</div>
<table class="table table-sm table-responsive table-bordered border-primary table-hover">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Название</th>
<th scope="col">Жанр</th>
<th scope="col" class="text-center">
<span class="d-none d-sm-block">
Длительность
</span><i class="bi bi-clock-history d-block d-sm-none"></i>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Постучись в мою дверь</td>
<td>Драма</td>
<td>2:03</td>
</tr>
</tbody>
</table>
</main>
<footer class="container-fluid py-1">
<span>
&copy; 2023 LiveCinema Бакальская Е. Д.
&copy; 2023, Live Cinema. All rights reserved.
</span>
</footer>
</body>
</html>

BIN
admin.zip Normal file

Binary file not shown.

239
categoryfilm.html Normal file
View File

@ -0,0 +1,239 @@
<!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">
<!-- <link rel="stylesheet" href="./static/css/catalog.css"> -->
<link rel="stylesheet" href="./static/css/caregoryfilm.css">
<title>LiveCinema</title>
</head>
<body class="d-flex flex-column">
<header class="sticky-top">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand d-flex align-items-center">
<img src="./static/img/logo_livecinema.png"
class="d-inline-block align-text-top me-4 d-none d-sm-block">
LiveCinema
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/">Главная</a>
</li>
<li class="nav-item">
<a class="nav-link" href="katalog.html">Каталог</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logIn.html">Регистрация</a>
</li>
<li class="nav-item">
<a class="nav-link" href="into.html">Вход</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-fill d-flex justify-content-center">
<div class="content d-flex w-100 flex-column justify-content-around mb-5">
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-5 mb-5">
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="img-fluid rounded-3">
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-heart" viewBox="0 0 16 16" id="heart-icons">
<path
d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-clock-history" viewBox="0 0 16 16" id="time-icons">
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z" />
<path d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z" />
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</div>
<!-- <div class="tooltip-content text-center w-50 d-inline-block text-truncate"
style="max-width: 300px;"> -->
<div class="tooltip-content text-center w-50">
<p>
Некая информация об этом фильме. Вы сможете узнать всю информацию чуть позже, когда будет в
процессе приготовления 3 лаба...
</p>
</div>
<!-- <div class="text-info d-flex flex-column">
<figcaption class="figure-caption text-center">Подпись к изображению выше.&nbsp; а это новая
строка
</figcaption>
</div> -->
<!-- <span class="category-name text-center mt-2">Драма</span> -->
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="rounded-3">
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-heart" viewBox="0 0 16 16" id="heart-icons">
<path
d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-clock-history" viewBox="0 0 16 16" id="time-icons">
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z" />
<path d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z" />
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</div>-
<!-- <span class="category-name text-center mt-2">Комедия</span> -->
<div class="tooltip-content text-center w-50">
<p>
Некая информация об этом фильме. Вы сможете узнать всю информацию чуть позже, когда будет в
процессе приготовления 3 лаба...
</p>
</div>
</div>
</div>
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-5">
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="rounded-3">
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-heart" viewBox="0 0 16 16" id="heart-icons">
<path
d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-clock-history" viewBox="0 0 16 16" id="time-icons">
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z" />
<path d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z" />
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</div>
<!-- <span class="category-name text-center mt-2">Драма</span> -->
<div class="tooltip-content text-center w-50">
<p>
Некая информация об этом фильме. Вы сможете узнать всю информацию чуть позже, когда будет в
процессе приготовления 3 лаба...
</p>
</div>
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="rounded-3">
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-heart" viewBox="0 0 16 16" id="heart-icons">
<path
d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-clock-history" viewBox="0 0 16 16" id="time-icons">
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z" />
<path d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z" />
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</div>
<!-- <span class="category-name text-center mt-2">Комедия</span> -->
<div class="tooltip-content text-center w-50">
<p>
Некая информация об этом фильме. Вы сможете узнать всю информацию чуть позже, когда будет в
процессе приготовления 3 лаба...
</p>
</div>
</div>
</div>
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-5">
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="rounded-3">
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-heart" viewBox="0 0 16 16" id="heart-icons">
<path
d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-clock-history" viewBox="0 0 16 16" id="time-icons">
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z" />
<path d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z" />
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</div>
<!-- <span class="category-name text-center mt-2">Драма</span> -->
<div class="tooltip-content text-center w-50">
<p>
Некая информация об этом фильме. Вы сможете узнать всю информацию чуть позже, когда будет в
процессе приготовления 3 лаба...
</p>
</div>
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="rounded-3">
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-heart" viewBox="0 0 16 16" id="heart-icons">
<path
d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-clock-history" viewBox="0 0 16 16" id="time-icons">
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022l-.074.997zm2.004.45a7.003 7.003 0 0 0-.985-.299l.219-.976c.383.086.76.2 1.126.342l-.36.933zm1.37.71a7.01 7.01 0 0 0-.439-.27l.493-.87a8.025 8.025 0 0 1 .979.654l-.615.789a6.996 6.996 0 0 0-.418-.302zm1.834 1.79a6.99 6.99 0 0 0-.653-.796l.724-.69c.27.285.52.59.747.91l-.818.576zm.744 1.352a7.08 7.08 0 0 0-.214-.468l.893-.45a7.976 7.976 0 0 1 .45 1.088l-.95.313a7.023 7.023 0 0 0-.179-.483zm.53 2.507a6.991 6.991 0 0 0-.1-1.025l.985-.17c.067.386.106.778.116 1.17l-1 .025zm-.131 1.538c.033-.17.06-.339.081-.51l.993.123a7.957 7.957 0 0 1-.23 1.155l-.964-.267c.046-.165.086-.332.12-.501zm-.952 2.379c.184-.29.346-.594.486-.908l.914.405c-.16.36-.345.706-.555 1.038l-.845-.535zm-.964 1.205c.122-.122.239-.248.35-.378l.758.653a8.073 8.073 0 0 1-.401.432l-.707-.707z" />
<path d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0v1z" />
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</div>
<!-- <span class="category-name text-center mt-2">Комедия</span> -->
<div class="tooltip-content text-center w-50">
<p>
Некая информация об этом фильме. Вы сможете узнать всю информацию чуть позже, когда будет в
процессе приготовления 3 лаба...
</p>
</div>
</div>
</div>
</div>
</main>
<footer class="container-fluid py-1">
<span>
&copy; 2023 LiveCinema Бакальская Е. Д.
</span>
</footer>
</body>
</html>

19
data.json Normal file
View File

@ -0,0 +1,19 @@
{
"posts": [
{
"id": 1,
"title": "json-server",
"author": "typicode"
}
],
"comments": [
{
"id": 1,
"body": "some comment",
"postId": 1
}
],
"profile": {
"name": "typicode"
}
}

View File

@ -43,12 +43,15 @@
<li class="nav-item">
<a class="nav-link" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-fill d-flex">
<main class="flex-fill d-flex justify-content-center">
<div class="page flex-fill d-flex flex-column" id="main-page">
<div class="row flex-fill">
<div class="col d-none d-md-flex flex-column justify-content-around align-items-center">
@ -101,11 +104,6 @@
</div>
</main>
<!-- <footer class="container-fluid py-1">
<span>
&copy; 2023 LiveCinema Бакальская Е. Д.
</span>
</footer> -->
</body>

View File

@ -42,7 +42,9 @@
<li class="nav-item">
<a class="nav-link" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
@ -70,7 +72,7 @@
</div>
<div class="mt-4 h-25 d-flex flex-column justify-content-center mb-4">
<button type="button" class="btn btn-light">Войти</button>
<a href="lk.html"><button type="button" class="btn btn-light">Войти</button></a>
</div>
</div>
</main>

View File

@ -7,7 +7,7 @@
<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/index.css">
<link rel="stylesheet" href="./static/css/base.css">
<link rel="stylesheet" href="./static/css/catalog.css">
<title>LiveCinema</title>
</head>
@ -43,7 +43,9 @@
<li class="nav-item">
<a class="nav-link active" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
@ -51,35 +53,43 @@
</header>
<main class="w-100 h-100 d-flex justify-content-center">
<main class="flex-fill d-flex justify-content-center">
<div class="content d-flex flex-column justify-content-around">
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-5">
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img1.webp" class="rounded-3">
<a class="nav-link active" href="categoryfilm.html"><img src="./static/img/img1.webp"
class="rounded-3"></a>
<span class="category-name text-center mt-2">Драма</span>
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img2.webp" class="rounded-3">
<a class="nav-link active" href="categoryfilm.html"><img src="./static/img/img2.webp"
class="rounded-3"></a>
<!-- <img src="./static/img/img2.webp" class="rounded-3"> -->
<span class="category-name text-center mt-2">Комедия</span>
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img3.webp" class="rounded-3">
<a class="nav-link active" href="categoryfilm.html"><img src="./static/img/img3.webp"
class="rounded-3"></a>
<span class="category-name text-center mt-2">Боевик</span>
</div>
</div>
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-0 mt-md-5">
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img4.webp" class="rounded-3">
<a class="nav-link active" href="categoryfilm.html"><img src="./static/img/img4.webp"
class="rounded-3">
</a>
<span class="category-name text-center mt-2">Триллер</span>
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0">
<img src="./static/img/img5.webp" class="rounded-3">
<a class="nav-link active" href="categoryfilm.html"><img src="./static/img/img5.webp"
class="rounded-3"></a>
<span class="category-name text-center mt-2">Фантастика</span>
</div>
<div class="category-card d-flex flex-column justify-content-center align-items-center">
<img src="./static/img/img6.webp" class="rounded-3">
<a class="nav-link active" href="categoryfilm.html"><img src="./static/img/img6.webp"
class="rounded-3"></a>
<span class="category-name text-center mt-2">Детектив</span>
</div>
</div>

157
lk.html Normal file
View File

@ -0,0 +1,157 @@
<!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">
<link rel="stylesheet" href="./static/css/lk.css">
<!-- <link rel="stylesheet" href="./static/css/lk2.css"> -->
<title>LiveCinema</title>
</head>
<body class="d-flex flex-column">
<header class="sticky-top">
<nav class="navbar navbar-expand-lg navbar-dark">
<div class="container-fluid">
<a class="navbar-brand d-flex align-items-center">
<img src="./static/img/logo_livecinema.png"
class="d-inline-block align-text-top me-4 d-none d-sm-block">
LiveCinema
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/">Главная</a>
</li>
<li class="nav-item">
<a class="nav-link" href="katalog.html">Каталог</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logIn.html">Регистрация</a>
</li>
<li class="nav-item">
<a class="nav-link" href="into.html">Вход</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-fill d-flex justify-content-center">
<div class="container-fluid d-flex flex-column justify-content-around">
<div class="title-category d-flex flex-row justify-content-around align-items-center mt-5">
<span class="text-center">
Избранное
</span>
</div>
<div class="card-container d-flex flex-column flex-md-row justify-content-around mt-3 mb-3">
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
</div>
<div class="card-container d-flex flex-column flex-md-row justify-content-around mt-3 mb-3">
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
</div>
<div class="title-category d-flex flex-row justify-content-around align-items-center mt-3 mb-3">
<span class="text-center">
Посмотреть позже
</span>
</div>
<div class="card-container d-flex flex-column flex-md-row justify-content-around mb-3 mt-3">
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
</div>
<div class="card-container d-flex flex-column flex-md-row justify-content-around mt-3 mb-5">
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
<div
class="card-image-no-wathing d-flex flex-column justify-content-center align-items-center mb-md-0 mb-3">
<img src="./static/fotos/11.jpeg" alt="" class="img-fluid rounded-5">
</div>
</div>
</div>
</main>
<footer class="container-fluid py-1">
<span>
&copy; 2023 LiveCinema Бакальская Е. Д.
</span>
</footer>
</body>
</html>

View File

@ -61,7 +61,9 @@
<li class="nav-item">
<a class="nav-link active" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>

4172
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,16 +1,26 @@
{
"name": "int-prog",
"version": "1 .0.0",
"main": "index.html",
"version": "1.0.0",
"type": "module",
"scripts": {
"start": "http-server -p 3000 ./",
"test": "echo \"Error: no test specified\" && exit 1 "
"vite": "vite",
"serve": "http-server -p 3000 ./dist/",
"build": "vite build",
"rest": "json-server --watch data.json -p 8081",
"dev": "npm-run-all --parallel rest vite",
"prod": "npm-run-all build --parallel serve rest"
},
"dependencies": {
"bootstrap": "5.2.1",
"@fortawesome/fontawesome-free": "6.2.0"
"bootstrap": "5.3.2",
"@fortawesome/fontawesome-free": "6.4.2"
},
"devDependencies": {
"http-server": "14.1 .1 "
"vite": "4.4.9",
"eslint": "8.50.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.28.1",
"http-server": "14.1.1",
"json-server": "0.17.4",
"npm-run-all": "4.1.5"
}
}

20
static/css/admin.css Normal file
View File

@ -0,0 +1,20 @@
main {
font-family: Candara;
background-image: linear-gradient(to bottom, #b69fe1, rgb(40, 34, 79));
color: white;
background-size: cover;
}
#items-table {
font-family: Candara;
font-size: 20px;
color: aliceblue;
}
@media screen and (max-width: 576px) {
#items-table {
font-size: min(10vw, 25px);
}
}

View File

@ -25,7 +25,6 @@ header,
footer {
font-family: Candara;
background-image: linear-gradient(to bottom, #3C2C72, rgb(91, 79, 161));
/* background-color: #3C2C72; */
color: white;
}

View File

@ -0,0 +1,39 @@
main {
background-color: rgba(0, 0, 0, 0.6);
background-image: url("../fotos/films.jpg");
background-blend-mode: multiply;
background-size: cover;
background-position: center;
background-repeat: repeat-y;
color: #ffffff;
}
.content {
width: 75%;
}
@media screen and (max-width: 576px) {
.content {
width: 100%;
}
}
.category-name {
color: white;
}
#heart-icons,
#time-icons {
cursor: pointer;
transition: 0.7s;
}
#heart-icons:hover {
transform: scale(1.5);
fill: rgb(238, 62, 62);
}
#time-icons:hover {
transform: scale(1.5);
fill: rgb(242, 194, 64);
}

View File

@ -22,9 +22,16 @@ p {
width: 300px;
height: 50px;
font-size: 25px;
transition: 0.3s;
transition: 0.9s;
}
.btn:hover {
transform: scale(1.1);
}
@media screen and (max-width: 576px) {
.p {
font-size: min(10vw, 36px);
}
}

18
static/css/lk.css Normal file
View File

@ -0,0 +1,18 @@
main {
font-family: Candara;
background-image: linear-gradient(to bottom, #806f9f, rgb(21, 16, 54));
/* background-image: url("../fotos/11.jpeg"); */
color: white;
background-size: cover;
}
.title-category {
font-size: 30px;
}
@media screen and (max-width: 576px) {
.title-category {
font-size: min(10vw, 30px);
}
}

7
static/css/lk2.css Normal file
View File

@ -0,0 +1,7 @@
.main {
color: beige;
font-size: 30px;
font-family: Candara;
background-image: linear-gradient(to bottom, #b69fe1, rgb(40, 34, 79));
background-image: url("../fotos/11.jpeg");
}

View File

@ -1,18 +0,0 @@
#main-page {
background-image: url("../fotos/films.jpg");
background-color: rgba(0, 0, 0, 0.5);
background-blend-mode: multiply;
background-repeat: repeat-y;
background-position: center;
background-size: cover;
}
/*
*{
} */
.container-films {
font-size: 35px;
color: white;
}

View File

@ -8,9 +8,9 @@ main {
color: #ffffff;
}
.container {
/* .container {
width: 100%;
}
} */
.span-row {
font-size: 30px;

View File

@ -42,6 +42,9 @@
<li class="nav-item">
<a class="nav-link active" href="subscribe.html">Подписка</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin.html">Админка</a>
</li>
</ul>
</div>
</div>

View File

@ -1,19 +1,26 @@
{
"name": "vscode-eslint-example",
"name": "int-prog",
"version": "1.0.0",
"description": "",
"main": "app.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"vite": "vite",
"serve": "http-server -p 3000 ./dist/",
"build": "vite build",
"rest": "json-server --watch data.json -p 8081",
"dev": "npm-run-all --parallel rest vite",
"prod": "npm-run-all build --parallel serve rest"
},
"dependencies": {
"bootstrap": "5.3.2",
"@fortawesome/fontawesome-free": "6.4.2"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-react": "^7.33.2"
"vite": "4.4.9",
"eslint": "8.50.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.28.1",
"http-server": "14.1.1",
"json-server": "0.17.4",
"npm-run-all": "4.1.5"
}
}
}