refactor(site): remove all GitHub references and Reproduir section

GitHub URL is no longer in use after migration to self-hosted Gitea.
Removes the "codi font" footer link, GitHub button on /qui-som, the
repoUrl constants, and the entire "Reproduir l'anàlisi" reproduction
guide on /dades. Cleans 6 orphaned i18n keys in ca.json and es.json.
This commit is contained in:
2026-07-30 07:48:22 +02:00
parent 6d735cc103
commit 1f06a4831f
5 changed files with 3 additions and 50 deletions
+1 -2
View File
@@ -37,8 +37,7 @@ const year = new Date().getFullYear();
Mesurat amb <a href="https://ecograder.com" class="underline hover:text-orange-700">Ecograder</a> (juliol 2026).
</p>
<p class="text-xs text-stone-500 mt-6">
© {year} Cases Tancades · CC BY-SA 4.0 ·
<a href="https://github.com/itziarZG/Vivienda" class="hover:text-orange-700 underline underline-offset-2">codi font</a>
© {year} Cases Tancades · CC BY-SA 4.0
</p>
<p class="text-xs text-stone-500 mt-2 italic" set:html={t(lang, "footer.based_on")} />
</div>
+1 -7
View File
@@ -230,8 +230,6 @@
"title": "Dades",
"lead": "Tots els datasets publicats sota llicència oberta. Descarrega'ls, analitza'ls, difon-los.",
"section_files_title": "Fitxers",
"section_code_title": "Codi font",
"section_code_body": "El pipeline complet (Python) és al repositori del projecte. Per reproduir les dades des de zero:",
"section_license_title": "Llicència",
"col_file": "Fitxer",
"col_format": "Format",
@@ -246,11 +244,7 @@
"file_tiles_pmtiles": "Vector tiles",
"file_tiles_pmtiles_desc": "Capes vectorials z0z13. Càrrega directa a MapLibre o similar.",
"file_dataset_web_json": "Resum per illa",
"file_dataset_web_json_desc": "Suma agregada per illa. JSON petit, ideal per a previsualitzacions.",
"repro_step1": "Clona el repo i activa l'entorn:",
"repro_step2": "Descarrega les dades crues (Inside Airbnb, INE, HUT, IBESTAT) a data/raw/",
"repro_step3": "Executa els scripts en ordre 01 → 06",
"repo_link_label": "Repositori a GitHub"
"file_dataset_web_json_desc": "Suma agregada per illa. JSON petit, ideal per a previsualitzacions."
},
"press": {
"title": "Premsa",
+1 -7
View File
@@ -230,8 +230,6 @@
"title": "Datos",
"lead": "Todos los datasets publicados bajo licencia abierta. Descárgalos, analízalos, difúndelos.",
"section_files_title": "Ficheros",
"section_code_title": "Código fuente",
"section_code_body": "El pipeline completo (Python) está en el repositorio del proyecto. Para reproducir los datos desde cero:",
"section_license_title": "Licencia",
"col_file": "Fichero",
"col_format": "Formato",
@@ -246,11 +244,7 @@
"file_tiles_pmtiles": "Vector tiles",
"file_tiles_pmtiles_desc": "Capas vectoriales z0z13. Carga directa en MapLibre o similar.",
"file_dataset_web_json": "Resumen por isla",
"file_dataset_web_json_desc": "Suma agregada por isla. JSON pequeño, ideal para previsualizaciones.",
"repro_step1": "Clona el repo y activa el entorno:",
"repro_step2": "Descarga los datos crudos (Inside Airbnb, INE, HUT, IBESTAT) a data/raw/",
"repro_step3": "Ejecuta los scripts en orden 01 → 06",
"repo_link_label": "Repositorio en GitHub"
"file_dataset_web_json_desc": "Suma agregada por isla. JSON pequeño, ideal para previsualizaciones."
},
"press": {
"title": "Prensa",
-22
View File
@@ -14,7 +14,6 @@ const files = [
{ href: "/data/dataset_web.json", key: "data.file_dataset_web_json", descKey: "data.file_dataset_web_json_desc", format: "JSON", size: "1 KB" },
];
const repoUrl = "https://github.com/itziarZG/Vivienda";
const description = t(lang, "data.lead");
---
@@ -80,27 +79,6 @@ const description = t(lang, "data.lead");
</div>
</section>
<section class="max-w-5xl mx-auto px-4 py-12 border-t border-stone-200">
<h2 class="text-2xl sm:text-3xl font-bold text-stone-900 mb-4">
{t(lang, "data.section_code_title")}
</h2>
<p class="text-stone-700 mb-6">{t(lang, "data.section_code_body")}</p>
<ol class="space-y-3 text-sm text-stone-700 list-decimal pl-5 mb-6">
<li>{t(lang, "data.repro_step1")} <code class="text-xs bg-stone-100 px-1.5 py-0.5 rounded">git clone {repoUrl}.git && cd Vivienda && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt</code></li>
<li>{t(lang, "data.repro_step2")}</li>
<li><code class="text-xs bg-stone-100 px-1.5 py-0.5 rounded">python scripts/01_load_sources.py → 02 → 03 → 04 → 05 → 06</code></li>
</ol>
<a
href={repoUrl}
class="inline-flex items-center gap-2 px-5 py-2.5 border border-stone-300 text-stone-800 font-medium rounded hover:bg-stone-100"
>
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
{t(lang, "data.repo_link_label")} →
</a>
</section>
<section class="max-w-5xl mx-auto px-4 py-12 border-t border-stone-200">
<h2 class="text-2xl sm:text-3xl font-bold text-stone-900 mb-4">
{t(lang, "data.section_license_title")}
-12
View File
@@ -4,7 +4,6 @@ import Base from "../layouts/Base.astro";
import { getLangFromAstroCookies, t, type Lang } from "../i18n";
const lang: Lang = getLangFromAstroCookies(Astro.cookies);
const repoUrl = "https://github.com/itziarZG/Vivienda";
const description = t(lang, "about.lead");
---
@@ -54,15 +53,4 @@ const description = t(lang, "about.lead");
</p>
</section>
<section class="max-w-3xl mx-auto px-4 py-12 border-t border-stone-200">
<a
href={repoUrl}
class="inline-flex items-center gap-2 px-5 py-2.5 border border-stone-300 text-stone-800 font-medium rounded hover:bg-stone-100"
>
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
{repoUrl} →
</a>
</section>
</Base>