Skip to content
Merged
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 astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const titleCase = (name: string): string => name.replace(/-/g, ' ').replace(/^./

const kinds = [
{kind: 'plugin', label: 'Plugins', es: 'Plugins', dir: 'plugins'},
{kind: 'package', label: 'Packages', es: 'Paquetes', dir: 'packages'},
{kind: 'package', label: 'npm packages', es: 'Paquetes npm', dir: 'packages'},
] as const;

/**
Expand Down
20 changes: 2 additions & 18 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
---
/**
* The foot of a page of the documentation: the link to edit the page, and the foot of the site (see ProjectFoot.astro). There is no
* "previous / next" here: the way through the documentation is the guide of each product, not the order of its files.
* The foot of a page of the documentation. It draws nothing: the site foot is added after the content (see PageFrame.astro), and the
* pages have no "edit this page" link, no "last updated" and no previous/next, which Starlight would otherwise draw here.
*/
import MIcon from './MIcon.astro';
import {t} from '../lib/site';

const route = Astro.locals.starlightRoute;
const lang = route.lang;
const editUrl = route.editUrl;
---

{
editUrl && (
<div class="d-pagefoot">
<a href={editUrl.href}>
<MIcon name="edit-rounded" /> {t(lang, 'editPage')}
</a>
</div>
)
}
10 changes: 4 additions & 6 deletions src/components/ProjectFoot.astro
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ const avatar = (url: string): string => `${url}${url.includes('?') ? '&' : '?'}s
</div>
</div>

<nav class="d-foot-links" aria-label="Didactika">
{organisation.website && <a href={organisation.website}><MIcon name="language-rounded" />{host}</a>}
<a href={organisation.url}>
<span class="d-foot-icons">
{organisation.website && <a class="d-iconbtn" href={organisation.website} aria-label={host ?? 'didactika.org'} title={host ?? 'didactika.org'}><MIcon name="language-rounded" /></a>}
<a class="d-iconbtn" href={organisation.url} aria-label="GitHub" title="GitHub">
<svg class="mi" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.4c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.52-1.33-1.28-1.69-1.28-1.69-1.04-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.76 2.7 1.25 3.36.96.1-.75.4-1.25.73-1.54-2.56-.29-5.25-1.28-5.25-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.78 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z" /></svg>
github.com/{organisation.login}
</a>
<a href={lang === 'es' ? 'https://didactika.org/resources/' : 'https://didactika.org/en/resources/'}><MIcon name="hub-rounded" />{t(lang, 'resources')}</a>
</nav>
</span>
</div>

<div class="d-footer-bar">
Expand Down
3 changes: 3 additions & 0 deletions src/components/SiteHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ const logo = '/brand/didactika-logo.png';
<span class="d-seg-light"><MIcon name="light-mode-rounded" /></span>
<span class="d-seg-dark"><MIcon name="dark-mode-rounded" /></span>
</button>
<a class="d-iconbtn d-hide-md" href="https://didactika.org" aria-label="didactika.org" title="didactika.org">
<MIcon name="language-rounded" />
</a>
<a class="d-iconbtn d-hide-md" href="https://github.com/didactika" aria-label={t(lang, 'github')} title={t(lang, 'github')}>
<svg class="mi" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.4c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.52-1.33-1.28-1.69-1.28-1.69-1.04-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.76 2.7 1.25 3.36.96.1-.75.4-1.25.73-1.54-2.56-.29-5.25-1.28-5.25-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.78 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z" /></svg>
</a>
Expand Down
5 changes: 2 additions & 3 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"plugins": "Plugins",
"pluginsDescription": "Plugins developed by Didactika.",
"packages": "Packages",
"packages": "npm packages",
"packagesDescription": "Libraries and packages developed by Didactika.",
"name": "Name",
"summary": "Summary",
Expand Down Expand Up @@ -68,7 +68,6 @@
"changedIn": "Changed in {line}",
"inThisVersion": "In this version",
"onThisPage": "On this page",
"editPage": "Edit this page",
"notInVersion": "This page does not exist in {line}. You were taken to its overview.",
"footerLicence": "Documentation under GPL-3.0-or-later, as Moodle.",
"footerSource": "Source of this site",
Expand All @@ -87,7 +86,7 @@
"join": "See everything we build and contribute",
"support": "Support Didactika",
"supportLink": "Support Didactika",
"credits": "Built with Starlight · Icons by Material Symbols",
"credits": "Built with Starlight",
"languageFilter": "Find a language",
"languageNone": "No language matches.",
"pathHint": "Read them in this order; each one builds on the one before.",
Expand Down
5 changes: 2 additions & 3 deletions src/i18n/es.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"plugins": "Plugins",
"pluginsDescription": "Plugins desarrollados por Didactika.",
"packages": "Paquetes",
"packages": "Paquetes npm",
"packagesDescription": "Librerías y paquetes desarrollados por Didactika.",
"name": "Nombre",
"summary": "Resumen",
Expand Down Expand Up @@ -68,7 +68,6 @@
"changedIn": "Modificada en {line}",
"inThisVersion": "En esta versión",
"onThisPage": "En esta página",
"editPage": "Editar esta página",
"notInVersion": "Esta página no existe en {line}. Te hemos llevado a su visión general.",
"footerLicence": "Documentación bajo GPL-3.0-or-later, como Moodle.",
"footerSource": "Código de este sitio",
Expand All @@ -87,7 +86,7 @@
"join": "Ver todo lo que construimos y aportamos",
"support": "Apoya a Didactika",
"supportLink": "Apoya a Didactika",
"credits": "Hecho con Starlight · Iconos de Material Symbols",
"credits": "Hecho con Starlight",
"languageFilter": "Buscar un idioma",
"languageNone": "Ningún idioma coincide.",
"pathHint": "Léelas en este orden; cada una se apoya en la anterior.",
Expand Down
13 changes: 0 additions & 13 deletions src/pages/[lang]/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,4 @@ const organised = [
</div>
</div>
</section>

<section class="d-section">
<div class="d-wrap">
<div class="d-more">
<span class="d-tile soft"><MIcon name="hub-rounded" /></span>
<div>
<h2>{t(lang, 'moreTitle')}</h2>
<p>{t(lang, 'moreText')}</p>
</div>
<a class="d-btn ghost" href={lang === 'es' ? 'https://didactika.org/resources/' : 'https://didactika.org/en/resources/'}>{t(lang, 'moreCta')} <MIcon name="arrow-outward-rounded" /></a>
</div>
</div>
</section>
</Landing>
4 changes: 4 additions & 0 deletions src/styles/didactika.css
Original file line number Diff line number Diff line change
Expand Up @@ -584,3 +584,7 @@ a.d-feature:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--li
/* The header already has the colour and the language, so the menu of a small screen does not repeat them. */
.mobile-preferences { display: none; }
.d-pill { text-decoration: none; color: var(--ink); }

/* The web and GitHub are icons: in the header on a wide screen, and in the foot where the header has no room for them. */
.d-foot-icons { display: none; gap: 0.4rem; }
@media (max-width: 62rem) { .d-foot-icons { display: inline-flex; } }
Loading