lab 4 create react?..

This commit is contained in:
ekallin 2023-11-23 22:21:00 +04:00
parent 07e51455ad
commit 618acc3710
133 changed files with 229 additions and 10688 deletions

20
.eslintrc.cjs Normal file
View File

@ -0,0 +1,20 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}

148
.gitignore vendored
View File

@ -1,147 +1,25 @@
# ---> Node
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
node_modules
dist
dist-ssr
*.local
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# ---> VisualStudioCode
# Editor directories and files
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
*.env
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
node_modules

15
.vscode/launch.json vendored
View File

@ -1,15 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

View File

@ -1,8 +0,0 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript"
]
}

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

View File

@ -1,161 +0,0 @@
<!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/admin.css" />
<title>Админка</title>
<link rel="shortcut icon" href="./static/images/favicon.svg" type="image/x-icon" />
</head>
<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">
<a class="navbar-brand d-flex align-items-center">
<img src="./static/images/logo-livecinema-small.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 active" href="index.html">Главная</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" 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 flex-column px-1 px-md-2">
<div class="control-group py-2">
<button id="movie-button-add" class="btn btn-light">
Добавить фильм (диалог)
</button>
</div>
<table class="table table-sm table-responsive table-bordered border-primary table-hover" id="table">
<div class="table">
<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>
<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>
<th scope="col" class="text-center">
<span>Действие</span>
</th>
</tr>
</thead>
<tbody id="movie-table-body">
<tr>
<td>1</td>
<td>Постучись в мою дверь</td>
<td>Драма</td>
<td>
Это какой-то очередной слезливый сериал про великую любовь и
Серкана Болата
</td>
<td>2:03</td>
<td>
<span class="d-flex justify-content-around">
<a id="movie-button-edit-1"><i class="bi bi-pen"></i></a>
<a id="movie-button-delete-1"><i class="bi bi-trash"></i></a>
</span>
</td>
</tr>
</tbody>
</div>
</table>
</main>
<div id="modal-movie" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog">
<form id="movie-form" class="needs-validation" novalidate>
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="movie-modal-title"></h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="text-center">
<img id="image-preview" src="./static/images/cover-placeholder160x230.png" class="rounded-2 img-fluid"
alt="placeholder" />
</div>
<input id="movie-id" type="number" hidden />
<div class="mb-2">
<label for="category" class="form-label">Жанр</label>
<select id="category" class="form-select" name="selected" required></select>
</div>
<div class="mb-2">
<label class="form-label" for="name">Название</label>
<input id="name" name="name" class="form-control" type="text" required />
</div>
<div class="mb-2">
<label class="form-label" for="description"> Описание </label>
<input id="description" name="description" class="form-control" type="text" required />
</div>
<div class="mb-2">
<label class="form-label" for="duration">
Продолжителность
</label>
<input id="duration" name="duration" class="form-control" type="text" required />
</div>
<div class="mb-2">
<label class="form-label" for="image">Изображение</label>
<input id="image" type="file" name="image" class="form-control" accept="image/*" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
Закрыть
</button>
<button type="submit" class="btn btn-primary">Сохранить</button>
</div>
</div>
</form>
</div>
</div>
<footer class="container-fluid py-1">
<span> &copy; 2023, Live Cinema. All rights reserved. </span>
</footer>
<script type="module" src="./static/js/admin.js">
import validation from "./static./js/validation.js";
document.addEventListener('DOMContentLoaded', () => {
validation();
});
</script>
</body>
</html>

View File

