| | <!DOCTYPE html> |
| | <html lang="en"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | <title>Articles | AI Byte</title> |
| | <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> |
| | <script src="https://cdn.tailwindcss.com"></script> |
| | <script src="https://unpkg.com/feather-icons"></script> |
| | <style> |
| | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap'); |
| | .font-space { font-family: 'Space Grotesk', sans-serif; } |
| | .gradient-text { |
| | background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%); |
| | -webkit-background-clip: text; |
| | background-clip: text; |
| | color: transparent; |
| | } |
| | .article-card:hover { |
| | transform: translateY(-5px); |
| | box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); |
| | } |
| | </style> |
| | </head> |
| | <body class="bg-gray-50 font-sans"> |
| | |
| | <nav class="bg-white/80 backdrop-blur-md border-b border-gray-200 fixed w-full z-10"> |
| | <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| | <div class="flex justify-between h-16"> |
| | <div class="flex items-center"> |
| | <div class="flex-shrink-0 flex items-center"> |
| | <a href="index.html" class="text-2xl font-bold gradient-text font-space">AI Byte</a> |
| | </div> |
| | </div> |
| | <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8"> |
| | <a href="index.html" class="text-gray-500 hover:text-purple-600 px-3 py-2 rounded-md text-sm font-medium">Home</a> |
| | <a href="articles.html" class="text-gray-900 hover:text-purple-600 px-3 py-2 rounded-md text-sm font-medium">Articles</a> |
| | <a href="tutorials.html" class="text-gray-500 hover:text-purple-600 px-3 py-2 rounded-md text-sm font-medium">Tutorials</a> |
| | <a href="research.html" class="text-gray-500 hover:text-purple-600 px-3 py-2 rounded-md text-sm font-medium">Research Papers</a> |
| | <a href="about.html" class="text-gray-500 hover:text-purple-600 px-3 py-2 rounded-md text-sm font-medium">About</a> |
| | <a href="admin.html" class="text-gray-500 hover:text-purple-600 px-3 py-2 rounded-md text-sm font-medium">Admin</a> |
| | <button class="bg-gradient-to-r from-purple-600 to-indigo-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:opacity-90 transition">Subscribe</button> |
| | </div> |
| | <div class="md:hidden flex items-center"> |
| | <button id="menu-btn" class="text-gray-500 hover:text-gray-900"> |
| | <i data-feather="menu"></i> |
| | </button> |
| | </div> |
| | </div> |
| | </div> |
| | </nav> |
| |
|
| | |
| | <section class="pt-32 pb-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto"> |
| | <div class="flex justify-between items-center mb-10"> |
| | <h1 class="text-3xl font-bold text-gray-900 font-space">Latest Articles</h1> |
| | <div class="flex space-x-4"> |
| | <div class="relative"> |
| | <select id="category-filter" class="appearance-none bg-white border border-gray-300 rounded-md py-2 pl-3 pr-8 text-sm focus:outline-none focus:ring-purple-600 focus:border-purple-600"> |
| | <option value="">All Categories</option> |
| | <option value="machine-learning">Machine Learning</option> |
| | <option value="computer-vision">Computer Vision</option> |
| | <option value="nlp">Natural Language Processing</option> |
| | <option value="ethics">AI Ethics</option> |
| | <option value="research">Research</option> |
| | </select> |
| | <i data-feather="chevron-down" class="absolute right-3 top-2.5 text-gray-400 w-4 h-4"></i> |
| | </div> |
| | <div class="relative"> |
| | <select id="sort-by" class="appearance-none bg-white border border-gray-300 rounded-md py-2 pl-3 pr-8 text-sm focus:outline-none focus:ring-purple-600 focus:border-purple-600"> |
| | <option value="newest">Newest First</option> |
| | <option value="oldest">Oldest First</option> |
| | <option value="popular">Most Popular</option> |
| | </select> |
| | <i data-feather="chevron-down" class="absolute right-3 top-2.5 text-gray-400 w-4 h-4"></i> |
| | </div> |
| | </div> |
| | </div> |
| |
|
| | <div id="articles-container" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> |
| | |
| | <div class="text-center py-8"> |
| | <i data-feather="loader" class="animate-spin w-8 h-8 mx-auto text-purple-600"></i> |
| | <p class="mt-2 text-gray-600">Loading articles...</p> |
| | </div> |
| | </div> |
| |
|
| | <div id="pagination" class="mt-12 flex justify-center"> |
| | <nav class="inline-flex rounded-md shadow"> |
| | <button class="px-3 py-1 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50"> |
| | <i data-feather="chevron-left" class="w-4 h-4"></i> |
| | </button> |
| | <button class="px-4 py-1 border-t border-b border-gray-300 bg-white text-purple-600 font-medium">1</button> |
| | <button class="px-4 py-1 border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">2</button> |
| | <button class="px-4 py-1 border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">3</button> |
| | <button class="px-3 py-1 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50"> |
| | <i data-feather="chevron-right" class="w-4 h-4"></i> |
| | </button> |
| | </nav> |
| | </div> |
| | </section> |
| |
|
| | <script> |
| | feather.replace(); |
| | |
| | // This would normally be replaced with actual API calls to your backend |
| | document.addEventListener('DOMContentLoaded', function() { |
| | // Simulate API call with timeout |
| | setTimeout(function() { |
| | const articlesContainer = document.getElementById('articles-container'); |
| | articlesContainer.innerHTML = ` |
| | <div class="bg-white rounded-xl overflow-hidden shadow-md article-card transition duration-300"> |
| | <img src="http://static.photos/technology/640x360/42" alt="AI Technology" class="w-full h-48 object-cover"> |
| | <div class="p-6"> |
| | <div class="flex items-center text-sm text-gray-500 mb-3"> |
| | <span>Machine Learning</span> |
| | <span class="mx-2">•</span> |
| | <span>15 min read</span> |
| | </div> |
| | <h3 class="text-xl font-bold text-gray-900 mb-3">Transformers in NLP: Beyond BERT and GPT</h3> |
| | <p class="text-gray-600 mb-4">Exploring the latest advancements in transformer architectures and their applications in natural language processing.</p> |
| | <div class="flex items-center justify-between"> |
| | <div class="flex items-center"> |
| | <img src="http://static.photos/people/200x200/1" alt="Author" class="w-8 h-8 rounded-full mr-2"> |
| | <span class="text-sm font-medium text-gray-900">Dr. Sarah Chen</span> |
| | </div> |
| | <span class="text-xs text-gray-500">May 15, 2023</span> |
| | </div> |
| | </div> |
| | </div> |
| | |
| | <div class="bg-white rounded-xl overflow-hidden shadow-md article-card transition duration-300"> |
| | <img src="http://static.photos/science/640x360/23" alt="AI Research" class="w-full h-48 object-cover"> |
| | <div class="p-6"> |
| | <div class="flex items-center text-sm text-gray-500 mb-3"> |
| | <span>Computer Vision</span> |
| | <span class="mx-2">•</span> |
| | <span>12 min read</span> |
| | </div> |
| | <h3 class="text-xl font-bold text-gray-900 mb-3">Diffusion Models: The New Frontier in Image Generation</h3> |
| | <p class="text-gray-600 mb-4">How diffusion models are revolutionizing image synthesis and surpassing GANs in quality and stability.</p> |
| | <div class="flex items-center justify-between"> |
| | <div class="flex items-center"> |
| | <img src="http://static.photos/people/200x200/2" alt="Author" class="w-8 h-8 rounded-full mr-2"> |
| | <span class="text-sm font-medium text-gray-900">Alex Rodriguez</span> |
| | </div> |
| | <span class="text-xs text-gray-500">April 28, 2023</span> |
| | </div> |
| | </div> |
| | </div> |
| | |
| | <div class="bg-white rounded-xl overflow-hidden shadow-md article-card transition duration-300"> |
| | <img src="http://static.photos/abstract/640x360/56" alt="AI Ethics" class="w-full h-48 object-cover"> |
| | <div class="p-6"> |
| | <div class="flex items-center text-sm text-gray-500 mb-3"> |
| | <span>AI Ethics</span> |
| | <span class="mx-2">•</span> |
| | <span>18 min read</span> |
| | </div> |
| | <h3 class="text-xl font-bold text-gray-900 mb-3">The Ethical Implications of Generative AI</h3> |
| | <p class="text-gray-600 mb-4">Examining the societal impacts and ethical considerations surrounding rapidly advancing generative models.</p> |
| | <div class="flex items-center justify-between"> |
| | <div class="flex items-center"> |
| | <img src="http://static.photos/people/200x200/3" alt="Author" class="w-8 h-8 rounded-full mr-2"> |
| | <span class="text-sm font-medium text-gray-900">Prof. James Wilson</span> |
| | </div> |
| | <span class="text-xs text-gray-500">April 10, 2023</span> |
| | </div> |
| | </div> |
| | </div> |
| | `; |
| | feather.replace(); |
| | }, 1000); |
| | }); |
| | </script> |
| | </body> |
| | </html> |