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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-HK">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>粵匯港報 - 港式新聞大雜燴</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="components/navbar.js"></script>
|
| 12 |
+
<script src="components/footer.js"></script>
|
| 13 |
+
</head>
|
| 14 |
+
<body class="bg-gray-100 font-sans">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<main class="container mx-auto px-4 py-8">
|
| 18 |
+
<!-- 頭條新聞 -->
|
| 19 |
+
<section class="mb-12">
|
| 20 |
+
<div class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 21 |
+
<img src="http://static.photos/cityscape/1200x630/1" alt="香港城市景觀" class="w-full h-64 object-cover">
|
| 22 |
+
<div class="p-6">
|
| 23 |
+
<h2 class="text-3xl font-bold text-gray-800 mb-4">【頭條】港府公布最新施政報告</h2>
|
| 24 |
+
<p class="text-gray-600 mb-4">行政長官今日發表任內最後一份施政報告,重點關注房屋、經濟復甦及青年發展...</p>
|
| 25 |
+
<a href="#" class="text-red-600 font-semibold hover:underline">閱讀全文 →</a>
|
| 26 |
+
</div>
|
| 27 |
+
</div>
|
| 28 |
+
</section>
|
| 29 |
+
<!-- 每日精選專欄 -->
|
| 30 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12">
|
| 31 |
+
<!-- 每日一笑固定專欄 -->
|
| 32 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
|
| 33 |
+
<div class="bg-teal-600 p-4 flex items-center">
|
| 34 |
+
<i data-feather="smile" class="text-white mr-2"></i>
|
| 35 |
+
<h3 class="text-xl font-bold text-white">今日笑一笑</h3>
|
| 36 |
+
</div>
|
| 37 |
+
<div class="p-6">
|
| 38 |
+
<div id="daily-joke-container" class="min-h-[150px]">
|
| 39 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2 joke-title"></h4>
|
| 40 |
+
<p class="text-gray-600 mb-4 joke-content"></p>
|
| 41 |
+
</div>
|
| 42 |
+
<button id="new-joke-btn" class="bg-teal-100 hover:bg-teal-200 text-teal-800 font-semibold py-2 px-4 rounded-full text-sm transition duration-200">
|
| 43 |
+
換個笑話 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
|
| 44 |
+
</button>
|
| 45 |
+
</div>
|
| 46 |
+
</section>
|
| 47 |
+
|
| 48 |
+
<!-- 精選廣告固定專欄 -->
|
| 49 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
|
| 50 |
+
<div class="bg-amber-600 p-4 flex items-center">
|
| 51 |
+
<i data-feather="dollar-sign" class="text-white mr-2"></i>
|
| 52 |
+
<h3 class="text-xl font-bold text-white">今日精選</h3>
|
| 53 |
+
</div>
|
| 54 |
+
<div class="p-6">
|
| 55 |
+
<div id="daily-ad-container" class="min-h-[150px]">
|
| 56 |
+
<img src="" alt="廣告圖片" class="w-full h-32 object-cover mb-4 rounded ad-image">
|
| 57 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2 ad-title"></h4>
|
| 58 |
+
<p class="text-gray-600 mb-4 ad-content"></p>
|
| 59 |
+
</div>
|
| 60 |
+
<button id="new-ad-btn" class="bg-amber-100 hover:bg-amber-200 text-amber-800 font-semibold py-2 px-4 rounded-full text-sm transition duration-200">
|
| 61 |
+
其他優惠 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
|
| 62 |
+
</button>
|
| 63 |
+
</div>
|
| 64 |
+
</section>
|
| 65 |
+
|
| 66 |
+
<!-- 讀者評語固定專欄 -->
|
| 67 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
|
| 68 |
+
<div class="bg-rose-600 p-4 flex items-center">
|
| 69 |
+
<i data-feather="message-square" class="text-white mr-2"></i>
|
| 70 |
+
<h3 class="text-xl font-bold text-white">讀者有話說</h3>
|
| 71 |
+
</div>
|
| 72 |
+
<div class="p-6">
|
| 73 |
+
<div id="daily-comment-container" class="min-h-[150px]">
|
| 74 |
+
<div class="flex items-start mb-4">
|
| 75 |
+
<img src="" alt="讀者頭像" class="w-10 h-10 rounded-full mr-3 reader-avatar">
|
| 76 |
+
<div>
|
| 77 |
+
<h4 class="font-semibold text-gray-800 reader-name"></h4>
|
| 78 |
+
<p class="text-gray-600 text-sm reader-comment"></p>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
<button id="new-comment-btn" class="bg-rose-100 hover:bg-rose-200 text-rose-800 font-semibold py-2 px-4 rounded-full text-sm transition duration-200">
|
| 83 |
+
更多評語 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
|
| 84 |
+
</button>
|
| 85 |
+
</div>
|
| 86 |
+
</section>
|
| 87 |
+
|
| 88 |
+
<!-- 隨機專欄 -->
|
| 89 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
|
| 90 |
+
<div class="bg-blue-600 p-4 flex items-center">
|
| 91 |
+
<i data-feather="zap" class="text-white mr-2"></i>
|
| 92 |
+
<h3 class="text-xl font-bold text-white">今日驚喜</h3>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="p-6">
|
| 95 |
+
<div id="random-column-container" class="min-h-[150px]">
|
| 96 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2 random-title"></h4>
|
| 97 |
+
<p class="text-gray-600 mb-4 random-content"></p>
|
| 98 |
+
</div>
|
| 99 |
+
<button id="random-column-btn" class="bg-blue-100 hover:bg-blue-200 text-blue-800 font-semibold py-2 px-4 rounded-full text-sm transition duration-200">
|
| 100 |
+
換個驚喜 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
|
| 101 |
+
</button>
|
| 102 |
+
</div>
|
| 103 |
+
</section>
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<!-- 新聞專欄網格 -->
|
| 107 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 108 |
+
<!-- 每週主題 -->
|
| 109 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 110 |
+
<div class="bg-blue-600 p-4">
|
| 111 |
+
<h3 class="text-xl font-bold text-white">每週主題</h3>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="p-6">
|
| 114 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">【本週焦點】香港電影金像獎特輯</h4>
|
| 115 |
+
<p class="text-gray-600 mb-4">回顧歷屆金像獎經典時刻,專訪本屆入圍導演...</p>
|
| 116 |
+
<a href="#" class="text-blue-600 font-semibold hover:underline">更多內容 →</a>
|
| 117 |
+
</div>
|
| 118 |
+
</section>
|
| 119 |
+
|
| 120 |
+
<!-- 天空小說 -->
|
| 121 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 122 |
+
<div class="bg-purple-600 p-4">
|
| 123 |
+
<h3 class="text-xl font-bold text-white">天空小說</h3>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="p-6">
|
| 126 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">《維港夜未眠》連載 (第15回)</h4>
|
| 127 |
+
<p class="text-gray-600 mb-4">阿強終於發現了阿珍的秘密,卻沒想到背後隱藏著更大的陰謀...</p>
|
| 128 |
+
<a href="#" class="text-purple-600 font-semibold hover:underline">繼續閱讀 →</a>
|
| 129 |
+
</div>
|
| 130 |
+
</section>
|
| 131 |
+
|
| 132 |
+
<!-- 恆生指數 -->
|
| 133 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 134 |
+
<div class="bg-green-600 p-4">
|
| 135 |
+
<h3 class="text-xl font-bold text-white">恆生指數</h3>
|
| 136 |
+
</div>
|
| 137 |
+
<div class="p-6">
|
| 138 |
+
<div class="flex justify-between items-center mb-2">
|
| 139 |
+
<span class="text-gray-700">今日收盤</span>
|
| 140 |
+
<span class="text-2xl font-bold text-green-600">18,742.85</span>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="flex justify-between items-center">
|
| 143 |
+
<span class="text-gray-700">漲跌幅</span>
|
| 144 |
+
<span class="text-red-600 font-semibold">↓ 1.23%</span>
|
| 145 |
+
</div>
|
| 146 |
+
<a href="#" class="block mt-4 text-green-600 font-semibold hover:underline">查看詳情 →</a>
|
| 147 |
+
</div>
|
| 148 |
+
</section>
|
| 149 |
+
|
| 150 |
+
<!-- 突發新聞 -->
|
| 151 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 152 |
+
<div class="bg-red-600 p-4">
|
| 153 |
+
<h3 class="text-xl font-bold text-white">突發新聞</h3>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="p-6">
|
| 156 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">【突發】港鐵荃灣線服務受阻</h4>
|
| 157 |
+
<p class="text-gray-600 mb-4">因信號故障,荃灣線來往中環至荃灣站列車服務延誤...</p>
|
| 158 |
+
<a href="#" class="text-red-600 font-semibold hover:underline">最新消息 →</a>
|
| 159 |
+
</div>
|
| 160 |
+
</section>
|
| 161 |
+
|
| 162 |
+
<!-- 中史劇場 -->
|
| 163 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 164 |
+
<div class="bg-yellow-600 p-4">
|
| 165 |
+
<h3 class="text-xl font-bold text-white">中史劇場</h3>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="p-6">
|
| 168 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">【歷史今日】1925年省港大罷工</h4>
|
| 169 |
+
<p class="text-gray-600 mb-4">回顧這場中國工運史上規模最大、時間最長的罷工運動...</p>
|
| 170 |
+
<a href="#" class="text-yellow-600 font-semibold hover:underline">了解歷史 →</a>
|
| 171 |
+
</div>
|
| 172 |
+
</section>
|
| 173 |
+
|
| 174 |
+
<!-- 文學分享 -->
|
| 175 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 176 |
+
<div class="bg-indigo-600 p-4">
|
| 177 |
+
<h3 class="text-xl font-bold text-white">文學分享</h3>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="p-6">
|
| 180 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">《香港文學散步》書評</h4>
|
| 181 |
+
<p class="text-gray-600 mb-4">跟隨作家腳步,重新發現香港文學地景...</p>
|
| 182 |
+
<a href="#" class="text-indigo-600 font-semibold hover:underline">閱讀書評 →</a>
|
| 183 |
+
</div>
|
| 184 |
+
</section>
|
| 185 |
+
|
| 186 |
+
<!-- 勁歌推介 -->
|
| 187 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 188 |
+
<div class="bg-pink-600 p-4">
|
| 189 |
+
<h3 class="text-xl font-bold text-white">勁歌推介</h3>
|
| 190 |
+
</div>
|
| 191 |
+
<div class="p-6">
|
| 192 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">【本週冠軍】陳奕迅 - 《人啊人》</h4>
|
| 193 |
+
<p class="text-gray-600 mb-4">Eason最新單曲探討人性本質,MV點擊破百萬...</p>
|
| 194 |
+
<a href="#" class="text-pink-600 font-semibold hover:underline">試聽歌曲 →</a>
|
| 195 |
+
</div>
|
| 196 |
+
</section>
|
| 197 |
+
<!-- 腦筋急轉彎 -->
|
| 198 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 199 |
+
<div class="bg-orange-600 p-4">
|
| 200 |
+
<h3 class="text-xl font-bold text-white">腦筋急轉彎</h3>
|
| 201 |
+
</div>
|
| 202 |
+
<div class="p-6">
|
| 203 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">今日謎題</h4>
|
| 204 |
+
<p class="text-gray-600 mb-4">「有頭無腳,有眼無眉,有心無肺,有肚無腸」猜一物</p>
|
| 205 |
+
<a href="#" class="text-orange-600 font-semibold hover:underline">查看答案 →</a>
|
| 206 |
+
</div>
|
| 207 |
+
</section>
|
| 208 |
+
|
| 209 |
+
<!-- 結語專欄 -->
|
| 210 |
+
<section class="bg-white rounded-lg shadow-md overflow-hidden">
|
| 211 |
+
<div class="bg-gray-600 p-4">
|
| 212 |
+
<h3 class="text-xl font-bold text-white">編者結語</h3>
|
| 213 |
+
</div>
|
| 214 |
+
<div class="p-6">
|
| 215 |
+
<h4 class="text-lg font-semibold text-gray-800 mb-2">今日分享</h4>
|
| 216 |
+
<p class="text-gray-600 mb-4">「香港精神,在於逆境自強,在於靈活變通。無論時代如何變遷,我們都應保持這份港式堅韌。」</p>
|
| 217 |
+
<a href="#" class="text-gray-600 font-semibold hover:underline">更多結語 →</a>
|
| 218 |
+
</div>
|
| 219 |
+
</section>
|
| 220 |
+
</div>
|
| 221 |
+
</main>
|
| 222 |
+
<custom-footer></custom-footer>
|
| 223 |
+
<!-- 設定按鈕 -->
|
| 224 |
+
<div class="fixed bottom-20 right-4">
|
| 225 |
+
<a href="/admin.html" class="bg-gray-800 text-white p-3 rounded-full shadow-lg hover:bg-gray-700 transition block">
|
| 226 |
+
<i data-feather="settings"></i>
|
| 227 |
+
</a>
|
| 228 |
+
</div>
|
| 229 |
+
<script>
|
| 230 |
+
feather.replace();
|
| 231 |
+
|
| 232 |
+
// 檢查是否為管理員
|
| 233 |
+
if (localStorage.getItem('adminLoggedIn')) {
|
| 234 |
+
document.getElementById('admin-link').classList.remove('hidden');
|
| 235 |
+
}
|
| 236 |
+
</script>
|
| 237 |
+
<script src="script.js"></script>
|
| 238 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 239 |
+
</body>
|
| 240 |
+
</html>
|