Create ListView for Events
Similar to the News
list page (https://dev.fabcity.hamburg/fchh-website/chore-content-prototyping/de/news/) there should be a list view for all Events
.
Would be nice, if we can make the NewsListLayout.astro
more generic, so it can also handle Events.
- Rename
NewsListLayout
toListLayout
- Make
ListLayout
accept atype
prop that can either bearticle
orevent
- Dynamically either load News or Events in
ListLayout
component - Make sure that the event cards look different than news cards (event cards have dark background, if I remember correctly)
- Rename
NewsList
in UI library toCardList
or something more generic - Edit
src/pages/de/events/index.mdx
to look something like this:
---
layout: "@layouts/ListLayout.astro"
type: "events"
title: Events
subtitle: Was passiert in der Fab City Hamburg?`
headerImage: images/news/newslist/newslist_christian-lue-zJJn3XmdyS8-unsplash.jpg
headerImageAlt: Picture of two metal palm trees
order: 5
hideChildren: true
---