Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
- EMAIL_HOST=${EMAIL_HOST:-localhost}
- EMAIL_PORT=${EMAIL_PORT:-25}
- PLAN_YEAR=${PLAN_YEAR:-2023}
- METHODOLOGY_YEAR=${METHODOLOGY_YEAR:-2025}
- METHODOLOGY_YEAR=${METHODOLOGY_YEAR:-2027}

depends_on:
- postgres
Expand Down
17 changes: 9 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

env = environ.Env(
PLAN_YEAR=(str, "2023"),
METHODOLOGY_YEAR=(str, "2025"),
METHODOLOGY_YEAR=(str, "2027"),
)
environ.Env.read_env(env_file)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ python-dateutil = "^2.8.1"
python-slugify = "^4.0.1"
pytz = "^2020.1"
PyYAML = "^6.0"
requests = "2.32.4"
requests = "2.33.0"
requests-cache = "^0.5.2"
six = "^1.10.0"
soupsieve = "^2.0.1"
Expand Down
2 changes: 1 addition & 1 deletion scoring/static/scoring/scss/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $gray-colors: ();
);
}

$all-colors: map-merge-multiple($blues, $indigos, $purples, $pinks, $reds, $oranges, $yellows, $greens, $teals, $cyans, $gray-colors, $primaries, $primaries2025);
$all-colors: map-merge-multiple($blues, $indigos, $purples, $pinks, $reds, $oranges, $yellows, $greens, $teals, $cyans, $gray-colors, $primaries, $primaries2025, $primaries2027);

$utilities: map-merge(
$utilities,
Expand Down
4 changes: 4 additions & 0 deletions scoring/static/scoring/scss/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
&.year-2025 {
background: linear-gradient(90deg, $primary2025-200 0%, adjust-hue($primary2025-200, -10) 100%);
}

&.year-2027 {
background: linear-gradient(90deg, $primary2027-100 0%, $primary2027-300 100%);
}
}

.year-2023 & {
Expand Down
24 changes: 24 additions & 0 deletions scoring/static/scoring/scss/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $info: $color-scorecard-yellow;
$dark: $black;

$primary2025: #d77b12;
$primary2027: #1e7bb0;

$color-total-score:$primary;
$color-category-1:#098995;
Expand Down Expand Up @@ -79,6 +80,7 @@ $color-category-9;
$theme-colors: (
"primary": $primary,
"primary2025": $primary2025,
"primary2027": $primary2027,
"secondary": $secondary,
"success": $success,
"info": $info,
Expand Down Expand Up @@ -154,6 +156,28 @@ $primaries2025: (
"primary2025-900": $primary2025-900
);

$primary2027-100: lighten($primary2027, 50%);
$primary2027-200: lighten($primary2027, 40%);
$primary2027-300: lighten($primary2027, 30%);
$primary2027-400: lighten($primary2027, 20%);
$primary2027-500: $primary2027;
$primary2027-600: darken($primary2027, 7.5%);
$primary2027-700: darken($primary2027, 15%);
$primary2027-800: darken($primary2027, 20%);
$primary2027-900: darken($primary2027, 25%);

$primaries2027: (
"primary2027-100": $primary2027-100,
"primary2027-200": $primary2027-200,
"primary2027-300": $primary2027-300,
"primary2027-400": $primary2027-400,
"primary2027-500": $primary2027-500,
"primary2027-600": $primary2027-600,
"primary2027-700": $primary2027-700,
"primary2027-800": $primary2027-800,
"primary2027-900": $primary2027-900
);

$min-contrast-ratio: 2.5;

// Options
Expand Down
13 changes: 9 additions & 4 deletions scoring/templates/scoring/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@
<li id="nations-page" class="nav-item">
<a class="nav-link link-primary" href="{% url 'scoring:nations_list' %}">Nations</a>
</li>
<li id="methodology-page" class="nav-item">
<a class="nav-link link-primary" href="{% url 'scoring:methodology' %}">{{ plan_year }} Methodology</a>
{% comment %}
<li id="methodology-page" class="nav-item">
<a class="nav-link link-primary" href="{% url 'scoring:methodology' %}">{{ plan_year }} Methodology</a>
</li>
{% endcomment %}
<li id="methodology-2027-page" class="nav-item">
<a class="nav-link link-primary" href="{% url 'year_scoring:methodology' 2027 %}">2027 Draft Methodology</a>
</li>
<li id="how-to-page" class="nav-item">
<a class="nav-link link-primary" href="{% url 'generic:how-to-use-the-scorecards' %}">How to use the Scorecards</a>
Expand Down Expand Up @@ -121,8 +126,8 @@
</nav>

<nav class="navbar navbar-expand-lg py-2 justify-content-center bg-orange-100 border-top gap-2 gap-md-3">
<span class="text-center">Please help Climate Emergency UK by donating as a Scorecard Sustainer. We rely on donations to remain independent.</span>
<a href="https://validaid.org/fundraiser/161" class="btn btn-sm btn-primary rounded-pill px-3">Donate</a>
<span class="text-center">Our draft methodology for the 2027 Council Climate Action Scorecards is now available! Thank you to everyone who contributed to our Methodology Review.</span>
<a href="{% url 'year_scoring:methodology' 2027 %}" class="btn btn-sm btn-primary rounded-pill px-3">Find out more</a>
</nav>

{% block content %}{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion scoring/templates/scoring/methodology.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% load static %}
{% block content %}
<div class="methodology-2023-content js-dynamic-content ">
<div class="pt-5 pb-6 pt-lg-8 pb-lg-8 hero-section with-version-background year-2025">
<div class="pt-5 pb-6 pt-lg-8 pb-lg-8 hero-section with-version-background year-{{ methodology_year }}">
<div class="d-flex flex-column align-items-end align-items-lg-start hero-version-badge position-absolute">
<span class="version-year d-block fw-bold lh-1">{{ methodology_year }}</span>
<span class="version-name d-block fw-bold lh-1">Action Scorecards</span>
Expand Down
Loading
Loading