diff --git a/src/components/3d/PublicPreview.svelte b/src/components/publics/PublicPreview.svelte similarity index 97% rename from src/components/3d/PublicPreview.svelte rename to src/components/publics/PublicPreview.svelte index 26811da..503540c 100644 --- a/src/components/3d/PublicPreview.svelte +++ b/src/components/publics/PublicPreview.svelte @@ -45,7 +45,7 @@ camera = new THREE.PerspectiveCamera(fov, 1, near, far); renderer = new THREE.WebGLRenderer(); - renderer.setSize(500, 300); + renderer.setSize(500, 500); controls = new OrbitControls(camera, renderer.domElement); controls.autoRotate = true; controls.autoRotateSpeed = 1; @@ -113,7 +113,7 @@ } -
{schem.data.description}
+{schem.data.description}
Erbauer: {schem.data.creator.join(", ")}
diff --git a/src/pages/publics/index.astro b/src/pages/publics/index.astro index 85f2235..019de31 100644 --- a/src/pages/publics/index.astro +++ b/src/pages/publics/index.astro @@ -4,6 +4,7 @@ import {getCollection} from "astro:content"; import {l} from "../../util/util"; import { Image } from "astro:assets"; import Card from "@components/Card.svelte"; +import XRayPreview from "@components/publics/XRayPreview.svelte"; const publics = await getCollection("publics"); --- @@ -14,10 +15,13 @@ const publics = await getCollection("publics");