From 631ef1501c47ebd7d1a5f2571bab306811e22c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Thu, 17 Apr 2025 17:01:41 -0300 Subject: [PATCH] wip --- superpage/.prettierrc | 3 +- superpage/src/components/Menu.jsx | 20 ++---- superpage/src/layouts/Layout.astro | 7 +- superpage/src/pages/[slug].astro | 112 ++++++++++------------------- 4 files changed, 48 insertions(+), 94 deletions(-) diff --git a/superpage/.prettierrc b/superpage/.prettierrc index 6fed3d0..e5e24fd 100644 --- a/superpage/.prettierrc +++ b/superpage/.prettierrc @@ -2,5 +2,6 @@ "tabWidth": 2, "useTabs": false, "semi": false, - "singleQuote": true + "singleQuote": true, + "printWidth": 120 } diff --git a/superpage/src/components/Menu.jsx b/superpage/src/components/Menu.jsx index fa88c19..fa318f7 100644 --- a/superpage/src/components/Menu.jsx +++ b/superpage/src/components/Menu.jsx @@ -1,8 +1,4 @@ -import { - ChevronDownIcon, - XMarkIcon, - MagnifyingGlassIcon, -} from '@heroicons/react/24/solid' +import { ChevronDownIcon, XMarkIcon, MagnifyingGlassIcon } from '@heroicons/react/24/solid' import { Popover, PopoverButton, @@ -19,16 +15,14 @@ export function Menu({ recentCourses }) { return ( -
- NR-18 PEMT Plataforma Móvel de Trabalho -
+
NR-18 PEMT Plataforma Móvel de Trabalho
@@ -42,15 +36,11 @@ export function Menu({ recentCourses }) {
Curso de formação -

- NR-18 PEMT Plataforma Elevatória Móvel de Trabalho -

+

NR-18 PEMT Plataforma Elevatória Móvel de Trabalho

-
- Conheça outros cursos da EDUSEG® -
+
Conheça outros cursos da EDUSEG®
{/* Search */} diff --git a/superpage/src/layouts/Layout.astro b/superpage/src/layouts/Layout.astro index b1e526e..57ecb6a 100644 --- a/superpage/src/layouts/Layout.astro +++ b/superpage/src/layouts/Layout.astro @@ -31,17 +31,14 @@ import '@fontsource/roboto' -
+
diff --git a/superpage/src/pages/[slug].astro b/superpage/src/pages/[slug].astro index fb92b87..52c0d96 100644 --- a/superpage/src/pages/[slug].astro +++ b/superpage/src/pages/[slug].astro @@ -3,7 +3,7 @@ import { Picture } from 'astro:assets' import { Container } from '~/components/Container' import { Faq } from '~/components/Faq' import { StarIcon, ClockIcon } from '@heroicons/react/24/outline' -import { CheckBadgeIcon } from '@heroicons/react/24/solid' +import { CheckBadgeIcon, LockClosedIcon } from '@heroicons/react/24/solid' import { LinkedInIcon } from '~/components/LinkedInIcon' import Layout from '~/layouts/Layout.astro' import ClientsLogo from '~/components/ClientsLogo.astro' @@ -14,10 +14,7 @@ import homemdenegocios from '~/assets/homem-de-negocios.png' import { getCollection, getEntry } from 'astro:content' export async function getStaticPaths() { - const courses = await getCollection( - 'courses', - ({ data }) => data.draft != true, - ) + const courses = await getCollection('courses', ({ data }) => data.draft != true) return courses.map((course) => { return { @@ -31,30 +28,22 @@ const { course: { data }, } = Astro.props -const trainer = data.course?.trainer - ? await getEntry(data.course?.trainer) - : null +const trainer = data.course?.trainer ? await getEntry(data.course?.trainer) : null --- -
- +
+ -
+
- { - data.course.reciclagem ? ( - <>Curso de reciclagem - ) : ( - <>Curso de formação - ) - } + {data.course.reciclagem ? <>Curso de reciclagem : <>Curso de formação}

{data.title} @@ -82,9 +71,7 @@ const trainer = data.course?.trainer -
+ @@ -181,12 +155,10 @@ const trainer = data.course?.trainer
-

- Módulos deste curso -

+

Módulos deste curso

- O curso é dividido em módulos para facilitar seu aprendizado e - garantir que você domine todos os aspectos teóricos e práticos. + O curso é dividido em módulos para facilitar seu aprendizado e garantir que você domine todos os aspectos + teóricos e práticos.

@@ -194,27 +166,10 @@ const trainer = data.course?.trainer
- -
-
-
- Certificados digitais com respaldo legal e gestão completa -
-
    -
  • - Certificado com assinatura digital conforme o padrão ICP-Brasil -
  • -
  • Tudo digital e salvo para sempre na núvem
  • -
  • Alertas automáticos do vencimento
  • -
-
-
-
- { trainer && ( -
+
Quem é o(a) instrutor(a)?
-
- {trainer.data.name} -
+
{trainer.data.name}
{trainer.data.bio.split(/\r?\n/).map((x) => (

{x}

))} @@ -248,5 +198,21 @@ const trainer = data.course?.trainer ) } + + +
+ +
+
Certificados digitais com respaldo legal e gestão completa
+
    +
  • Certificado com assinatura digital conforme o padrão ICP-Brasil
  • +
  • Tudo digital e salvo para sempre na núvem
  • +
  • Alertas automáticos do vencimento
  • +
+
+
+