fix astro schema config

This commit is contained in:
Alexander Navarro 2023-11-18 14:03:06 -03:00
parent e52081e1e2
commit 3ba1dd4625
2 changed files with 27 additions and 9 deletions

View file

@ -1,3 +1,4 @@
import { MediaType } from '@components/MediaGallery/types';
import { z, defineCollection } from 'astro:content';
// AstroJS collection configuration
@ -17,6 +18,7 @@ const games = defineCollection({
'Wishlist',
'Want to Replay',
'Always Playable',
'Tried',
]),
times_played: z.number(),
}),
@ -39,14 +41,19 @@ const portafolio = defineCollection({
title: z.string(),
draft: z.boolean().optional(),
tags: z.array(z.string()).optional(),
technologies: z.array(z.string()),
published_at: z.coerce.date().optional(),
updated_at: z.coerce.date().optional(),
media: z.array(
media: z
.array(
z.object({
type: z.enum(['image', 'video']),
type: z.nativeEnum(MediaType),
url: z.string().url(),
alt: z.string(),
mime: z.string().optional(),
}),
),
)
.catch([]),
}),
});

View file

@ -2,12 +2,23 @@
title: Piloto Go
draft: true
media:
- type: video
url: https://drive.google.com/file/d/198BB5RVjp2t1ExWhX0SfN20hEsW-Nk-l/view?usp=drive_link
alt: this an image
mime: video/mp4
- type: image
url: https://drive.google.com/file/d/1AuG0g4pugKE-GgwuOpb5eVvRPfR0S4D5/view?usp=drive_link
alt: this an image
- type: image
url: https://drive.google.com/file/d/1hfyHV2c58MVJLofnAy67rzsqhCV1V5u8/view?usp=drive_link
alt: this an image
- type: image
url: https://drive.google.com/file/d/1doIdGSVmyzlV4CwI0KbsOTOQpeZYt9YU/view?usp=drive_link
alt: this an image
technologies:
- React
- NodeJS
- MySQL
---
# Piloto Go
This is a web application to manage the stock of product in a construction company and their usage across projects. It also allows to create budgets with the interaction of different actors.