Download index.html from biswaaa/ai: direct link, hf CLI and curl.
- Browser
- Download file 40.3 kB
-
https://huggingface.co/spaces/biswaaa/ai/resolve/main/index.html
- Command line
-
hf download hf://spaces/biswaaa/ai/index.html
-
curl -L -o index.html https://huggingface.co/spaces/biswaaa/ai/resolve/main/index.html
40.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>MediSearch AI - Medical Knowledge Assistant</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .typewriter { | |
| overflow: hidden; | |
| border-right: .15em solid #3b82f6; | |
| white-space: pre-wrap; | |
| margin: 0 auto; | |
| letter-spacing: .15em; | |
| animation: | |
| typing 3.5s steps(40, end), | |
| blink-caret .75s step-end infinite; | |
| } | |
| @keyframes typing { | |
| from { width: 0 } | |
| to { width: 100% } | |
| } | |
| @keyframes blink-caret { | |
| from, to { border-color: transparent } | |
| 50% { border-color: #3b82f6; } | |
| } | |
| .medical-card { | |
| transition: all 0.3s ease; | |
| } | |
| .medical-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); | |
| } | |
| .pulse { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| 100% { transform: scale(1); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen font-sans"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="container mx-auto px-4 py-6 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-heartbeat text-3xl text-blue-600"></i> | |
| <h1 class="text-2xl font-bold text-gray-800">MediSearch<span class="text-blue-600">AI</span></h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="#" class="text-gray-700 hover:text-blue-600 font-medium">Home</a> | |
| <a href="#" class="text-gray-700 hover:text-blue-600 font-medium">Drug Database</a> | |
| <a href="#" class="text-gray-700 hover:text-blue-600 font-medium">Medical News</a> | |
| <a href="#" class="text-gray-700 hover:text-blue-600 font-medium">About</a> | |
| </nav> | |
| <button class="md:hidden text-gray-700"> | |
| <i class="fas fa-bars text-2xl"></i> | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Chat Interface --> | |
| <section class="bg-gradient-to-r from-blue-500 to-blue-700 text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <h1 class="text-4xl md:text-5xl font-bold mb-6 text-center">MediSearch AI Assistant</h1> | |
| <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-xl overflow-hidden"> | |
| <!-- Chat Header --> | |
| <div class="bg-gray-800 text-white px-6 py-4 flex items-center"> | |
| <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div> | |
| <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div> | |
| <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div> | |
| <div class="ml-auto text-sm">MediSearch AI v2.5</div> | |
| </div> | |
| <!-- Chat Messages Container --> | |
| <div id="chatContainer" class="h-96 overflow-y-auto p-6 space-y-4"> | |
| <!-- Welcome Message --> | |
| <div class="flex justify-start"> | |
| <div class="bg-blue-100 rounded-lg p-4 max-w-3xl"> | |
| <p class="text-gray-800">Hello! I'm your AI medical assistant. I can provide information on:</p> | |
| <ul class="list-disc list-inside mt-2 space-y-1"> | |
| <li>Latest medical research and drug approvals</li> | |
| <li>Disease symptoms and treatments</li> | |
| <li>Medication information and interactions</li> | |
| <li>Clinical guidelines and protocols</li> | |
| </ul> | |
| <p class="mt-2 text-gray-800">How can I help you today?</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Chat Input --> | |
| <div class="border-t border-gray-200 p-4 bg-gray-50"> | |
| <div class="flex"> | |
| <input type="text" id="userInput" placeholder="Ask your medical question..." | |
| class="flex-grow border border-gray-300 rounded-l-lg py-3 px-4 focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <button id="sendButton" class="bg-blue-600 text-white py-3 px-6 rounded-r-lg hover:bg-blue-700 transition duration-300"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| <p class="text-xs text-gray-500 mt-2">Disclaimer: This is for informational purposes only. Always consult a healthcare professional.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Search Section --> | |
| <section class="py-12 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden"> | |
| <div class="p-6"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-6">Search Medical Knowledge Base</h2> | |
| <div class="relative"> | |
| <input type="text" id="medicalSearch" placeholder="Search for drugs, conditions, treatments, or medical news..." class="w-full border border-gray-300 rounded-lg py-4 px-6 pr-16 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-lg"> | |
| <button id="searchButton" class="absolute right-3 top-1/2 transform -translate-y-1/2 bg-blue-600 text-white p-2 rounded-lg hover:bg-blue-700 transition duration-300"> | |
| <i class="fas fa-search text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="mt-4 flex flex-wrap gap-2"> | |
| <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition duration-300">#COVID19</button> | |
| <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition duration-300">#Diabetes</button> | |
| <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition duration-300">#CancerResearch</button> | |
| <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition duration-300">#MentalHealth</button> | |
| <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition duration-300">#FDAApprovals</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section class="py-16 bg-gray-50"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Comprehensive Medical Intelligence</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8"> | |
| <!-- Feature 1 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden p-6"> | |
| <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-pills text-blue-600 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Drug Database</h3> | |
| <p class="text-gray-600">Comprehensive information on 50,000+ medications including dosages, interactions, and latest FDA approvals.</p> | |
| <a href="#" class="mt-4 inline-flex items-center text-blue-600 font-medium hover:text-blue-800"> | |
| Explore <i class="fas fa-arrow-right ml-2"></i> | |
| </a> | |
| </div> | |
| <!-- Feature 2 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden p-6"> | |
| <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-microscope text-green-600 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Clinical Trials</h3> | |
| <p class="text-gray-600">Real-time updates on 400,000+ clinical trials worldwide with detailed protocols and results analysis.</p> | |
| <a href="#" class="mt-4 inline-flex items-center text-blue-600 font-medium hover:text-blue-800"> | |
| Explore <i class="fas fa-arrow-right ml-2"></i> | |
| </a> | |
| </div> | |
| <!-- Feature 3 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden p-6"> | |
| <div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-newspaper text-purple-600 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Medical News</h3> | |
| <p class="text-gray-600">Curated updates from 200+ peer-reviewed journals and major medical conferences.</p> | |
| <a href="#" class="mt-4 inline-flex items-center text-blue-600 font-medium hover:text-blue-800"> | |
| Explore <i class="fas fa-arrow-right ml-2"></i> | |
| </a> | |
| </div> | |
| <!-- Feature 4 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden p-6"> | |
| <div class="w-16 h-16 bg-yellow-100 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-dna text-yellow-600 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Genomics Research</h3> | |
| <p class="text-gray-600">Cutting-edge findings in personalized medicine and genetic therapies updated daily.</p> | |
| <a href="#" class="mt-4 inline-flex items-center text-blue-600 font-medium hover:text-blue-800"> | |
| Explore <i class="fas fa-arrow-right ml-2"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Latest Updates Section --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex justify-between items-center mb-12"> | |
| <h2 class="text-3xl font-bold text-gray-800">Latest Medical Updates</h2> | |
| <a href="#" class="text-blue-600 font-medium hover:text-blue-800 flex items-center"> | |
| View All <i class="fas fa-arrow-right ml-2"></i> | |
| </a> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Update 1 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden border border-gray-100 hover:border-blue-200 transition duration-300"> | |
| <div class="h-48 bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-heartbeat text-5xl text-blue-600"></i> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex items-center text-sm text-gray-500 mb-2"> | |
| <span>June 15, 2025</span> | |
| <span class="mx-2">•</span> | |
| <span>Cardiology</span> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">FDA Approves New Gene Therapy for Heart Failure</h3> | |
| <p class="text-gray-600 mb-4">The FDA has approved Cardiogen-X, a breakthrough gene therapy showing 42% reduction in hospitalization for advanced heart failure patients.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">New Approval</span> | |
| <a href="#" class="text-blue-600 text-sm font-medium hover:text-blue-800">Read More</a> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Update 2 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden border border-gray-100 hover:border-blue-200 transition duration-300"> | |
| <div class="h-48 bg-green-100 flex items-center justify-center"> | |
| <i class="fas fa-brain text-5xl text-green-600"></i> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex items-center text-sm text-gray-500 mb-2"> | |
| <span>June 10, 2025</span> | |
| <span class="mx-2">•</span> | |
| <span>Neurology</span> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Phase 3 Results: New Alzheimer's Drug Shows Promise</h3> | |
| <p class="text-gray-600 mb-4">TauRx's LMTX demonstrates significant cognitive preservation in late-stage trials, offering hope for moderate Alzheimer's patients.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded">Clinical Trial</span> | |
| <a href="#" class="text-blue-600 text-sm font-medium hover:text-blue-800">Read More</a> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Update 3 --> | |
| <div class="medical-card bg-white rounded-xl shadow-md overflow-hidden border border-gray-100 hover:border-blue-200 transition duration-300"> | |
| <div class="h-48 bg-purple-100 flex items-center justify-center"> | |
| <i class="fas fa-virus text-5xl text-purple-600"></i> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex items-center text-sm text-gray-500 mb-2"> | |
| <span>June 5, 2025</span> | |
| <span class="mx-2">•</span> | |
| <span>Infectious Diseases</span> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">WHO Updates Global Pandemic Preparedness Guidelines</h3> | |
| <p class="text-gray-600 mb-4">New framework emphasizes AI-driven early warning systems and rapid vaccine development platforms for emerging pathogens.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2.5 py-0.5 rounded">Public Health</span> | |
| <a href="#" class="text-blue-600 text-sm font-medium hover:text-blue-800">Read More</a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Drug Spotlight Section --> | |
| <section class="py-16 bg-blue-50"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Drug Spotlight: Latest FDA Approvals</h2> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden max-w-4xl mx-auto"> | |
| <div class="md:flex"> | |
| <div class="md:w-1/3 bg-blue-100 flex items-center justify-center p-8"> | |
| <i class="fas fa-pills text-8xl text-blue-600 pulse"></i> | |
| </div> | |
| <div class="md:w-2/3 p-8"> | |
| <div class="flex justify-between items-start mb-4"> | |
| <div> | |
| <span class="bg-blue-600 text-white text-xs font-medium px-2.5 py-0.5 rounded mb-2 inline-block">NEW APPROVAL</span> | |
| <h3 class="text-2xl font-bold text-gray-800">OncoRev-25 (pembrolizumab-vxgn)</h3> | |
| <p class="text-gray-600">Anti-PD-1/CTLA-4 bispecific antibody</p> | |
| </div> | |
| <span class="bg-green-100 text-green-800 text-sm font-medium px-2.5 py-0.5 rounded">Priority Review</span> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4 mb-6"> | |
| <div> | |
| <p class="text-sm text-gray-500">Approval Date</p> | |
| <p class="font-medium">May 28, 2025</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">Manufacturer</p> | |
| <p class="font-medium">Genentech</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">Indication</p> | |
| <p class="font-medium">Metastatic Colorectal Cancer</p> | |
| </div> | |
| <div> | |
| <p class="text-sm text-gray-500">Class</p> | |
| <p class="font-medium">Immunotherapy</p> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h4 class="font-bold text-gray-800 mb-2">Key Clinical Data:</h4> | |
| <ul class="list-disc list-inside text-gray-600 space-y-1"> | |
| <li>ORR: 38% vs 12% standard care (p<0.001)</li> | |
| <li>Median PFS: 8.7 months vs 4.1 months</li> | |
| <li>Grade 3+ AE: 22% (manageable with protocol)</li> | |
| </ul> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <button class="bg-blue-600 text-white py-2 px-4 rounded-lg hover:bg-blue-700 transition duration-300 flex items-center"> | |
| <i class="fas fa-file-prescription mr-2"></i> Full Prescribing Info | |
| </button> | |
| <button class="border border-blue-600 text-blue-600 py-2 px-4 rounded-lg hover:bg-blue-50 transition duration-300 flex items-center"> | |
| <i class="fas fa-chart-line mr-2"></i> Trial Data | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-center mt-8"> | |
| <button class="bg-white text-blue-600 font-bold py-3 px-6 rounded-lg border border-blue-600 hover:bg-blue-50 transition duration-300 flex items-center"> | |
| <i class="fas fa-database mr-2"></i> Browse Full Drug Database | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Historical Milestones Section --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Medical History Timeline</h2> | |
| <div class="relative"> | |
| <!-- Timeline line --> | |
| <div class="hidden md:block absolute left-1/2 top-0 bottom-0 w-1 bg-blue-200 transform -translate-x-1/2"></div> | |
| <!-- Timeline items --> | |
| <div class="space-y-8 md:space-y-16"> | |
| <!-- Item 1 --> | |
| <div class="relative md:flex md:items-center md:justify-between md:odd:flex-row-reverse group"> | |
| <div class="md:w-5/12 mb-4 md:mb-0"> | |
| <div class="medical-card bg-white p-6 rounded-xl shadow-md border border-gray-100 hover:border-blue-200 transition duration-300"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Discovery of Penicillin (1928)</h3> | |
| <p class="text-gray-600">Alexander Fleming's accidental discovery revolutionized treatment of bacterial infections, saving millions of lives and ushering in the antibiotic era.</p> | |
| <a href="#" class="mt-3 inline-flex items-center text-blue-600 text-sm font-medium hover:text-blue-800"> | |
| Learn More <i class="fas fa-arrow-right ml-1"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="hidden md:flex md:items-center md:justify-center md:w-2/12"> | |
| <div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center text-white font-bold z-10">1</div> | |
| </div> | |
| <div class="md:w-5/12 text-center md:text-right group-odd:md:text-left"> | |
| <span class="inline-block bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm font-medium">Microbiology</span> | |
| <p class="text-sm text-gray-500 mt-1">Alexander Fleming</p> | |
| </div> | |
| </div> | |
| <!-- Item 2 --> | |
| <div class="relative md:flex md:items-center md:justify-between md:odd:flex-row-reverse group"> | |
| <div class="md:w-5/12 mb-4 md:mb-0"> | |
| <div class="medical-card bg-white p-6 rounded-xl shadow-md border border-gray-100 hover:border-blue-200 transition duration-300"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">First Successful Organ Transplant (1954)</h3> | |
| <p class="text-gray-600">Dr. Joseph Murray performed the first successful kidney transplant between identical twins, paving the way for modern transplant medicine.</p> | |
| <a href="#" class="mt-3 inline-flex items-center text-blue-600 text-sm font-medium hover:text-blue-800"> | |
| Learn More <i class="fas fa-arrow-right ml-1"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="hidden md:flex md:items-center md:justify-center md:w-2/12"> | |
| <div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center text-white font-bold z-10">2</div> | |
| </div> | |
| <div class="md:w-5/12 text-center md:text-right group-odd:md:text-left"> | |
| <span class="inline-block bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium">Surgery</span> | |
| <p class="text-sm text-gray-500 mt-1">Joseph Murray</p> | |
| </div> | |
| </div> | |
| <!-- Item 3 --> | |
| <div class="relative md:flex md:items-center md:justify-between md:odd:flex-row-reverse group"> | |
| <div class="md:w-5/12 mb-4 md:mb-0"> | |
| <div class="medical-card bg-white p-6 rounded-xl shadow-md border border-gray-100 hover:border-blue-200 transition duration-300"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Human Genome Project Completed (2003)</h3> | |
| <p class="text-gray-600">This 13-year international collaboration mapped all 3 billion base pairs of human DNA, revolutionizing genetics and personalized medicine.</p> | |
| <a href="#" class="mt-3 inline-flex items-center text-blue-600 text-sm font-medium hover:text-blue-800"> | |
| Learn More <i class="fas fa-arrow-right ml-1"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="hidden md:flex md:items-center md:justify-center md:w-2/12"> | |
| <div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center text-white font-bold z-10">3</div> | |
| </div> | |
| <div class="md:w-5/12 text-center md:text-right group-odd:md:text-left"> | |
| <span class="inline-block bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm font-medium">Genetics</span> | |
| <p class="text-sm text-gray-500 mt-1">International Consortium</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-12"> | |
| <button class="bg-blue-600 text-white font-bold py-3 px-6 rounded-lg hover:bg-blue-700 transition duration-300 flex items-center mx-auto"> | |
| <i class="fas fa-history mr-2"></i> Explore Full Medical History | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Trust Indicators --> | |
| <section class="py-12 bg-gray-50"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-2xl font-bold text-center text-gray-800 mb-8">Trusted by Medical Professionals Worldwide</h2> | |
| <div class="flex flex-wrap justify-center items-center gap-8 md:gap-16"> | |
| <div class="text-gray-400 text-3xl font-bold opacity-70 hover:opacity-100 transition duration-300">WHO</div> | |
| <div class="text-gray-400 text-3xl font-bold opacity-70 hover:opacity-100 transition duration-300">FDA</div> | |
| <div class="text-gray-400 text-3xl font-bold opacity-70 hover:opacity-100 transition duration-300">NIH</div> | |
| <div class="text-gray-400 text-3xl font-bold opacity-70 hover:opacity-100 transition duration-300">NEJM</div> | |
| <div class="text-gray-400 text-3xl font-bold opacity-70 hover:opacity-100 transition duration-300">Lancet</div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="py-16 bg-blue-600 text-white"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-3xl md:text-4xl font-bold mb-6">Ready to Access the World's Medical Knowledge?</h2> | |
| <p class="text-xl mb-8 max-w-3xl mx-auto">Join thousands of healthcare professionals using MediSearch AI to stay informed with accurate, up-to-date medical information.</p> | |
| <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <button class="bg-white text-blue-600 font-bold py-3 px-8 rounded-lg hover:bg-gray-100 transition duration-300 flex items-center justify-center mx-auto sm:mx-0"> | |
| <i class="fas fa-user-md mr-2"></i> Sign Up for Professionals | |
| </button> | |
| <button class="border-2 border-white text-white font-bold py-3 px-8 rounded-lg hover:bg-white hover:text-blue-600 transition duration-300 flex items-center justify-center mx-auto sm:mx-0"> | |
| <i class="fas fa-user mr-2"></i> Public Access | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-white pt-12 pb-6"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-8"> | |
| <div> | |
| <h3 class="text-lg font-bold mb-4 flex items-center"> | |
| <i class="fas fa-heartbeat text-xl text-blue-400 mr-2"></i> MediSearch<span class="text-blue-400">AI</span> | |
| </h3> | |
| <p class="text-gray-400">Providing accurate, up-to-date medical information to healthcare professionals and the public since 2020.</p> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Resources</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Drug Database</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Clinical Guidelines</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Medical Calculators</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Research Tools</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Company</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">About Us</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Our Team</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Careers</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Connect With Us</h4> | |
| <div class="flex space-x-4 mb-4"> | |
| <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center text-white hover:bg-blue-600 transition duration-300"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center text-white hover:bg-blue-700 transition duration-300"> | |
| <i class="fab fa-linkedin-in"></i> | |
| </a> | |
| <a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center text-white hover:bg-gray-700 transition duration-300"> | |
| <i class="fab fa-github"></i> | |
| </a> | |
| </div> | |
| <p class="text-gray-400">Subscribe to our newsletter</p> | |
| <div class="mt-2 flex"> | |
| <input type="email" placeholder="Your email" class="bg-gray-800 text-white px-4 py-2 rounded-l-lg focus:outline-none focus:ring-1 focus:ring-blue-500 w-full"> | |
| <button class="bg-blue-600 text-white px-4 py-2 rounded-r-lg hover:bg-blue-700 transition duration-300"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 pt-6 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-400 text-sm mb-4 md:mb-0">© 2025 MediSearch AI. All rights reserved.</p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white text-sm transition duration-300">Privacy Policy</a> | |
| <a href="#" class="text-gray-400 hover:text-white text-sm transition duration-300">Terms of Service</a> | |
| <a href="#" class="text-gray-400 hover:text-white text-sm transition duration-300">Cookie Policy</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <!-- Disclaimer Modal --> | |
| <div id="disclaimerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 px-4 py-6 hidden"> | |
| <div class="bg-white rounded-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold text-gray-800">Important Disclaimer</h3> | |
| <button id="closeModal" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="prose prose-sm text-gray-600"> | |
| <p>The information provided by MediSearch AI is for educational and informational purposes only and is not intended as medical advice. Always consult a qualified healthcare provider regarding any medical condition or treatment.</p> | |
| <p class="mt-4">Our content is sourced from peer-reviewed journals, government health agencies, and medical associations. However, medicine is constantly evolving and we cannot guarantee the absolute accuracy or timeliness of all information.</p> | |
| <p class="mt-4 font-medium">Never disregard professional medical advice or delay seeking treatment because of something you have read on this platform.</p> | |
| </div> | |
| <div class="mt-6 flex justify-end"> | |
| <button id="acceptDisclaimer" class="bg-blue-600 text-white py-2 px-6 rounded-lg hover:bg-blue-700 transition duration-300"> | |
| I Understand | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', () => { | |
| // Disclaimer modal handling | |
| const disclaimerModal = document.getElementById('disclaimerModal'); | |
| if (!localStorage.getItem('disclaimerAccepted')) { | |
| disclaimerModal.classList.remove('hidden'); | |
| } | |
| document.getElementById('closeModal').addEventListener('click', () => disclaimerModal.classList.add('hidden')); | |
| document.getElementById('acceptDisclaimer').addEventListener('click', () => { | |
| localStorage.setItem('disclaimerAccepted', 'true'); | |
| disclaimerModal.classList.add('hidden'); | |
| }); | |
| // Chat functionality | |
| const chatContainer = document.getElementById('chatContainer'); | |
| const userInput = document.getElementById('userInput'); | |
| const sendButton = document.getElementById('sendButton'); | |
| const API_KEY = 'AIzaSyBD-z8Y7oPhSV5fIS5DmBWoixpxMILnZNQ'; // Replace with actual API key | |
| const localKnowledgeBase = { | |
| "covid symptoms": "Common COVID-19 symptoms include fever, cough, fatigue, loss of taste or smell. Severe cases may have difficulty breathing. Source: WHO", | |
| "ibuprofen dosage": "Typical adult dose is 200-400mg every 4-6 hours, not exceeding 1200mg in 24 hours. Always follow package instructions. Source: FDA", | |
| "high blood pressure": "Hypertension is defined as 130/80 mmHg or higher. Lifestyle changes and medications can help manage it. Source: American Heart Association", | |
| "diabetes types": "Type 1 (autoimmune), Type 2 (insulin resistance), gestational (during pregnancy). Source: CDC", | |
| "heart attack signs": "Chest pain, shortness of breath, nausea, pain in arms/back/neck/jaw. Call emergency services immediately. Source: American Heart Association" | |
| }; | |
| function addMessage(text, isUser=false) { | |
| const messageDiv = document.createElement('div'); | |
| messageDiv.className = `flex ${isUser ? 'justify-end' : 'justify-start'}`; | |
| const contentDiv = document.createElement('div'); | |
| contentDiv.className = isUser ? 'bg-blue-600 text-white rounded-lg p-4 max-w-3xl' : 'bg-blue-100 rounded-lg p-4 max-w-3xl'; | |
| contentDiv.innerHTML = text; | |
| messageDiv.appendChild(contentDiv); | |
| chatContainer.appendChild(messageDiv); | |
| chatContainer.scrollTop = chatContainer.scrollHeight; | |
| } | |
| const typingDiv = document.createElement('div'); | |
| typingDiv.className = 'flex justify-start'; | |
| typingDiv.id = 'typingIndicator'; | |
| typingDiv.innerHTML = `<div class="bg-gray-100 rounded-lg p-4 max-w-xs"><div class="flex space-x-2"> | |
| <div class="w-2 h-2 bg-gray-400 rounded-full animate-bounce"></div> | |
| <div class="w-2 h-2 bg-gray-400 rounded-full animate-bounce" style="animation-delay:0.2s"></div> | |
| <div class="w-2 h-2 bg-gray-400 rounded-full animate-bounce" style="animation-delay:0.4s"></div> | |
| </div></div>`; | |
| function showTyping() { chatContainer.appendChild(typingDiv); chatContainer.scrollTop = chatContainer.scrollHeight; } | |
| function hideTyping() { if (typingDiv.parentNode) typingDiv.parentNode.removeChild(typingDiv); } | |
| async function processInput() { | |
| const question = userInput.value.trim(); | |
| if (!question) return; | |
| addMessage(question, true); | |
| userInput.value = ''; | |
| // Check local knowledge | |
| const answerEntry = Object.entries(localKnowledgeBase).find(([key]) => question.toLowerCase().includes(key)); | |
| if (answerEntry) { addMessage(answerEntry[1]); return; } | |
| // Search via API | |
| try { | |
| showTyping(); | |
| const response = await fetch("https://gemini.googleapis.com/v1/models/flash-2.0:generateText", { | |
| method: "POST", | |
| headers: { "Authorization": `Bearer ${API_KEY}`, "Content-Type": "application/json" }, | |
| body: JSON.stringify({ prompt: question, maxOutputTokens: 500 }) | |
| }); | |
| const data = await response.json(); | |
| hideTyping(); | |
| if (data?.candidates?.[0]?.output) addMessage(data.candidates[0].output); | |
| else addMessage("Couldn't find a specific answer. Please try rephrasing."); | |
| } catch (err) { | |
| hideTyping(); | |
| addMessage("Error accessing medical resources. Try again later."); | |
| console.error(err); | |
| } | |
| } | |
| sendButton.addEventListener('click', processInput); | |
| userInput.addEventListener('keypress', (e) => { if(e.key==='Enter') processInput(); }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=biswaaa/ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> | |