Skip to content

Commit 8297aa3

Browse files
authored
Seccion CFP en la home (#157)
Seccion CFP en la home <img width="1279" height="618" alt="image" src="https://github.com/user-attachments/assets/337c7e48-a87c-466b-abda-1a1ad4a5f473" />
1 parent 7e74d52 commit 8297aa3

4 files changed

Lines changed: 51 additions & 1 deletion

File tree

src/components/Button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const sizes = {
2424
}
2525
2626
const baseClasses =
27-
"inline-flex items-center justify-center font-['Outfit'] font-medium rounded-lg text-center transition-colors duration-200 cursor-pointer"
27+
'inline-flex items-center justify-center font-medium rounded-lg text-center transition-colors duration-200 cursor-pointer'
2828
2929
const Element = href ? 'a' : 'button'
3030
---
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
import { texts } from '../../i18n/home'
3+
import SectionTitle from '../SectionTitle.astro'
4+
import Button from '../Button.astro'
5+
6+
interface Props {
7+
lang: string
8+
}
9+
10+
const { lang } = Astro.props
11+
const t = texts[lang as keyof typeof texts]
12+
---
13+
14+
<div class="flex flex-col items-center gap-6">
15+
<SectionTitle title={t['cfp.title']} />
16+
17+
<div
18+
class="bg-white/5 backdrop-blur-md p-8 rounded-2xl border border-white/10 hover:border-pycon-orange/50 transition-all shadow-xl w-full"
19+
>
20+
<p class="text-lg text-pycon-gray-25 leading-relaxed mb-6 text-center">
21+
{t['cfp.description']}
22+
</p>
23+
24+
<div class="flex justify-center">
25+
<Button
26+
variant="primary"
27+
size="lg"
28+
href="https://pretalx.com/pycones-2026/cfp"
29+
target="_blank"
30+
rel="noopener noreferrer"
31+
>
32+
{t['cfp.button']}
33+
</Button>
34+
</div>
35+
</div>
36+
</div>

src/components/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import Layout from '@/layouts/Layout.astro'
33
import SectionMain from './home/SectionMain.astro'
4+
import SectionCallForProposals from './home/SectionCallForProposals.astro'
45
import SectionSponsors from './home/SectionSponsors.astro'
56
67
interface Props {
@@ -13,6 +14,7 @@ const { lang } = Astro.props
1314
<Layout title="PyConES 2026">
1415
<div class="flex flex-col gap-20">
1516
<SectionMain lang={lang} />
17+
<SectionCallForProposals lang={lang} />
1618
<SectionSponsors lang={lang} />
1719
</div>
1820
</Layout>

src/i18n/home.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export const texts = {
1414
'sponsors.bronze': 'Patrocinador Bronce',
1515
'sponsors.none': 'No hay patrocinadores en este nivel',
1616
'sponsors.altlogo': 'Logo de {name}',
17+
'cfp.title': 'Llamada a Propuestas',
18+
'cfp.description':
19+
'¡Ya está abierta la llamada a propuestas! Mándanos tu charla o taller antes del 3 de mayo a las 23:59h (hora peninsular). Si te estás preguntando si puedes hacer esto, la respuesta es que sí. Si tienes un tema que te interesa, ¡nos interesa!',
20+
'cfp.button': 'Envía tu propuesta',
1721
},
1822
en: {
1923
'index.initializing': 'Initialising system...',
@@ -30,6 +34,10 @@ export const texts = {
3034
'sponsors.bronze': 'Bronze Sponsor',
3135
'sponsors.none': 'No sponsors in this tier',
3236
'sponsors.altlogo': '{name} logo',
37+
'cfp.title': 'Call for Proposals',
38+
'cfp.description':
39+
"The call for proposals is now open! Send us your talk or workshop before May 3rd at 23:59 (CET). If you're wondering whether you can do this, the answer is yes. If you have a topic that interests you, it interests us!",
40+
'cfp.button': 'Submit your proposal',
3341
},
3442
ca: {
3543
'index.initializing': 'Inicialitzant sistema...',
@@ -46,5 +54,9 @@ export const texts = {
4654
'sponsors.bronze': 'Patrocinador Bronze',
4755
'sponsors.none': 'No hi ha patrocinadors en aquest nivell',
4856
'sponsors.altlogo': 'Logo de {name}',
57+
'cfp.title': 'Crida a Propostes',
58+
'cfp.description':
59+
"Ja està oberta la crida a propostes! Envia'ns la teva xerrada o taller abans del 3 de maig a les 23:59h (hora peninsular). Si t'estàs preguntant si pots fer això, la resposta és que sí. Si tens un tema que t'interessa, ens interessa!",
60+
'cfp.button': 'Envia la teva proposta',
4961
},
5062
} as const

0 commit comments

Comments
 (0)