demo / index.html
franz101's picture
Upload folder using huggingface_hub
2fe2aa1 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Food Scanner App for Allergy & Diet Management - Scan food labels to check for allergens and dietary compliance." />
<title>AllerScan - Food Allergy & Diet Scanner</title>
<link rel="stylesheet" href="assets/css/styles.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- Header with branding and navigation -->
<header class="app-header">
<div class="container">
<h1 class="app-title">AllerScan</h1>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-by">Built with anycoder</a>
</div>
</header>
<!-- Main App Content -->
<main class="app-main">
<div class="container">
<!-- Scanner Placeholder -->
<section class="scanner-section">
<div class="scanner-placeholder">
<div class="scanner-frame"></div>
<p class="scanner-instruction">Point your camera at a food label</p>
<button class="btn btn-primary btn-scan">Use Camera</button>
</div>
</section>
<!-- Allergy & Diet Profile -->
<section class="profile-section">
<h2 class="section-title">Your Safety Profile</h2>
<div class="profile-tags">
<span class="tag tag-allergy">Peanuts</span>
<span class="tag tag-allergy">Shellfish</span>
<span class="tag tag-diet">Vegan</span>
<span class="tag tag-diet">Gluten-Free</span>
</div>
<button class="btn btn-secondary btn-edit-profile">Edit Profile</button>
</section>
<!-- Recent Scans -->
<section class="recent-scans">
<h2 class="section-title">Recent Scans</h2>
<div class="scan-history">
<div class="scan-item safe">
<div class="scan-icon safe"></div>
<div class="scan-info">
<h3>Organic Almond Milk</h3>
<p class="scan-status">✅ Safe for your profile</p>
</div>
</div>
<div class="scan-item warning">
<div class="scan-icon warning"></div>
<div class="scan-info">
<h3>Chocolate Chip Cookies</h3>
<p class="scan-status">⚠️ Contains: Peanuts</p>
</div>
</div>
<div class="scan-item unsafe">
<div class="scan-icon unsafe"></div>
<div class="scan-info">
<h3>Caesar Salad Dressing</h3>
<p class="scan-status">❌ Contains: Dairy, Egg</p>
</div>
</div>
</div>
</section>
<!-- Quick Actions -->
<section class="quick-actions">
<h2 class="section-title">Quick Actions</h2>
<div class="action-buttons">
<button class="btn btn-outline">Scan Barcode</button>
<button class="btn btn-outline">Manual Entry</button>
<button class="btn btn-outline">Emergency Info</button>
</div>
</section>
</div>
</main>
<!-- Footer -->
<footer class="app-footer">
<div class="container">
<p>&copy; 2023 AllerScan. For informational purposes only. Always verify with product labels.</p>
</div>
</footer>
<script src="assets/js/app.js"></script>
</body>
</html>