From b715114ee2498d12926870c763415dbe9f575094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Fri, 14 Nov 2025 13:47:32 -0500 Subject: [PATCH 1/6] allow linking to a specific card --- src/style.css | 8 ++++++++ templates/index.html.jinja | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/style.css b/src/style.css index 4cd553b2a..2f8d6e703 100644 --- a/src/style.css +++ b/src/style.css @@ -58,6 +58,10 @@ body { flex: 1; } +.card:target { + border-color: #1595fe; +} + .card-body p { margin-bottom: 0; margin-top: 0; @@ -67,6 +71,10 @@ body { margin-bottom: 0.4rem; } +.card:target .card-title { + font-weight: bold; +} + /* ------------------------------ Index ------------------------------------- */ .progress-bar-container { diff --git a/templates/index.html.jinja b/templates/index.html.jinja index 904ed59a3..94d5a5f67 100644 --- a/templates/index.html.jinja +++ b/templates/index.html.jinja @@ -5,7 +5,7 @@
{% for project in completion_progress | sort(attribute='completion') | reverse %}
-
+

{{ project.language.name }}

{{ project.translated_name }}
From faaa70b918372d895e80f988fd2777a7c37e3bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Mon, 17 Nov 2025 09:18:31 -0500 Subject: [PATCH 2/6] add self-link to card, fix style --- src/style.css | 1 + templates/index.html.jinja | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/style.css b/src/style.css index 2f8d6e703..a48d14dcb 100644 --- a/src/style.css +++ b/src/style.css @@ -59,6 +59,7 @@ body { } .card:target { + scroll-margin-top: 4.5rem; border-color: #1595fe; } diff --git a/templates/index.html.jinja b/templates/index.html.jinja index 94d5a5f67..adb14c9f9 100644 --- a/templates/index.html.jinja +++ b/templates/index.html.jinja @@ -7,7 +7,7 @@
-

{{ project.language.name }}

+

{{ project.language.name }}

{{ project.translated_name }}

Completion: {{ '{:.2f}%'.format(project.completion) }}

30-day progress: {{ '{:.2f}%'.format(project.change) }}

From c8d8c4926e2f5c9c6bd4d6f5a4c9b1b0b54d2ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Mon, 17 Nov 2025 09:19:06 -0500 Subject: [PATCH 3/6] avoid many identical link labels --- templates/index.html.jinja | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/index.html.jinja b/templates/index.html.jinja index adb14c9f9..42d4ca535 100644 --- a/templates/index.html.jinja +++ b/templates/index.html.jinja @@ -14,15 +14,15 @@

{% if project.built %} - View + View {{ project.language.code }} • {% endif %} {% if project.contribution_link %} - Contribute + Contribute to {{ project.language.code }} {% elif project.uses_platform %} - Contribute + Contribute to {{ project.language.code }} {% else %} - Contribute + Contribute to {{ project.language.code }} {% endif %}

From 35ee26a97470c82bee615fdb910fa91b27440c82 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 17 Nov 2025 20:03:53 +0000 Subject: [PATCH 4/6] Revert "avoid many identical link labels" This reverts commit c8d8c4926e2f5c9c6bd4d6f5a4c9b1b0b54d2ada. --- templates/index.html.jinja | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/index.html.jinja b/templates/index.html.jinja index 42d4ca535..adb14c9f9 100644 --- a/templates/index.html.jinja +++ b/templates/index.html.jinja @@ -14,15 +14,15 @@

{% if project.built %} - View {{ project.language.code }} + View • {% endif %} {% if project.contribution_link %} - Contribute to {{ project.language.code }} + Contribute {% elif project.uses_platform %} - Contribute to {{ project.language.code }} + Contribute {% else %} - Contribute to {{ project.language.code }} + Contribute {% endif %}

From 55647d19df62a5186702252b14afda990515d994 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Mon, 17 Nov 2025 20:04:30 +0000 Subject: [PATCH 5/6] Stan's proposal for the UI --- src/style.css | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/style.css b/src/style.css index a48d14dcb..f1c4ae453 100644 --- a/src/style.css +++ b/src/style.css @@ -72,8 +72,22 @@ body { margin-bottom: 0.4rem; } -.card:target .card-title { - font-weight: bold; +.card-title a { + color: inherit; + text-decoration: none; + border-radius: 4px; + padding: 0 4px; + margin: 0 -4px; +} + +.card-title a::after { + content: " #"; + font-size: 0.8em; + color: #7ec3ff; +} + +.card-title a:hover { + background-color: #f5e9a8; } /* ------------------------------ Index ------------------------------------- */ From 0dd3149183841acef22dad294f0f0b88c77c14c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Mon, 17 Nov 2025 15:20:50 -0500 Subject: [PATCH 6/6] refine links --- templates/index.html.jinja | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/index.html.jinja b/templates/index.html.jinja index 42d4ca535..552953405 100644 --- a/templates/index.html.jinja +++ b/templates/index.html.jinja @@ -7,22 +7,22 @@
-

{{ project.language.name }}

+

{{ project.language.name }} #

{{ project.translated_name }}

Completion: {{ '{:.2f}%'.format(project.completion) }}

30-day progress: {{ '{:.2f}%'.format(project.change) }}

{% if project.built %} - View {{ project.language.code }} + View {{ project.language.name }} • {% endif %} {% if project.contribution_link %} - Contribute to {{ project.language.code }} + Contribute to {{ project.language.name }} {% elif project.uses_platform %} - Contribute to {{ project.language.code }} + Contribute to {{ project.language.name }} {% else %} - Contribute to {{ project.language.code }} + Contribute to {{ project.language.name }} {% endif %}