Skip to content

Commit c23008c

Browse files
committed
More sexy
1 parent 47e63bb commit c23008c

File tree

3 files changed

+1317
-194
lines changed

3 files changed

+1317
-194
lines changed

go-rewrite/static/css/styles.css

Lines changed: 78 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body {
2020
}
2121

2222
h1, h2, h3, h4 {
23-
color: #1f77b4;
23+
color: #3498db;
2424
margin-bottom: 15px;
2525
font-weight: 600;
2626
}
@@ -29,7 +29,7 @@ h1 {
2929
text-align: center;
3030
margin: 25px 0;
3131
font-size: 32px;
32-
background: linear-gradient(45deg, #1f77b4, #2ca8ff);
32+
background: linear-gradient(45deg, #3498db, #1abc9c);
3333
background-clip: text;
3434
-webkit-background-clip: text;
3535
-webkit-text-fill-color: transparent;
@@ -42,7 +42,7 @@ h1::after {
4242
display: block;
4343
width: 100px;
4444
height: 3px;
45-
background: linear-gradient(45deg, #1f77b4, #2ca8ff);
45+
background: linear-gradient(45deg, #3498db, #1abc9c);
4646
margin: 10px auto 0;
4747
border-radius: 3px;
4848
}
@@ -91,7 +91,7 @@ h1::after {
9191
.file-label {
9292
width: 100%;
9393
height: 100%;
94-
border: 2px dashed #1f77b4;
94+
border: 2px dashed #3498db;
9595
border-radius: 12px;
9696
display: flex;
9797
justify-content: center;
@@ -102,18 +102,18 @@ h1::after {
102102
background-size: cover;
103103
font-weight: 500;
104104
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
105-
background-color: rgba(31, 119, 180, 0.05);
105+
background-color: rgba(52, 152, 219, 0.05);
106106
}
107107

108108
.file-label:hover {
109-
background-color: rgba(31, 119, 180, 0.1);
109+
background-color: rgba(52, 152, 219, 0.1);
110110
border-style: solid;
111111
box-shadow: 0 6px 16px rgba(0,0,0,0.1);
112112
transform: translateY(-2px);
113113
}
114114

115115
.button {
116-
background: linear-gradient(45deg, #1f77b4, #2ca8ff);
116+
background: linear-gradient(45deg, #3498db, #1abc9c);
117117
color: white;
118118
border: none;
119119
border-radius: 8px;
@@ -122,14 +122,14 @@ h1::after {
122122
margin: 8px;
123123
transition: all 0.3s ease;
124124
font-weight: 500;
125-
box-shadow: 0 4px 8px rgba(31, 119, 180, 0.3);
125+
box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
126126
font-size: 14px;
127127
}
128128

129129
.button:hover {
130-
background: linear-gradient(45deg, #166baa, #1c98eb);
130+
background: linear-gradient(45deg, #2980b9, #16a085);
131131
transform: translateY(-2px);
132-
box-shadow: 0 6px 12px rgba(31, 119, 180, 0.4);
132+
box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
133133
}
134134

135135
/* Date filter section */
@@ -150,7 +150,7 @@ h1::after {
150150
.date-picker input {
151151
margin: 0 10px;
152152
padding: 8px;
153-
border: 2px solid #1f77b4;
153+
border: 2px solid #3498db;
154154
border-radius: 5px;
155155
}
156156

@@ -283,8 +283,20 @@ h1::after {
283283
.session-selector select {
284284
width: 100%;
285285
padding: 8px;
286-
border: 2px solid #1f77b4;
286+
border: 2px solid #3498db;
287287
border-radius: 5px;
288+
background-color: #fff;
289+
color: #333;
290+
font-size: 16px;
291+
cursor: pointer;
292+
transition: border-color 0.3s ease, box-shadow 0.3s ease;
293+
}
294+
295+
.session-selector select:hover,
296+
.session-selector select:focus {
297+
border-color: #1abc9c;
298+
box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
299+
outline: none;
288300
}
289301

290302
/* Session details */
@@ -310,18 +322,71 @@ h1::after {
310322
min-width: 300px;
311323
}
312324

325+
/* Modern Session Cards */
326+
#combined-gauges {
327+
min-height: 400px;
328+
border-radius: 15px;
329+
margin-bottom: 30px;
330+
overflow: hidden;
331+
background-color: #f8f9fa;
332+
box-shadow: 0 10px 20px rgba(0,0,0,0.05);
333+
transition: transform 0.3s ease, box-shadow 0.3s ease;
334+
padding: 5px;
335+
}
336+
337+
#combined-gauges:hover {
338+
transform: translateY(-5px);
339+
box-shadow: 0 15px 30px rgba(0,0,0,0.08);
340+
}
341+
342+
.session-metric-card, .session-info-card {
343+
border-radius: 12px;
344+
background-color: white;
345+
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
346+
transition: transform 0.3s ease, box-shadow 0.3s ease;
347+
}
348+
349+
.session-metric-card:hover, .session-info-card:hover {
350+
transform: translateY(-5px);
351+
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
352+
}
353+
313354
/* Footer */
314355
footer {
315356
text-align: center;
316357
margin-top: 60px;
317358
padding: 20px 0;
318359
clear: both;
319360
position: relative;
320-
font-weight: bold;
321361
border-top: 1px solid #ddd;
322362
width: 100%;
323363
}
324364

365+
.imprint {
366+
margin: 20px auto;
367+
max-width: 600px;
368+
padding: 20px;
369+
background-color: #ffffff;
370+
border-radius: 12px;
371+
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
372+
transition: transform 0.3s ease, box-shadow 0.3s ease;
373+
}
374+
375+
.imprint:hover {
376+
transform: translateY(-5px);
377+
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
378+
}
379+
380+
.imprint h3 {
381+
margin-bottom: 15px;
382+
font-weight: 600;
383+
}
384+
385+
.imprint p {
386+
margin: 5px 0;
387+
color: #666;
388+
}
389+
325390
/* Responsive styles */
326391
@media (max-width: 768px) {
327392
.upload-container {

go-rewrite/static/index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,12 @@ <h4>SOC Statistics</h4>
9393

9494
<section class="session-details">
9595
<h3 id="session-info"></h3>
96+
<!-- Map moved above the session details container -->
97+
<div id="range-map" class="map"></div>
98+
9699
<div class="session-details-container">
97100
<div class="left-panel">
98-
<div id="range-map" class="map"></div>
99-
<div id="combined-gauges" class="chart"></div>
101+
<div id="combined-gauges" class="chart" style="height: auto; min-height: 600px;"></div>
100102
</div>
101103
<div class="right-panel">
102104
<div id="charge-details-graph" class="chart"></div>
@@ -106,6 +108,15 @@ <h3 id="session-info"></h3>
106108
</section>
107109
</div>
108110

111+
<footer>
112+
<div class="imprint">
113+
<h3>Impressum</h3>
114+
<p>Freie Netze München e. V.</p>
115+
<p>Parkstraße 28</p>
116+
<p>82131 Gauting</p>
117+
</div>
118+
</footer>
119+
109120
<script src="/static/js/app.js"></script>
110121
</body>
111122
</html>

0 commit comments

Comments
 (0)