Create me a website dedicated to my photos of awesome alien and ufo photos. Give me the option to enter details about each piece, so that I may tell a story.
c3bb20b verified | <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Add New Sighting | Alien Lens Chronicles</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| </head> | |
| <body class="bg-gray-900 text-gray-100 min-h-screen"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8 max-w-4xl"> | |
| <h1 class="text-4xl font-bold mb-8 text-purple-500">Document Your Encounter</h1> | |
| <form id="photo-form" class="space-y-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <label for="title" class="block text-sm font-medium mb-1">Sighting Title</label> | |
| <input type="text" id="title" name="title" required class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"> | |
| </div> | |
| <div> | |
| <label for="date" class="block text-sm font-medium mb-1">Date of Sighting</label> | |
| <input type="date" id="date" name="date" required class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="location" class="block text-sm font-medium mb-1">Location</label> | |
| <input type="text" id="location" name="location" required class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"> | |
| </div> | |
| <div> | |
| <label for="image" class="block text-sm font-medium mb-1">Upload Image</label> | |
| <div class="flex items-center justify-center w-full"> | |
| <label for="image" class="flex flex-col items-center justify-center w-full h-64 border-2 border-gray-700 border-dashed rounded-lg cursor-pointer bg-gray-800 hover:bg-gray-800/50"> | |
| <div class="flex flex-col items-center justify-center pt-5 pb-6"> | |
| <i data-feather="upload" class="w-12 h-12 mb-3 text-gray-400"></i> | |
| <p class="mb-2 text-sm text-gray-400">Click to upload</p> | |
| <p class="text-xs text-gray-500">PNG, JPG, GIF (MAX. 5MB)</p> | |
| </div> | |
| <input id="image" type="file" class="hidden" accept="image/*" required> | |
| </label> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="description" class="block text-sm font-medium mb-1">Your Story</label> | |
| <textarea id="description" name="description" rows="5" required class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Describe your encounter in detail..."></textarea> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <label for="type" class="block text-sm font-medium mb-1">Type of Sighting</label> | |
| <select id="type" name="type" class="w-full px-4 py-2 bg-gray-800 border border-gray-700 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"> | |
| <option value="ufo">UFO</option> | |
| <option value="alien">Alien Being</option> | |
| <option value="light">Strange Lights</option> | |
| <option value="artifact">Alien Artifact</option> | |
| <option value="other">Other</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="credibility" class="block text-sm font-medium mb-1">Credibility Rating</label> | |
| <div class="flex items-center space-x-2"> | |
| <input type="range" id="credibility" name="credibility" min="0" max="10" value="5" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer"> | |
| <span id="credibility-value" class="text-purple-400 font-medium">5</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-4 pt-4"> | |
| <a href="index.html" class="px-6 py-2 border border-gray-700 rounded-lg hover:bg-gray-800 transition-colors">Cancel</a> | |
| <button type="submit" class="px-6 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-lg transition-colors flex items-center gap-2"> | |
| <i data-feather="save"></i> | |
| <span>Save Encounter</span> | |
| </button> | |
| </div> | |
| </form> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| // Update credibility rating display | |
| document.getElementById('credibility').addEventListener('input', function() { | |
| document.getElementById('credibility-value').textContent = this.value; | |
| }); | |
| </script> | |
| </body> | |
| </html> |