diff --git a/web/components/Campaign/Places/PlacesListCampaignHelper.tsx b/web/components/Campaign/Places/PlacesListCampaignHelper.tsx index beea3f05..1bba5239 100644 --- a/web/components/Campaign/Places/PlacesListCampaignHelper.tsx +++ b/web/components/Campaign/Places/PlacesListCampaignHelper.tsx @@ -15,24 +15,30 @@ import { ROUTE_PLACES } from '~constants' const PlacesListCampaignHelper = ({ campaign, limitLines, + isHome, ...props -}: { campaign?: ActiveCampaign; limitLines?: boolean } & StackProps) => { +}: { + campaign?: ActiveCampaign + limitLines?: boolean + isHome?: boolean +} & StackProps) => { const { t } = useTranslation('common') return ( - {campaign && } - + {campaign && !isHome && ( + + )} + {campaign diff --git a/web/components/Home/HomePlaces.tsx b/web/components/Home/HomePlaces.tsx index 29c9a0cc..fb2b7e9b 100644 --- a/web/components/Home/HomePlaces.tsx +++ b/web/components/Home/HomePlaces.tsx @@ -6,6 +6,7 @@ import { Button, useBreakpointValue, HStack, + Stack, } from '@chakra-ui/react' import { useTranslation } from 'next-i18next' import Arrow from 'public/assets/img/arrow-bottom.svg' @@ -50,25 +51,27 @@ const HomePlaces = ({ campaign }: Props) => { return ( - + - - {campaign - ? t('campaign.title', { title: campaign?.title }) - : t('places.title')} - - {campaign && ( - - {tCommon('campaign.open', { - date: format(new Date(campaign?.limitDate), 'd MMMM yyyy'), - })} - - )} + + + {campaign + ? t('campaign.title', { title: campaign?.title }) + : t('places.title')} + + {campaign && ( + + {tCommon('campaign.open', { + date: format(new Date(campaign?.limitDate), 'd MMMM yyyy'), + })} + + )} + - + @@ -81,6 +84,10 @@ const HomePlaces = ({ campaign }: Props) => { size="xl" color={'campaign.dark'} _hover={{ bg: 'campaign.light', textDecor: 'none' }} + whiteSpace="normal" + textAlign="center" + p={6} + lineHeight="inherit" > {t('places.campaign.cta', { title: campaign?.title, diff --git a/web/public/locales/fr/home.json b/web/public/locales/fr/home.json index d60501f0..48afa262 100644 --- a/web/public/locales/fr/home.json +++ b/web/public/locales/fr/home.json @@ -32,7 +32,7 @@ "cta": "Mes espaces" }, "applications": { - "title": "Les créneaux Émergence sont ouverts !", + "title": "Les créneaux sont ouverts !", "subtitle": "Candidatez avant le le {{date}}.", "cta": "Parcourir" }