feat: atualizar exibição da saudação na Retrospectiva com nome do usuário e ajustar estilos

main
guilherme 2025-12-15 10:01:37 -03:00
parent 5dfe4570e6
commit cd45b9fa41
3 changed files with 20 additions and 7 deletions

View File

@ -4,6 +4,7 @@ type MetricsByPortalProps = {
nomeSistema: string; nomeSistema: string;
totalAcessos: number; totalAcessos: number;
horasLogadas: number; horasLogadas: number;
nomeUsuario: string;
}; };
type GetMetricsByPortalParams = { type GetMetricsByPortalParams = {

View File

@ -117,7 +117,7 @@
--popover-foreground: oklch(0.145 0 0); --popover-foreground: oklch(0.145 0 0);
--primary: #0e233d; --primary: #0e233d;
--primary-foreground: oklch(0.985 0 0); --primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0); --secondary: #febb01;
--secondary-foreground: oklch(0.205 0 0); --secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0); --muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0); --muted-foreground: oklch(0.556 0 0);

View File

@ -124,16 +124,28 @@ export function RetrospectiveSlides() {
/> />
</motion.div> </motion.div>
<motion.h1 <motion.h1
className="text-6xl md:text-7xl font-medium mb-4" className="text-5xl md:text-6xl font-medium mb-4"
initial={{ y: 20, opacity: 0 }} initial={{ y: 20, opacity: 0 }}
whileInView={{ y: 0, opacity: 1 }} whileInView={{ y: 0, opacity: 1 }}
viewport={{ once: true }} viewport={{ once: true }}
transition={{ duration: 0.6, delay: 0.2 }}> transition={{ duration: 0.6, delay: 0.2 }}>
Sua Retrospectiva {metricsPortal && metricsPortal[0]?.nomeUsuario ? (
<br /> <>
Ágape {year} Olá,{' '}
</motion.h1> <span className="text-secondary">
{metricsPortal[0].nomeUsuario.split(' ')[0]}
</span>
!
<br />
Bem-vindo à sua Retrospectiva Ágape {year}
</>
) : (
<>
Retrospectiva Ágape {year}
</>
)}
</motion.h1>
<motion.p <motion.p
className="text-xl md:text-2xl text-white/90 max-w-2xl mx-auto font-light" className="text-xl md:text-2xl text-white/90 max-w-2xl mx-auto font-light"