Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit 09630fe

Browse files
author
ge25bon
committed
Daniel01
1 parent 293890b commit 09630fe

2 files changed

Lines changed: 24 additions & 16 deletions

File tree

frontend/src/assets/styles/position.module.css

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,20 +211,27 @@
211211

212212
.indicatorGrid {
213213
display: grid;
214-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
215-
gap: 1rem;
214+
grid-template-columns: repeat(2, 1fr);
215+
gap: 2rem;
216+
max-width: 600px;
217+
margin: 0 auto;
216218
}
217219

218220
.indicator {
219221
display: flex;
220222
justify-content: space-between;
221223
align-items: center;
222-
padding: 0.75rem 0;
223-
border-bottom: 1px solid #e2e8f0;
224+
padding: 1.5rem;
225+
background: #f8fafc;
226+
border: 1px solid #e2e8f0;
227+
border-radius: 0.5rem;
228+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
229+
transition: all 0.2s ease;
224230
}
225231

226-
.indicator:last-child {
227-
border-bottom: none;
232+
.indicator:hover {
233+
transform: translateY(-2px);
234+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
228235
}
229236

230237
.indicatorLabel {
@@ -405,7 +412,14 @@
405412
}
406413

407414
:global(.dark) .indicator {
408-
border-bottom: 1px solid #404040;
415+
background: #1a1a1a;
416+
border: 1px solid #404040;
417+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
418+
}
419+
420+
:global(.dark) .indicator:hover {
421+
transform: translateY(-2px);
422+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
409423
}
410424

411425
:global(.dark) .indicatorLabel {

frontend/src/pages/trend_graphs.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ export const PositionDetailLight = ({ darkMode = true }) => {
286286
meta: {
287287
trend_factors: {
288288
average_growth_rate: averageGrowthRate,
289-
year_over_year_growth: yearOverYearGrowth,
290-
relative_popularity: Math.round((totalPublications / 1000) * 100) / 100
289+
year_over_year_growth: yearOverYearGrowth
291290
}
292291
}
293292
};
@@ -361,8 +360,7 @@ export const PositionDetailLight = ({ darkMode = true }) => {
361360
meta: {
362361
trend_factors: {
363362
average_growth_rate: averageGrowthRate,
364-
year_over_year_growth: yearOverYearGrowth,
365-
relative_popularity: Math.round((totalPublications / 1000) * 100) / 100
363+
year_over_year_growth: yearOverYearGrowth
366364
}
367365
}
368366
};
@@ -477,7 +475,7 @@ export const PositionDetailLight = ({ darkMode = true }) => {
477475
const renderTrendIndicators = () => {
478476
if (!trendData?.meta?.trend_factors) return null;
479477

480-
const { average_growth_rate, relative_popularity } = trendData.meta.trend_factors;
478+
const { average_growth_rate } = trendData.meta.trend_factors;
481479

482480
return (
483481
<div className={styles.trendIndicators}>
@@ -489,10 +487,6 @@ export const PositionDetailLight = ({ darkMode = true }) => {
489487
{average_growth_rate > 0 ? '+' : ''}{average_growth_rate}%
490488
</span>
491489
</div>
492-
<div className={styles.indicator}>
493-
<span className={styles.indicatorLabel}>Popularity Score:</span>
494-
<span className={styles.indicatorValue}>{relative_popularity}</span>
495-
</div>
496490
<div className={styles.indicator}>
497491
<span className={styles.indicatorLabel}>Total Publications:</span>
498492
<span className={styles.indicatorValue}>{trendData.publication_count}</span>

0 commit comments

Comments
 (0)