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
1 change: 1 addition & 0 deletions application/src/data/pages/home/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export default {
},
cta: 'Submit via Conference HALL',
ctaHref: 'https://conference-hall.io/cloud-native-provence-2026',
ctaDisabled: true,
image: {
src: '~/assets/images/pages/home/event.jpg',
alt: 'Call for Papers',
Expand Down
1 change: 1 addition & 0 deletions application/src/data/pages/home/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export default {
},
cta: 'Soumettre via Conference HALL',
ctaHref: 'https://conference-hall.io/cloud-native-provence-2026',
ctaDisabled: true,
image: {
src: '~/assets/images/pages/home/event.jpg',
alt: 'Appel à conférenciers',
Expand Down
25 changes: 18 additions & 7 deletions application/src/pages/home/_content.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface Props {
};
cta?: string;
ctaHref?: string;
ctaDisabled?: boolean;
};
venue?: {
title?: string;
Expand Down Expand Up @@ -270,13 +271,23 @@ const heroBadge = hero?.badge;

{cfp.cta && (
<div class="pt-2 text-center">
<a
href={cfp.ctaHref ?? '#'}
class="inline-flex items-center justify-center rounded-md bg-primary px-6 py-3 font-semibold text-white transition hover:opacity-90"
{...(cfp.ctaHref?.startsWith('http') ? { target: '_blank', rel: 'noopener noreferrer' } : {})}
>
{cfp.cta}
</a>
{cfp.ctaDisabled ? (
<span
role="button"
aria-disabled="true"
class="inline-flex cursor-not-allowed items-center justify-center rounded-md bg-gray-400 px-6 py-3 font-semibold text-white opacity-60 dark:bg-gray-600"
>
{cfp.cta}
</span>
) : (
<a
href={cfp.ctaHref ?? '#'}
class="inline-flex items-center justify-center rounded-md bg-primary px-6 py-3 font-semibold text-white transition hover:opacity-90"
{...(cfp.ctaHref?.startsWith('http') ? { target: '_blank', rel: 'noopener noreferrer' } : {})}
>
{cfp.cta}
</a>
)}
</div>
)}
</div>
Expand Down
Loading