style: navbar changes with pop up
This commit is contained in:
parent
7cfebc7e97
commit
19c5913e08
@ -1,3 +1,4 @@
|
|||||||
|
/* Top Bar */
|
||||||
.top-bar {
|
.top-bar {
|
||||||
background-color: #6a4607;
|
background-color: #6a4607;
|
||||||
height: 2.5rem;
|
height: 2.5rem;
|
||||||
@ -24,7 +25,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Navbar */
|
||||||
.custom-navbar {
|
.custom-navbar {
|
||||||
background-color: #a15914;
|
background-color: #a15914;
|
||||||
height: 2.7rem;
|
height: 2.7rem;
|
||||||
@ -53,8 +54,6 @@
|
|||||||
background: none;
|
background: none;
|
||||||
border-left: 1px solid white;
|
border-left: 1px solid white;
|
||||||
border-right: 1px solid white;
|
border-right: 1px solid white;
|
||||||
border-top: none;
|
|
||||||
border-bottom: none;
|
|
||||||
height: 2.7rem;
|
height: 2.7rem;
|
||||||
padding: 0 0.5rem;
|
padding: 0 0.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -69,7 +68,6 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.hamburger {
|
.hamburger {
|
||||||
font-size: 1.7rem;
|
font-size: 1.7rem;
|
||||||
background: none;
|
background: none;
|
||||||
@ -78,6 +76,7 @@
|
|||||||
padding: 0.3rem 0.75rem;
|
padding: 0.3rem 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Mobile Navbar */
|
||||||
@media (max-width: 800px) {
|
@media (max-width: 800px) {
|
||||||
.mobile-menu-container {
|
.mobile-menu-container {
|
||||||
background-color: #c17a30;
|
background-color: #c17a30;
|
||||||
@ -96,11 +95,444 @@
|
|||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu,
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-item {
|
.dropdown-item {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.wallet-modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1050;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-modal-box {
|
||||||
|
background: #fff;
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 800px;
|
||||||
|
max-width: 90%;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-modal-box h5 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #a15914;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-table td {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
padding: 8px 12px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wallet-modal-box .cancel-btn {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.result-modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1050;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-modal-box {
|
||||||
|
background: #fff;
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 800px;
|
||||||
|
height: 500px;
|
||||||
|
max-width: 90%;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
justify-content: space-between; /* Push content to top and buttons to bottom */
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-modal-box h5 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #a15914;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-modal-box .btn-group {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 10px; /* spacing between buttons */
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-modal-box .cancel-btn,
|
||||||
|
.result-modal-box .erase-btn {
|
||||||
|
flex: 1;
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-modal-box .cancel-btn {
|
||||||
|
background-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-modal-box .erase-btn {
|
||||||
|
background-color: #f0ad4e;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* message section */
|
||||||
|
|
||||||
|
.messages-modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1050;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages-modal-box {
|
||||||
|
background: #fff;
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 800px;
|
||||||
|
height: 500px;
|
||||||
|
max-width: 90%;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages-modal-box h5 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #a15914;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages-list {
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages-list li {
|
||||||
|
padding: 8px 10px;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages-modal-box .cancel-btn {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.messages-modal-box .btn-cancel {
|
||||||
|
background-color: #c0392b !important; /* deep red */
|
||||||
|
color: #fff !important;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 280px;
|
||||||
|
}
|
||||||
|
/* viewlog section */
|
||||||
|
|
||||||
|
.viewlog-modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1050;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewlog-modal-box {
|
||||||
|
background: #fff;
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 800px;
|
||||||
|
height: 500px;
|
||||||
|
max-width: 90%;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewlog-modal-box h5 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #a15914;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewlog-table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin-top: 10px;
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewlog-table th,
|
||||||
|
.viewlog-table td {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
padding: 8px 12px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewlog-modal-box .cancel-btn {
|
||||||
|
margin-top: auto;
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border-color:lavenderblush;
|
||||||
|
background-color: #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1050;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-box {
|
||||||
|
background: #fff;
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 800px;
|
||||||
|
max-width: 90%;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-box h5 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
color: #a15914;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-option {
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: #f0f0f0;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-option:hover {
|
||||||
|
background: #d8d8d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.deposit-modal-overlay,
|
||||||
|
.withdraw-modal-overlay {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1050;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deposit-modal-box,
|
||||||
|
.withdraw-modal-box {
|
||||||
|
background: #fff;
|
||||||
|
color: black;
|
||||||
|
padding: 30px;
|
||||||
|
border-radius: 6px;
|
||||||
|
width: 800px;
|
||||||
|
max-width: 90%;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Titles */
|
||||||
|
.deposit-modal-title {
|
||||||
|
color: #2980b9;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.withdraw-modal-title {
|
||||||
|
color: #c0392b;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form Input Fields */
|
||||||
|
.deposit-input,
|
||||||
|
.withdraw-input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout for Input + Numpad */
|
||||||
|
.deposit-modal-content,
|
||||||
|
.withdraw-modal-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deposit-form,
|
||||||
|
.withdraw-form,
|
||||||
|
.deposit-numpad-section,
|
||||||
|
.withdraw-numpad {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Numpad */
|
||||||
|
.deposit-numpad,
|
||||||
|
.withdraw-numpad {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row button {
|
||||||
|
flex: 1 1 30%;
|
||||||
|
margin: 0 5px;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
background-color: white;
|
||||||
|
border: 1px solid orange;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row button:hover {
|
||||||
|
background-color: #ffe4c4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-btn {
|
||||||
|
background-color: #f9d3b4 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Balance Container */
|
||||||
|
.deposit-balance-container,
|
||||||
|
.withdraw-balance-container {
|
||||||
|
width: 100%;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
padding: 12px 15px;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deposit-balance,
|
||||||
|
.withdraw-balance {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c3e50;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer Buttons */
|
||||||
|
.deposit-footer,
|
||||||
|
.withdraw-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deposit-cancel-btn,
|
||||||
|
.withdraw-cancel-btn,
|
||||||
|
.deposit-print-btn,
|
||||||
|
.withdraw-print-btn {
|
||||||
|
width: 48%;
|
||||||
|
padding: 12px;
|
||||||
|
font-size: 16px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deposit-cancel-btn {
|
||||||
|
background-color: #bdc3c7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deposit-print-btn {
|
||||||
|
background-color: #2980b9;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.withdraw-cancel-btn {
|
||||||
|
background-color: #ecf0f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.withdraw-print-btn {
|
||||||
|
background-color: #c0392b;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|||||||
@ -12,92 +12,125 @@
|
|||||||
<!-- Main Navbar -->
|
<!-- Main Navbar -->
|
||||||
<nav class="navbar custom-navbar px-0">
|
<nav class="navbar custom-navbar px-0">
|
||||||
<div class="container-fluid p-0 d-flex align-items-center">
|
<div class="container-fluid p-0 d-flex align-items-center">
|
||||||
|
<button class="hamburger d-lg-none ms-auto me-3" (click)="toggleMenu()">☰</button>
|
||||||
<!-- Hamburger Toggle (Visible only ≤ 800px) -->
|
|
||||||
<button class="hamburger d-lg-none ms-auto me-3" (click)="toggleMenu()">
|
|
||||||
☰
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<!-- Desktop View -->
|
<!-- Desktop View -->
|
||||||
<div class="d-none d-lg-flex justify-content-between align-items-center w-100">
|
<div class="d-none d-lg-flex justify-content-between align-items-center w-100">
|
||||||
|
|
||||||
<!-- Dropdown Section -->
|
|
||||||
<div class="d-flex" style="width: 50vw;">
|
<div class="d-flex" style="width: 50vw;">
|
||||||
<div class="dropdown w-50">
|
<button class="nav-dropdown w-50 text-start ps-3" (click)="openVenueModal()">Venue | {{ selectedVenue }}</button>
|
||||||
<button class="nav-dropdown w-100 text-start ps-3" data-bs-toggle="dropdown">
|
<button class="nav-dropdown w-50 text-start ps-3" (click)="openRaceModal()">Race No. | {{ selectedRace }}</button>
|
||||||
Venue | MYS
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu w-100">
|
|
||||||
<li><a class="dropdown-item" href="#">MYS</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">BLR</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">CHN</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dropdown w-50">
|
|
||||||
<button class="nav-dropdown w-100 text-start ps-3" data-bs-toggle="dropdown">
|
|
||||||
Race No. | 1
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu w-100">
|
|
||||||
<li><a class="dropdown-item" href="#">1</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">2</a></li>
|
|
||||||
<li><a class="dropdown-item" href="#">3</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Buttons Section -->
|
|
||||||
<div class="d-flex justify-content-end" style="width: 40vw;">
|
<div class="d-flex justify-content-end" style="width: 40vw;">
|
||||||
<div class="nav-button flex-grow-1 text-center">Wallet</div>
|
<div class="nav-button flex-grow-1 text-center" (click)="showWalletModal = true">Wallet</div>
|
||||||
<div class="nav-button flex-grow-1 text-center">Result</div>
|
<div class="nav-button flex-grow-1 text-center" (click)="showResultModal = true">Result</div>
|
||||||
<div class="nav-button flex-grow-1 text-center">Messages</div>
|
<div class="nav-button flex-grow-1 text-center" (click)="showMessagesModal = true">Messages</div>
|
||||||
<div class="nav-button flex-grow-1 text-center">View-Log</div>
|
<div class="nav-button flex-grow-1 text-center" (click)="showLogModal = true">View-Log</div>
|
||||||
<div class="nav-button flex-grow-1 text-center text">Log Out</div>
|
<div class="nav-button flex-grow-1 text-center">Log Out</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mobile View (Hamburger Menu Content) -->
|
<!-- Mobile View -->
|
||||||
<div class="d-lg-none w-100 mt-2 d-flex justify-content-end"
|
<div class="d-lg-none w-100 mt-2 d-flex justify-content-end" *ngIf="isMenuOpen">
|
||||||
*ngIf="isMenuOpen">
|
|
||||||
|
|
||||||
<!-- Right-Aligned Hamburger Menu (50% Width) -->
|
|
||||||
<div class="mobile-menu-container p-3" style="width: 50%; background-color: #c17a30;">
|
<div class="mobile-menu-container p-3" style="width: 50%; background-color: #c17a30;">
|
||||||
|
<button class="nav-dropdown w-100 text-end pe-3" (click)="openVenueModal()">Venue | {{ selectedVenue }}</button>
|
||||||
|
<button class="nav-dropdown w-100 text-end pe-3" (click)="openRaceModal()">Race No. | {{ selectedRace }}</button>
|
||||||
|
|
||||||
<!-- Venue Dropdown -->
|
|
||||||
<div class="dropdown mb-2 text-end">
|
|
||||||
<button class="nav-dropdown w-100 text-end pe-3" data-bs-toggle="dropdown">
|
|
||||||
Venue | MYS
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu w-100 text-end">
|
|
||||||
<li><a class="dropdown-item text-end" href="#">MYS</a></li>
|
|
||||||
<li><a class="dropdown-item text-end" href="#">BLR</a></li>
|
|
||||||
<li><a class="dropdown-item text-end" href="#">CHN</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Race Dropdown -->
|
|
||||||
<div class="dropdown mb-2 text-end">
|
|
||||||
<button class="nav-dropdown w-100 text-end pe-3" data-bs-toggle="dropdown">
|
|
||||||
Race No. | 1
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu w-100 text-end">
|
|
||||||
<li><a class="dropdown-item text-end" href="#">1</a></li>
|
|
||||||
<li><a class="dropdown-item text-end" href="#">2</a></li>
|
|
||||||
<li><a class="dropdown-item text-end" href="#">3</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Menu Buttons -->
|
|
||||||
<div class="d-flex flex-column text-end">
|
<div class="d-flex flex-column text-end">
|
||||||
<div class="nav-button w-100 text-end pe-3 py-2 border-top">Wallet</div>
|
<div class="nav-button w-100 text-end pe-3 py-2 border-top" (click)="showWalletModal = true">Wallet</div>
|
||||||
<div class="nav-button w-100 text-end pe-3 py-2 border-top">Result</div>
|
<div class="nav-button w-100 text-end pe-3 py-2 border-top" (click)="showResultModal = true">Result</div>
|
||||||
<div class="nav-button w-100 text-end pe-3 py-2 border-top">Messages</div>
|
<div class="nav-button w-100 text-end pe-3 py-2 border-top" (click)="showMessagesModal = true">Messages</div>
|
||||||
<div class="nav-button w-100 text-end pe-3 py-2 border-top">View-Log</div>
|
<div class="nav-button w-100 text-end pe-3 py-2 border-top" (click)="showLogModal = true">View-Log</div>
|
||||||
<div class="nav-button w-100 text-end pe-3 py-2 border-top">Log Out</div>
|
<div class="nav-button w-100 text-end pe-3 py-2 border-top">Log Out</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<!-- Wallet Modal -->
|
||||||
|
<div class="wallet-modal-overlay" *ngIf="showWalletModal" (click)="closeModals()">
|
||||||
|
<div class="wallet-modal-box" (click)="$event.stopPropagation()">
|
||||||
|
<h5>WALLET</h5>
|
||||||
|
<table class="wallet-table">
|
||||||
|
<tbody>
|
||||||
|
<tr><td>WITHDRAW</td><td>{{ wallet.withdraw }}</td></tr>
|
||||||
|
<tr><td>DEPOSIT</td><td>{{ wallet.deposit }}</td></tr>
|
||||||
|
<tr><td>PAY-OUT</td><td>{{ wallet.payout }}</td></tr>
|
||||||
|
<tr><td>CANCEL</td><td>{{ wallet.cancel }}</td></tr>
|
||||||
|
<tr><td>TICKETING</td><td>{{ wallet.ticketing }}</td></tr>
|
||||||
|
<tr><td>BALANCE</td><td>{{ wallet.balance }}</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<button class="btn btn-secondary mt-2" (click)="closeModals()">CANCEL</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Result Modal -->
|
||||||
|
<div class="result-modal-overlay" *ngIf="showResultModal" (click)="closeModals()">
|
||||||
|
<div class="result-modal-box" (click)="$event.stopPropagation()">
|
||||||
|
<h5>RESULTS</h5>
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-secondary" (click)="closeModals()">CANCEL</button>
|
||||||
|
<button class="btn btn-primary">ERASE</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Messages Modal -->
|
||||||
|
<div class="messages-modal-overlay" *ngIf="showMessagesModal" (click)="closeModals()">
|
||||||
|
<div class="messages-modal-box" (click)="$event.stopPropagation()">
|
||||||
|
<h5>MESSAGES</h5>
|
||||||
|
<ul class="messages-list">
|
||||||
|
<li *ngFor="let msg of messages">{{ msg }}</li>
|
||||||
|
</ul>
|
||||||
|
<button class="btn-cancel" (click)="closeModals()">CANCEL</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- View Log Modal -->
|
||||||
|
<div class="viewlog-modal-overlay" *ngIf="showLogModal" (click)="closeModals()">
|
||||||
|
<div class="viewlog-modal-box" (click)="$event.stopPropagation()">
|
||||||
|
<h5>VIEW-LOG</h5>
|
||||||
|
<table class="viewlog-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Venue</th>
|
||||||
|
<th>Ticket Number</th>
|
||||||
|
<th>Pool Name</th>
|
||||||
|
<th>Total Amount</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let log of logs">
|
||||||
|
<td>{{ log.description }}</td>
|
||||||
|
<td>{{ log.venue }}</td>
|
||||||
|
<td>{{ log.ticketNumber }}</td>
|
||||||
|
<td>{{ log.poolName }}</td>
|
||||||
|
<td>{{ log.totalAmount }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<button class="cancel-btn" (click)="closeModals()">CANCEL</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Venue Modal -->
|
||||||
|
<div class="modal-overlay" *ngIf="showVenueModal" (click)="closeModals()">
|
||||||
|
<div class="modal-box" (click)="$event.stopPropagation()">
|
||||||
|
<h5>Select Venue</h5>
|
||||||
|
<div class="modal-option" *ngFor="let venue of venues" (click)="selectVenue(venue)">
|
||||||
|
{{ venue }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Race Modal -->
|
||||||
|
<div class="modal-overlay" *ngIf="showRaceModal" (click)="closeModals()">
|
||||||
|
<div class="modal-box" (click)="$event.stopPropagation()">
|
||||||
|
<h5>Select Race</h5>
|
||||||
|
<div class="modal-option" *ngFor="let race of races" (click)="selectRace(race)">
|
||||||
|
{{ race }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@ -1,18 +1,50 @@
|
|||||||
import { Component, OnInit, HostListener } from '@angular/core';
|
import { Component, OnInit, HostListener } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common'; // ✅ this is what you need
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-navbar',
|
selector: 'app-navbar',
|
||||||
templateUrl: './navbar.component.html',
|
templateUrl: './navbar.component.html',
|
||||||
styleUrls: ['./navbar.component.css'],
|
styleUrls: ['./navbar.component.css'],
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule] // ✅ import here
|
imports: [CommonModule]
|
||||||
})
|
})
|
||||||
export class NavbarComponent implements OnInit {
|
export class NavbarComponent implements OnInit {
|
||||||
dateTime: string = '';
|
dateTime: string = '';
|
||||||
isMenuOpen: boolean = false;
|
isMenuOpen: boolean = false;
|
||||||
screenWidth: number = window.innerWidth;
|
screenWidth: number = window.innerWidth;
|
||||||
|
|
||||||
|
// Venue and Race state
|
||||||
|
showVenueModal = false;
|
||||||
|
showRaceModal = false;
|
||||||
|
venues = ['MYS', 'BLR', 'CHN'];
|
||||||
|
races = ['1', '2', '3'];
|
||||||
|
selectedVenue = 'MYS';
|
||||||
|
selectedRace = '1';
|
||||||
|
|
||||||
|
// Modal state flags
|
||||||
|
showWalletModal = false;
|
||||||
|
showResultModal = false;
|
||||||
|
showMessagesModal = false;
|
||||||
|
showLogModal = false;
|
||||||
|
|
||||||
|
// Wallet data
|
||||||
|
wallet = {
|
||||||
|
withdraw: 0,
|
||||||
|
deposit: 0,
|
||||||
|
payout: 0,
|
||||||
|
cancel: 0,
|
||||||
|
ticketing: 0,
|
||||||
|
balance: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
// Messages
|
||||||
|
messages = ['HIII']; // Can be dynamically fetched
|
||||||
|
|
||||||
|
// Logs
|
||||||
|
logs = [
|
||||||
|
{ description: '', venue: '', ticketNumber: '', poolName: '', totalAmount: '' }
|
||||||
|
];
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.updateDateTime();
|
this.updateDateTime();
|
||||||
setInterval(() => this.updateDateTime(), 1000);
|
setInterval(() => this.updateDateTime(), 1000);
|
||||||
@ -34,4 +66,47 @@ export class NavbarComponent implements OnInit {
|
|||||||
toggleMenu() {
|
toggleMenu() {
|
||||||
this.isMenuOpen = !this.isMenuOpen;
|
this.isMenuOpen = !this.isMenuOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openVenueModal() {
|
||||||
|
this.showVenueModal = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
openRaceModal() {
|
||||||
|
this.showRaceModal = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
openWalletModal() {
|
||||||
|
this.showWalletModal = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
openResultModal() {
|
||||||
|
this.showResultModal = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
openMessagesModal() {
|
||||||
|
this.showMessagesModal = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
openLogModal() {
|
||||||
|
this.showLogModal = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
closeModals() {
|
||||||
|
this.showVenueModal = false;
|
||||||
|
this.showRaceModal = false;
|
||||||
|
this.showWalletModal = false;
|
||||||
|
this.showResultModal = false;
|
||||||
|
this.showMessagesModal = false;
|
||||||
|
this.showLogModal = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
selectVenue(venue: string) {
|
||||||
|
this.selectedVenue = venue;
|
||||||
|
this.closeModals();
|
||||||
|
}
|
||||||
|
|
||||||
|
selectRace(race: string) {
|
||||||
|
this.selectedRace = race;
|
||||||
|
this.closeModals();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user