This directory contains components for the Special Solutions (Unikke løsninger) page, implemented as a data-driven pattern.
solutions.data.ts
: The central data model that defines all solution sections.NumberedCards.astro
: Reusable component for the numbered card columns.SolutionSection.astro
: Main component for each solution section, handling alternating layout.SpecialHero.astro
: Hero section for the top of the page.
- To add a new solution section, just add a new object to the
SOLUTIONS
array insolutions.data.ts
. - The solutions automatically alternate their layout (left/right) based on their index.
- Solutions support both image and video media types.
The current implementation uses placeholder paths for images and videos. When ready to use actual media:
- Import actual image files as Astro ImageMetadata objects.
- Update the Media type in
solutions.data.ts
to usesrc: ImageMetadata
for image type. - Replace placeholder strings with the imported image references.
- Add rich text support for solution descriptions
- Add more card style options
- Add animation effects for scrolling