From ac116840efc4e817423cd9ff4fd5e21588e8436d Mon Sep 17 00:00:00 2001 From: Kristian Date: Thu, 15 Oct 2026 20:53:53 +0200 Subject: [PATCH] added map component to about page --- apps/frontend/package.json | 2 ++ apps/frontend/src/components/Map.tsx | 19 +++++++++++++++++++ apps/frontend/src/routes/__root.tsx | 1 + apps/frontend/src/routes/about.tsx | 12 +++--------- 4 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 apps/frontend/src/components/Map.tsx diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 5f6c0af..e97a6ce 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -24,12 +24,14 @@ "nitro": "3.0.260610-beta", "react": "^19.3.0", "react-dom": "^19.3.0", + "react-leaflet": "5.0.0-rc.2", "tailwindcss": "^4.3.3" }, "devDependencies": { "@tailwindcss/typography": "^0.5.20", "@tanstack/devtools-vite": "latest", "@tanstack/router-cli": "^1.167.39", + "@types/leaflet": "^1.9.22", "@types/node": "^22.20.4", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", diff --git a/apps/frontend/src/components/Map.tsx b/apps/frontend/src/components/Map.tsx new file mode 100644 index 0000000..45ecdfb --- /dev/null +++ b/apps/frontend/src/components/Map.tsx @@ -0,0 +1,19 @@ +import { MapContainer, Marker, Popup, TileLayer } from 'react-leaflet' + +export default function Map() { + return ( +
+ + + + + Guinness!!! + + + +
+ ) +} \ No newline at end of file diff --git a/apps/frontend/src/routes/__root.tsx b/apps/frontend/src/routes/__root.tsx index bdaa4ec..709e4ad 100644 --- a/apps/frontend/src/routes/__root.tsx +++ b/apps/frontend/src/routes/__root.tsx @@ -49,6 +49,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {