| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>Browse Tags - CS1101</title> |
| <link rel="stylesheet" href="style.css"> |
| <script src="https://cdn.tailwindcss.com"></script> |
| <script src="https://unpkg.com/feather-icons"></script> |
| </head> |
| <body class="bg-gray-50"> |
| <div class="container mx-auto p-4 max-w-7xl"> |
| |
| <header class="bg-white rounded-lg shadow-sm p-4 mb-6"> |
| <div class="flex justify-between items-center"> |
| <div class="flex items-center space-x-4"> |
| <a href="index.html" class="text-blue-500 hover:text-blue-600 flex items-center"> |
| <i data-feather="arrow-left" class="w-5 h-5 mr-2"></i> |
| Back to Questions |
| </a> |
| <h1 class="text-2xl font-bold text-gray-800">Browse by Tags</h1> |
| </div> |
| <div class="text-sm text-gray-500"> |
| Explore questions by topic |
| </div> |
| </div> |
| </header> |
|
|
| <div class="flex gap-6"> |
| |
| <main class="flex-1"> |
| <div class="bg-white rounded-lg shadow-sm p-6"> |
| <h2 class="text-xl font-bold mb-4">All Tags</h2> |
| <div class="flex flex-wrap gap-3" id="tags-container"> |
| |
| </div> |
| </div> |
| </main> |
| </div> |
| </div> |
|
|
| <script src="script.js"></script> |
| <script> |
| feather.replace(); |
| |
| |
| document.addEventListener('DOMContentLoaded', function() { |
| const tagsContainer = document.getElementById('tags-container'); |
| const allTags = [ |
| "HW3", "Midterm", "Project", "Homework", "Algorithms", |
| "Data Structures", "Python", "C++", "Recursion", "Trees", |
| "Time Complexity", "Lecture", "Exam", "Study", "Debugging", |
| "Memory", "Git", "Version Control", "Design Patterns", |
| "OOP", "Database", "SQL", "Web Development", "APIs", |
| "Machine Learning", "AI", "Docker", "DevOps", "React", |
| "Frontend", "CSS", "Web Design", "Testing", "JavaScript", |
| "API", "Security", "Architecture", "Backend", "GraphQL", |
| "Mobile", "React Native", "Flutter", "Cloud", "Deployment", |
| "Code Review", "Teamwork", "Performance", "Optimization" |
| ]; |
| |
| tagsContainer.innerHTML = ''; |
| allTags.forEach(tag => { |
| const tagElement = document.createElement('a'); |
| tagElement.href = 'index.html'; |
| tagElement.className = 'tag text-lg px-4 py-2 hover:scale-105 transition-all duration-200'; |
| tagElement.textContent = tag; |
| tagsContainer.appendChild(tagElement); |
| }); |
| }); |
| </script> |
| </body> |
| </html> |