map and table added

This commit is contained in:
Owen Rees
2023-05-23 16:57:07 +02:00
parent e0d363e612
commit 8c67681825
10 changed files with 184 additions and 60 deletions
+24
View File
@@ -0,0 +1,24 @@
"use client";
import "leaflet/dist/leaflet.css";
import { MapContainer, TileLayer, Marker } from "react-leaflet";
export default function TournamentMap() {
const center: number[] = [47.0844, 2.3964];
return (
<section id="tournament-map" className="">
<MapContainer
center={center}
zoom={5}
scrollWheelZoom={false}
style={{ height: "50vh" }}
>
<TileLayer
attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
</MapContainer>
</section>
);
}