feat: Add event collection and event page structure
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
- Introduced a new events collection in config.ts with schema validation. - Created a new event markdown file for the WarGear event. - Updated German translations to include new event-related strings. - Modified PageLayout to support a wide layout option. - Enhanced announcements page to improve tag filtering and post rendering. - Implemented dynamic event pages with detailed event information and fight plans. - Added an index page for events to list all upcoming events.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
import { defineCollection, reference, z } from "astro:content";
|
||||
import { docsLoader } from "@astrojs/starlight/loaders";
|
||||
import { docsSchema } from "@astrojs/starlight/schema";
|
||||
import { EventViewConfigSchema } from "@components/event/types";
|
||||
|
||||
export const pagesSchema = z.object({
|
||||
title: z.string().min(1).max(80),
|
||||
@@ -109,6 +110,19 @@ export const publics = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
export const events = defineCollection({
|
||||
type: "content",
|
||||
schema: ({ image }) =>
|
||||
z.object({
|
||||
eventId: z.number().positive(),
|
||||
image: image().optional(),
|
||||
mode: reference("modes").optional(),
|
||||
hideTeamSize: z.boolean().optional().default(false),
|
||||
verwantwortlich: z.string().optional(),
|
||||
viewConfig: EventViewConfigSchema.optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
pages: pages,
|
||||
help: help,
|
||||
@@ -118,4 +132,5 @@ export const collections = {
|
||||
announcements: announcements,
|
||||
publics: publics,
|
||||
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
|
||||
events: events,
|
||||
};
|
||||
|
||||
39
src/content/events/wg-sfa.md
Normal file
39
src/content/events/wg-sfa.md
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
eventId: 75
|
||||
mode: "wargear"
|
||||
verwantwortlicher: "Chaoscaot"
|
||||
image: ../../images/generated-image(11).png
|
||||
---
|
||||
|
||||
**Ahoi, liebe Community,**
|
||||
|
||||
lange ist es her seit dem letzten WarGear-Event. Nun ist es so weit: Am **29. und 30. November** findet ein neues WarGear-Event **mit** SFAs statt.
|
||||
|
||||
## Übersicht
|
||||
|
||||
- **Datum:** 29.11.: Gruppenphase, 30.11.: KO-Phase
|
||||
- **Spielmodus:** Standard **und** Pro WarGear
|
||||
- **Teamgröße**: 6
|
||||
- **Anmeldeschluss:** 22. November
|
||||
- **Einsendeschluss:** 24. November
|
||||
- **Hotfix-Schluss:** 27. November
|
||||
|
||||
Bei der SFA muss sich an eines der Regelwerke gehalten werden. Standard- und Pro-WarGear treten gleichwertig gegeneinander an.
|
||||
|
||||
## Sonderregeln
|
||||
|
||||
**Version:** 1.21.6 (aktuellste Bau-Version)
|
||||
|
||||
Es wird einen eigenen Schematic-Typen geben.
|
||||
|
||||
### Windcharges
|
||||
|
||||
Werden beim Überfliegen der Mittellinie entfernt.
|
||||
|
||||
### Cobwebs & Powder Snow
|
||||
|
||||
Dürfen uneingeschränkt benutzt werden, jedoch nicht als Panzerung. Die Bewertung liegt im Ermessen des Prüfers.
|
||||
|
||||
**Verantwortlicher:** Chaoscaot
|
||||
|
||||
**Frohes Bauen!**
|
||||
Reference in New Issue
Block a user