116 lines
6.5 KiB
HTML
116 lines
6.5 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>MainPage</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
<!-- Bootstrap CSS -->
|
||
<link rel="stylesheet" href="main.css">
|
||
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css" />
|
||
<!-- Bootstrap JS -->
|
||
<script defer src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||
</head>
|
||
<body class="bg-image overflow-visible pageBackground">
|
||
<header class>
|
||
<!--Шапка-->
|
||
<nav class="navbar navbar-expand-lg navbar-light navbar-style back">
|
||
<div class="container-fluid">
|
||
<a class="navbar-brand" href="index.html" >
|
||
<img src="img/Label.jpg" alt="Logo" height="150" class="align-text-top">
|
||
</a>
|
||
<button class="navbar-toggler " type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||
<img src="img/TogglerIcon.jpg" alt="Toggler" height="40">
|
||
</button>
|
||
<div class="collapse navbar-collapse " id="navbarSupportedContent">
|
||
<ul class="navbar-nav">
|
||
<li class="nav-item ">
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold Navbar" href="index.html" >Главная</a>
|
||
</li>
|
||
<li class="nav-item ">
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold Navbar" href="page2.html" >Адреса</a>
|
||
</li>
|
||
<li class="nav-item ">
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold Navbar" href="page3.html" >Прейскурант</a>
|
||
</li>
|
||
<li class="nav-item " >
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold Navbar" href="page4.html" >Отзывы</a>
|
||
</li>
|
||
<li class="nav-item " >
|
||
<a class="nav-link me-3 ms-3 fs-2 fw-bold Navbar" href="page5.html" >Галерея</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
</header>
|
||
<!--Галерея-->
|
||
<div class="container mx-auto my-5 p-2 rounded-8 fw-bold" style="width: 70%; min-width: 320px ;height: fit-content; min-height: 80%; background-color: rgba(155,155,155,0.8); border: 7px solid #424242">
|
||
<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/1.png" style=" background-image: url('img/1.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/2.png" style=" background-image: url('img/2.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/3.png" style=" background-image: url('img/3.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/4.png" style=" background-image: url('img/4.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/5.png" style=" background-image: url('img/5.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>
|
||
<footer class="footer-style">
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-sm text-center text-sm-start text-light fw-bold fs-6">
|
||
Контакты: <br>
|
||
8-800-535-3535 <br>
|
||
avtomoyka73@mail.ru<br>
|
||
<f >Авторское право <f type="button" data-bs-toggle="modal" data-bs-target="#Admin">©</f> 2020 Нияз Юнусов. Все права защищены.</f>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<!--Модальное окно вход-->
|
||
<div class="modal fade" id="Admin" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title" id="LogInLabel">Вход для админа</h5>
|
||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<form>
|
||
<div class="mb-3">
|
||
<label for="passwordLogIn" class="col-form-label">Пароль</label>
|
||
<input type="password" class="form-control" id="passwordLogIn">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-primary">Войти</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html> |