style(detail): apply hero card style to Pupils & Inclusion
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 13s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 49s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 13s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 13s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 49s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 13s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
Renames the RWM-specific .rwmHero* classes to generic .heroStat* and reuses them on the three Pupils & Inclusion headline cards (disadvantaged, EAL, SEN support). Grid switches to auto-fit to accommodate both 2- and 3-card layouts. SEN primary-need breakdown stays on the dense .metricCard style. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -323,15 +323,18 @@
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── RWM hero cards (combined + exceeding) ── */
|
/* ── Hero stat cards (RWM combined, Pupils & Inclusion, etc.) ── */
|
||||||
.rwmHeroGrid {
|
/* Larger teal-tinted cards with Playfair serif numbers — reserved for
|
||||||
|
the top-of-section headline metrics. Use .metricCard for denser
|
||||||
|
secondary metrics. */
|
||||||
|
.heroStatGrid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||||
gap: 0.85rem;
|
gap: 0.85rem;
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rwmHeroCard {
|
.heroStatCard {
|
||||||
background: var(--accent-teal-bg, rgba(45, 125, 125, 0.12));
|
background: var(--accent-teal-bg, rgba(45, 125, 125, 0.12));
|
||||||
border: 1px solid rgba(45, 125, 125, 0.2);
|
border: 1px solid rgba(45, 125, 125, 0.2);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -342,7 +345,7 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rwmHeroLabel {
|
.heroStatLabel {
|
||||||
font-size: 0.6rem;
|
font-size: 0.6rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -354,7 +357,7 @@
|
|||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rwmHeroValue {
|
.heroStatValue {
|
||||||
font-family: var(--font-playfair), "Playfair Display", Georgia, serif;
|
font-family: var(--font-playfair), "Playfair Display", Georgia, serif;
|
||||||
font-size: 2.1rem;
|
font-size: 2.1rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -367,7 +370,7 @@
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rwmHeroHint {
|
.heroStatHint {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
color: var(--text-muted, #6d685f);
|
color: var(--text-muted, #6d685f);
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@@ -375,11 +378,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.rwmHeroGrid {
|
.heroStatGrid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rwmHeroValue {
|
.heroStatValue {
|
||||||
font-size: 1.85rem;
|
font-size: 1.85rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -515,14 +515,14 @@ export function SchoolDetailView({
|
|||||||
{/* ── Primary / KS2 content ── */}
|
{/* ── Primary / KS2 content ── */}
|
||||||
{hasKS2Results && (
|
{hasKS2Results && (
|
||||||
<>
|
<>
|
||||||
<div className={styles.rwmHeroGrid}>
|
<div className={styles.heroStatGrid}>
|
||||||
{latestResults.rwm_expected_pct !== null && (
|
{latestResults.rwm_expected_pct !== null && (
|
||||||
<div className={styles.rwmHeroCard}>
|
<div className={styles.heroStatCard}>
|
||||||
<div className={styles.rwmHeroLabel}>
|
<div className={styles.heroStatLabel}>
|
||||||
Reading, Writing & Maths combined
|
Reading, Writing & Maths combined
|
||||||
<MetricTooltip metricKey="rwm_expected_pct" />
|
<MetricTooltip metricKey="rwm_expected_pct" />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.rwmHeroValue}>
|
<div className={styles.heroStatValue}>
|
||||||
{formatPercentage(latestResults.rwm_expected_pct)}
|
{formatPercentage(latestResults.rwm_expected_pct)}
|
||||||
{primaryAvg.rwm_expected_pct != null && (
|
{primaryAvg.rwm_expected_pct != null && (
|
||||||
<DeltaChip
|
<DeltaChip
|
||||||
@@ -534,17 +534,17 @@ export function SchoolDetailView({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{primaryAvg.rwm_expected_pct != null && (
|
{primaryAvg.rwm_expected_pct != null && (
|
||||||
<div className={styles.rwmHeroHint}>National avg: {primaryAvg.rwm_expected_pct.toFixed(0)}%</div>
|
<div className={styles.heroStatHint}>National avg: {primaryAvg.rwm_expected_pct.toFixed(0)}%</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{latestResults.rwm_high_pct !== null && (
|
{latestResults.rwm_high_pct !== null && (
|
||||||
<div className={styles.rwmHeroCard}>
|
<div className={styles.heroStatCard}>
|
||||||
<div className={styles.rwmHeroLabel}>
|
<div className={styles.heroStatLabel}>
|
||||||
Exceeding expected level (Reading, Writing & Maths)
|
Exceeding expected level (Reading, Writing & Maths)
|
||||||
<MetricTooltip metricKey="rwm_high_pct" />
|
<MetricTooltip metricKey="rwm_high_pct" />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.rwmHeroValue}>
|
<div className={styles.heroStatValue}>
|
||||||
{formatPercentage(latestResults.rwm_high_pct)}
|
{formatPercentage(latestResults.rwm_high_pct)}
|
||||||
{primaryAvg.rwm_high_pct != null && (
|
{primaryAvg.rwm_high_pct != null && (
|
||||||
<DeltaChip
|
<DeltaChip
|
||||||
@@ -556,7 +556,7 @@ export function SchoolDetailView({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{primaryAvg.rwm_high_pct != null && (
|
{primaryAvg.rwm_high_pct != null && (
|
||||||
<div className={styles.rwmHeroHint}>National avg: {primaryAvg.rwm_high_pct.toFixed(0)}%</div>
|
<div className={styles.heroStatHint}>National avg: {primaryAvg.rwm_high_pct.toFixed(0)}%</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -871,50 +871,50 @@ export function SchoolDetailView({
|
|||||||
{hasInclusionData && (
|
{hasInclusionData && (
|
||||||
<section id="inclusion" className={styles.card}>
|
<section id="inclusion" className={styles.card}>
|
||||||
<h2 className={styles.sectionTitle}>Pupils & Inclusion</h2>
|
<h2 className={styles.sectionTitle}>Pupils & Inclusion</h2>
|
||||||
<div className={styles.metricsGrid}>
|
<div className={styles.heroStatGrid}>
|
||||||
{latestResults?.disadvantaged_pct != null && (
|
{latestResults?.disadvantaged_pct != null && (
|
||||||
<div className={styles.metricCard}>
|
<div className={styles.heroStatCard}>
|
||||||
<div className={styles.metricLabel}>Eligible for pupil premium</div>
|
<div className={styles.heroStatLabel}>Eligible for pupil premium</div>
|
||||||
<div className={styles.metricValue}>
|
<div className={styles.heroStatValue}>
|
||||||
{formatPercentage(latestResults.disadvantaged_pct)}
|
{formatPercentage(latestResults.disadvantaged_pct)}
|
||||||
{primaryAvg.disadvantaged_pct != null && (
|
{primaryAvg.disadvantaged_pct != null && (
|
||||||
<DeltaChip value={latestResults.disadvantaged_pct} baseline={primaryAvg.disadvantaged_pct} unit="pts" size="sm" />
|
<DeltaChip value={latestResults.disadvantaged_pct} baseline={primaryAvg.disadvantaged_pct} unit="pts" size="sm" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.metricHint}>Pupils from disadvantaged backgrounds{primaryAvg.disadvantaged_pct != null ? ` · national avg: ${primaryAvg.disadvantaged_pct.toFixed(0)}%` : ''}</div>
|
<div className={styles.heroStatHint}>Pupils from disadvantaged backgrounds{primaryAvg.disadvantaged_pct != null ? ` · national avg: ${primaryAvg.disadvantaged_pct.toFixed(0)}%` : ''}</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{latestResults?.eal_pct != null && (
|
{latestResults?.eal_pct != null && (
|
||||||
<div className={styles.metricCard}>
|
<div className={styles.heroStatCard}>
|
||||||
<div className={styles.metricLabel}>
|
<div className={styles.heroStatLabel}>
|
||||||
English as an additional language
|
English as an additional language
|
||||||
<MetricTooltip metricKey="eal_pct" />
|
<MetricTooltip metricKey="eal_pct" />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.metricValue}>
|
<div className={styles.heroStatValue}>
|
||||||
{formatPercentage(latestResults.eal_pct)}
|
{formatPercentage(latestResults.eal_pct)}
|
||||||
{primaryAvg.eal_pct != null && (
|
{primaryAvg.eal_pct != null && (
|
||||||
<DeltaChip value={latestResults.eal_pct} baseline={primaryAvg.eal_pct} unit="pts" size="sm" />
|
<DeltaChip value={latestResults.eal_pct} baseline={primaryAvg.eal_pct} unit="pts" size="sm" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{primaryAvg.eal_pct != null && (
|
{primaryAvg.eal_pct != null && (
|
||||||
<div className={styles.metricHint}>National avg: {primaryAvg.eal_pct.toFixed(0)}%</div>
|
<div className={styles.heroStatHint}>National avg: {primaryAvg.eal_pct.toFixed(0)}%</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{latestResults?.sen_support_pct != null && (
|
{latestResults?.sen_support_pct != null && (
|
||||||
<div className={styles.metricCard}>
|
<div className={styles.heroStatCard}>
|
||||||
<div className={styles.metricLabel}>
|
<div className={styles.heroStatLabel}>
|
||||||
Pupils receiving SEN support
|
Pupils receiving SEN support
|
||||||
<MetricTooltip metricKey="sen_support_pct" />
|
<MetricTooltip metricKey="sen_support_pct" />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.metricValue}>
|
<div className={styles.heroStatValue}>
|
||||||
{formatPercentage(latestResults.sen_support_pct)}
|
{formatPercentage(latestResults.sen_support_pct)}
|
||||||
{primaryAvg.sen_support_pct != null && (
|
{primaryAvg.sen_support_pct != null && (
|
||||||
<DeltaChip value={latestResults.sen_support_pct} baseline={primaryAvg.sen_support_pct} unit="pts" size="sm" />
|
<DeltaChip value={latestResults.sen_support_pct} baseline={primaryAvg.sen_support_pct} unit="pts" size="sm" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{primaryAvg.sen_support_pct != null && (
|
{primaryAvg.sen_support_pct != null && (
|
||||||
<div className={styles.metricHint}>National avg: {primaryAvg.sen_support_pct.toFixed(0)}%</div>
|
<div className={styles.heroStatHint}>National avg: {primaryAvg.sen_support_pct.toFixed(0)}%</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user