Spaces:
Running
Running
Download ChargingHub.css from lattmamb/Vision_Meta0: direct link, hf CLI and curl.
- Browser
- Download file 9.43 kB
-
https://huggingface.co/spaces/lattmamb/Vision_Meta0/resolve/main/ChargingHub.css
- Command line
-
hf download hf://spaces/lattmamb/Vision_Meta0/ChargingHub.css
-
curl -L -o ChargingHub.css https://huggingface.co/spaces/lattmamb/Vision_Meta0/resolve/main/ChargingHub.css
9.43 kB
| /* Charging Hub Styles */ | |
| .charging-hub { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| background-color: #0B0B0F; | |
| color: #ffffff; | |
| min-height: 100vh; | |
| position: relative; | |
| } | |
| /* Loading Screen */ | |
| .charging-hub.loading { | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100vh; | |
| } | |
| .loading-logo { | |
| width: 150px; | |
| height: 150px; | |
| margin-bottom: 20px; | |
| position: relative; | |
| } | |
| .loading-logo img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: contain; | |
| } | |
| .loading-pulse { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| border-radius: 50%; | |
| border: 2px solid #00E0FF; | |
| animation: pulse 1.5s infinite ease-in-out; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| transform: scale(0.95); | |
| opacity: 1; | |
| } | |
| 70% { | |
| transform: scale(1.2); | |
| opacity: 0; | |
| } | |
| 100% { | |
| transform: scale(0.95); | |
| opacity: 0; | |
| } | |
| } | |
| /* Header */ | |
| .hub-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px; | |
| background-color: rgba(20, 20, 30, 0.8); | |
| backdrop-filter: blur(10px); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .hub-title { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .hub-title h1 { | |
| margin: 0; | |
| font-size: 28px; | |
| font-weight: 700; | |
| background: linear-gradient(90deg, #00E0FF, #35F2DB); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| letter-spacing: 1px; | |
| } | |
| .hub-subtitle { | |
| font-size: 14px; | |
| opacity: 0.7; | |
| } | |
| .hub-status { | |
| display: flex; | |
| gap: 20px; | |
| } | |
| .status-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .status-label { | |
| font-size: 14px; | |
| opacity: 0.7; | |
| } | |
| .status-value { | |
| font-size: 14px; | |
| font-weight: 600; | |
| } | |
| .status-value.operational { | |
| color: #35F2DB; | |
| } | |
| .hub-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .action-button { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| background-color: rgba(255, 255, 255, 0.05); | |
| border: 1px solid rgba(0, 224, 255, 0.2); | |
| border-radius: 8px; | |
| padding: 8px 12px; | |
| color: white; | |
| font-size: 14px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .action-button:hover { | |
| background-color: rgba(0, 224, 255, 0.1); | |
| } | |
| .action-button .icon { | |
| font-size: 16px; | |
| } | |
| .user-profile { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| overflow: hidden; | |
| border: 2px solid #00E0FF; | |
| } | |
| .user-profile img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| /* Navigation */ | |
| .hub-navigation { | |
| display: flex; | |
| gap: 2px; | |
| background-color: rgba(20, 20, 30, 0.5); | |
| padding: 0 20px; | |
| overflow-x: auto; | |
| scrollbar-width: none; | |
| } | |
| .hub-navigation::-webkit-scrollbar { | |
| display: none; | |
| } | |
| .nav-button { | |
| padding: 16px 20px; | |
| background: transparent; | |
| border: none; | |
| color: white; | |
| font-size: 16px; | |
| cursor: pointer; | |
| position: relative; | |
| white-space: nowrap; | |
| } | |
| .nav-button.active { | |
| color: #00E0FF; | |
| } | |
| .nav-button.active::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| height: 3px; | |
| background: linear-gradient(90deg, #00E0FF, #35F2DB); | |
| border-radius: 3px 3px 0 0; | |
| } | |
| /* Main Content */ | |
| .hub-content { | |
| padding: 20px; | |
| min-height: calc(100vh - 200px); | |
| } | |
| /* Dashboard View */ | |
| .dashboard-view { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 20px; | |
| } | |
| .hub-overview { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 20px; | |
| } | |
| .overview-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 16px; | |
| padding: 20px; | |
| border: 1px solid rgba(0, 224, 255, 0.1); | |
| } | |
| .overview-card h3 { | |
| margin-top: 0; | |
| margin-bottom: 16px; | |
| font-size: 18px; | |
| font-weight: 600; | |
| } | |
| .location-details { | |
| margin-bottom: 16px; | |
| } | |
| .location-name { | |
| font-size: 16px; | |
| font-weight: 600; | |
| margin-bottom: 4px; | |
| } | |
| .location-address { | |
| font-size: 14px; | |
| opacity: 0.7; | |
| } | |
| .location-map { | |
| height: 150px; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| } | |
| .location-map img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .occupancy-gauge { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| margin-bottom: 16px; | |
| } | |
| /* Status Badges */ | |
| .status-badge { | |
| display: inline-block; | |
| padding: 4px 8px; | |
| border-radius: 4px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| } | |
| .status-badge.available { | |
| background-color: rgba(53, 242, 219, 0.2); | |
| color: #35F2DB; | |
| } | |
| .status-badge.charging { | |
| background-color: rgba(0, 224, 255, 0.2); | |
| color: #00E0FF; | |
| } | |
| .status-badge.reserved { | |
| background-color: rgba(255, 193, 7, 0.2); | |
| color: #FFC107; | |
| } | |
| .status-badge.maintenance { | |
| background-color: rgba(255, 85, 85, 0.2); | |
| color: #FF5555; | |
| } | |
| /* Progress Bar */ | |
| .progress-container { | |
| width: 100%; | |
| height: 8px; | |
| background-color: rgba(255, 255, 255, 0.1); | |
| border-radius: 4px; | |
| margin-top: 8px; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .progress-bar { | |
| height: 100%; | |
| background: linear-gradient(90deg, #00E0FF, #35F2DB); | |
| border-radius: 4px; | |
| position: relative; | |
| } | |
| .progress-glow { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| width: 20px; | |
| background: linear-gradient(90deg, rgba(0, 224, 255, 0), #00E0FF); | |
| animation: glow 1.5s infinite; | |
| } | |
| @keyframes glow { | |
| 0% { | |
| opacity: 0.3; | |
| } | |
| 50% { | |
| opacity: 1; | |
| } | |
| 100% { | |
| opacity: 0.3; | |
| } | |
| } | |
| .progress-text { | |
| position: absolute; | |
| right: 8px; | |
| top: -18px; | |
| font-size: 12px; | |
| color: #00E0FF; | |
| } | |
| /* Charging Ports View */ | |
| .charging-ports-view { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 20px; | |
| } | |
| .port-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 16px; | |
| padding: 16px; | |
| border: 1px solid rgba(0, 224, 255, 0.1); | |
| transition: transform 0.2s ease; | |
| } | |
| .port-card:hover { | |
| transform: translateY(-4px); | |
| } | |
| .port-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 12px; | |
| } | |
| .port-number { | |
| font-size: 18px; | |
| font-weight: 600; | |
| } | |
| .port-details { | |
| margin-bottom: 12px; | |
| } | |
| .port-detail { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-bottom: 4px; | |
| font-size: 14px; | |
| } | |
| .detail-label { | |
| opacity: 0.7; | |
| } | |
| .port-actions { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 8px; | |
| } | |
| .port-action { | |
| background-color: rgba(0, 224, 255, 0.2); | |
| border: none; | |
| border-radius: 4px; | |
| color: #00E0FF; | |
| padding: 6px 10px; | |
| font-size: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .port-action:hover { | |
| background-color: rgba(0, 224, 255, 0.3); | |
| } | |
| /* Energy Management View */ | |
| .energy-management-view { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 20px; | |
| } | |
| .energy-chart { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 16px; | |
| padding: 20px; | |
| border: 1px solid rgba(0, 224, 255, 0.1); | |
| height: 300px; | |
| } | |
| .energy-stats { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 20px; | |
| } | |
| .energy-stat-card { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 16px; | |
| padding: 20px; | |
| border: 1px solid rgba(0, 224, 255, 0.1); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| } | |
| .stat-value { | |
| font-size: 32px; | |
| font-weight: 700; | |
| margin: 10px 0; | |
| background: linear-gradient(90deg, #00E0FF, #35F2DB); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .stat-label { | |
| font-size: 14px; | |
| opacity: 0.7; | |
| } | |
| /* Visitor Analytics View */ | |
| .visitor-analytics-view { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 20px; | |
| } | |
| .visitor-stats { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 20px; | |
| } | |
| .amenity-usage { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 16px; | |
| padding: 20px; | |
| border: 1px solid rgba(0, 224, 255, 0.1); | |
| } | |
| .amenity-bar { | |
| height: 24px; | |
| background-color: rgba(255, 255, 255, 0.1); | |
| border-radius: 12px; | |
| margin-bottom: 12px; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .amenity-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #00E0FF, #35F2DB); | |
| border-radius: 12px; | |
| } | |
| .amenity-label { | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 14px; | |
| } | |
| /* Reservations View */ | |
| .reservations-view { | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| gap: 20px; | |
| } | |
| .reservation-list { | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 16px; | |
| padding: 20px; | |
| border: 1px solid rgba(0, 224, 255, 0.1); | |
| } | |
| .reservation-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 12px 0; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .reservation-item:last-child { | |
| border-bottom: none; | |
| } | |
| .reservation-status { | |
| margin-left: auto; | |
| padding: 4px 8px; | |
| border-radius: 4px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| } | |
| .reservation-status.confirmed { | |
| background-color: rgba(53, 242, 219, 0.2); | |
| color: #35F2DB; | |
| } | |
| .reservation-status.pending { | |
| background-color: rgba(255, 193, 7, 0.2); | |
| color: #FFC107; | |
| } | |
| /* Responsive Adjustments */ | |
| @media (max-width: 768px) { | |
| .hub-header { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 10px; | |
| } | |
| .hub-status { | |
| flex-direction: column; | |
| gap: 5px; | |
| } | |
| .hub-actions { | |
| width: 100%; | |
| justify-content: space-between; | |
| margin-top: 10px; | |
| } | |
| .dashboard-view, | |
| .hub-overview { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |