Skip to content

Commit b95d747

Browse files
committed
adjust start session styles
1 parent 05f2b0c commit b95d747

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

apps/web/src/routes/_app/session/start-session.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,24 @@ const RouteComponent = () => {
6060
<motion.div
6161
animate={{ opacity: 1, scale: 1 }}
6262
className="flex grow"
63-
exit={{ opacity: 0, scale: 0 }}
64-
initial={{ opacity: 0, scale: 0 }}
63+
exit={{ opacity: 0, scale: 0.5 }}
64+
initial={{ opacity: 0, scale: 0.5 }}
6565
key="modal"
66+
transition={{ duration: 0.3 }}
6667
>
6768
<div className="flex grow items-center justify-center">
68-
{currentSession !== null && (
69-
<Card className="mx-auto block max-w-3xl border p-12 text-green-600 opacity-70 dark:text-green-300">
70-
<div className="flex flex-col items-center justify-center gap-y-10">
71-
<CheckCircle className="!size-20" />
72-
<p className="max-w-2xl text-center text-lg font-medium">
73-
{t({
74-
en: 'The current session must be ended before starting the form again.',
75-
fr: 'La session en cours doit être terminée avant de recommencer le formulaire.'
76-
})}
77-
</p>
78-
</div>
79-
</Card>
80-
)}
69+
<Card className="mx-auto flex max-w-2xl flex-col items-center p-12 opacity-70">
70+
<CheckCircle className="mb-3 !size-10 text-green-900 dark:text-green-500" />
71+
<h5 className="font-semibold text-green-900 dark:text-green-500">
72+
{t({ en: 'Session Successfully Started', fr: 'Session démarrée avec succès' })}
73+
</h5>
74+
<p className="text-sm text-green-700 dark:text-green-300">
75+
{t({
76+
en: 'Please note that you must end the current session before completing this form again.',
77+
fr: 'Veuillez noter que vous devez mettre fin à la session en cours avant de remplir à nouveau ce formulaire.'
78+
})}
79+
</p>
80+
</Card>
8181
</div>
8282
</motion.div>
8383
)}

0 commit comments

Comments
 (0)