-
Notifications
You must be signed in to change notification settings - Fork 3
Feat: add jobs page #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
itziarZG
wants to merge
10
commits into
main
Choose a base branch
from
feat/jobs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat: add jobs page #177
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
aea7b75
feat: add teams page with accessible card grid
francescarpi 6c90553
fix: format code
francescarpi ee76971
feat: group accommodation and teams under Information dropdown menu
francescarpi 07a257a
feat: move venue into Information dropdown menu
francescarpi 5cb5a55
fix: adjust heading hierarchy in TeamsPage
francescarpi 530b1cd
revert: h1 and change h3 to h2
francescarpi 61609d5
feat: add jobs page
itziarAPSL 9ddc3ce
feat: change offers to draft
itziarAPSL ef7a1d4
Merge branch 'main' into feat/jobs
itziarAPSL d4b2f1a
feat: formatting
itziarAPSL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,186 @@ | ||
| --- | ||
| import { jobsTexts } from '../i18n/jobs' | ||
|
|
||
| interface Props { | ||
| lang: string | ||
| } | ||
|
|
||
| interface JobFrontmatter { | ||
| title: string | ||
| company: string | ||
| location: string | ||
| type: string | ||
| description: string | ||
| skills?: string[] | ||
| salary?: string | ||
| apply_url: string | ||
| tier?: string | ||
| draft?: boolean | ||
| } | ||
|
|
||
| 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 { | ||
| frontmatter: JobFrontmatter | ||
| }[] | ||
| const enJobs = Object.values(import.meta.glob('../data/jobs/en/*.md', { eager: true })) as { | ||
| frontmatter: JobFrontmatter | ||
| }[] | ||
| const caJobs = Object.values(import.meta.glob('../data/jobs/ca/*.md', { eager: true })) as { | ||
| frontmatter: JobFrontmatter | ||
| }[] | ||
|
|
||
| const allJobsMap: Record<string, { frontmatter: JobFrontmatter }[]> = { | ||
| es: esJobs, | ||
| en: enJobs, | ||
| ca: caJobs, | ||
| } | ||
|
|
||
| const allJobs = allJobsMap[lang] || [] | ||
|
|
||
| const jobs = allJobs | ||
| .filter((job) => job.frontmatter.draft !== true) | ||
| .sort((a, b) => { | ||
| const tierOrder = { platinum: 0, gold: 1, silver: 2, bronze: 3 } | ||
| const aTier = tierOrder[a.frontmatter.tier as keyof typeof tierOrder] ?? 4 | ||
| const bTier = tierOrder[b.frontmatter.tier as keyof typeof tierOrder] ?? 4 | ||
| if (aTier !== bTier) return aTier - bTier | ||
| return 0 | ||
| }) | ||
|
|
||
| const isFeatured = (tier?: string) => tier === 'gold' || tier === 'platinum' | ||
| --- | ||
|
|
||
| <div class="jobs-container pb-20"> | ||
| <section class="mb-12" aria-labelledby="jobs-heading"> | ||
| <h1 id="jobs-heading" class="text-4xl md:text-6xl font-black text-white mb-6 uppercase tracking-tighter"> | ||
| {t.hero} | ||
| </h1> | ||
| <p class="text-xl text-pycon-gray-25 max-w-2xl">{t.subtitle}</p> | ||
| </section> | ||
|
|
||
| { | ||
| jobs.length === 0 ? ( | ||
| <p class="text-pycon-gray-25 text-lg">{t.no_jobs}</p> | ||
| ) : ( | ||
| <section aria-labelledby="jobs-list-heading" class="grid md:grid-cols-2 gap-8"> | ||
| <h2 id="jobs-list-heading" class="sr-only"> | ||
| {t.hero} | ||
| </h2> | ||
| {jobs.map(({ frontmatter: job }) => ( | ||
| <article | ||
| class={`flex flex-col bg-pycon-black/40 p-6 rounded-2xl border transition-all motion-safe:hover:-translate-y-2 ${isFeatured(job.tier) ? 'border-pycon-orange/50 hover:border-pycon-orange' : 'border-white/5 hover:border-white/20'}`} | ||
| > | ||
| <header class="flex items-start justify-between mb-3"> | ||
| <div> | ||
| <h2 class="text-xl font-bold text-white mb-1">{job.title}</h2> | ||
| <p class="text-pycon-orange text-lg font-medium">{job.company}</p> | ||
| </div> | ||
| {isFeatured(job.tier) && ( | ||
| <span class="px-3 py-1 bg-pycon-orange/20 text-pycon-orange text-xs font-bold rounded-full uppercase"> | ||
| {t.featured} | ||
| </span> | ||
| )} | ||
| </header> | ||
|
|
||
| <div class="h-20 mb-3"> | ||
| <p class="text-pycon-gray-25 text-base leading-relaxed line-clamp-3">{job.description}</p> | ||
| </div> | ||
|
|
||
| {job.skills && job.skills.length > 0 && ( | ||
| <div class="mb-3"> | ||
| <p class="text-sm text-pycon-gray-50 mb-2 uppercase tracking-wide">{t.skills}</p> | ||
| <div class="flex flex-wrap gap-2"> | ||
| {job.skills.map((skill) => ( | ||
| <span class="px-3 py-1.5 bg-gradient-to-r from-pycon-orange/30 to-pycon-yellow/20 text-white text-sm rounded-full border border-pycon-orange/30"> | ||
| {skill} | ||
| </span> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| )} | ||
|
|
||
| <footer class="mt-auto"> | ||
| <div class="flex flex-wrap items-center gap-x-4 gap-y-2 text-base text-pycon-gray-50 mb-4"> | ||
| <div class="flex items-center gap-2"> | ||
| <svg | ||
| class="w-4 h-4 shrink-0" | ||
| fill="none" | ||
| stroke="currentColor" | ||
| viewBox="0 0 24 24" | ||
| aria-hidden="true" | ||
| > | ||
| <path | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| stroke-width="2" | ||
| d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" | ||
| /> | ||
| <path | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| stroke-width="2" | ||
| d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" | ||
| /> | ||
| </svg> | ||
| <span>{job.location}</span> | ||
| </div> | ||
| <span class="px-2 py-0.5 bg-white/5 rounded text-xs">{job.type}</span> | ||
| {job.salary && <span class="text-pycon-yellow">{job.salary}</span>} | ||
| </div> | ||
|
|
||
| <a | ||
| href={job.apply_url} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| aria-label={`${job.title} en ${job.company} ${t.apply} ${t.location}: ${job.location}`} | ||
| class="inline-flex items-center gap-2 px-4 py-2 bg-pycon-orange text-white font-bold rounded-lg hover:bg-white hover:text-pycon-orange transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-pycon-orange" | ||
| > | ||
| {t.apply} | ||
| <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"> | ||
| <path | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| stroke-width="2" | ||
| d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" | ||
| /> | ||
| </svg> | ||
| </a> | ||
| </footer> | ||
| </article> | ||
| ))} | ||
| </section> | ||
| ) | ||
| } | ||
| </div> | ||
|
|
||
| <style> | ||
| .jobs-container { | ||
| animation: fadeIn 0.8s ease-out; | ||
| } | ||
|
|
||
| .line-clamp-3 { | ||
| display: -webkit-box; | ||
| -webkit-line-clamp: 3; | ||
| -webkit-box-orient: vertical; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| @keyframes fadeIn { | ||
| from { | ||
| opacity: 0; | ||
| transform: translateY(20px); | ||
| } | ||
| to { | ||
| opacity: 1; | ||
| transform: translateY(0); | ||
| } | ||
| } | ||
|
|
||
| @media (prefers-reduced-motion: reduce) { | ||
| .jobs-container { | ||
| animation: none; | ||
| } | ||
| } | ||
| </style> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: 'Nombre del puesto' | ||
| company: 'Nombre de la empresa' | ||
| location: 'Remoto / Madrid / Barcelona' | ||
| type: 'Full-time' | ||
| description: 'Descripción breve del puesto. Explica qué harás, el equipo, el proyecto, etc.' | ||
| skills: [Python, Django, PostgreSQL] | ||
| salary: '35k-50k' | ||
| apply_url: 'https://ejemplo.com/careers' | ||
| tier: 'gold' | ||
| draft: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: 'Senior Python Developer' | ||
| company: 'JetBrains' | ||
| location: 'Remot' | ||
| type: 'Full-time' | ||
| description: "Uneix-te al nostre equip per treballar en eines de desenvolupament d'última generació. Formaràs part d'un equip que crea productes utilitzats per milions de desenvolupadors a tot el món." | ||
| skills: [Python, Django, PostgreSQL, AWS] | ||
| salary: '60k-80k' | ||
| apply_url: 'https://www.jetbrains.com/careers/' | ||
| tier: 'gold' | ||
| draft: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: 'Senior Backend Engineer' | ||
| company: 'Fever' | ||
| location: 'Madrid - Hybrid' | ||
| type: 'Full-time' | ||
| description: "We're looking for a Senior Backend Engineer to join our backend team, with outstanding software development talent." | ||
| skills: [Python, Django, PostgreSQL, Redis, AWS, Docker, Kubernetes] | ||
| salary: '50k-70k + 10% + stock options' | ||
| apply_url: 'https://careers.feverup.com/' | ||
| tier: 'gold' | ||
| draft: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: 'Senior Python Developer' | ||
| company: 'JetBrains' | ||
| location: 'Remote' | ||
| type: 'Full-time' | ||
| description: "Join our team to work on cutting-edge developer tools. You'll be part of a team that creates products used by millions of developers worldwide." | ||
| skills: [Python, Django, PostgreSQL, AWS] | ||
| salary: '60k-80k' | ||
| apply_url: 'https://www.jetbrains.com/careers/' | ||
| tier: 'gold' | ||
| draft: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: 'Senior Backend Engineer' | ||
| company: 'Fever' | ||
| location: 'Madrid - Hybrid' | ||
| type: 'Full-time' | ||
| description: "We're looking for a Senior Backend Engineer to join our backend team, with outstanding software development talent demonstrated by great work results and experience." | ||
| skills: [Python, Django, PostgreSQL, Redis, AWS, Docker, Kubernetes] | ||
| salary: '50k-70k + 10% + stock options' | ||
| apply_url: 'https://careers.feverup.com/' | ||
| tier: 'gold' | ||
| draft: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| title: 'Senior Python Developer' | ||
| company: 'JetBrains' | ||
| location: 'Remoto' | ||
| type: 'Full-time' | ||
| description: "Join our team to work on cutting-edge developer tools. You'll be part of a team that creates products used by millions of developers worldwide." | ||
| skills: [Python, Django, PostgreSQL, AWS] | ||
| salary: '60k-80k' | ||
| apply_url: 'https://www.jetbrains.com/careers/' | ||
| tier: 'gold' | ||
| draft: true | ||
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| export const ca = { | ||
| title: 'Ofertes de treball | PyConES 2026', | ||
| hero: 'Ofertes de treball', | ||
| subtitle: 'Les següents ofertes han estat enviades pels patrocinadors de la conferència:', | ||
| apply: 'Veure detalls', | ||
| featured: 'Destacat', | ||
| salary: 'Sou', | ||
| location: 'Ubicació', | ||
| no_jobs: 'No hi ha ofertes de treball publicades en aquest idioma.', | ||
| skills: 'Tecnologies', | ||
| } as const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| export const en = { | ||
| title: 'Job offers | PyConES 2026', | ||
| hero: 'Job offers', | ||
| subtitle: 'The following offers have been submitted by conference sponsors:', | ||
| apply: 'View details', | ||
| featured: 'Featured', | ||
| salary: 'Salary', | ||
| location: 'Location', | ||
| no_jobs: 'No job offers published in this language.', | ||
| skills: 'Technologies', | ||
| } as const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| export const es = { | ||
| title: 'Ofertas de trabajo | PyConES 2026', | ||
| hero: 'Ofertas de trabajo', | ||
| subtitle: 'Las siguientes ofertas han sido enviadas por los patrocinadores de la conferencia:', | ||
| apply: 'Ver detalles', | ||
| featured: 'Destacado', | ||
| salary: 'Salario', | ||
| location: 'Ubicación', | ||
| no_jobs: 'No hay ofertas de trabajo publicadas en este idioma.', | ||
| skills: 'Tecnologías', | ||
| } as const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import { es } from './es' | ||
| import { en } from './en' | ||
| import { ca } from './ca' | ||
|
|
||
| export const jobsTexts = { | ||
| es, | ||
| en, | ||
| ca, | ||
| } as const |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| import Layout from '../../layouts/Layout.astro' | ||
| import JobsPage from '../../components/JobsPage.astro' | ||
| import { jobsTexts } from '../../i18n/jobs' | ||
|
|
||
| export function getStaticPaths() { | ||
| return [{ params: { lang: 'es' } }, { params: { lang: 'en' } }, { params: { lang: 'ca' } }] | ||
| } | ||
|
|
||
| const { lang } = Astro.params | ||
|
|
||
| const titles = { | ||
| es: 'Ofertas de trabajo | PyConES 2026', | ||
| en: 'Job offers | PyConES 2026', | ||
| ca: 'Ofertes de treball | PyConES 2026', | ||
| } | ||
|
|
||
| const title = titles[(lang || 'es') as keyof typeof titles] | ||
| --- | ||
|
|
||
| <Layout title={title}> | ||
| <div class="grow w-full pt-24"> | ||
| <div class="container mx-auto px-4 md:px-8"> | ||
| <JobsPage lang={lang || 'es'} /> | ||
| </div> | ||
| </div> | ||
| </Layout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.