diff --git a/src/components/StepsButtons.tsx b/src/components/StepsButtons.tsx index 3f88dd730..100614768 100644 --- a/src/components/StepsButtons.tsx +++ b/src/components/StepsButtons.tsx @@ -3,7 +3,7 @@ import React from 'react'; import ChevronLeftIcon from '@mui/icons-material/ChevronLeft'; import ChevronRightIcon from '@mui/icons-material/ChevronRight'; -import { Button } from '@mui/material'; +import { Box, Button } from '@mui/material'; export interface StepsButtonProps { prev?: string | (() => void); @@ -11,18 +11,31 @@ export interface StepsButtonProps { } export const StepsButton = ({ prev, next }: StepsButtonProps) => { + const justifyContent = prev && next ? 'space-between' : prev ? 'start' : 'end'; return ( -
+ {prev !== undefined && (typeof prev === 'string' ? ( - ) : ( - @@ -30,17 +43,17 @@ export const StepsButton = ({ prev, next }: StepsButtonProps) => { {next !== undefined && (typeof next === 'string' ? ( - ) : ( - ))} -
+ ); }; diff --git a/src/components/activities/ActivityChoice/index.tsx b/src/components/activities/ActivityChoice/index.tsx index 0d809d542..6a32e14cb 100644 --- a/src/components/activities/ActivityChoice/index.tsx +++ b/src/components/activities/ActivityChoice/index.tsx @@ -16,8 +16,17 @@ interface ActivityChoiceProps { export const ActivityChoice = ({ activities }: ActivityChoiceProps) => { return ( -
-
+
+
{activities.map((activity) => { if (activity.disabled && activity.disabledText) { return ( diff --git a/src/components/buttons/BackButton.tsx b/src/components/buttons/BackButton.tsx index c91a8a8d2..5a825a576 100644 --- a/src/components/buttons/BackButton.tsx +++ b/src/components/buttons/BackButton.tsx @@ -20,8 +20,8 @@ export const BackButton = ({ href, label = 'Retour' }: BackButtonProps) => { }; return ( -
- + -
+ ); }; diff --git a/src/pages/indice-culturel/2.tsx b/src/pages/indice-culturel/2.tsx index 532c51978..c363d1f30 100644 --- a/src/pages/indice-culturel/2.tsx +++ b/src/pages/indice-culturel/2.tsx @@ -1,6 +1,8 @@ import { useRouter } from 'next/router'; import React from 'react'; +import { Box } from '@mui/material'; + import { isIndice } from 'src/activity-types/anyActivity'; import { getIndice } from 'src/activity-types/indice.constants'; import type { IndiceData } from 'src/activity-types/indice.types'; @@ -45,7 +47,15 @@ const IndiceStep2 = () => { return ( -
+ {
-
+ ); }; diff --git a/src/pages/indice-culturel/3.tsx b/src/pages/indice-culturel/3.tsx index 61732a942..2efc129a0 100644 --- a/src/pages/indice-culturel/3.tsx +++ b/src/pages/indice-culturel/3.tsx @@ -3,7 +3,7 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; import React from 'react'; -import { Tooltip } from '@mui/material'; +import { Box, Tooltip } from '@mui/material'; import Backdrop from '@mui/material/Backdrop'; import Button from '@mui/material/Button'; import CircularProgress from '@mui/material/CircularProgress'; @@ -64,7 +64,15 @@ const IndiceStep3 = () => { return ( -
+ {
-
+ diff --git a/src/pages/indice-culturel/index.tsx b/src/pages/indice-culturel/index.tsx index 68b4b8aef..159c9c17e 100644 --- a/src/pages/indice-culturel/index.tsx +++ b/src/pages/indice-culturel/index.tsx @@ -1,5 +1,7 @@ import React from 'react'; +import { Box } from '@mui/material'; + import { Base } from 'src/components/Base'; import { ActivityChoice } from 'src/components/activities/ActivityChoice'; import ArtIcon from 'src/svg/indice-culturel/art.svg'; @@ -80,7 +82,15 @@ const indices = [ const Indice = () => { return ( -
+

Quel aspect de culture allez-vous présenter ?

@@ -93,7 +103,7 @@ const Indice = () => {

-
+ ); }; diff --git a/src/pages/indice-culturel/success.tsx b/src/pages/indice-culturel/success.tsx index 69ae93074..b0b00547b 100644 --- a/src/pages/indice-culturel/success.tsx +++ b/src/pages/indice-culturel/success.tsx @@ -1,7 +1,7 @@ import Link from 'next/link'; import React from 'react'; -import { Button } from '@mui/material'; +import { Box, Button } from '@mui/material'; import { Base } from 'src/components/Base'; import { bgPage } from 'src/styles/variables.const'; @@ -10,7 +10,15 @@ import PelicoSouriant from 'src/svg/pelico/pelico-souriant.svg'; const IndiceSuccess = () => { return ( -
+

Votre indice culturel a bien été publié !

@@ -22,7 +30,7 @@ const IndiceSuccess = () => {
-
+ ); };