Internet_Programmirovanie_N.../Lab3/second.html
2023-12-15 09:18:21 +03:00

92 lines
6.5 KiB
HTML
Raw Permalink 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.

<!DOCTYPE html>
<html lang="ru" class="h-100">
<head>
<meta charset="utf-8">
<title>Отзывы</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script 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/@fortawesome/fontawesome-free/css/all.min.css"
rel="stylesheet" />
<link rel="stylesheet" href="styles/style.css">
</head>
<body class="d-flex flex-column h-100">
<header class>
<nav class="navbar navbar-expand-md navbar mb-1">
<div class="container">
<a class="navbar-brand text-" href="index.html">
<img src="img/logo_header.png" alt="Мой логотип" width="150" height="36" >
</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" style ="background-color: white">
<span style = "color: white" class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse align--center" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a style = "font-size:20px" class="nav-link ms-2" href="second.html">Фотогалерея</a>
</li>
<li class="nav-item">
<a style = "font-size:20px" class="nav-link ms-2" href="third.html">Контакты</a>
</li>
<li class="nav-item">
<a style = "font-size:20px" class="nav-link ms-2" href="fourth.html">Прейскурант</a>
</li>
<li class="nav-item">
<a style = "font-size:20px" class="nav-link ms-2" href="fifth.html">Отзывы</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="flex-shrink-0" >
<div class="container mb-4" >
<div class="row">
<div class="col-md-20">
<div class="p-2">
<div class="container mx-auto my-5 p-2 rounded fw-bold" style="width: 90%; min-width: 320px ;height: fit-content; min-height: 80%; background-color: rgb(170, 165, 165);">
<div class="row row-cols-1 row-cols-lg-2 row-cols-xxl-3 pb-3 text-center">
<button class="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="img/image3.jpg" style=" background-image: url('img/image1.jpg'); height: 200px; width: 300px"></button>
<button class="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="img/image4.jpg" style=" background-image: url('img/image2.jpg'); height: 200px; width: 300px"></button>
<button class="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="img/image5.jpg" style=" background-image: url('img/image5.jpg'); height: 200px; width: 300px"></button>
<button class="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="img/image3.jpg" style=" background-image: url('img/image3.jpg'); height: 200px; width: 300px"></button>
<button class="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="img/image4.jpg" style=" background-image: url('img/image4.jpg'); height: 200px; width: 300px"></button>
<button class="btn col-xxl-4 col-lg-6 col-12 mx-auto my-2 my-sm-4 bg-image rounded-8" data-bs-toggle="modal" data-bs-target="#exampleModal" data-img="img/image5.jpg" style=" background-image: url('img/image5.jpg'); height: 200px; width: 300px"></button>
<button onclick="file.click()" type="button" class="btn btn-dark col-xxl-4 col-lg-6 col-12 mx-auto my-4 rounded-8 fw-bold fs-1" style="height: 200px; width: 300px">
+
</button>
<input id="file" type="file" hidden />
</div>
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel">
<div class="modal-dialog modal-dialog-centered modal-fullscreen mx-auto " style="height: fit-content; width: 80%">
<div class="modal-content" style="height: fit-content; width: 100%">
<div class="modal-body text-center">
<button type="button" class="btn-close position-absolute top-0 end-0" data-bs-dismiss="modal" aria-label="Закрыть"></button>
<img id="image" class="mx-auto" src="" alt="image" style="width: 100% ">
</div>
</div>
</div>
</div>
<script>
var exampleModal = document.getElementById('exampleModal')
exampleModal.addEventListener('show.bs.modal', function (event){
var button = event.relatedTarget
var recipient = button.getAttribute('data-img')
document.getElementById('image').setAttribute("src", recipient.toString())
});
</script>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-auto d-flex justify-content-center align-items-center" >
Все права защищены и принадлежат ИП Абубакаров Абубакар Абубакарович.
</footer>
</body>
</html>