Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>MediScan - QR Medical Information</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"> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/build/qrcode.min.js"></script> | |
| <style> | |
| @keyframes pulse { | |
| 0%, 100% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| } | |
| .animate-pulse-slow { | |
| animation: pulse 3s infinite; | |
| } | |
| .scanner-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient( | |
| to bottom, | |
| rgba(0, 255, 0, 0.1) 0%, | |
| rgba(0, 255, 0, 0.1) 50%, | |
| rgba(0, 255, 0, 0.1) 100% | |
| ); | |
| background-size: 100% 10px; | |
| animation: scan 2s linear infinite; | |
| pointer-events: none; | |
| } | |
| @keyframes scan { | |
| 0% { background-position: 0 -100px; } | |
| 100% { background-position: 0 100px; } | |
| } | |
| .scanner-frame { | |
| position: relative; | |
| border: 4px solid rgba(16, 185, 129, 0.5); | |
| border-radius: 1rem; | |
| box-shadow: 0 0 30px rgba(16, 185, 129, 0.3); | |
| } | |
| .recording-animation { | |
| animation: pulse 1s infinite; | |
| } | |
| #voiceQRCode { | |
| width: 200px; | |
| height: 200px; | |
| margin: 0 auto; | |
| display: block; | |
| } | |
| .progress-bar { | |
| height: 6px; | |
| background-color: #e5e7eb; | |
| border-radius: 3px; | |
| overflow: hidden; | |
| } | |
| .progress-bar-fill { | |
| height: 100%; | |
| background-color: #10b981; | |
| width: 0%; | |
| transition: width 0.1s linear; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <!-- Header --> | |
| <header class="bg-teal-600 text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-6"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-heartbeat text-3xl"></i> | |
| <h1 class="text-2xl font-bold">MediScan</h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-6"> | |
| <a href="#" class="hover:text-teal-200 transition">Home</a> | |
| <a href="#" class="hover:text-teal-200 transition">About</a> | |
| <a href="#" class="hover:text-teal-200 transition">Services</a> | |
| <a href="#" class="hover:text-teal-200 transition">Contact</a> | |
| </nav> | |
| <button class="md:hidden text-2xl"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="bg-gradient-to-r from-teal-500 to-teal-700 text-white py-16"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-4xl md:text-5xl font-bold mb-6">Access Medical Information Instantly</h2> | |
| <p class="text-xl mb-8 max-w-3xl mx-auto">Scan QR codes on medical products, prescriptions, or patient IDs to get instant access to vital health information.</p> | |
| <div class="flex justify-center space-x-4"> | |
| <button id="startScanBtn" class="bg-white text-teal-700 font-bold py-3 px-8 rounded-full hover:bg-teal-100 transition duration-300 shadow-lg animate-pulse-slow"> | |
| <i class="fas fa-qrcode mr-2"></i> Start Scanning | |
| </html> |