Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NewsScraper Pro - Extract News Content</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <custom-navbar></custom-navbar> | |
| <main class="container mx-auto px-4 py-8"> | |
| <!-- Hero Section --> | |
| <section id="hero" class="text-center mb-12"> | |
| <h1 class="text-4xl md:text-6xl font-bold text-gray-800 mb-4"> | |
| NewsScraper Pro | |
| </h1> | |
| <p class="text-xl text-gray-600 mb-8"> | |
| Extract key insights and all images from any news article | |
| </p> | |
| </section> | |
| <!-- Input Section --> | |
| <section class="max-w-4xl mx-auto bg-white rounded-2xl shadow-xl p-8 mb-12"> | |
| <div class="text-center mb-8"> | |
| <i data-feather="link" class="w-16 h-16 text-blue-500 mx-auto mb-4"></i> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-2">Enter News URL</h2> | |
| <p class="text-gray-600">Paste the URL of any news article to extract its content</p> | |
| </div> | |
| <form id="scrapeForm" class="space-y-6"> | |
| <div class="relative"> | |
| <input | |
| type="url" | |
| id="newsUrl" | |
| placeholder="https://example.com/news-article" | |
| class="w-full px-6 py-4 border-2 border-gray-200 rounded-xl focus:border-blue-500 focus:ring-2 focus:ring-blue-200 transition-all duration-300 text-lg" | |
| required | |
| > | |
| <i data-feather="globe" class="absolute right-4 top-1/2 transform -translate-y-1/2 text-gray-400"></i> | |
| </div> | |
| <button | |
| type="submit" | |
| class="w-full bg-gradient-to-r from-blue-500 to-purple-600 text-white py-4 px-8 rounded-xl font-semibold text-lg hover:from-blue-600 hover:to-purple-700 transition-all duration-300 transform hover:scale-105 shadow-lg flex items-center justify-center gap-3" | |
| > | |
| <i data-feather="search"></i> | |
| Extract Content | |
| </button> | |
| </form> | |
| </section> | |
| <!-- Results Section --> | |
| <section id="results" class="max-w-6xl mx-auto hidden"> | |
| <!-- Loading State --> | |
| <div id="loading" class="text-center py-12 hidden"> | |
| <div class="animate-spin rounded-full h-16 w-16 border-b-2 border-blue-500 mx-auto mb-4"></div> | |
| <p class="text-gray-600 text-lg">Analyzing the news article...</p> | |
| </div> | |
| <!-- Error State --> | |
| <div id="error" class="bg-red-50 border border-red-200 rounded-xl p-6 text-center hidden"> | |
| <i data-feather="alert-triangle" class="w-12 h-12 text-red-500 mx-auto mb-4"></i> | |
| <h3 class="text-xl font-bold text-red-800 mb-2">Error</h3> | |
| <p id="errorMessage" class="text-red-600"></p> | |
| </div> | |
| <!-- Success Results --> | |
| <div id="successResults" class="space-y-8 hidden"> | |
| <!-- Article Title --> | |
| <div id="articleTitle" class="bg-white rounded-2xl shadow-lg p-8"> | |
| <h2 class="text-3xl font-bold text-gray-800"></h2> | |
| </div> | |
| <!-- Key Points --> | |
| <div id="keyPoints" class="bg-white rounded-2xl shadow-lg p-8"> | |
| <div class="flex items-center gap-3 mb-6"> | |
| <i data-feather="list" class="w-6 h-6 text-blue-500"></i> | |
| <h3 class="text-2xl font-bold text-gray-800">Key Points</h3> | |
| </div> | |
| <ul id="pointsList" class="space-y-3 text-gray-700 text-lg"></ul> | |
| </div> | |
| <!-- Images Gallery --> | |
| <div id="imagesSection" class="bg-white rounded-2xl shadow-lg p-8"> | |
| <div class="flex items-center gap-3 mb-6"> | |
| <i data-feather="image" class="w-6 h-6 text-blue-500"></i> | |
| <h3 class="text-2xl font-bold text-gray-800">Article Images</h3> | |
| </div> | |
| <div id="imagesGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"></div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <!-- Component Scripts --> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| // Initialize Vanta.js background | |
| VANTA.GLOBE({ | |
| el: "#hero", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x3b82f6, | |
| backgroundColor: 0xf9fafb, | |
| size: 0.8 | |
| }); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |