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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "2026.es.pycon.org",
"version": "1.17.21",
"version": "1.17.22",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion src/components/ProgramaPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ const schedule = await getSchedule()
;(function () {
const STORAGE_KEY = 'pycones-schedule-view'
const radios = document.querySelectorAll('input[name="schedule-view"]')
const views = document.querySelectorAll('.schedule-view')

function applyView(value) {
// Visibility is driven declaratively from CSS via the
Expand Down
7 changes: 7 additions & 0 deletions src/components/icons/Icon.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ const classes = [sizeClasses, colorClasses, className, 'inline-block flex-shrink
// Build style object for CSS color values
const style = color.startsWith('#') || color.startsWith('rgb') || color.startsWith('hsl') ? { color } : {}

// Lucide hardcodes width/height (24) as HTML attributes, which take precedence over
// Tailwind's width/height utility classes. Neutralize them so the size classes
// (IconSizes) actually control the rendered size.
const lucideSizeProps = { width: '100%', height: '100%' }

// Log missing mappings in development
if (!LucideIconComponent && !svg && !fallback) {
try {
Expand Down Expand Up @@ -60,6 +65,7 @@ if (!LucideIconComponent && !svg && !fallback) {
aria-label={ariaHidden ? undefined : ariaLabel}
aria-hidden={ariaHidden ? 'true' : undefined}
focusable="false"
{...lucideSizeProps}
{...rest}
/>
) : fallback ? (
Expand All @@ -79,6 +85,7 @@ if (!LucideIconComponent && !svg && !fallback) {
aria-label={ariaHidden ? undefined : ariaLabel || `Unknown icon: ${name}`}
aria-hidden={ariaHidden ? 'true' : undefined}
focusable="false"
{...lucideSizeProps}
{...rest}
/>
)
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/components/footer/ca.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export const ca = {
copyright: 'Copyright © Python España & PyConES 2026 Org',
links: [{ label: 'Codi de conducta', href: '/ca/code-of-conduct' }],
contact: {
label: 'Contacte',
email: 'contacto@2026.es.pycon.org',
},
social: {
title: 'Segueix-nos',
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/components/footer/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export const en = {
copyright: 'Copyright © Python España & PyConES 2026 Org',
links: [{ label: 'Code of Conduct', href: '/en/code-of-conduct' }],
contact: {
label: 'Contact',
email: 'contacto@2026.es.pycon.org',
},
social: {
title: 'Follow us',
},
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/components/footer/es.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export const es = {
copyright: 'Copyright © Python España & PyConES 2026 Org',
links: [{ label: 'Código de conducta', href: '/es/code-of-conduct' }],
contact: {
label: 'Contacto',
email: 'contacto@2026.es.pycon.org',
},
social: {
title: 'Síguenos en redes',
},
Expand Down
9 changes: 9 additions & 0 deletions src/layouts/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getRelativeLocaleUrl } from 'astro:i18n'
import { footerTexts } from '@/i18n/components/footer'
import { menuTexts } from '@/i18n/menu'
import SocialIcon from '@/components/icons/SocialIcon.astro'
import Icon from '@/components/icons/Icon.astro'

interface Props {
lang?: string
Expand Down Expand Up @@ -92,6 +93,14 @@ const collaborators = [
</a>
))
}
<a
href={`mailto:${t.contact.email}`}
aria-label={`${t.contact.label}: ${t.contact.email}`}
class="text-pycon-white/80 hover:text-pycon-red transition-colors relative group outline-none focus-visible:text-pycon-red flex items-center gap-1.5"
>
<Icon name="mail" size="sm" aria-hidden={true} />
{t.contact.label}
</a>
</nav>

<!-- Social Links -->
Expand Down
13 changes: 13 additions & 0 deletions src/lib/icons/mappings/contact.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { IconMappingWithFallback } from '@/lib/icons/types'
import { Mail } from '@lucide/astro'

/**
* Contact icon mappings
* Maps semantic names to Lucide icons with emoji fallbacks
*/
export const contactMapping: Record<string, IconMappingWithFallback> = {
mail: {
icon: Mail,
fallback: '✉️',
},
}
2 changes: 2 additions & 0 deletions src/lib/icons/mappings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import { socialMapping } from './social'
import { statisticsMapping } from './statistics'
import { technicalMapping } from './technical'
import { statusMapping } from './status'
import { contactMapping } from './contact'

// Combine all category mappings
const allMappings = {
...socialMapping,
...statisticsMapping,
...technicalMapping,
...statusMapping,
...contactMapping,
}

/**
Expand Down
5 changes: 4 additions & 1 deletion src/lib/icons/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export type TechnicalIconName =
| 'devops-cloud'
| 'others'

export type ContactIconName = 'mail'

export type StatusIconName =
| 'warning'
| 'allowed'
Expand Down Expand Up @@ -92,4 +94,5 @@ export type StatusIconName =
| 'main'

// Union type for all available icon names
export type AvailableIconName = SocialIconName | StatisticIconName | TechnicalIconName | StatusIconName
export type AvailableIconName =
SocialIconName | StatisticIconName | TechnicalIconName | StatusIconName | ContactIconName
1 change: 0 additions & 1 deletion src/pages/[lang]/becas.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const {
documentation,
application,
contact,
faq,
} = t
---

Expand Down
1 change: 0 additions & 1 deletion src/pages/[lang]/django-girls.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const {
signupAttendeesUrl,
signupCoachesLabel,
signupCoachesUrl,
shareText,
} = t
---

Expand Down
Loading