Spaces:
Running
Running
Download index.html from Robert1224/Priceplatform: direct link, hf CLI and curl.
- Browser
- Download file 8.01 kB
-
https://huggingface.co/spaces/Robert1224/Priceplatform/resolve/main/index.html
- Command line
-
hf download hf://spaces/Robert1224/Priceplatform/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Robert1224/Priceplatform/resolve/main/index.html
8.01 kB
| <html lang="zh-TW"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>電商比價助手 - MOMO & PChome</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap'); | |
| body { | |
| font-family: 'Noto Sans TC', sans-serif; | |
| background-color: #f8fafc; | |
| } | |
| .platform-card { | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .platform-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .iframe-container { | |
| position: relative; | |
| width: 100%; | |
| height: 600px; | |
| background: #fff; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05); | |
| } | |
| iframe { | |
| width: 100%; | |
| height: 100%; | |
| border: none; | |
| } | |
| .momo-theme { border-top: 6px solid #ff0066; } | |
| .pchome-theme { border-top: 6px solid #cc0000; } | |
| .loader { | |
| border: 3px solid #f3f3f3; | |
| border-radius: 50%; | |
| border-top: 3px solid #3498db; | |
| width: 24px; | |
| height: 24px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-slate-50 min-h-screen"> | |
| <!-- 導覽列 --> | |
| <nav class="bg-white shadow-sm sticky top-0 z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16 items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="bg-indigo-600 p-2 rounded-lg"> | |
| <i class="fas fa-search-dollar text-white text-xl"></i> | |
| </div> | |
| <span class="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-600 to-purple-600"> | |
| SmartPrice 比價大師 | |
| </span> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800"> | |
| <span class="flex h-2 w-2 rounded-full bg-green-400 mr-2"></span> | |
| 系統正常運行 | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- 標題與簡介 --> | |
| <div class="mb-8 text-center md:text-left"> | |
| <h1 class="text-3xl font-extrabold text-slate-900 sm:text-4xl"> | |
| 跨平台即時比價 | |
| </h1> | |
| <p class="mt-3 text-lg text-slate-500"> | |
| 同時查看 MOMO 與 PChome 的搜尋結果,幫您節省時間與金錢。 | |
| </p> | |
| </div> | |
| <!-- 搜尋與篩選 (示意) --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8"> | |
| <!-- MOMO 區塊 --> | |
| <div class="platform-card bg-white rounded-2xl shadow-sm momo-theme overflow-hidden"> | |
| <div class="p-4 border-b border-gray-100 flex justify-between items-center bg-white"> | |
| <div class="flex items-center space-x-3"> | |
| <img src="https://upload.wikimedia.org/wikipedia/zh/thumb/1/1e/Momo_logo_2015.svg/1200px-Momo_logo_2015.svg.png" alt="MOMO" class="h-6"> | |
| <h2 class="text-lg font-bold text-gray-800">MOMO 購物網</h2> | |
| </div> | |
| <a href="https://www.momoshop.com.tw" target="_blank" class="text-pink-600 hover:text-pink-700 text-sm font-medium"> | |
| 開啟官網 <i class="fas fa-external-link-alt ml-1"></i> | |
| </a> | |
| </div> | |
| <div class="p-2 bg-slate-100"> | |
| <div class="iframe-container" id="momo-box"> | |
| <div class="absolute inset-0 flex items-center justify-center bg-white z-0" id="momo-loader"> | |
| <div class="flex flex-col items-center"> | |
| <div class="loader mb-2"></div> | |
| <span class="text-sm text-gray-400">正在加載搜尋結果...</span> | |
| </div> | |
| </div> | |
| <iframe | |
| src="https://robert1224-momo-streamlit.hf.space" | |
| title="MOMO Price Comparison" | |
| onload="document.getElementById('momo-loader').style.display='none'"> | |
| </iframe> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- PChome 區塊 --> | |
| <div class="platform-card bg-white rounded-2xl shadow-sm pchome-theme overflow-hidden"> | |
| <div class="p-4 border-b border-gray-100 flex justify-between items-center bg-white"> | |
| <div class="flex items-center space-x-3"> | |
| <img src="https://upload.wikimedia.org/wikipedia/commons/e/ee/PChome_Logo.svg" alt="PChome" class="h-6"> | |
| <h2 class="text-lg font-bold text-gray-800">PChome 24h</h2> | |
| </div> | |
| <a href="https://24h.pchome.com.tw" target="_blank" class="text-red-600 hover:text-red-700 text-sm font-medium"> | |
| 開啟官網 <i class="fas fa-external-link-alt ml-1"></i> | |
| </a> | |
| </div> | |
| <div class="p-2 bg-slate-100"> | |
| <div class="iframe-container" id="pchome-box"> | |
| <div class="absolute inset-0 flex items-center justify-center bg-white z-0" id="pchome-loader"> | |
| <div class="flex flex-col items-center"> | |
| <div class="loader mb-2"></div> | |
| <span class="text-sm text-gray-400">正在加載搜尋結果...</span> | |
| </div> | |
| </div> | |
| <iframe | |
| src="https://robert1224-pchone-streamlit.hf.space" | |
| title="PChome Price Comparison" | |
| onload="document.getElementById('pchome-loader').style.display='none'"> | |
| </iframe> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- 功能提示 --> | |
| <div class="bg-indigo-50 border-l-4 border-indigo-500 p-4 rounded-r-lg"> | |
| <div class="flex"> | |
| <div class="flex-shrink-0"> | |
| <i class="fas fa-info-circle text-indigo-500"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-sm text-indigo-700"> | |
| <strong>溫馨提示:</strong>若 iframe 未能顯示,可能是因為第三方來源連線較慢。請嘗試點擊上方「開啟官網」按鈕。 | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <footer class="bg-white border-t border-gray-200 mt-12 py-8"> | |
| <div class="max-w-7xl mx-auto px-4 text-center"> | |
| <p class="text-gray-500 text-sm"> | |
| © 2024 電商比價助手 SmartPrice. 此介面僅供整合參考,數據來源為各平台 API。 | |
| </p> | |
| </div> | |
| </footer> | |
| <script> | |
| // 可以根據需要添加更多互動邏輯,例如同步滾動或自定義搜尋框 | |
| </script> | |
| </body> | |
| </html> | |