singlecell/algorithmic-arboretum
0
1<!DOCTYPE html>2<html lang="en" class="h-full">3<head>4 <meta charset="UTF-8">5 <meta name="viewport" content="width=device-width, initial-scale=1.0">6 <meta name="description" content="Algorithmic ARboretum - An immersive AR garden experience">7 <title>Algorithmic ARboretum 🌿</title>8 <link rel="stylesheet" href="style.css">9 <script src="https://cdn.tailwindcss.com"></script>10 <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>11 <script src="https://unpkg.com/feather-icons"></script>12 <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>13 <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/controls/OrbitControls.js"></script>14 <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/loaders/GLTFLoader.js"></script>15 <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/WebXR.js"></script>16</head>17<body class="bg-emerald-50 dark:bg-gray-900 text-gray-900 dark:text-emerald-50 min-h-screen flex flex-col">18 <custom-header></custom-header>19 20 <main class="flex-grow container mx-auto px-4 py-8">21 <div id="ar-container" class="relative rounded-xl overflow-hidden shadow-xl">22 <!-- AR Viewport will be inserted here -->23 <div id="xr-button" class="absolute top-4 right-4 z-10">24 <button class="bg-emerald-500 hover:bg-emerald-600 text-white px-4 py-2 rounded-full flex items-center gap-2 transition-all">25 <i data-feather="eye"></i> Enter AR26 </button>27 </div>28 <div id="loading" class="absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center text-white">29 <div class="text-center">30 <div class="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-emerald-500 mx-auto mb-4"></div>31 <p>Loading AR experience...</p>32 </div>33 </div>34 <canvas id="ar-viewport" class="w-full h-full min-h-[60vh]"></canvas>35 </div>36 37 <section class="mt-12">38 <h2 class="text-2xl font-bold mb-6 flex items-center gap-2">39 <i data-feather="grid"></i> Available Plants40 </h2>41 42 <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" id="model-gallery">43 <!-- Models will be loaded here -->44 </div>45 </section>46 47 <div id="ar-controls" class="fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 shadow-lg p-4 flex justify-center gap-6 hidden">48 <button id="rotate-btn" class="bg-emerald-500 hover:bg-emerald-600 text-white p-3 rounded-full">49 <i data-feather="rotate-cw"></i>50 </button>51 <button id="scale-btn" class="bg-emerald-500 hover:bg-emerald-600 text-white p-3 rounded-full">52 <i data-feather="maximize-2"></i>53 </button>54 <button id="place-btn" class="bg-emerald-500 hover:bg-emerald-600 text-white p-3 rounded-full">55 <i data-feather="map-pin"></i>56 </button>57 </div>58 </main>59 60 <custom-footer></custom-footer>61 62 <!-- Web Components -->63 <script src="components/header.js"></script>64 <script src="components/footer.js"></script>65 66 <script src="script.js"></script>67 <script>68 feather.replace();69 </script>70<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>71</body>72</html>