236 lines
4.2 KiB
CSS
236 lines
4.2 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f4f4f9;
|
|
text-align: center;
|
|
padding: 20px;
|
|
margin: 0;
|
|
}
|
|
h1 {
|
|
color: #4CAF50;
|
|
font-size: 2.5em;
|
|
margin-bottom: 30px;
|
|
}
|
|
.mode-buttons {
|
|
margin-bottom: 30px;
|
|
}
|
|
.mode-btn {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
margin: 0 10px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
.mode-btn:hover {
|
|
background-color: #45a049;
|
|
}
|
|
.sensor {
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
margin: 20px;
|
|
padding: 20px;
|
|
display: inline-block;
|
|
width: 250px;
|
|
position: relative;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
.sensor h3 {
|
|
margin-top: 0;
|
|
font-size: 1.2em;
|
|
}
|
|
.sensor img {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 1px;
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
.status {
|
|
font-weight: bold;
|
|
padding: 10px;
|
|
margin-top: 10px;
|
|
border-radius: 5px;
|
|
font-size: 1.1em;
|
|
}
|
|
.status.empty {
|
|
background-color: lightgreen;
|
|
color: white;
|
|
}
|
|
.status.occupied {
|
|
background-color: lightcoral;
|
|
color: white;
|
|
}
|
|
p {
|
|
font-size: 1.1em;
|
|
margin: 0;
|
|
}
|
|
.map-container {
|
|
margin-top: 40px;
|
|
text-align: center;
|
|
}
|
|
.map-container img {
|
|
width: 80%;
|
|
max-width: 600px;
|
|
height: auto;
|
|
}
|
|
.direction {
|
|
margin-top: 10px;
|
|
font-size: 1.2em;
|
|
color: #333;
|
|
}
|
|
/* Modal styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.modal-content {
|
|
background-color: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
min-width: 300px;
|
|
}
|
|
.modal h2 {
|
|
margin-top: 0;
|
|
color: #4CAF50;
|
|
}
|
|
.modal input {
|
|
width: 200px;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
font-size: 16px;
|
|
}
|
|
.modal button {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
margin: 5px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|
|
.modal button:hover {
|
|
background-color: #45a049;
|
|
}
|
|
.modal .cancel-btn {
|
|
background-color: #f44336;
|
|
}
|
|
.modal .cancel-btn:hover {
|
|
background-color: #da190b;
|
|
}
|
|
|
|
/* Perbaikan tampilan parking-history di admin */
|
|
|
|
.back-btn {
|
|
background-color: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.back-btn:hover {
|
|
background-color: #0b7dda;
|
|
}
|
|
|
|
/* Styling untuk indikator slot pada denah */
|
|
.map-indicators {
|
|
position: relative;
|
|
display: inline-block;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.slot-indicator {
|
|
position: absolute;
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 3px;
|
|
background-color: #4CAF50;
|
|
border: 2px solid #fff;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 8px;
|
|
font-weight: bold;
|
|
color: white;
|
|
text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.slot-indicator.occupied {
|
|
background-color: #f44336;
|
|
}
|
|
|
|
.slot-indicator.available {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
/* Posisi indikator pada denah - sesuaikan dengan lokasi parkir Anda */
|
|
#indicator_1 {
|
|
top: 39%;
|
|
right: 27%;
|
|
}
|
|
|
|
#indicator_2 {
|
|
top: 51%;
|
|
right: 27%;
|
|
}
|
|
|
|
#indicator_3 {
|
|
top: 63%;
|
|
right: 27%;
|
|
}
|
|
|
|
/* Efek hover untuk indikator */
|
|
.slot-indicator:hover {
|
|
transform: scale(1.2);
|
|
z-index: 10;
|
|
}
|
|
|
|
/* Legend untuk indikator */
|
|
.map-legend {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.legend-color {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.legend-available {
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
.legend-occupied {
|
|
background-color: #f44336;
|
|
} |