216 lines
12 KiB
HTML
216 lines
12 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>Reviews</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
<link rel="stylesheet" href="./myStyle.css">
|
||
<!-- Bootstrap CSS -->
|
||
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css" >
|
||
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css_mdb/mdb.min.css" />
|
||
<!-- Bootstrap JS -->
|
||
<script defer src="./node_modules/bootstrap/dist/js/bootstrap.js"></script>
|
||
|
||
</head>
|
||
<body class="bg-image overflow-visible pageBackground">
|
||
<!--Шапка-->
|
||
<nav class="navbar navbar-expand-lg navbar-light navbar-style">
|
||
<div class="container-fluid">
|
||
<a class="navbar-brand btn btn-outline-dark" href="./index.html" >
|
||
<img src="./img/lable.png" alt="Logo" height="60" 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.png" 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" aria-current="page" href="./index.html">Главная</a>
|
||
</li>
|
||
<li class="nav-item ">
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold" href="./Galery.html" >Галерея</a>
|
||
</li>
|
||
<li class="nav-item " >
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold" href="./Courses.html">Курсы</a>
|
||
</li>
|
||
<li class="nav-item " >
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold" href="./Contacts.html" >Контакты</a>
|
||
</li>
|
||
<li class="nav-item " >
|
||
<a class="nav-link me-3 ms-3 active fs-3 fw-bold" aria-current="page" href="./Reviews.html" >Отзывы</a>
|
||
</li>
|
||
<li class="nav-item " >
|
||
<a class="nav-link me-3 ms-3 fs-4 fw-bold" href="./Admin.html" >Админ</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
<!--Шапка-->
|
||
<!--Отзывы-->
|
||
<div class="container mx-auto my-5 p-2 rounded-8 fw-bold formStyle formStyle height-500">
|
||
<div class="row row-cols-2 text-dark float-md-end mx-auto fs-5 fw-medium rounded-7 light-grey accauntPanel">
|
||
<div class="col col-8 text-center my-auto lh-1">
|
||
<a type="button" class="text-decoration-underline" data-bs-toggle="modal" data-bs-target="#LogIn">Войдите</a> в аккаунт или
|
||
<a type="button" class="text-decoration-underline" data-bs-toggle="modal" data-bs-target="#Register">зарегистрируйтесь</a>
|
||
</div>
|
||
<div class="col col-4 mx-auto my-auto">
|
||
<img src="img/AccountIcon.png" alt="Icon" width="80">
|
||
</div>
|
||
</div>
|
||
<div class="text-md-start text-center">
|
||
<button type="button" id="reviewBtn" class="btn rounded-pill btn-lg text-light my-2 mt-md-4 mb-md-5 ms-sm-3 fw-normal fs-6 purple" data-bs-toggle="modal" data-bs-target="#review">
|
||
Написать отзыв
|
||
</button>
|
||
<button id="reset" class="btn rounded-pill">Сброс</button>
|
||
<div class="container overflow-y-auto height-300" >
|
||
<div class="text-start p-2 rounded-7 my-2 light-grey hfitcon wfitcon">
|
||
<h5 class="fw-normal text-dark">Михаил</h5>
|
||
<h6>Разбил аппарат, рекомендую</h6>
|
||
</div>
|
||
<div class="text-start p-2 rounded-7 my-2 light-grey hfitcon wfitcon">
|
||
<h5 class="fw-normal text-dark">Леша</h5>
|
||
<h6>Марк 2 лучше</h6>
|
||
</div>
|
||
<div class="text-start p-2 rounded-7 my-2 light-grey hfitcon wfitcon">
|
||
<h5 class="fw-normal text-dark">Женя</h5>
|
||
<h6>Приехал с сыном на выходных покататься, а заодно и новому научиться,
|
||
все таки дело полезное. Отлично провели время, инструктор объяснил что и как
|
||
теперь я действительно чувствую себя увереннее за рулем</h6>
|
||
</div>
|
||
<div class="text-start p-2 rounded-7 my-2 light-grey hfitcon wfitcon">
|
||
<h5 class="fw-normal text-dark">Женя</h5>
|
||
<h6>Приехал с сыном на выходных покататься, а заодно и новому научиться,
|
||
все таки дело полезное. Отлично провели время, инструктор объяснил что и как
|
||
теперь я действительно чувствую себя увереннее за рулем</h6>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--Отзывы-->
|
||
<!--Модальное окно отзыв-->
|
||
<div class="modal fade" id="review" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered">
|
||
<div class="modal-content rounded-8 modalStyle">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title fw-bold fs-3 text-secondary-emphasis" id="reviewLabel">Новый отзыв</h5>
|
||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="h3 text-danger" id="logged"></div>
|
||
<form id="reviews-body">
|
||
<div class="mb-3">
|
||
<label for="reviewText" class="col-form-label fw-bold fw-5 text-secondary-emphasis">Текст отзыва:</label>
|
||
<textarea class="form-control rounded-8 light-grey" rows="5" id="reviewText"></textarea>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer" id="reviews-footer">
|
||
<button class="btn rounded-pill btn-sm text-light fw-normal fs-6 purple" data-bs-toggle="modal">
|
||
Отправить
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--Модальное окно вход-->
|
||
<div class="modal fade" id="LogIn" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered">
|
||
<div class="modal-content rounded-8 modalStyle">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title fw-bold fs-3 text-secondary-emphasis" 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="nameLogIn" class="col-form-label fw-bold fw-5 text-secondary-emphasis">Имя:</label>
|
||
<input type="text" class="form-control rounded-8 light-grey" id="nameLogIn">
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="passwordLogIn" class="col-form-label fw-bold fw-5 text-secondary-emphasis">Пароль:</label>
|
||
<input type="password" class="form-control rounded-8 light-grey" id="passwordLogIn">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button class="btn rounded-pill btn-sm text-light fw-normal fs-6 purple" id="signIn" data-bs-toggle="modal">
|
||
Вход
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--Модальное окно регистрация-->
|
||
<div class="modal fade" id="Register" tabindex="-1" aria-labelledby="RegisterLabel" aria-hidden="true">
|
||
<div class="modal-dialog modal-dialog-centered">
|
||
<div class="modal-content rounded-8 modalStyle">
|
||
<div class="modal-header">
|
||
<h5 class="modal-title fw-bold fs-3 text-secondary-emphasis" id="exampleModalLabel">Регистрация</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="nameRegister" class="col-form-label fw-bold fw-5 text-secondary-emphasis">Имя:</label>
|
||
<input type="text" class="form-control rounded-8 light-grey" id="nameRegister">
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="mailRegister" class="col-form-label fw-bold fw-5 text-secondary-emphasis">Адрес электронной почты:</label>
|
||
<input type="text" class="form-control rounded-8 light-grey" id="mailRegister">
|
||
</div>
|
||
<div class="mb-3">
|
||
<label for="passwordRegister" class="col-form-label fw-bold fw-5 text-secondary-emphasis">Пароль:</label>
|
||
<input type="password" class="form-control rounded-8 light-grey" id="passwordRegister">
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button class="btn rounded-pill btn-sm text-light fw-normal fs-6 purple" data-bs-toggle="modal" data-bs-target="#signUp">
|
||
Регистрация
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--Подвал-->
|
||
<footer class="position-sticky top-100 footer-style">
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-sm text-center text-sm-start text-light fw-bold fs-5">
|
||
Техническая поддержка <br>
|
||
8-800-555-3535 <br>
|
||
valitzhoska73@gmail.com
|
||
</div>
|
||
<div class="col-sm text-center text-sm-end text-light fw-bold fs-5">
|
||
Работаем без выходных с 8:00 до 21:30
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
<!--Подвал-->
|
||
<script>
|
||
var logged = false
|
||
var buttonReset = document.getElementById('reset')
|
||
buttonReset.addEventListener('click', function (){
|
||
logged = false;
|
||
});
|
||
var buttonSignIn = document.getElementById('signIn')
|
||
buttonSignIn.addEventListener('click', function () {
|
||
logged = true
|
||
});
|
||
var buttonReview = document.getElementById('reviewBtn')
|
||
buttonReview.addEventListener('click', function (){
|
||
if(!logged) {
|
||
document.getElementById('logged').innerText = "Войдите в аккаунт"
|
||
document.getElementById('reviews-footer').style.display = 'none'
|
||
document.getElementById('reviews-body').style.display = 'none'
|
||
} else {
|
||
document.getElementById('logged').innerText = ""
|
||
document.getElementById('reviews-footer').style.display = 'block'
|
||
document.getElementById('reviews-body').style.display = 'block'
|
||
}
|
||
})
|
||
</script>
|
||
</body>
|
||
</html> |