Skip to content

Feat: add jobs page#177

Open
itziarZG wants to merge 10 commits intomainfrom
feat/jobs
Open

Feat: add jobs page#177
itziarZG wants to merge 10 commits intomainfrom
feat/jobs

Conversation

@itziarZG
Copy link
Copy Markdown
Collaborator

@itziarZG itziarZG commented May 10, 2026

Summary

  • New job offers page at /es/jobs/, /en/jobs/, /ca/jobs/
  • Jobs managed via markdown files in src/data/jobs/{lang}/
  • Cards with description (fixed height with ellipsis), skills (colored gradient tags), location, salary, and apply button
  • Featured jobs (gold/platinum tier) highlighted with orange border
  • Draft support for sponsors to create unpublished offers (draft: true/false)
  • Accessibility: semantic HTML (section/article/header/footer), aria-labels on external links, reduced motion support
  • Menu updated with new "Ofertas de trabajo" / "Job offers" / "Ofertes de treball" link
Screenshot from 2026-05-10 19-08-28 Screenshot from 2026-05-10 19-08-05

Files

  • src/components/JobsPage.astro - Job cards component
  • src/pages/[lang]/jobs.astro - Page route
  • src/i18n/jobs/es.ts, en.ts, ca.ts, index.ts - Translations
  • src/data/jobs/{es,en,ca}/*.md - Example job offers + template
  • src/i18n/menu/es.ts, en.ts, ca.ts - Updated menu

francescarpi and others added 8 commits May 10, 2026 09:36
Adds /teams route for all locales (es, en, ca) listing all organization teams with name, description and contact email. Includes nav menu links and WCAG-compliant markup (role="list", focus-visible, aria-label with team context, aria-labelledby on sections).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@itziarZG itziarZG marked this pull request as draft May 10, 2026 17:44
@itziarZG itziarZG marked this pull request as ready for review May 10, 2026 17:48
@ctrl-alt-d
Copy link
Copy Markdown
Collaborator

Lo reviso, quería comentar a bada que en mi máquina (MacBook 13') el nav bar queda muy apretaducho:

Captura de pantalla 2026-05-10 a les 20 15 04

Copy link
Copy Markdown
Collaborator

@ctrl-alt-d ctrl-alt-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por temas de a11y;

Eliminaría el h2 de sr-only por dos motivos:

<h2 id="jobs-list-heading" class="sr-only"> Ofertas de trabajo </h2>
    1. Porque dentro de cada oferta de trabajo hay otro h2
    1. Porque mejor hacemos esto:

Podría la lista de ofertas dentro de un ul y cada oferta un li. Así el lector anuncia cuantas oferta hay.

const { lang } = Astro.props
const t = jobsTexts[(lang || 'es') as keyof typeof jobsTexts]

const esJobs = Object.values(import.meta.glob('../data/jobs/es/*.md', { eager: true })) as {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creo que las ofertas van a estar en un solo idioma. Se podría confirmar en el discord de sponsors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants