first commit

This commit is contained in:
Johan LEROY
2026-04-21 14:14:03 +02:00
commit 9e9bc0f23d
124 changed files with 13294 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { z } from 'zod';
export const ProjectSchema = z.object({
id: z.string(),
title: z.string(),
subtitle: z.string().optional(),
description: z.string(),
image: z.string().optional(),
category: z.enum(['web', 'mobile', 'bot', 'infra', 'other']).default('web'),
status: z.enum(['live', 'archived', 'private', 'wip']).default('live'),
url: z.string().url().optional(),
repoUrl: z.string().url().optional(),
stack: z.array(z.string()).default([]),
featured: z.boolean().default(false),
});
export const ProjectsSchema = z.object({
items: z.array(ProjectSchema),
});
export type Project = z.infer<typeof ProjectSchema>;
export type Projects = z.infer<typeof ProjectsSchema>;