Spaces:
Running
Running
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Canva3D — Interactive 3D Viewer</title> | |
| <style> | |
| :root { | |
| --bg-color: #121212; | |
| --panel-bg: rgba(20, 20, 20, 0.85); | |
| --accent: #3b82f6; | |
| --text: #ffffff; | |
| --danger: #ef4444; | |
| } | |
| body, html { | |
| margin: 0; | |
| padding: 0; | |
| width: 100%; | |
| height: 100%; | |
| overflow: hidden; | |
| background-color: var(--bg-color); | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | |
| color: var(--text); | |
| } | |
| #root { | |
| width: 100%; | |
| height: 100%; | |
| display: flex; | |
| align-items: stretch; | |
| } | |
| /* Layout pour le canvas responsive selon le ratio choisi */ | |
| .canvas-container { | |
| position: relative; | |
| box-shadow: 0 0 50px rgba(0,0,0,0.5); | |
| transition: width 0.3s ease, height 0.3s ease; | |
| background: #000; | |
| overflow: hidden; | |
| } | |
| /* Overlay UI */ | |
| .ui-panel { | |
| position: absolute; | |
| bottom: 20px; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| background: var(--panel-bg); | |
| backdrop-filter: blur(10px); | |
| padding: 16px; | |
| border-radius: 16px; | |
| border: 1px solid rgba(255,255,255,0.1); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| width: 90%; | |
| max-width: 500px; | |
| z-index: 10; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.5); | |
| } | |
| .ui-row { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 10px; | |
| } | |
| .ui-group { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex: 1; | |
| } | |
| button { | |
| background: rgba(255,255,255,0.1); | |
| border: none; | |
| color: white; | |
| padding: 8px 12px; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| font-size: 0.9rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 6px; | |
| } | |
| button:hover { | |
| background: rgba(255,255,255,0.2); | |
| } | |
| button.active { | |
| background: var(--accent); | |
| color: white; | |
| } | |
| button.record-btn { | |
| background: var(--danger); | |
| font-weight: bold; | |
| width: 100%; | |
| } | |
| button.record-btn.recording { | |
| animation: pulse 2s infinite; | |
| } | |
| input[type="range"] { | |
| width: 100%; | |
| accent-color: var(--accent); | |
| background: rgba(255,255,255,0.1); | |
| height: 4px; | |
| border-radius: 2px; | |
| } | |
| label { | |
| font-size: 0.75rem; | |
| color: #aaa; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| min-width: 80px; | |
| } | |
| .file-input { | |
| display: none; | |
| } | |
| .drop-zone { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| background: rgba(0,0,0,0.8); | |
| z-index: 5; | |
| pointer-events: none; | |
| opacity: 0; | |
| transition: opacity 0.3s; | |
| } | |
| .drop-zone.visible { | |
| opacity: 1; | |
| pointer-events: all; | |
| } | |
| @keyframes pulse { | |
| 0% { opacity: 1; } | |
| 50% { opacity: 0.6; } | |
| 100% { opacity: 1; } | |
| } | |
| /* Loader Spinner */ | |
| .loader { | |
| border: 3px solid rgba(255,255,255,0.1); | |
| border-top: 3px solid var(--accent); | |
| border-radius: 50%; | |
| width: 24px; | |
| height: 24px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| </style> | |
| <script type="module" crossorigin src="/assets/index-NbM3wFLh.js"></script> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| </body> | |
| </html> | |