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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-TW">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>電商比價助手 - MOMO & PChome</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Noto Sans TC', sans-serif;
|
| 14 |
+
background-color: #f8fafc;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.platform-card {
|
| 18 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.platform-card:hover {
|
| 22 |
+
transform: translateY(-5px);
|
| 23 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.iframe-container {
|
| 27 |
+
position: relative;
|
| 28 |
+
width: 100%;
|
| 29 |
+
height: 600px;
|
| 30 |
+
background: #fff;
|
| 31 |
+
border-radius: 12px;
|
| 32 |
+
overflow: hidden;
|
| 33 |
+
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
iframe {
|
| 37 |
+
width: 100%;
|
| 38 |
+
height: 100%;
|
| 39 |
+
border: none;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.momo-theme { border-top: 6px solid #ff0066; }
|
| 43 |
+
.pchome-theme { border-top: 6px solid #cc0000; }
|
| 44 |
+
|
| 45 |
+
.loader {
|
| 46 |
+
border: 3px solid #f3f3f3;
|
| 47 |
+
border-radius: 50%;
|
| 48 |
+
border-top: 3px solid #3498db;
|
| 49 |
+
width: 24px;
|
| 50 |
+
height: 24px;
|
| 51 |
+
animation: spin 1s linear infinite;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
@keyframes spin {
|
| 55 |
+
0% { transform: rotate(0deg); }
|
| 56 |
+
100% { transform: rotate(360deg); }
|
| 57 |
+
}
|
| 58 |
+
</style>
|
| 59 |
+
</head>
|
| 60 |
+
<body class="bg-slate-50 min-h-screen">
|
| 61 |
+
|
| 62 |
+
<!-- 導覽列 -->
|
| 63 |
+
<nav class="bg-white shadow-sm sticky top-0 z-50">
|
| 64 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 65 |
+
<div class="flex justify-between h-16 items-center">
|
| 66 |
+
<div class="flex items-center space-x-2">
|
| 67 |
+
<div class="bg-indigo-600 p-2 rounded-lg">
|
| 68 |
+
<i class="fas fa-search-dollar text-white text-xl"></i>
|
| 69 |
+
</div>
|
| 70 |
+
<span class="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-600 to-purple-600">
|
| 71 |
+
SmartPrice 比價大師
|
| 72 |
+
</span>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="flex space-x-4">
|
| 75 |
+
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800">
|
| 76 |
+
<span class="flex h-2 w-2 rounded-full bg-green-400 mr-2"></span>
|
| 77 |
+
系統正常運行
|
| 78 |
+
</span>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</nav>
|
| 83 |
+
|
| 84 |
+
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 85 |
+
<!-- 標題與簡介 -->
|
| 86 |
+
<div class="mb-8 text-center md:text-left">
|
| 87 |
+
<h1 class="text-3xl font-extrabold text-slate-900 sm:text-4xl">
|
| 88 |
+
跨平台即時比價
|
| 89 |
+
</h1>
|
| 90 |
+
<p class="mt-3 text-lg text-slate-500">
|
| 91 |
+
同時查看 MOMO 與 PChome 的搜尋結果,幫您節省時間與金錢。
|
| 92 |
+
</p>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<!-- 搜尋與篩選 (示意) -->
|
| 96 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
|
| 97 |
+
<!-- MOMO 區塊 -->
|
| 98 |
+
<div class="platform-card bg-white rounded-2xl shadow-sm momo-theme overflow-hidden">
|
| 99 |
+
<div class="p-4 border-b border-gray-100 flex justify-between items-center bg-white">
|
| 100 |
+
<div class="flex items-center space-x-3">
|
| 101 |
+
<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">
|
| 102 |
+
<h2 class="text-lg font-bold text-gray-800">MOMO 購物網</h2>
|
| 103 |
+
</div>
|
| 104 |
+
<a href="https://www.momoshop.com.tw" target="_blank" class="text-pink-600 hover:text-pink-700 text-sm font-medium">
|
| 105 |
+
開啟官網 <i class="fas fa-external-link-alt ml-1"></i>
|
| 106 |
+
</a>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="p-2 bg-slate-100">
|
| 109 |
+
<div class="iframe-container" id="momo-box">
|
| 110 |
+
<div class="absolute inset-0 flex items-center justify-center bg-white z-0" id="momo-loader">
|
| 111 |
+
<div class="flex flex-col items-center">
|
| 112 |
+
<div class="loader mb-2"></div>
|
| 113 |
+
<span class="text-sm text-gray-400">正在加載搜尋結果...</span>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
<iframe
|
| 117 |
+
src="https://robert1224-momo-streamlit.hf.space"
|
| 118 |
+
title="MOMO Price Comparison"
|
| 119 |
+
onload="document.getElementById('momo-loader').style.display='none'">
|
| 120 |
+
</iframe>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<!-- PChome 區塊 -->
|
| 126 |
+
<div class="platform-card bg-white rounded-2xl shadow-sm pchome-theme overflow-hidden">
|
| 127 |
+
<div class="p-4 border-b border-gray-100 flex justify-between items-center bg-white">
|
| 128 |
+
<div class="flex items-center space-x-3">
|
| 129 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/e/ee/PChome_Logo.svg" alt="PChome" class="h-6">
|
| 130 |
+
<h2 class="text-lg font-bold text-gray-800">PChome 24h</h2>
|
| 131 |
+
</div>
|
| 132 |
+
<a href="https://24h.pchome.com.tw" target="_blank" class="text-red-600 hover:text-red-700 text-sm font-medium">
|
| 133 |
+
開啟官網 <i class="fas fa-external-link-alt ml-1"></i>
|
| 134 |
+
</a>
|
| 135 |
+
</div>
|
| 136 |
+
<div class="p-2 bg-slate-100">
|
| 137 |
+
<div class="iframe-container" id="pchome-box">
|
| 138 |
+
<div class="absolute inset-0 flex items-center justify-center bg-white z-0" id="pchome-loader">
|
| 139 |
+
<div class="flex flex-col items-center">
|
| 140 |
+
<div class="loader mb-2"></div>
|
| 141 |
+
<span class="text-sm text-gray-400">正在加載搜尋結果...</span>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
<iframe
|
| 145 |
+
src="https://robert1224-pchone-streamlit.hf.space"
|
| 146 |
+
title="PChome Price Comparison"
|
| 147 |
+
onload="document.getElementById('pchome-loader').style.display='none'">
|
| 148 |
+
</iframe>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<!-- 功能提示 -->
|
| 155 |
+
<div class="bg-indigo-50 border-l-4 border-indigo-500 p-4 rounded-r-lg">
|
| 156 |
+
<div class="flex">
|
| 157 |
+
<div class="flex-shrink-0">
|
| 158 |
+
<i class="fas fa-info-circle text-indigo-500"></i>
|
| 159 |
+
</div>
|
| 160 |
+
<div class="ml-3">
|
| 161 |
+
<p class="text-sm text-indigo-700">
|
| 162 |
+
<strong>溫馨提示:</strong>若 iframe 未能顯示,可能是因為第三方來源連線較慢。請嘗試點擊上方「開啟官網」按鈕。
|
| 163 |
+
</p>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
</main>
|
| 168 |
+
|
| 169 |
+
<footer class="bg-white border-t border-gray-200 mt-12 py-8">
|
| 170 |
+
<div class="max-w-7xl mx-auto px-4 text-center">
|
| 171 |
+
<p class="text-gray-500 text-sm">
|
| 172 |
+
© 2024 電商比價助手 SmartPrice. 此介面僅供整合參考,數據來源為各平台 API。
|
| 173 |
+
</p>
|
| 174 |
+
</div>
|
| 175 |
+
</footer>
|
| 176 |
+
|
| 177 |
+
<script>
|
| 178 |
+
// 可以根據需要添加更多互動邏輯,例如同步滾動或自定義搜尋框
|
| 179 |
+
</script>
|
| 180 |
+
</body>
|
| 181 |
</html>
|