ManeSecurus / app.py
Hellonalan1933's picture
Create app.py
12ed8de verified
Raw History Blame Contribute Delete
13.3 kB
<!DOCTYPE html>
<html lang="zh-HK">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>粵匯港報 - 港式新聞大雜燴</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-100 font-sans">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<!-- 頭條新聞 -->
<section class="mb-12">
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<img src="http://static.photos/cityscape/1200x630/1" alt="香港城市景觀" class="w-full h-64 object-cover">
<div class="p-6">
<h2 class="text-3xl font-bold text-gray-800 mb-4">【頭條】港府公布最新施政報告</h2>
<p class="text-gray-600 mb-4">行政長官今日發表任內最後一份施政報告,重點關注房屋、經濟復甦及青年發展...</p>
<a href="#" class="text-red-600 font-semibold hover:underline">閱讀全文 →</a>
</div>
</div>
</section>
<!-- 每日精選專欄 -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12">
<!-- 每日一笑固定專欄 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
<div class="bg-teal-600 p-4 flex items-center">
<i data-feather="smile" class="text-white mr-2"></i>
<h3 class="text-xl font-bold text-white">今日笑一笑</h3>
</div>
<div class="p-6">
<div id="daily-joke-container" class="min-h-[150px]">
<h4 class="text-lg font-semibold text-gray-800 mb-2 joke-title"></h4>
<p class="text-gray-600 mb-4 joke-content"></p>
</div>
<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">
換個笑話 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
</button>
</div>
</section>
<!-- 精選廣告固定專欄 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
<div class="bg-amber-600 p-4 flex items-center">
<i data-feather="dollar-sign" class="text-white mr-2"></i>
<h3 class="text-xl font-bold text-white">今日精選</h3>
</div>
<div class="p-6">
<div id="daily-ad-container" class="min-h-[150px]">
<img src="" alt="廣告圖片" class="w-full h-32 object-cover mb-4 rounded ad-image">
<h4 class="text-lg font-semibold text-gray-800 mb-2 ad-title"></h4>
<p class="text-gray-600 mb-4 ad-content"></p>
</div>
<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">
其他優惠 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
</button>
</div>
</section>
<!-- 讀者評語固定專欄 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
<div class="bg-rose-600 p-4 flex items-center">
<i data-feather="message-square" class="text-white mr-2"></i>
<h3 class="text-xl font-bold text-white">讀者有話說</h3>
</div>
<div class="p-6">
<div id="daily-comment-container" class="min-h-[150px]">
<div class="flex items-start mb-4">
<img src="" alt="讀者頭像" class="w-10 h-10 rounded-full mr-3 reader-avatar">
<div>
<h4 class="font-semibold text-gray-800 reader-name"></h4>
<p class="text-gray-600 text-sm reader-comment"></p>
</div>
</div>
</div>
<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">
更多評語 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
</button>
</div>
</section>
<!-- 隨機專欄 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden col-span-1">
<div class="bg-blue-600 p-4 flex items-center">
<i data-feather="zap" class="text-white mr-2"></i>
<h3 class="text-xl font-bold text-white">今日驚喜</h3>
</div>
<div class="p-6">
<div id="random-column-container" class="min-h-[150px]">
<h4 class="text-lg font-semibold text-gray-800 mb-2 random-title"></h4>
<p class="text-gray-600 mb-4 random-content"></p>
</div>
<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">
換個驚喜 <i data-feather="refresh-cw" class="w-4 h-4 inline"></i>
</button>
</div>
</section>
</div>
<!-- 新聞專欄網格 -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- 每週主題 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-blue-600 p-4">
<h3 class="text-xl font-bold text-white">每週主題</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">【本週焦點】香港電影金像獎特輯</h4>
<p class="text-gray-600 mb-4">回顧歷屆金像獎經典時刻,專訪本屆入圍導演...</p>
<a href="#" class="text-blue-600 font-semibold hover:underline">更多內容 →</a>
</div>
</section>
<!-- 天空小說 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-purple-600 p-4">
<h3 class="text-xl font-bold text-white">天空小說</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">《維港夜未眠》連載 (第15回)</h4>
<p class="text-gray-600 mb-4">阿強終於發現了阿珍的秘密,卻沒想到背後隱藏著更大的陰謀...</p>
<a href="#" class="text-purple-600 font-semibold hover:underline">繼續閱讀 →</a>
</div>
</section>
<!-- 恆生指數 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-green-600 p-4">
<h3 class="text-xl font-bold text-white">恆生指數</h3>
</div>
<div class="p-6">
<div class="flex justify-between items-center mb-2">
<span class="text-gray-700">今日收盤</span>
<span class="text-2xl font-bold text-green-600">18,742.85</span>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-700">漲跌幅</span>
<span class="text-red-600 font-semibold">↓ 1.23%</span>
</div>
<a href="#" class="block mt-4 text-green-600 font-semibold hover:underline">查看詳情 →</a>
</div>
</section>
<!-- 突發新聞 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-red-600 p-4">
<h3 class="text-xl font-bold text-white">突發新聞</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">【突發】港鐵荃灣線服務受阻</h4>
<p class="text-gray-600 mb-4">因信號故障,荃灣線來往中環至荃灣站列車服務延誤...</p>
<a href="#" class="text-red-600 font-semibold hover:underline">最新消息 →</a>
</div>
</section>
<!-- 中史劇場 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-yellow-600 p-4">
<h3 class="text-xl font-bold text-white">中史劇場</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">【歷史今日】1925年省港大罷工</h4>
<p class="text-gray-600 mb-4">回顧這場中國工運史上規模最大、時間最長的罷工運動...</p>
<a href="#" class="text-yellow-600 font-semibold hover:underline">了解歷史 →</a>
</div>
</section>
<!-- 文學分享 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-indigo-600 p-4">
<h3 class="text-xl font-bold text-white">文學分享</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">《香港文學散步》書評</h4>
<p class="text-gray-600 mb-4">跟隨作家腳步,重新發現香港文學地景...</p>
<a href="#" class="text-indigo-600 font-semibold hover:underline">閱讀書評 →</a>
</div>
</section>
<!-- 勁歌推介 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-pink-600 p-4">
<h3 class="text-xl font-bold text-white">勁歌推介</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">【本週冠軍】陳奕迅 - 《人啊人》</h4>
<p class="text-gray-600 mb-4">Eason最新單曲探討人性本質,MV點擊破百萬...</p>
<a href="#" class="text-pink-600 font-semibold hover:underline">試聽歌曲 →</a>
</div>
</section>
<!-- 腦筋急轉彎 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-orange-600 p-4">
<h3 class="text-xl font-bold text-white">腦筋急轉彎</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">今日謎題</h4>
<p class="text-gray-600 mb-4">「有頭無腳,有眼無眉,有心無肺,有肚無腸」猜一物</p>
<a href="#" class="text-orange-600 font-semibold hover:underline">查看答案 →</a>
</div>
</section>
<!-- 結語專欄 -->
<section class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="bg-gray-600 p-4">
<h3 class="text-xl font-bold text-white">編者結語</h3>
</div>
<div class="p-6">
<h4 class="text-lg font-semibold text-gray-800 mb-2">今日分享</h4>
<p class="text-gray-600 mb-4">「香港精神,在於逆境自強,在於靈活變通。無論時代如何變遷,我們都應保持這份港式堅韌。」</p>
<a href="#" class="text-gray-600 font-semibold hover:underline">更多結語 →</a>
</div>
</section>
</div>
</main>
<custom-footer></custom-footer>
<!-- 設定按鈕 -->
<div class="fixed bottom-20 right-4">
<a href="/admin.html" class="bg-gray-800 text-white p-3 rounded-full shadow-lg hover:bg-gray-700 transition block">
<i data-feather="settings"></i>
</a>
</div>
<script>
feather.replace();
// 檢查是否為管理員
if (localStorage.getItem('adminLoggedIn')) {
document.getElementById('admin-link').classList.remove('hidden');
}
</script>
<script src="script.js"></script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>