Merge remote-tracking branch 'origin/main'

This commit is contained in:
Artyom_Yashin 2023-11-07 14:05:31 +04:00
commit 73fdc92ab3
3 changed files with 276 additions and 276 deletions

View File

@ -1,213 +1,213 @@
<!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="bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="MBD/css/mdb.min.css" />
<!-- Bootstrap JS -->
<script defer src="bootstrap/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>
</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" style="height: 100px; width: 290px;">
<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>
<!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="bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="MBD/css/mdb.min.css" />
<!-- Bootstrap JS -->
<script defer src="bootstrap/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>
</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" style="height: 100px; width: 290px;">
<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>

View File

@ -1,65 +1,65 @@
.pageBackground{
background-image: url('img/MainBackGround.jpg');
background-attachment: fixed;
height: auto; min-height: 100vh
}
.navbar-style{
background-color: rgba(249,134,23,0.8);
border-bottom: 7px solid #7c2d00;
}
.footer-style{
background-color: rgba(249,134,23,0.8);
border-top: 7px solid #7c2d00;
}
.mainPageInf{
width: 70%;
min-width: 320px;
height: fit-content;
background-color: rgba(66,66,66,0.8);
padding:2%;
border-radius: 20px;
}
.modal-dialog-style{
height: fit-content !important;
width: 80% !important;
}
.PictureButton{
height: 200px;
width: 300px;
}
.purple{
background-color: #8c00e2 !important;
}
.light-grey{
background-color: #d9d9d9 !important;
}
.modalStyle{
background-color: #9b9b9b !important;
border: 7px solid #424242 !important
}
.formStyle{
background-color: rgba(155,155,155,0.8) !important;
border: 7px solid #424242 !important
}
.formSizeStyle{
width: 70% !important;
min-width: 320px!important;
}
.wfitcon{
width: fit-content !important;
}
.hfitcon{
height: fit-content !important;
}
.minH-500{
min-height: 500px !important;
}
.width-100{
width: 100% !important;
}
.height-300{
height: 300px !important;
}
.height-500{
height: 500px !important;
.pageBackground{
background-image: url('img/MainBackGround.jpg');
background-attachment: fixed;
height: auto; min-height: 100vh
}
.navbar-style{
background-color: rgba(249,134,23,0.8);
border-bottom: 7px solid #7c2d00;
}
.footer-style{
background-color: rgba(249,134,23,0.8);
border-top: 7px solid #7c2d00;
}
.mainPageInf{
width: 70%;
min-width: 320px;
height: fit-content;
background-color: rgba(66,66,66,0.8);
padding:2%;
border-radius: 20px;
}
.modal-dialog-style{
height: fit-content !important;
width: 80% !important;
}
.PictureButton{
height: 200px;
width: 300px;
}
.purple{
background-color: #8c00e2 !important;
}
.light-grey{
background-color: #d9d9d9 !important;
}
.modalStyle{
background-color: #9b9b9b !important;
border: 7px solid #424242 !important
}
.formStyle{
background-color: rgba(155,155,155,0.8) !important;
border: 7px solid #424242 !important
}
.formSizeStyle{
width: 70% !important;
min-width: 320px!important;
}
.wfitcon{
width: fit-content !important;
}
.hfitcon{
height: fit-content !important;
}
.minH-500{
min-height: 500px !important;
}
.width-100{
width: 100% !important;
}
.height-300{
height: 300px !important;
}
.height-500{
height: 500px !important;
}

Binary file not shown.