From dbb924198d7848de76cf11287d8a33b903ebc856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Thu, 17 Apr 2025 13:44:09 -0300 Subject: [PATCH] update menu --- superpage/src/components/Menu.jsx | 26 +++++++------------ ...clagem-de-nr-12-maquinas-e-equipamentos.md | 2 +- superpage/src/layouts/Layout.astro | 5 +++- superpage/src/pages/[slug].astro | 8 +++--- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/superpage/src/components/Menu.jsx b/superpage/src/components/Menu.jsx index 2dfbcc5..dbd240b 100644 --- a/superpage/src/components/Menu.jsx +++ b/superpage/src/components/Menu.jsx @@ -15,7 +15,7 @@ import { } from '@headlessui/react' import { Container } from './Container' -export function Menu() { +export function Menu({ recentCourses }) { return ( @@ -35,7 +35,7 @@ export function Menu() { @@ -79,21 +79,13 @@ export function Menu() { diff --git a/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md b/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md index cdce868..72c66e5 100644 --- a/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md +++ b/superpage/src/data/courses/reciclagem-de-nr-12-maquinas-e-equipamentos.md @@ -1,7 +1,7 @@ --- id: 76a5ba94-e11c-48f5-88eb-9326df9be264 title: NR-12 Máquinas e Equipamentos -summary: ... +summary: Com foco na prevenção de acidentes, na conformidade com a NR-18 e no uso correto de EPIs, como operação, manutenção e inspeção de plataformas elevatórias, assegurando maior segurança e garantindo atendimento às exigências legais. slug: reciclagem-de-nr-12-maquinas-e-equipamentos draft: false diff --git a/superpage/src/layouts/Layout.astro b/superpage/src/layouts/Layout.astro index 3c1eba3..2179a4a 100644 --- a/superpage/src/layouts/Layout.astro +++ b/superpage/src/layouts/Layout.astro @@ -9,6 +9,9 @@ import { Container } from '~/components/Container' import { Menu } from '~/components/Menu' import { ArrowLeftStartOnRectangleIcon } from '@heroicons/react/24/solid' +import { getCollection } from 'astro:content' +const courses = await getCollection('courses', ({ data }) => data.draft != true) + const { title } = Astro.props const year = new Date().getFullYear() --- @@ -42,7 +45,7 @@ const year = new Date().getFullYear()
- +