First commit

This commit is contained in:
Fuhrmann 2025-02-26 09:46:13 +01:00
commit 7fe5d03a09
33 changed files with 6524 additions and 0 deletions

16
app/components/Map.tsx Normal file
View file

@ -0,0 +1,16 @@
"use client";
import { useEffect, useRef } from "react";
import { init } from "../three/utils/init";
import { initSimple } from "../three/simple-example";
export function Map() {
const divRef = useRef<HTMLDivElement>(null);
useEffect(() => {
if (!divRef.current) return;
init(divRef.current);
//initSimple(divRef.current);
}, [divRef]);
return <div className="w-full h-full" ref={divRef}></div>;
}