diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b0d0749 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": false +} \ No newline at end of file diff --git a/Gallus_Pub_v1/src/components/EventsGrid.astro b/Gallus_Pub_v1/src/components/EventsGrid.astro new file mode 100644 index 0000000..cd4dcbc --- /dev/null +++ b/Gallus_Pub_v1/src/components/EventsGrid.astro @@ -0,0 +1,26 @@ +--- +// src/components/EventsGrid.astro +interface Event { + title: string; + date: Date; + description: string; +} +const { events = [] }: { events?: Event[] } = Astro.props as { events?: Event[] }; +--- + +
+ + {events.map((event: Event) => ( + +
+ +

{event.title}

+ +

{event.date}

+

{event.description}

+ +
+ + ))} + +
\ No newline at end of file diff --git a/Gallus_Pub_v1/src/components/Footer.astro b/Gallus_Pub_v1/src/components/Footer.astro index 76778d4..5bb9241 100644 --- a/Gallus_Pub_v1/src/components/Footer.astro +++ b/Gallus_Pub_v1/src/components/Footer.astro @@ -1,17 +1,9 @@ --- +// src/components/Footer.astro +--- ---- - -