1
0
Files
www.creative-crafter.de/retro-portable/viewer.html
2025-11-23 17:25:23 +01:00

120 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<title>Retro Portable</title>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
background-color: #1a1a1a;
font-family: Arial, sans-serif;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
h1 {
margin-bottom: 20px;
font-size: 2em;
color: #f0f0f0;
text-shadow: 0 0 5px #666;
}
model-viewer {
width: 80vw;
height: 80vh;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
border-radius: 12px;
background-color: #222;
}
.tooltip {
margin-top: 12px;
font-size: 0.95em;
color: #ccc;
}
.button-container {
display: flex; /* Buttons nebeneinander */
gap: 16px; /* Abstand zwischen den Buttons */
margin-top: 20px; /* Abstand zum oberen Inhalt */
}
.button {
padding: 16px 32px;
border-radius: 8px;
background: linear-gradient(to bottom, #ffffff); /* optional anpassen */
box-shadow: 0 2px 4px rgba(0,0,0,0.7);
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.button:hover {
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.6);
}
.button:active {
box-shadow: 0 0px 1px rgba(0,0,0,0.8);
transform: scale(0.995);
}
.button-text {
font-weight: 600;
color: rgb(0, 0, 0);
font-size: 1.5em;
}
</style>
</head>
<body>
<h1>Retro Portable</h1>
<model-viewer
src="models/RetroPortable.glb"
alt="Retro Portable"
auto-rotate
camera-controls
interaction-prompt="none"
ar
shadow-intensity="1.5"
exposure="0.75"
environment-image="neutral"
tone-mapping="commerce"
></model-viewer>
<div class="tooltip">Click and drag to rotate the model. Use the mouse wheel to zoom.</div>
<div class="button-container">
<button class="button" onclick="window.location.href='models/RetroPortable.glb'">
<div class="button-inner">
<span class="button-text">.GLB</span>
</div>
</button>
<button class="button" onclick="window.location.href='models/RetroPortable.obj'">
<div class="button-inner">
<span class="button-text">.OBJ</span>
</div>
</button>
<button class="button" onclick="window.location.href='models/RetroPortable.stl'">
<div class="button-inner">
<span class="button-text">.STL</span>
</div>
</button>
</div>
<br>
<br>
</body>
</html>