Implemented Logout and changed the styling of model
This commit is contained in:
parent
1ca0f3da15
commit
7843c055a6
@ -242,7 +242,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
Does't have an account? <a href="#" data-bs-target="#registerModal" data-bs-toggle="modal" data-bs-dismiss="modal">Register now!</a>
|
<div>Does't have an account? <a href="#" data-bs-target="#registerModal" data-bs-toggle="modal" data-bs-dismiss="modal">Register now!</a></div>
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||||||
<button type="submit" class="btn btn-primary">Log In</button>
|
<button type="submit" class="btn btn-primary">Log In</button>
|
||||||
</div>
|
</div>
|
||||||
@ -286,7 +286,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
Already have an account? <a href="#" data-bs-target="#logInModal" data-bs-toggle="modal" data-bs-dismiss="modal">LogIn here!</a>
|
Already have an account? <a href="#" data-bs-target="#logInModal" data-bs-toggle="modal" data-bs-dismiss="modal">Log In here!</a>
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
||||||
<button type="submit" class="btn btn-primary">Register</button>
|
<button type="submit" class="btn btn-primary">Register</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
8
php/logout.php
Normal file
8
php/logout.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
session_unset();
|
||||||
|
session_destroy();
|
||||||
|
header("Location: ../index.php");
|
||||||
|
|
||||||
|
exit();
|
||||||
|
?>
|
||||||
@ -1,7 +1,9 @@
|
|||||||
<div class="shopping_headerNav">
|
<div class="shopping_headerNav">
|
||||||
<div class="col-xl-12" id="shopping_headerImg">
|
<div class="col-xl-12" id="shopping_headerImg">
|
||||||
<span id="span-shopping-username" > Username <?php echo $_SESSION['username']; ?></span>
|
<span id="span-shopping-username" > Username <?php echo $_SESSION['username']; ?></span>
|
||||||
<a class="btn btn-lg my-btn" type="button" id="btn-shopping-logout" href="../index.php"> LOGOUT</a>
|
<form action="../php/logout.php" method="post">
|
||||||
|
<button class="btn btn-lg my-btn" type="submit" id="btn-shopping-logout"> LOGOUT</button>
|
||||||
|
</form>
|
||||||
<img id="headerImg" src="../img/headerImg.jpg">
|
<img id="headerImg" src="../img/headerImg.jpg">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1,4 +1,7 @@
|
|||||||
#logInModal, #registerModal
|
#logInModal, #registerModal
|
||||||
|
.mb-3
|
||||||
|
width: 70%
|
||||||
|
margin: auto
|
||||||
.modal-body
|
.modal-body
|
||||||
.myrecaptcha
|
.myrecaptcha
|
||||||
div
|
div
|
||||||
@ -7,7 +10,18 @@
|
|||||||
color: OliveDrab
|
color: OliveDrab
|
||||||
text-align: center
|
text-align: center
|
||||||
.modal-footer
|
.modal-footer
|
||||||
|
div
|
||||||
|
margin: auto
|
||||||
a
|
a
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
margin-left: 5px
|
margin-left: 5px
|
||||||
margin-right: 10px
|
margin-right: 10px
|
||||||
|
|
||||||
|
@media (max-width: 483px)
|
||||||
|
#logInModal, #registerModal
|
||||||
|
.mb-3
|
||||||
|
width: 100%
|
||||||
|
.modal-footer
|
||||||
|
text-align: center
|
||||||
|
button
|
||||||
|
width: 100%;
|
||||||
@ -153,6 +153,11 @@ video {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#logInModal .mb-3, #registerModal .mb-3 {
|
||||||
|
width: 70%;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
#logInModal .modal-body .myrecaptcha div, #registerModal .modal-body .myrecaptcha div {
|
#logInModal .modal-body .myrecaptcha div, #registerModal .modal-body .myrecaptcha div {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
@ -162,12 +167,28 @@ video {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#logInModal .modal-footer div, #registerModal .modal-footer div {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
#logInModal .modal-footer a, #registerModal .modal-footer a {
|
#logInModal .modal-footer a, #registerModal .modal-footer a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 483px) {
|
||||||
|
#logInModal .mb-3, #registerModal .mb-3 {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#logInModal .modal-footer, #registerModal .modal-footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#logInModal .modal-footer button, #registerModal .modal-footer button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.video-container-bg {
|
.video-container-bg {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user