@ -1,168 +0,0 @@
<!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/caregoryfilm.css" />
<title>LiveCinema</title>
<link rel="shortcut icon" href="./static/images/favicon.svg" type="image/x-icon" />
</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/images/logo-livecinema-small.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" id="films">
<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" id="img1" />
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg width="16" height="16" class="bi bi-heart" id="icons"></svg>
<svg width="16" height="16" class="bi bi-clock-history" id="icons"></svg>
</div>
<div class="tooltip-content text-center w-50 d-flex justify-content-center align-items-center">
<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" />
<!-- <img onmouseover="imgText_Visible()" src="./static/img/img2.webp" class="rounded-3"> -->
<div class="icons w-50 d-flex justify-content-around mt-1 mb-1">
<svg width="16" height="16" class="bi bi-heart" id="icons"></svg>
<svg width="16" height="16" class="bi bi-clock-history" id="icons"></svg>
</div>
<!-- <span class="category-name text-center mt-2">Комедия</span> -->
<div class="tooltip-content text-center w-50 d-flex justify-content-center align-items-center">
<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 width="16" height="16" class="bi bi-heart" id="icons"></svg>
<svg width="16" height="16" class="bi bi-clock-history" id="icons"></svg>
</div>
<!-- <span class="category-name text-center mt-2">Драма</span> -->
<div class="tooltip-content text-center w-50 d-flex justify-content-center align-items-center">
<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 width="16" height="16" class="bi bi-heart" id="icons"></svg>
<svg width="16" height="16" class="bi bi-clock-history" id="icons"></svg>
</div>
<!-- <span class="category-name text-center mt-2">Комедия</span> -->
<div class="tooltip-content text-center w-50 d-flex justify-content-center align-items-center">
<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 width="16" height="16" class="bi bi-heart" id="icons"></svg>
<svg width="16" height="16" class="bi bi-clock-history" id="icons"></svg>
</div>
<!-- <span class="category-name text-center mt-2">Драма</span> -->
<div class="tooltip-content text-center w-50 d-flex justify-content-center align-items-center">
<p>
<!-- <span> -->
Некая информация об этом фильме. Вы сможете узнать всю
информацию чуть позже, когда будет в процессе приготовления 3
лаба...
<!-- </span> -->
</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 width="16" height="16" class="bi bi-heart" id="icons"></svg>
<svg width="16" height="16" class="bi bi-clock-history" id="icons"></svg>
</div>
<!-- <span class="category-name text-center mt-2">Комедия</span> -->
<div class="tooltip-content text-center w-50 d-flex justify-content-center align-items-center">
<p>
Некая информация об этом фильме. Вы сможете узнать всю
информацию чуть позже, когда будет в процессе приготовления 3
лаба...
</p>
</div>
</div>
</div>
</div>
</main>
<footer class="container-fluid py-1">
<span> &copy; 2023 LiveCinema Бакальская Е. Д. </span>
</footer>
<script type="module" src="./static/js/categoryfilm.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -1,159 +1,13 @@
<!DOCTYPE html>
<html lang="ru">
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<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/index.css" />
<title>Главная</title>
<link
rel="shortcut icon"
href="./static/images/favicon.svg"
type="image/x-icon"
/>
<title>Vite + React</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/images/logo-livecinema-small.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 active" href="index.html">Главная</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" 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 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"
>
<img
src="./static/images/barbie-smeetsya.jpg"
class="w-75 img-fluid rounded-5"
/>
<img
src="./static/images/barbie-i-monogo-kenov.webp"
class="w-75 img-fluid rounded-5"
/>
</div>
<div
class="promo-text-block col d-flex flex-column justify-content-around align-content-center"
>
<span class="text-center promo-top"> Кино месяца </span>
<span class="text-center promo-middle"> Barbie </span>
<span class="text-center promo-bottom">
Марго&nbsp;Роби и Райан&nbsp;Гослинг
</span>
</div>
<div
class="col d-none d-md-flex flex-column justify-content-around align-items-center"
>
<img
src="./static/images/barbie-v-zerkale.jpg"
class="w-75 img-fluid rounded-5"
/>
<img
src="./static/images/barbie-i-barbieland.jpg"
class="w-75 img-fluid rounded-5"
/>
</div>
</div>
<div id="carouselExample" class="carousel slide d-block d-md-none">
<div class="carousel-inner">
<div class="carousel-item active">
<img
src="./static/images/barbie-smeetsya.jpg"
class="d-block w-100"
/>
</div>
<div class="carousel-item active">
<img
src="./static/images/barbie-i-monogo-kenov.webp"
class="d-block w-100"
/>
</div>
<div class="carousel-item active">
<img
src="./static/images/barbie-v-zerkale.jpg"
class="d-block w-100"
/>
</div>
</div>
<button
class="carousel-control-prev"
type="button"
data-bs-target="#carouselExample"
data-bs-slide="prev"
>
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button
class="carousel-control-next"
type="button"
data-bs-target="#carouselExample"
data-bs-slide="next"
>
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</main>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>

