2025-05-28 02:04:11 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
2025-05-28 17:31:18 +02:00
|
|
|
<title>Summoner / Virtuelles interdimensionales Geisterteleportationsgerät</title>
|
2025-05-28 02:04:11 +02:00
|
|
|
<script type="importmap">
|
|
|
|
|
{
|
|
|
|
|
"imports": {
|
|
|
|
|
"three": "https://cdn.jsdelivr.net/npm/three@0.155.0/build/three.module.js",
|
|
|
|
|
"GLTFLoader": "https://cdn.jsdelivr.net/npm/three@0.155.0/examples/jsm/loaders/GLTFLoader.js",
|
|
|
|
|
"DRACOLoader": "https://cdn.jsdelivr.net/npm/three@0.155.0/examples/jsm/loaders/DRACOLoader.js"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
2025-05-28 04:24:03 +02:00
|
|
|
html, body {
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
2025-05-28 04:25:45 +02:00
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2025-05-28 04:24:03 +02:00
|
|
|
overflow: hidden;
|
|
|
|
|
background: #000;
|
|
|
|
|
}
|
2025-05-28 02:04:11 +02:00
|
|
|
#viewer {
|
2025-05-28 04:25:45 +02:00
|
|
|
position: fixed;
|
2025-05-28 04:24:03 +02:00
|
|
|
inset: 0;
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
overflow: hidden;
|
2025-05-28 04:25:45 +02:00
|
|
|
background: #000;
|
2025-05-28 04:27:48 +02:00
|
|
|
/* border-radius:15px; // Optional */
|
2025-05-28 04:24:03 +02:00
|
|
|
}
|
|
|
|
|
canvas {
|
|
|
|
|
display: block;
|
2025-05-28 04:25:45 +02:00
|
|
|
position: absolute;
|
|
|
|
|
left: 50%; top: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
2025-05-28 04:27:48 +02:00
|
|
|
/* width/height wird von JS gesetzt */
|
|
|
|
|
/* Wichtig: Keine max-width/max-height */
|
2025-05-28 04:24:03 +02:00
|
|
|
}
|
2025-05-28 18:49:38 +02:00
|
|
|
/* Responsive Overlay */
|
2025-05-28 04:24:03 +02:00
|
|
|
#spirit-info {
|
2025-05-28 18:49:38 +02:00
|
|
|
box-sizing: border-box !important;
|
|
|
|
|
position: fixed !important;
|
|
|
|
|
left: 50% !important;
|
|
|
|
|
top: 50% !important;
|
|
|
|
|
transform: translate(-50%, -50%) !important;
|
|
|
|
|
background: rgba(0,0,0,0.94) !important;
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
border-radius: 18px !important;
|
|
|
|
|
font-family: 'Segoe UI', sans-serif !important;
|
|
|
|
|
box-shadow: 0 12px 64px #000a !important;
|
|
|
|
|
padding: 4vw 4vw 4vw 4vw !important;
|
|
|
|
|
width: 80vw !important;
|
|
|
|
|
max-width: 600px !important;
|
|
|
|
|
min-width: 0 !important;
|
|
|
|
|
max-height: 80vh !important;
|
|
|
|
|
overflow-y: auto !important;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Mobile: Bild oben, Text darunter, an allen Seiten 10% Abstand */
|
|
|
|
|
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
|
|
|
|
|
#spirit-info {
|
|
|
|
|
flex-direction: column !important;
|
|
|
|
|
width: 80vw !important;
|
|
|
|
|
max-width: 98vw !important;
|
|
|
|
|
min-width: 0 !important;
|
|
|
|
|
max-height: 80vh !important;
|
|
|
|
|
padding: 10vw 4vw !important;
|
|
|
|
|
gap: 14px !important;
|
|
|
|
|
}
|
|
|
|
|
#spirit-info img {
|
|
|
|
|
display: block !important;
|
|
|
|
|
margin: 0 auto 18px auto !important;
|
|
|
|
|
max-width: 80vw !important;
|
|
|
|
|
max-height: 30vh !important;
|
|
|
|
|
border-radius: 12px !important;
|
|
|
|
|
background: #222 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Desktop: Bild links, Text rechts */
|
|
|
|
|
@media (min-width: 901px) and (min-aspect-ratio: 4/5) {
|
|
|
|
|
#spirit-info {
|
|
|
|
|
flex-direction: row !important;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
gap: 32px !important;
|
|
|
|
|
width: 80vw !important;
|
|
|
|
|
max-width: 900px !important;
|
|
|
|
|
max-height: 80vh !important;
|
|
|
|
|
padding: 4vw !important;
|
|
|
|
|
}
|
|
|
|
|
#spirit-info img {
|
|
|
|
|
display: block !important;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
max-width: 320px !important;
|
|
|
|
|
max-height: 60vh !important;
|
|
|
|
|
border-radius: 12px !important;
|
|
|
|
|
background: #222 !important;
|
|
|
|
|
}
|
|
|
|
|
#spirit-info .spirit-info-content {
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
min-width: 200px;
|
|
|
|
|
max-width: 500px;
|
|
|
|
|
}
|
2025-05-28 02:04:11 +02:00
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="viewer"></div>
|
2025-05-28 02:24:12 +02:00
|
|
|
<script type="module" src="app.js"></script>
|
2025-05-28 02:04:11 +02:00
|
|
|
</body>
|
|
|
|
|
</html>
|