Shifts manager
This commit is contained in:
@@ -747,3 +747,69 @@
|
||||
.admin-map .leaflet-container {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
/* Shifts Admin Styles */
|
||||
.shifts-admin-container {
|
||||
display: grid;
|
||||
grid-template-columns: 400px 1fr;
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.shift-form {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: var(--border-radius);
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.shifts-list {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: var(--border-radius);
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.shift-admin-item {
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: var(--border-radius);
|
||||
padding: 15px;
|
||||
margin-bottom: 15px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.shift-admin-item h4 {
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
|
||||
.shift-admin-item p {
|
||||
margin: 5px 0;
|
||||
color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.status-open {
|
||||
color: var(--success-color);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.status-full {
|
||||
color: var(--warning-color);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.status-cancelled {
|
||||
color: var(--danger-color);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.shift-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.shifts-admin-container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
161
map/app/public/css/shifts.css
Normal file
161
map/app/public/css/shifts.css
Normal file
@@ -0,0 +1,161 @@
|
||||
.shifts-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* My Signups section - now at the top */
|
||||
.my-signups {
|
||||
margin-bottom: 40px;
|
||||
padding-bottom: 30px;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.my-signups h2 {
|
||||
margin-bottom: 20px;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
.signup-item {
|
||||
background: white;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: var(--border-radius);
|
||||
padding: 15px;
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.signup-item h4 {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.signup-item p {
|
||||
margin: 0;
|
||||
color: var(--secondary-color);
|
||||
}
|
||||
|
||||
/* Filters section */
|
||||
.shifts-filters {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.shifts-filters h2 {
|
||||
margin-bottom: 15px;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.filter-group input {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
/* Desktop: 3 columns layout */
|
||||
.shifts-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.shift-card {
|
||||
background: white;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: var(--border-radius);
|
||||
padding: 20px;
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.shift-card:hover {
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.shift-card.full {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.shift-card.signed-up {
|
||||
border-color: var(--success-color);
|
||||
background-color: #f0f9ff;
|
||||
}
|
||||
|
||||
.shift-card h3 {
|
||||
margin: 0 0 15px 0;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
.shift-details {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.shift-details p {
|
||||
margin: 5px 0;
|
||||
color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.shift-description {
|
||||
margin: 15px 0;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
.shift-actions {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.no-shifts {
|
||||
text-align: center;
|
||||
color: var(--secondary-color);
|
||||
padding: 40px;
|
||||
grid-column: 1 / -1; /* Span all columns */
|
||||
}
|
||||
|
||||
/* Tablet: 2 columns */
|
||||
@media (max-width: 1024px) and (min-width: 769px) {
|
||||
.shifts-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile: 1 column */
|
||||
@media (max-width: 768px) {
|
||||
.shifts-container {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.shifts-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.signup-item {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.shift-card {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.my-signups {
|
||||
margin-bottom: 30px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.shifts-filters {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
@@ -743,6 +743,39 @@ body {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Desktop styles - show normal layout */
|
||||
@media (min-width: 769px) {
|
||||
.mobile-dropdown {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.user-info,
|
||||
.location-count {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.map-controls {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Show shifts button on desktop */
|
||||
.header-actions a[href="/shifts.html"] {
|
||||
display: inline-flex !important;
|
||||
}
|
||||
|
||||
.btn span.btn-icon {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide desktop elements on mobile */
|
||||
@media (max-width: 768px) {
|
||||
.header h1 {
|
||||
@@ -753,6 +786,11 @@ body {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide any floating shifts button on mobile - but NOT the one in dropdown */
|
||||
.header-actions a[href="/shifts.html"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mobile-dropdown {
|
||||
display: block;
|
||||
}
|
||||
@@ -791,34 +829,6 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
/* Desktop styles - show normal layout */
|
||||
@media (min-width: 769px) {
|
||||
.mobile-dropdown {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.user-info,
|
||||
.location-count {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.map-controls {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.btn span.btn-icon {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Fullscreen styles */
|
||||
.fullscreen #map-container {
|
||||
position: fixed;
|
||||
|
||||
Reference in New Issue
Block a user