145
into.html
View File

@ -1,145 +0,0 @@
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script
type="module"
src="./node_modules/bootstrap/dist/js/bootstrap.min.js"
></script>
<link
rel="stylesheet"
href="./node_modules/bootstrap/dist/css/bootstrap.min.css"
/>
<link
rel="./node_modules/@fortawesome/fontawesome-free/css/all.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="./static/css/base.css" />
<link rel="stylesheet" href="./static/css/into.css" />
<title>LiveCinema</title>
<link
rel="shortcut icon"
href="./static/images/favicon.svg"
type="image/x-icon"
/>
</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/images/logo-livecinema-small.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 active" href="into.html">Вход</a>
</li>
<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" id="main-page">
<div
class="container d-flex flex-column justify-content-around align-items-center"
>
<p
class="mt-4 d-flex flex-column align-items-center align-content-center"
>
Имя пользователя / электронная почта
</p>
<div class="mb-2 w-50">
<input
id="username"
class="form-control"
placeholder="Имя пользователя / Эл. Почта"
type="text"
required
/>
</div>
<p class="d-flex flex-column align-items-center">Пароль</p>
<div class="mb-2 w-50">
<input
id="password"
class="form-control"
placeholder="Пароль"
type="text"
required
/>
</div>
<div class="mt-4 h-25 d-flex flex-column justify-content-center mb-4">
<a href="lk.html"
><button type="button" class="btn btn-light">Войти</button></a
>
</div>
</div>
</main>
<!-- <main class="flex-fill d-flex" id="main-page">
<div class="container d-flex flex-column justify-content-around align-items-center h-100">
<div class="h-25 d-flex flex-column align-items-center justify-content-around w-100">
<p class="row d-flex flex-column align-items-center">
Имя пользователя / электронная почта
</p>
<div class="mb-2">
<input id="username" class="form-control" placeholder="Имя пользователя / Эл. Почта" type="text"
width="200" required>
</div>
</div>
<div class="h-25 d-flex flex-column align-items-center justify-content-around">
<p class="row d-flex flex-column align-items-center">
Пароль
</p>
<div class="mb-2">
<input id="password" class="form-control" placeholder="Пароль повторно" type="text" required>
</div>
</div>
</div>
</main> -->
<!-- <footer class="footer mt-auto justify-content-start align-items-end">
2023, Live Cinema. All rights reserved.
</footer> -->
<footer class="container-fluid py-1 sticky-bottom">
<span> &copy; 2023, Live Cinema. All rights reserved. </span>
</footer>
</body>
</html>

View File

