Skip to content

Commit 874f043

Browse files
committed
Many small changes
1 parent 2d0d7d5 commit 874f043

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

frontend/src/app/dashboard/page.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default function Dashboard() {
167167

168168
// Get temperature statistics
169169
const getTempStats = () => {
170-
if (userPoints.length === 0) return { avg: 0, min: 0, max: 0 };
170+
if (userPoints.length === 0) return { avg: '-', min: '-', max: '-' };
171171
const temps = userPoints.map(p => convertTemperature(p.temp, unit));
172172
return {
173173
avg: (temps.reduce((a, b) => a + b, 0) / temps.length).toFixed(1),
@@ -500,22 +500,22 @@ export default function Dashboard() {
500500
{/* Statistics */}
501501
<div className="dashboard-card">
502502
<div className="statistics-section">
503-
<h3>Your Statistics</h3>
503+
<h3 style={{margin: '0'}} >Your CONTRIBUTIONS</h3>
504504
<div className="stat-item">
505505
<div className="stat-number">{userPoints.length}</div>
506506
<div className="stat-label">Points<br/> Contributed</div>
507507
</div>
508508
<div className="stat-item">
509509
<div className="stat-number">{tempStats.max}°{unit}</div>
510-
<div className="stat-label">Your<br/>Max Temperature</div>
510+
<div className="stat-label">MAXIMUM<br/></div>
511511
</div>
512512
<div className="stat-item">
513513
<div className="stat-number">{tempStats.min}°{unit}</div>
514-
<div className="stat-label">Your<br/>MIN Temperature</div>
514+
<div className="stat-label">MinIMUM<br/></div>
515515
</div>
516516
<div className="stat-item">
517517
<div className="stat-number">{tempStats.avg}°{unit}</div>
518-
<div className="stat-label">YOUR<br/>Average Temperature</div>
518+
<div className="stat-label">AVERAGE<br/></div>
519519
</div>
520520

521521
</div>
@@ -529,7 +529,7 @@ export default function Dashboard() {
529529
<div className="task-icon orange"></div>
530530
<div className="task-content">
531531
<h4>Add your first temperature point</h4>
532-
<p>Start contributing to our weather database</p>
532+
<p>Start contributing to our temperature database</p>
533533
</div>
534534
</div>
535535
) : (

frontend/src/components/HUDleftPoints.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function LogoBlock() {
411411
placeholder="search"
412412
style={{
413413
width: '100%',
414-
padding: '0.75rem 2.5rem 0.75rem 1rem',
414+
padding: '0.5rem 2.5rem 0.5rem 1rem',
415415
borderRadius: '0.5rem',
416416
border: theme === 'light' ? '1px solid rgba(0, 0, 0, 0.1)' : '1px solid rgba(255, 255, 255, 0.2)',
417417
backgroundColor: theme === 'light' ? 'rgba(255, 255, 255, 0.9)' : 'rgba(255, 255, 255, 0.1)',

frontend/src/styles/dashboard.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@
847847
flex-direction: row;
848848
gap: 20px;
849849
justify-content: space-around;
850+
align-items: center;
850851
}
851852

852853
.stat-item {
@@ -1107,7 +1108,7 @@
11071108
flex: 1;
11081109
display: flex;
11091110
align-items: center;
1110-
justify-content: center;
1111+
justify-content: flex-start;
11111112
}
11121113

11131114
.mobile-current-menu-title {
@@ -1336,6 +1337,7 @@
13361337

13371338
.header-actions {
13381339
justify-content: center;
1340+
margin-bottom: 1rem;
13391341
}
13401342

13411343
.modal-content {

0 commit comments

Comments
 (0)