---
type: "Source File"
title: "<section class=\"page-hero\">"
description: "{% extends \"base.html\" %} {% block title %}{{ country_flag }} {{ country_name }}{% endblock %} {% block content %} <section class=\"page-hero\"> <h1 class=\"section-title\">{{ country_flag }} {{ country_name }}</h1> <p."
resource: "https://data.copecheck.com"
tags: ["copecheck", "data", "source-file", "html"]
timestamp: "2026-05-02T10:28:21Z"
site: "data"
source_path: "copecheck-data/templates/country.html"
---

# <section class="page-hero">

Source path: `copecheck-data/templates/country.html`  
Index snapshot generated: `2026-11-24T13:27:52Z`  
File modified: `2026-05-02T10:28:21Z`

```html
{% extends "base.html" %}
{% block title %}{{ country_flag }} {{ country_name }}{% endblock %}

{% block content %}
<section class="page-hero">
    <h1 class="section-title">{{ country_flag }} {{ country_name }}</h1>
    <p class="section-subtitle">All tracked economic indicators for {{ country_name }}.</p>
</section>

<section class="chart-section">
    <h2 class="chart-title">Key Indicators — Latest Values</h2>
    <div class="indicator-cards" id="indicatorCards"></div>
</section>

<section class="chart-section">
    <h2 class="chart-title">Youth Unemployment Over Time</h2>
    <div class="chart-container">
        <canvas id="youthChart"></canvas>
    </div>
</section>

<section class="chart-section">
    <h2 class="chart-title">Employment Ratio Over Time</h2>
    <div class="chart-container">
        <canvas id="empChart"></canvas>
    </div>
</section>

<section class="chart-section">
    <h2 class="chart-title">GDP Growth Over Time</h2>
    <div class="chart-container">
        <canvas id="gdpChart"></canvas>
    </div>
</section>
{% endblock %}

{% block scripts %}
<script>
const CODE = '{{ country_code }}';
const SERIES = ['youth_unemployment','labour_share_gdp','gdp_growth','employment_ratio','labour_force_participation','neet_rate','gini_index','industry_employment_share','services_employment_share'];
const SERIES_NAMES = {
    youth_unemployment: 'Youth Unemployment', labour_share_gdp: 'Labour Share', gdp_growth: 'GDP Growth',
    employment_ratio: 'Employment Ratio', labour_force_participation: 'Labour Force Participation',
    neet_rate: 'NEET Rate', gini_index: 'Gini Index',
    industry_employment_share: 'Industry Employment', services_employment_share: 'Services Employment'
};

async function loadIndicators() {
    const cards = document.getElementById('indicatorCards');
    for (const sid of SERIES) {
        try {
            const r = await fetch(`/api/countries/${sid}?country=${CODE}`);
            const d = await r.json();
            const pts = d.data || [];
            if (!pts.length) continue;
            const latest = pts[0];
            const prev = pts.length > 1 ? pts[1] : null;
            const change = prev ? (latest.value - prev.value).toFixed(1) : null;
            const arrow = change > 0 ? '&#9650;' : change < 0 ? '&#9660;' : '&#8212;';
            const changeClass = change > 0 ? 'change-up' : change < 0 ? 'change-down' : 'change-flat';
            cards.innerHTML += `<div class="indicator-card">
                <div class="indicator-name">${SERIES_NAMES[sid] || sid}</div>
                <div class="indicator-value">${latest.value.toFixed(1)}%</div>
                <div class="indicator-meta">${latest.date}${change !== null ? ` <span class="${changeClass}">${arrow} ${Math.abs(change)}pp</span>` : ''}</div>
            </div>`;
        } catch(e) {}
    }
}

function makeLineChart(canvasId, seriesId, color) {
    fetch(`/api/countries/${seriesId}?country=${CODE}`).then(r=>r.json()).then(d => {
        const pts = (d.data || []).sort((a,b) => a.date.localeCompare(b.date));
        if (!pts.length) { document.getElementById(canvasId).parentElement.style.display='none'; return; }
        new Chart(document.getElementById(canvasId), {
            type: 'line',
            data: {
                labels: pts.map(p => p.date),
                datasets: [{
                    label: SERIES_NAMES[seriesId],
                    data: pts.map(p => p.value),
                    borderColor: color, backgroundColor: color+'33',
                    tension: 0.3, fill: true, pointRadius: 2
                }]
            },
            options: {
                responsive: true, maintainAspectRatio: false,
                plugins: { legend: { display: false } },
                scales: {
                    x: { grid: { color: 'rgba(255,255,255,0.06)' }, ticks: { color: '#8a8d96', maxTicksLimit: 10 } },
                    y: { grid: { color: 'rgba(255,255,255,0.06)' }, ticks: { color: '#8a8d96', callback: v => v+'%' } }
                }
            }
        });
    });
}

loadIndicators();
makeLineChart('youthChart', 'youth_unemployment', '#e63946');
makeLineChart('empChart', 'employment_ratio', '#2a9d8f');
makeLineChart('gdpChart', 'gdp_growth', '#4ade80');
</script>
{% endblock %}
```
