Spaces:
Running
Running
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Synapse Search | AI Paper Explorer</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> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#06b6d4', // Cyan 500 | |
| secondary: '#8b5cf6', // Violet 500 | |
| dark: '#0f172a', // Slate 900 | |
| darker: '#020617', // Slate 950 | |
| card: '#1e293b', // Slate 800 | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-darker text-gray-200 font-sans antialiased min-h-screen flex flex-col transition-colors duration-300"> | |
| <!-- Navbar Component --> | |
| <site-header></site-header> | |
| <!-- Main Content --> | |
| <main class="flex-grow container mx-auto px-4 py-8 max-w-7xl"> | |
| <!-- Hero Section --> | |
| <section class="text-center mb-12 mt-8 animate-fade-in-down"> | |
| <h1 class="text-4xl md:text-6xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-primary to-secondary mb-4"> | |
| Discover the Future of AI | |
| </h1> | |
| <p class="text-lg md:text-xl text-gray-400 max-w-2xl mx-auto"> | |
| Explore the latest research papers in Artificial Intelligence. Filter by date, search by topic, and stay ahead of the curve. | |
| </p> | |
| </section> | |
| <!-- Filters & Controls --> | |
| <section class="bg-card/50 backdrop-blur-md border border-gray-700/50 rounded-2xl p-6 mb-8 shadow-xl animate-fade-in-up"> | |
| <div class="flex flex-col md:flex-row gap-4 items-end"> | |
| <!-- Search --> | |
| <div class="flex-grow w-full"> | |
| <label class="block text-sm font-medium text-primary mb-1">Search Query</label> | |
| <div class="relative"> | |
| <i data-feather="search" class="absolute left-3 top-3 text-gray-400 w-5 h-5"></i> | |
| <input type="text" id="searchInput" placeholder="e.g. Reinforcement Learning, Transformers..." | |
| class="w-full bg-darker border border-gray-600 rounded-lg py-2.5 pl-10 pr-4 text-white focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary transition-all placeholder-gray-500"> | |
| </div> | |
| </div> | |
| <!-- Date From --> | |
| <div class="w-full md:w-auto"> | |
| <label class="block text-sm font-medium text-secondary mb-1">From Date</label> | |
| <input type="date" id="dateFrom" | |
| class="w-full bg-darker border border-gray-600 rounded-lg py-2.5 px-4 text-white focus:outline-none focus:border-secondary focus:ring-1 focus:ring-secondary transition-all cursor-pointer"> | |
| </div> | |
| <!-- Date To --> | |
| <div class="w-full md:w-auto"> | |
| <label class="block text-sm font-medium text-secondary mb-1">To Date</label> | |
| <input type="date" id="dateTo" | |
| class="w-full bg-darker border border-gray-600 rounded-lg py-2.5 px-4 text-white focus:outline-none focus:border-secondary focus:ring-1 focus:ring-secondary transition-all cursor-pointer"> | |
| </div> | |
| <!-- Search Button --> | |
| <button id="searchBtn" class="w-full md:w-auto bg-gradient-to-r from-secondary to-primary hover:from-purple-500 hover:to-cyan-400 text-white font-semibold py-2 px-6 rounded-lg shadow-md hover:shadow-lg transform hover:scale-105 transition-all duration-200 flex items-center justify-center gap-2 text-sm"> | |
| <i data-feather="search" class="w-3.5 h-3.5"></i> | |
| Find Papers | |
| </button> | |
| </div> | |
| </section> | |
| <!-- Stats / Status --> | |
| <div class="flex justify-between items-center mb-6 px-2"> | |
| <h2 class="text-2xl font-bold text-white flex items-center gap-2"> | |
| <i data-feather="file-text" class="text-primary"></i> Latest Papers | |
| </h2> | |
| <span id="resultCount" class="text-sm text-gray-400 bg-gray-800 px-3 py-1 rounded-full border border-gray-700">Loading...</span> | |
| </div> | |
| <!-- Papers Grid --> | |
| <div id="papersGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Papers will be injected here via JS --> | |
| </div> | |
| <!-- Empty State / No Results --> | |
| <div id="noResults" class="hidden text-center py-20"> | |
| <div class="inline-block p-6 rounded-full bg-gray-800/50 mb-4"> | |
| <i data-feather="inbox" class="w-16 h-16 text-gray-500"></i> | |
| </div> | |
| <h3 class="text-2xl font-bold text-gray-300 mb-2">No papers found</h3> | |
| <p class="text-gray-500">Try adjusting your search terms or date range.</p> | |
| </div> | |
| <!-- Loading State --> | |
| <div id="loader" class="hidden flex justify-center items-center py-20"> | |
| <div class="animate-spin rounded-full h-16 w-16 border-t-4 border-b-4 border-primary"></div> | |
| </div> | |
| </main> | |
| <!-- Footer Component --> | |
| <site-footer></site-footer> | |
| <!-- Web Components --> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="components/paper-card.js"></script> | |
| <!-- Main Logic --> | |
| <script src="script.js"></script> | |
| <script>feather.replace();</script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |