Replace coloured score header with neutral blue and score roundel
- Change header background to neutral blue gradient - Add score roundel with coloured ring based on score - Ring colour indicates score level (green/amber/red) - Keeps header consistent regardless of score Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,10 +126,10 @@
|
|||||||
<div class="row mb-4">
|
<div class="row mb-4">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card border-0 shadow-sm overflow-hidden">
|
<div class="card border-0 shadow-sm overflow-hidden">
|
||||||
<div class="score-header @GetScoreHeaderClass(_report!.OverallScore)">
|
<div class="score-header">
|
||||||
<div class="row align-items-center py-4 px-3">
|
<div class="row align-items-center py-4 px-3">
|
||||||
<div class="col-md-4 text-center">
|
<div class="col-md-4 text-center">
|
||||||
<div class="score-ring-container">
|
<div class="score-roundel @GetScoreColorClass(_report!.OverallScore)">
|
||||||
<svg class="score-ring" viewBox="0 0 120 120">
|
<svg class="score-ring" viewBox="0 0 120 120">
|
||||||
<circle class="score-ring-bg" cx="60" cy="60" r="54" />
|
<circle class="score-ring-bg" cx="60" cy="60" r="54" />
|
||||||
<circle class="score-ring-progress" cx="60" cy="60" r="54"
|
<circle class="score-ring-progress" cx="60" cy="60" r="54"
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
<span class="score-max">/100</span>
|
<span class="score-max">/100</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-white-50 mt-2">TrueCV Score</small>
|
<div class="mt-2 fw-semibold text-white">TrueCV Score</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="row g-4 text-center text-md-start">
|
<div class="row g-4 text-center text-md-start">
|
||||||
@@ -492,25 +492,71 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
/* Score Header with Gradient */
|
/* Score Header - Neutral Blue */
|
||||||
.score-header {
|
.score-header {
|
||||||
|
background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
|
||||||
color: white;
|
color: white;
|
||||||
transition: background-color 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.score-header.score-high {
|
/* Score Roundel */
|
||||||
background: linear-gradient(135deg, #059669 0%, #047857 100%);
|
.score-roundel {
|
||||||
|
position: relative;
|
||||||
|
width: 140px;
|
||||||
|
height: 140px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
border-radius: 50%;
|
||||||
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.score-header.score-medium {
|
.score-roundel .score-ring-bg {
|
||||||
background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
|
fill: none;
|
||||||
|
stroke: rgba(255, 255, 255, 0.2);
|
||||||
|
stroke-width: 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.score-header.score-low {
|
.score-roundel .score-ring-progress {
|
||||||
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
|
fill: none;
|
||||||
|
stroke-width: 8;
|
||||||
|
stroke-linecap: round;
|
||||||
|
transition: stroke-dasharray 0.6s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SVG Score Ring */
|
/* Score color variants */
|
||||||
|
.score-roundel.score-high .score-ring-progress {
|
||||||
|
stroke: #10b981;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-roundel.score-medium .score-ring-progress {
|
||||||
|
stroke: #f59e0b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-roundel.score-low .score-ring-progress {
|
||||||
|
stroke: #ef4444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-roundel .score-value-container {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-roundel .score-value {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-roundel .score-max {
|
||||||
|
font-size: 1rem;
|
||||||
|
opacity: 0.7;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Legacy score-ring-container for backwards compat */
|
||||||
.score-ring-container {
|
.score-ring-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 140px;
|
width: 140px;
|
||||||
@@ -800,16 +846,6 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string GetScoreHeaderClass(int score)
|
|
||||||
{
|
|
||||||
return score switch
|
|
||||||
{
|
|
||||||
> 70 => "score-high",
|
|
||||||
>= 50 => "score-medium",
|
|
||||||
_ => "score-low"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
private static string GetMatchScoreBadgeClass(int score)
|
private static string GetMatchScoreBadgeClass(int score)
|
||||||
{
|
{
|
||||||
return score switch
|
return score switch
|
||||||
|
|||||||
Reference in New Issue
Block a user