Download analyze.html from pgu0821/undefined: direct link, hf CLI and curl.
- Browser
- Download file 6.54 kB
-
https://huggingface.co/spaces/pgu0821/undefined/resolve/main/analyze.html
- Command line
-
hf download hf://spaces/pgu0821/undefined/analyze.html
-
curl -L -o analyze.html https://huggingface.co/spaces/pgu0821/undefined/resolve/main/analyze.html
6.54 kB
| <html lang="ko"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FOODFIT - ๋ถ์</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap'); | |
| body { font-family: 'Noto Sans KR', sans-serif; } | |
| .gradient-bg { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); } | |
| </style> | |
| </head> | |
| <body class="gradient-bg min-h-screen"> | |
| <header class="bg-white shadow-md"> | |
| <div class="container mx-auto px-4 py-6 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="activity" class="text-indigo-600"></i> | |
| <h1 class="text-2xl font-bold text-indigo-600">FOODFIT</h1> | |
| </div> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="index.html" class="text-gray-700 hover:text-indigo-600 font-medium">ํ</a> | |
| <a href="record.html" class="text-gray-700 hover:text-indigo-600 font-medium">๊ธฐ๋ก</a> | |
| <a href="analyze.html" class="text-indigo-600 hover:text-indigo-600 font-medium">๋ถ์</a> | |
| <a href="settings.html" class="text-gray-700 hover:text-indigo-600 font-medium">์ค์ </a> | |
| <a href="login.html" class="text-gray-700 hover:text-indigo-600 font-medium">๋ก๊ทธ์ธ</a> | |
| </nav> | |
| <button class="md:hidden"><i data-feather="menu" class="text-gray-700"></i></button> | |
| </div> | |
| </header> | |
| <main class="container mx-auto px-4 py-8"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-8">์์ ๋ถ์</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h3 class="text-xl font-semibold mb-6">์ฃผ๊ฐ ์์์ ๋ถํฌ</h3> | |
| <canvas id="nutritionChart" height="300"></canvas> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h3 class="text-xl font-semibold mb-6">์๊ฐ ์นผ๋ก๋ฆฌ ์ถ์ด</h3> | |
| <canvas id="calorieChart" height="300"></canvas> | |
| </div> | |
| <div class="bg-white rounded-lg shadow-md p-6 md:col-span-2"> | |
| <h3 class="text-xl font-semibold mb-6">์ฃผ์ ์์์ ๋ถ์</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <div class="border-l-4 border-indigo-500 pl-4"> | |
| <p class="text-sm text-gray-500">ํ๊ท ํ์ํ๋ฌผ</p> | |
| <p class="text-2xl font-bold">245g</p> | |
| <p class="text-sm text-green-500">+5g ๋ชฉํ ๋๋น</p> | |
| </div> | |
| <div class="border-l-4 border-indigo-500 pl-4"> | |
| <p class="text-sm text-gray-500">ํ๊ท ๋จ๋ฐฑ์ง</p> | |
| <p class="text-2xl font-bold">95g</p> | |
| <p class="text-sm text-green-500">+15g ๋ชฉํ ๋๋น</p> | |
| </div> | |
| <div class="border-l-4 border-indigo-500 pl-4"> | |
| <p class="text-sm text-gray-500">ํ๊ท ์ง๋ฐฉ</p> | |
| <p class="text-2xl font-bold">65g</p> | |
| <p class="text-sm text-red-500">-5g ๋ชฉํ ๋๋น</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <footer class="bg-gray-800 text-white py-8"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-6 md:mb-0"> | |
| <div class="flex items-center space-x-2 mb-4"> | |
| <i data-feather="activity" class="text-indigo-400"></i> | |
| <h2 class="text-xl font-bold">FOODFIT</h2> | |
| </div> | |
| <p class="text-gray-400">AI ์์ ๋ถ์์ผ๋ก ๊ฑด๊ฐํ ์์ต๊ด์ ๋ง๋์ธ์</p> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white"><i data-feather="instagram"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i data-feather="facebook"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i data-feather="twitter"></i></a> | |
| <a href="login.html" class="text-gray-400 hover:text-white"><i data-feather="log-in"></i></a> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>ยฉ 2023 FOODFIT. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| feather.replace(); | |
| // Nutrition Chart | |
| const nutritionCtx = document.getElementById('nutritionChart').getContext('2d'); | |
| new Chart(nutritionCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['ํ์ํ๋ฌผ', '๋จ๋ฐฑ์ง', '์ง๋ฐฉ', '๊ธฐํ'], | |
| datasets: [{ | |
| data: [45, 30, 20, 5], | |
| backgroundColor: ['#6366F1', '#10B981', '#F59E0B', '#9CA3AF'], | |
| borderWidth: 0 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| cutout: '70%' | |
| } | |
| }); | |
| // Calorie Chart | |
| const calorieCtx = document.getElementById('calorieChart').getContext('2d'); | |
| new Chart(calorieCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['1์ฃผ', '2์ฃผ', '3์ฃผ', '4์ฃผ'], | |
| datasets: [{ | |
| label: '์ผ์ผ ํ๊ท ์นผ๋ก๋ฆฌ', | |
| data: [1850, 1920, 1780, 1950], | |
| borderColor: '#6366F1', | |
| backgroundColor: 'rgba(99, 102, 241, 0.1)', | |
| fill: true, | |
| tension: 0.3 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| scales: { | |
| y: { beginAtZero: false } | |
| } | |
| } | |
| }); | |
| </script> | |
| </body> | |
| </html> |