@ -1,157 +0,0 @@
<!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" />
<title>Каталог</title>
<link rel="shortcut icon" href="./static/images/favicon.svg" type="image/x-icon" />
</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/images/logo-livecinema-small.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 active" 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" 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 justify-content-center">
<div class="content d-flex flex-column justify-content-around" id="content">
<div id="categories" class="d-flex flex-column justify-content-around">
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-5">
<a class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0"
href="/categoryfilm.html">
<img src="./static/images/cover-bez-pravil.webp" class="rounded-3 category-img" />
<span class="category-name text-center mt-2">Драма</span>
</a>
<a class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0"
href="/categoryfilm.html">
<img src="./static/images/cover-dva-holma.webp" class="rounded-3 category-img" />
<span class="category-name text-center mt-2">Боевик</span>
</a>
<a class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0"
href="/categoryfilm.html">
<img src="./static/images/cover-kiberderevnya.webp" class="rounded-3 category-img" />
<span class="category-name text-center mt-2">Триллер</span>
</a>
</div>
<div class="categories-row d-flex flex-column flex-md-row justify-content-around mt-5">
<a class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0"
href="/categoryfilm.html">
<img src="./static/images/cover-apgreyd.jpeg" class="rounded-3 category-img" />
<span class="category-name text-center mt-2">Ужасы</span>
</a>
<a class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0"
href="/categoryfilm.html">
<img src="./static/images/cover-57-sekund.jpeg" class="rounded-3 category-img" />
<span class="category-name text-center mt-2">Детектив</span>
</a>
<a class="category-card d-flex flex-column justify-content-center align-items-center mb-5 mb-md-0"
href="/categoryfilm.html">
<img src="./static/images/cover-cherniy-lotos.jpg" class="rounded-3 category-img" />
<span class="category-name text-center mt-2">Фантастика</span>
</a>
</div>
</div>
<div class="premiers-row d-flex justify-content-center my-5">
<div id="carouselExampleCaptions" class="carousel slide w-100">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active"
aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1"
aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2"
aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="./static/images/poster-posle-navsegda.webp" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>После навсегда</h5>
<p>
Хардин едет в Португалию, чтобы вернуть Тессу и утраченное
вдохновение. Финальная часть романтической саги
</p>
</div>
</div>
<div class="carousel-item">
<img src="./static/images/poster-posredniki.webp" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>Посредники</h5>
<p>
Мать в компании двух мошенников ищет приемную семью для
своего ребенка. Драма режиссера «Магазинных воришек»
</p>
</div>
</div>
<div class="carousel-item">
<img src="./static/images/poster-korolevskiy-korgi.webp" class="d-block w-100" alt="..." />
<div class="carousel-caption d-none d-md-block">
<h5>Королевский корги</h5>
<p>
Коротколапый любимец британской короны попадает в приют.
Мультфильм о собачках, где есть Елизавета II и Трамп
</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
</main>
<footer class="container-fluid py-1">
<span> &copy; 2023 LiveCinema Бакальская Е. Д. </span>
</footer>
</body>
<script type="module" src="./static/js/katalog.js"></script>
</html>

234
lk.html
View File

@ -1,234 +0,0 @@
<!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" />
<title>Профиль</title>
<link
rel="shortcut icon"
href="./static/images/favicon.svg"
type="image/x-icon"
/>
</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/images/logo-livecinema-small.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" 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 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

@ -1,129 +0,0 @@
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script
type="module"
src="./node_modules/bootstrap/dist/js/bootstrap.min.js"
></script>
<link
rel="stylesheet"
href="./node_modules/bootstrap/dist/css/bootstrap.min.css"
/>
<link
rel="./node_modules/@fortawesome/fontawesome-free/css/all.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="./static/css/base.css" />
<link rel="stylesheet" href="./static/css/logIn.css" />
<title>Вход</title>
<link
rel="shortcut icon"
href="./static/images/favicon.svg"
type="image/x-icon"
/>
</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/images/logo-livecinema-small.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 active" 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" 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" id="main-page">
<div
class="container d-flex flex-column justify-content-center align-items-center"
>
<p class="mt-4 d-flex flex-column align-items-center">
Имя пользователя / электронная почта
</p>
<div class="mb-4 w-50">
<input
id="username"
class="form-control"
placeholder="Имя пользователя / Эл. Почта"
type="text"
required
/>
</div>
<p class="d-flex flex-column align-items-center">Пароль</p>
<div class="mb-4 w-50">
<input
id="password"
class="form-control"
placeholder="Пароль"
type="text"
required
/>
</div>
<p class="d-flex flex-column align-items-center">Пароль повторно</p>
<div class="mb-4 w-50">
<input
id="passwordrepeat"
class="form-control"
placeholder="Пароль повторно"
type="text"
required
/>
</div>
<div class="mt-4 h-25 d-flex flex-column justify-content-center mb-4">
<button type="button" class="btn btn-light">
Зарегистрироваться
</button>
</div>
</div>
</main>
<footer class="container-fluid py-1">
<span> &copy; 2023, Live Cinema. All rights reserved. </span>
</footer>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

4716
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,26 @@
{
"name": "int-prog",
"version": "1.0.0",
"name": "pibd-21-bakalskaya-e-d-internet-programming-",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"vite": "vite --port 80 --host 0.0.0.0",
"serve": "http-server -p 3000 ./dist/",
"dev": "vite",
"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"
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"bootstrap": "5.3.2",
"bootstrap-icons": "1.11.1",
"@fortawesome/fontawesome-free": "6.4.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"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"
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@vitejs/plugin-react": "^4.2.0",
"eslint": "^8.53.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"vite": "^5.0.0"
}
}

