leetcoder2008/libraryhub
0
1<!DOCTYPE html>2<html lang="en">3<head>4 <meta charset="UTF-8">5 <meta name="viewport" content="width=device-width, initial-scale=1.0">6 <title>LibraryHub - Feedback</title>7 <link rel="icon" type="image/x-icon" href="/static/favicon.ico">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</head>13<body class="bg-gradient-to-br from-blue-50 to-indigo-100 min-h-screen">14 <div class="container mx-auto px-4 py-8">15 <header class="flex justify-between items-center mb-8">16 <div>17 <h1 class="text-3xl font-bold text-indigo-800">LibraryHub 📚</h1>18 <p class="text-indigo-600">We Value Your Feedback</p>19 </div>20 <a href="dashboard.html" class="bg-gray-500 hover:bg-gray-600 text-white py-2 px-4 rounded-lg flex items-center">21 <i data-feather="arrow-left" class="w-4 h-4 mr-2"></i> Back to Dashboard22 </a>23 </header>24 25 <main class="max-w-2xl mx-auto bg-white rounded-2xl shadow-xl overflow-hidden">26 <div class="p-8">27 <h2 class="text-2xl font-bold text-center text-gray-800 mb-6">Share Your Experience</h2>28 29 <form id="feedback-form" class="space-y-6">30 <div>31 <label class="block text-sm font-medium text-gray-700 mb-1">How would you rate your experience?</label>32 <div class="flex space-x-4">33 <label class="flex items-center">34 <input type="radio" name="rating" value="5" class="h-4 w-4 text-indigo-600">35 <span class="ml-2">Excellent</span>36 </label>37 <label class="flex items-center">38 <input type="radio" name="rating" value="4" class="h-4 w-4 text-indigo-600">39 <span class="ml-2">Good</span>40 </label>41 <label class="flex items-center">42 <input type="radio" name="rating" value="3" class="h-4 w-4 text-indigo-600">43 <span class="ml-2">Average</span>44 </label>45 <label class="flex items-center">46 <input type="radio" name="rating" value="2" class="h-4 w-4 text-indigo-600">47 <span class="ml-2">Poor</span>48 </label>49 <label class="flex items-center">50 <input type="radio" name="rating" value="1" class="h-4 w-4 text-indigo-600">51 <span class="ml-2">Very Poor</span>52 </label>53 </div>54 </div>55 56 <div>57 <label for="feedback" class="block text-sm font-medium text-gray-700 mb-1">Your Feedback</label>58 <textarea id="feedback" rows="5" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Tell us what you liked or what we can improve..."></textarea>59 </div>60 61 <div>62 <label for="suggestions" class="block text-sm font-medium text-gray-700 mb-1">Suggestions for Improvement</label>63 <textarea id="suggestions" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="How can we make LibraryHub better for you?"></textarea>64 </div>65 66 <button type="submit" class="w-full bg-indigo-500 hover:bg-indigo-600 text-white py-3 px-4 rounded-lg font-medium transition duration-300">67 Submit Feedback68 </button>69 </form>70 </div>71 </main>72 </div>73 74 <script src="script.js"></script>75 <script>76 document.getElementById('feedback-form').addEventListener('submit', function(e) {77 e.preventDefault();78 alert('Thank you for your valuable feedback! We appreciate your input.');79 window.location.href = 'dashboard.html';80 });81 </script>82 <script>feather.replace();</script>83</body>84</html>