Pibd-21_Ievlewa_M.D._Intern.../about.html
2023-12-03 18:52:09 +03:00

115 lines
5.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.cdnfonts.com/css/correction-tape" rel="stylesheet">
<title>About</title>
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="./bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="./style.css">
<script>
function getRandomVideo() {
var videos = [
"videos/mainVideo1.mp4",
"videos/mainVideo2.mp4",
"videos/mainVideo3.mp4",
"videos/mainVideo4.mp4"
];
var randomIndex = Math.floor(Math.random() * videos.length);
var randomVideo = videos[randomIndex];
var videoElement = document.getElementById("video");
videoElement.src = randomVideo;
}
</script>
<script>
function toggleMenu() {
var menuWrapper = document.getElementById("menu-wrapper");
menuWrapper.classList.toggle("open");
}
</script>
</head>
<body class="h-100 d-flex flex-column">
<div id="menu-wrapper">
<div id="menu">
<ul>
<li><a href="/">Главная</a></li>
<li><a href="./page2(cinema).html">Кино</a></li>
<li><a href="./page2(concerts).html">Концерты</a></li>
<li><a href="./page2(theatre).html">Театр</a></li>
<li><a href="./myTickets.html">Мои билеты</a></li>
<!-- <li><a href="./about.html">О сайте</a></li> -->
</ul>
</div>
</div>
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<div class="container-fluid">
<!-- <p id="toggle-menu" onclick="toggleMenu()">Кликни здесь для открытия/закрытия меню</p> -->
<a id="toggle-menu" onclick="toggleMenu()">
<h1>TicketsBook</h1>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
<div class="navbar-nav">
<a class="nav-link" href="./signingIn.html">вход/регистрация</a>
<a class="nav-link" href="./lkAdmin.html">админ</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid p-2">
<div class="row">
<main class="center">
<div id="video-container">
<video id="video" class="w-100" autoplay muted loop></video>
<div class="text-button-overlay">
<div class="text-overlay">
TicketsBook
</div>
<div class="underText-overlay-about">
TicketsBook - Это сайт для покупки билетов на разнообразные мероприятия, такие как концерты, кино и театры.
</div>
<div class="underText-overlay-about-orange">
Выберите категорию ниже:
</div>
<div class="button-row">
<button onclick="location.href='./page2(concerts).html'">Билеты на концерты -></button>
</div>
<div class="button-row">
<button onclick="location.href='./page2(cinema).html'">Билеты в кино -></button>
</div>
<div class="button-row">
<button onclick="location.href='./page2(theatre).html'">Билеты в театр -></button>
</div>
</div>
</div>
<script>
window.addEventListener('DOMContentLoaded', (event) => { getRandomVideo(); });
window.addEventListener('resize', (event) => { setOverlayPosition(); });
function setOverlayPosition() {
var videoElement = document.getElementById("video");
var textOverlayElement = document.getElementById("text-overlay");
textOverlayElement.style.top = (videoElement.offsetHeight / 2 - textOverlayElement.offsetHeight / 2) + "px";
textOverlayElement.style.left = (videoElement.offsetWidth / 2 - textOverlayElement.offsetWidth / 2) + "px";
}
</script>
</main>
</div>
</main>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
Иевлева Милана, 2023
</footer>
</body>
</html>