1
public/vite.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

42
src/App.css Normal file
View File

@ -0,0 +1,42 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}

35
src/App.jsx Normal file
View File

@ -0,0 +1,35 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
function App() {
const [count, setCount] = useState(0)
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}
export default App

1
src/assets/react.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

68
src/index.css Normal file
View File

@ -0,0 +1,68 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

10
src/main.jsx Normal file
View File

@ -0,0 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)

View File

@ -1,19 +0,0 @@
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

@ -1,65 +0,0 @@
:root::-webkit-scrollbar {
display: none;
}
:root {
-ms-overflow-style: none;
scrollbar-width: none;
}
@font-face {
font-family: Candara;
src: url("../fonts/Candara/candara-light.ttf");
}
@font-face {
font-family: Carattere;
src: url("../fonts/Carattere/Carattere-Regular.ttf");
}
body {
height: 100vh;
}
header,
footer {
font-family: Candara;
background-image: linear-gradient(to bottom, #3C2C72, rgb(91, 79, 161));
color: white;
}
.navbar-brand {
color: #ffffff;
}
.navbar-brand:hover {
color: #ffffff;
}
.navbar-brand img {
height: 40px;
}
.nav-link {
color: white;
}
.nav-link:hover {
color: rgb(255, 144, 125);
}
a {
text-decoration: none;
color: black;
}
a:hover {
cursor: pointer;
color: black;
}
footer {
background-color: #3C2C72;
color: white;
height: var(--footer-height);
}

View File

@ -1,53 +0,0 @@
main {
background-color: rgba(0, 0, 0, 0.6);
background-image: url("../images/background-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);
}
#item-show {
background-image: url("../images/barbie-dumaet.jpg");
}
#icons {
direction: flex;
flex-direction: column;
justify-content: space-around;
}
.img-fluid {
height: 300px;
}

View File

@ -1,33 +0,0 @@
main {
background-image: url('../images/background-films.jpg');
background-color: rgba(0, 0, 0, 0.75);
background-blend-mode: multiply;
background-repeat: round;
}
.content {
width: 75%;
}
@media screen and (max-width: 576px) {
.content {
width: 100%;
}
}
.category-name {
color: white;
}
.category-card {
cursor: pointer;
transition: 0.3s;
}
.category-card:hover {
transform: scale(1.1);
}
.category-img {
height: 250px;
}

View File

@ -1,93 +0,0 @@
:root::-webkit-scrollbar {
display: none;
}
:root {
-ms-overflow-style: none;
scrollbar-width: none;
}
@font-face {
font-family: Candara;
src: url("../fonts/Candara/candara-light.ttf");
}
@font-face {
font-family: Carattere;
src: url("../fonts/Carattere/Carattere-Regular.ttf");
}
* {
font-family: Candara;
}
header,
footer {
background-color: #3C2C72;
color: white;
}
.navbar-brand {
color: #ffffff;
}
.navbar-brand:hover {
color: #ffffff;
}
.navbar-brand img {
height: 40px;
}
.nav-link {
color: white;
}
.nav-link:hover {
color: rgb(251, 158, 149);
}
a {
text-decoration: none;
color: black;
}
a:hover {
cursor: pointer;
color: black;
}
#main-page {
background-image: url("../images/barbie-v-mashine.png");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-color: rgba(0, 0, 0, 0.6);
background-blend-mode: multiply;
}
.promo-text-block {
color: white;
}
.promo-text-block .promo-top,
.promo-bottom {
font-size: 36px;
}
.promo-text-block .promo-middle {
font-family: Carattere;
font-size: 160px;
}
@media screen and (max-width: 576px) {
.promo-text-block .promo-top,
.promo-bottom {
font-size: min(10vw, 36px);
}
.promo-text-block .promo-middle {
font-size: min(20vw, 160px);
}
}

View File

