Spaces:
Running
Running
Download index.html from PeterChicken5744/h: direct link, hf CLI and curl.
- Browser
- Download file 14.3 kB
-
https://huggingface.co/spaces/PeterChicken5744/h/resolve/main/index.html
- Command line
-
hf download hf://spaces/PeterChicken5744/h/index.html
-
curl -L -o index.html https://huggingface.co/spaces/PeterChicken5744/h/resolve/main/index.html
14.3 kB
| Here's a complete HTML file for a Belgian Wildlife Datadex in a 16-bit style with all the requested features: | |
| ```html | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Belgian Wildlife Datadex</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap'); | |
| body { | |
| font-family: 'Press Start 2P', cursive; | |
| background-color: #2c3e50; | |
| color: #ecf0f1; | |
| image-rendering: pixelated; | |
| } | |
| .pixel-art { | |
| image-rendering: pixelated; | |
| image-rendering: -moz-crisp-edges; | |
| image-rendering: crisp-edges; | |
| } | |
| .card { | |
| background: linear-gradient(145deg, #34495e, #2c3e50); | |
| box-shadow: 4px 4px 0px #1a1a1a; | |
| transition: all 0.2s ease; | |
| border: 4px solid #1a1a1a; | |
| } | |
| .card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 6px 6px 0px #1a1a1a; | |
| } | |
| .modal { | |
| background: rgba(0, 0, 0, 0.8); | |
| } | |
| .modal-content { | |
| background: linear-gradient(145deg, #34495e, #2c3e50); | |
| border: 4px solid #1a1a1a; | |
| box-shadow: 8px 8px 0px #1a1a1a; | |
| } | |
| .type-badge { | |
| padding: 4px 8px; | |
| border-radius: 4px; | |
| font-size: 10px; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| /* Type colors */ | |
| .mammal { background-color: #8e44ad; } | |
| .bird { background-color: #3498db; } | |
| .reptile { background-color: #27ae60; } | |
| .amphibian { background-color: #16a085; } | |
| .fish { background-color: #2980b9; } | |
| .invertebrate { background-color: #d35400; } | |
| /* Pixel art container */ | |
| .pixel-container { | |
| width: 64px; | |
| height: 64px; | |
| background-color: #1a1a1a; | |
| display: grid; | |
| grid-template-columns: repeat(8, 1fr); | |
| grid-template-rows: repeat(8, 1fr); | |
| gap: 1px; | |
| } | |
| .pixel { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| /* 16-bit scanlines effect */ | |
| .scanlines { | |
| position: relative; | |
| } | |
| .scanlines:before { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient( | |
| to bottom, | |
| transparent 0%, | |
| rgba(0, 0, 0, 0.2) 50%, | |
| transparent 100% | |
| ); | |
| background-size: 100% 4px; | |
| pointer-events: none; | |
| z-index: 10; | |
| } | |
| /* CRT curvature effect */ | |
| .crt-effect { | |
| border-radius: 8px; | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .crt-effect:after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); | |
| border-radius: 8px; | |
| pointer-events: none; | |
| } | |
| </style> | |
| </head> | |
| <body class="scanlines crt-effect min-h-screen p-4"> | |
| <div class="container mx-auto"> | |
| <header class="text-center mb-8"> | |
| <h1 class="text-3xl md:text-5xl mb-2 text-yellow-400">BELGIAN WILDLIFE DATADEX</h1> | |
| <p class="text-sm md:text-base text-green-300">Discover the amazing wildlife of Belgium!</p> | |
| <div class="flex justify-center mt-4"> | |
| <div class="w-full max-w-md bg-black p-2 border-4 border-gray-800 rounded-lg"> | |
| <div class="flex items-center bg-gray-900 p-2"> | |
| <div class="w-4 h-4 bg-red-500 rounded-full mr-2"></div> | |
| <div class="flex-1 bg-gray-800 h-6 rounded flex items-center px-2 text-xs"> | |
| <span class="text-green-400">Loaded: 12/250 species</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4" id="datadex"> | |
| <!-- Cards will be inserted here by JavaScript --> | |
| </div> | |
| </div> | |
| <!-- Modal --> | |
| <div id="animalModal" class="modal fixed inset-0 flex items-center justify-center z-50 hidden"> | |
| <div class="modal-content p-6 rounded-lg w-full max-w-md mx-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 id="modalTitle" class="text-xl"></h2> | |
| <button id="closeModal" class="text-red-400 hover:text-red-300"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="flex flex-col md:flex-row gap-4 mb-4"> | |
| <div id="modalPixelArt" class="pixel-container flex-shrink-0"></div> | |
| <div> | |
| <div class="flex items-center mb-2"> | |
| <span id="modalNumber" class="bg-gray-800 px-2 py-1 mr-2 text-xs"></span> | |
| <span id="modalType" class="type-badge text-xs"></span> | |
| </div> | |
| <p id="modalDescription" class="text-xs mb-2"></p> | |
| <div class="text-xs"> | |
| <p><span class="text-yellow-400">Habitat:</span> <span id="modalHabitat"></span></p> | |
| <p><span class="text-yellow-400">Diet:</span> <span id="modalDiet"></span></p> | |
| <p><span class="text-yellow-400">Status:</span> <span id="modalStatus"></span></p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-black p-2 rounded text-xs"> | |
| <p id="modalFunFact" class="text-green-400"></p> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Belgian wildlife data | |
| const wildlifeData = [ | |
| { | |
| id: 1, | |
| name: "European Hedgehog", | |
| type: "mammal", | |
| description: "A small spiny mammal that rolls into a ball for defense.", | |
| habitat: "Gardens, parks, woodlands", | |
| diet: "Omnivore (insects, worms, fruits)", | |
| status: "Protected", | |
| funFact: "A hedgehog has about 5,000-7,000 spines!", | |
| pixelArt: [ | |
| [0,0,0,1,1,0,0,0], | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,0,0,1,0,0], | |
| [0,0,0,0,0,0,0,0] | |
| ], | |
| colors: { | |
| primary: "#8B4513", | |
| secondary: "#654321", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 2, | |
| name: "Red Fox", | |
| type: "mammal", | |
| description: "A cunning predator with distinctive red fur.", | |
| habitat: "Woodlands, farmlands, urban areas", | |
| diet: "Omnivore (small mammals, birds, fruits)", | |
| status: "Common", | |
| funFact: "Foxes use Earth's magnetic field to hunt!", | |
| pixelArt: [ | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,1,0,1,1,0,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,0,0,1,0,0], | |
| [0,1,0,0,0,0,1,0] | |
| ], | |
| colors: { | |
| primary: "#FF4500", | |
| secondary: "#8B0000", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 3, | |
| name: "European Robin", | |
| type: "bird", | |
| description: "Small bird with distinctive orange-red breast.", | |
| habitat: "Gardens, woodlands, parks", | |
| diet: "Insectivore (worms, insects, berries)", | |
| status: "Common", | |
| funFact: "Robins are territorial all year round!", | |
| pixelArt: [ | |
| [0,0,0,1,1,0,0,0], | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,0,1,1,0,1,0], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,0,0,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,0,0,1,0,0], | |
| [0,0,0,1,1,0,0,0] | |
| ], | |
| colors: { | |
| primary: "#FF6347", | |
| secondary: "#8B0000", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 4, | |
| name: "Common Toad", | |
| type: "amphibian", | |
| description: "Warty-skinned amphibian that walks rather than hops.", | |
| habitat: "Woodlands, gardens, ponds", | |
| diet: "Insectivore (insects, slugs, worms)", | |
| status: "Protected", | |
| funFact: "Toads can live up to 40 years in captivity!", | |
| pixelArt: [ | |
| [0,0,0,1,1,0,0,0], | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,1,1,1,0,0], | |
| [0,0,0,0,0,0,0,0] | |
| ], | |
| colors: { | |
| primary: "#8B4513", | |
| secondary: "#556B2F", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 5, | |
| name: "European Hare", | |
| type: "mammal", | |
| description: "Fast-running mammal with long ears and powerful hind legs.", | |
| habitat: "Farmlands, grasslands", | |
| diet: "Herbivore (grasses, herbs, crops)", | |
| status: "Declining", | |
| funFact: "Hares can reach speeds of 70 km/h!", | |
| pixelArt: [ | |
| [0,0,1,0,0,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,0,0,1,0,0], | |
| [0,0,1,1,1,1,0,0] | |
| ], | |
| colors: { | |
| primary: "#D2B48C", | |
| secondary: "#8B4513", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 6, | |
| name: "Great Tit", | |
| type: "bird", | |
| description: "Colorful small bird with a black head and yellow breast.", | |
| habitat: "Woodlands, gardens, parks", | |
| diet: "Insectivore (insects, seeds)", | |
| status: "Common", | |
| funFact: "They can make over 40 different calls!", | |
| pixelArt: [ | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,0,0,1,1,0,0,1], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,0,0,1,0,0], | |
| [0,0,0,1,1,0,0,0] | |
| ], | |
| colors: { | |
| primary: "#FFD700", | |
| secondary: "#000000", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 7, | |
| name: "Common Frog", | |
| type: "amphibian", | |
| description: "Green or brown frog with smooth skin.", | |
| habitat: "Ponds, marshes, gardens", | |
| diet: "Insectivore (insects, spiders, worms)", | |
| status: "Protected", | |
| funFact: "Frogs absorb water through their skin!", | |
| pixelArt: [ | |
| [0,0,0,1,1,0,0,0], | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,1,1,1,0,0], | |
| [0,0,0,0,0,0,0,0] | |
| ], | |
| colors: { | |
| primary: "#32CD32", | |
| secondary: "#228B22", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 8, | |
| name: "European Badger", | |
| type: "mammal", | |
| description: "Stocky black-and-white striped nocturnal mammal.", | |
| habitat: "Woodlands, hedgerows", | |
| diet: "Omnivore (earthworms, insects, fruits)", | |
| status: "Protected", | |
| funFact: "Badgers live in complex underground setts!", | |
| pixelArt: [ | |
| [0,0,1,1,1,1,0,0], | |
| [0,1,1,1,1,1,1,0], | |
| [1,0,1,1,1,1,0,1], | |
| [1,1,1,1,1,1,1,1], | |
| [1,1,1,1,1,1,1,1], | |
| [0,1,1,1,1,1,1,0], | |
| [0,0,1,0,0,1,0,0], | |
| [0,0,1,1,1,1,0,0] | |
| ], | |
| colors: { | |
| primary: "#FFFFFF", | |
| secondary: "#000000", | |
| background: "#1a1a1a" | |
| } | |
| }, | |
| { | |
| id: 9, | |
| name: "Common Buzzard", | |
| type: "bird", | |
| description: "Medium-sized bird of prey with broad wings.", | |
| habitat: "Woodlands, farmlands", | |
| diet: "Carnivore (small mammals, birds, reptiles)", | |