add placeholder
This commit is contained in:
BIN
superpage/src/assets/placeholder.png
Normal file
BIN
superpage/src/assets/placeholder.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
@@ -13,24 +13,26 @@ const trainers = defineCollection({
|
|||||||
|
|
||||||
const courses = defineCollection({
|
const courses = defineCollection({
|
||||||
loader: glob({ pattern: '**/*.md', base: './src/data/courses' }),
|
loader: glob({ pattern: '**/*.md', base: './src/data/courses' }),
|
||||||
schema: z.object({
|
schema: ({ image }) =>
|
||||||
id: z.string(),
|
z.object({
|
||||||
title: z.string(),
|
id: z.string(),
|
||||||
summary: z.string(),
|
title: z.string(),
|
||||||
slug: z.string(),
|
summary: z.string(),
|
||||||
course: z.object({
|
slug: z.string(),
|
||||||
hours: z.number(),
|
img: image().optional(),
|
||||||
reciclagem: z.boolean().default(false),
|
course: z.object({
|
||||||
modules: z.array(z.string()),
|
hours: z.number(),
|
||||||
trainer: reference('trainers').optional(),
|
reciclagem: z.boolean().default(false),
|
||||||
|
modules: z.array(z.string()),
|
||||||
|
trainer: reference('trainers').optional(),
|
||||||
|
}),
|
||||||
|
seo: z
|
||||||
|
.object({
|
||||||
|
tags: z.array(z.string()),
|
||||||
|
})
|
||||||
|
.optional(),
|
||||||
|
draft: z.boolean().default(true),
|
||||||
}),
|
}),
|
||||||
seo: z
|
|
||||||
.object({
|
|
||||||
tags: z.array(z.string()),
|
|
||||||
})
|
|
||||||
.optional(),
|
|
||||||
draft: z.boolean().default(true),
|
|
||||||
}),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export const collections = { trainers, courses }
|
export const collections = { trainers, courses }
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ title: NR-18 PEMT Plataforma Móvel de Trabalho Aéreo
|
|||||||
summary: Capacita os profissionais para identificar e minimizar riscos, utilizar corretamente os Equipamentos de Proteção Individual (EPIs), realizar manutenções preventivas e corretivas, além de garantir a segurança durante a operação de plataformas elevatórias.
|
summary: Capacita os profissionais para identificar e minimizar riscos, utilizar corretamente os Equipamentos de Proteção Individual (EPIs), realizar manutenções preventivas e corretivas, além de garantir a segurança durante a operação de plataformas elevatórias.
|
||||||
slug: nr-18-plataforma-de-trabalho-aereo
|
slug: nr-18-plataforma-de-trabalho-aereo
|
||||||
draft: false
|
draft: false
|
||||||
|
img: ~/assets/nr18-plataforma.png
|
||||||
|
|
||||||
seo:
|
seo:
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { CheckBadgeIcon } from '@heroicons/react/24/solid'
|
|||||||
import { LinkedInIcon } from '~/components/LinkedInIcon'
|
import { LinkedInIcon } from '~/components/LinkedInIcon'
|
||||||
import Layout from '~/layouts/Layout.astro'
|
import Layout from '~/layouts/Layout.astro'
|
||||||
import ClientsLogo from '~/components/ClientsLogo.astro'
|
import ClientsLogo from '~/components/ClientsLogo.astro'
|
||||||
import nr18plataforma from '~/assets/nr18-plataforma.png'
|
import placeholder from '~/assets/placeholder.png'
|
||||||
import mulherdenegocios from '~/assets/mulher-de-negocios.png'
|
import mulherdenegocios from '~/assets/mulher-de-negocios.png'
|
||||||
import homemdenegocios from '~/assets/homem-de-negocios.png'
|
import homemdenegocios from '~/assets/homem-de-negocios.png'
|
||||||
|
|
||||||
@@ -39,10 +39,10 @@ const trainer = data.course?.trainer
|
|||||||
<Layout title={data.title}>
|
<Layout title={data.title}>
|
||||||
<Container className="py-3 lg:py-12 lg:flex items-center justify-start gap-5">
|
<Container className="py-3 lg:py-12 lg:flex items-center justify-start gap-5">
|
||||||
<Picture
|
<Picture
|
||||||
src={nr18plataforma}
|
src={data?.img ? data.img : placeholder}
|
||||||
alt="NR-18"
|
alt={data.title}
|
||||||
formats={['webp']}
|
formats={['webp']}
|
||||||
class="max-lg:hidden max-w-116"
|
class="max-lg:hidden max-w-116 grayscale-15"
|
||||||
/>
|
/>
|
||||||
<section>
|
<section>
|
||||||
<div class="space-y-5">
|
<div class="space-y-5">
|
||||||
|
|||||||
Reference in New Issue
Block a user