@ -1,42 +0,0 @@
main {
background-color: rgba(0, 0, 0, 0.6);
background-blend-mode: difference;
}
body {
background-color: #D8BAFF;
background-image: url("../images/logo-livecinema.png");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-blend-mode: multiply;
color: white;
}
p {
font-size: 25px;
text-align: center;
}
.btn {
width: 300px;
height: 50px;
font-size: 25px;
transition: 0.9s;
}
.btn:hover {
transform: scale(1.1);
}
@media screen and (max-width: 576px) {
.p {
font-size: min(10vw, 36px);
}
.btn {
font-size: min(10vw, 25px);
width: 30vh;
}
}

View File

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

View File

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

View File

@ -1,44 +0,0 @@
main {
background-color: rgb(0, 0, 0);
background-image: url("../images/logo-livecinema-light.png");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
color: #ffffff;
}
.col {
opacity: 0.6;
}
p {
font-size: 25px;
text-align: center;
}
.btn {
width: 300px;
height: 50px;
font-size: 25px;
transition: 0.3s;
}
.btn:hover {
transform: scale(1.1);
}
@media screen and (max-width: 576px) {
p {
font-size: min(10vw, 25px);
}
.btn {
font-size: min(10vw, 18px);
width: 30vh;
}
}
/* .promo-text-block .promo-middle {
font-size: min(20vw, 160px);
} */

View File

@ -1,182 +0,0 @@
#mainSubscribe {
background-color: rgba(0, 0, 0, 0.6);
background-image: url("../images/background-films.jpg");
background-blend-mode: multiply;
background-size: cover;
background-position: center;
background-repeat: repeat-y;
color: #ffffff;
}
#mainSubscribe-2 {
background-image: linear-gradient(to bottom, rgb(55, 42, 82), rgb(0, 0, 0));
}
.span-row {
font-size: 30px;
text-decoration: underline;
}
@media screen and (max-width: 576px) {
.container {
width: 100%;
}
.btn,
.span-row {
font-size: min(10vw, 25px);
}
}
.btn {
width: 248px;
height: 50px;
font-size: 25px;
text-align: center;
cursor: pointer;
transition: 0.3s;
}
.btn:hover {
transform: scale(1.1);
}
#img-1,
#img-2,
#img-3 {
height: 320px;
width: 220px;
}
.btn {
position: relative;
}
.btn:after {
content: '';
position: absolute;
top: 50%;
left: 50%;
margin: -80px 0 0 -90px;
width: 180px;
height: 180px;
border-radius: 50%;
opacity: 0;
box-shadow: inset 0 0 0 35px rgba(255, 255, 255, 0.7);
display: none;
}
.btn.click:after {
animation: animate-click 0.6s ease-out forwards;
display: block;
}
@keyframes animate-click {
0% {
opacity: 1;
transform: scale3d(0.4, 0.4, 1);
}
60% {
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
opacity: 0.3;
}
80% {
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
opacity: 0.1;
}
100% {
opacity: 0;
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
transform: scale3d(1.2, 1.2, 1);
}
}
#text-subscribe {
height: 100%;
width: 100%;
font-family: url("/static/fonts/candara-light.ttf");
font-size: 65px;
}
/* .container {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.container span {
text-transform: uppercase;
}
.text-1 {
font-size: 90px;
color: #ffffff;
letter-spacing: 8px;
margin-bottom: 20px;
background: #000;
animation: text-animation 3s 1;
}
.text-2 {
font-size: 50px;
color: azure;
letter-spacing: 5px;
}
@keyframes text-animation {
0% {
color: #000;
margin-bottom: -40px;
}
30% {
letter-spacing: 30px;
margin-bottom: -40px;
}
80% {
letter-spacing: 8px;
margin-bottom: -40%;
}
} */
/* @import "bourbon";
span {
margin: 0;
padding: 0;
}
.orbs {
font-family: 'Raleway', sans-serif;
font-weight: 100;
display: block;
font-size: 128px;
span {
color: red;
display: inline-block;
text-align: center;
border-radius: 50%;
text-shadow: 0 0 20px orange, 1px 1px 20px orange, 2px 2px 20px orange, -1px -1px 20px orange, -2px -2px 20px orange;
position: absolute;
left: 50%;
&:first-child {
margin-left: -210px;
}
&:not(:first-child) {
margin-left: -35px;
}
}
} */

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 630 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 624 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 552 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Some files were not shown because too many files have changed in this diff Show More