SAGNIR V2
This project is an interactive application that brings Icelandic folklore to life. Built using React, NextJS, TypeScript, and Tailwind CSS, the app includes a variety of features designed to immerse users in the rich tapestry of Iceland's mythical stories.
- Explore a collection of captivating Icelandic folklore stories.
- Stories are dynamically generated from a custom API, developed specifically for this project, ensuring a unique and authentic experience.
- Quickly search through the stories to find your favorite myths and legends.
- Responsive and intuitive, making it easy to find content.
- A Leaflet-powered map showcasing key locations tied to the stories.
- Features include:
- Custom cartographic overlay style to provide a distinct and immersive aesthetic.
- Pop-ups on special locations that display related stories.
- Geolocation support, enabling users to view their position relative to the map's folklore landmarks.
- Test your knowledge of Icelandic folklore with a fun and engaging quiz.
- Interactive feedback keeps users entertained while learning.
- React: Component-based UI framework.
- NextJS: Fast and optimized development environment and API fetching.
- TypeScript: Ensures type safety and improves code quality.
- Tailwind CSS: Enables rapid styling with utility-first classes.
- Leaflet: For rendering the interactive map.
Make sure you have the following installed:
- Node.js: Download Node.js
- npm: Package manager
-
Clone the repository:
git clone https://github.comln0185/SagnirV2/.git cd sagnirV2 -
Install dependencies:
bash npm install
-
Start the development server:
bash npm run dev
-
Open your browser and navigate to
http://localhost:3000.
-
The stories are fetched from a custom API developed in-house for this project.
-
API Base URL and endpoints can be configured in the project’s
.envfile:env Copier le code VITE_API_BASE_URL=`https://thjodsogur-api.deno.dev/api
- The map is rendered using Leaflet, with custom styling provided by a cartographic overlay.
- Locations of interest are preloaded and linked to corresponding stories via pop-ups.
- Geolocation is enabled to enhance user engagement.
-
Build the project
bash npm run build
-
Serve the
dist/directory using a static file server or deploy to a platform like Vercel, Netlify, or GitHub Pages.
Contributions are welcome! Please fork the repository and submit a pull request.
Happy exploring the myths and legends of Iceland! 🌋