一分钟搭建影视站,支持Docker等部署方式
feat: Add footer section with responsive styles and ensure proper display
developerd4db8bac43a4
diff --git a/css/styles.css b/css/styles.cssindex 538ca9d..3b07506 100644--- a/css/styles.css+++ b/css/styles.css@@ -74,3 +74,37 @@background-color: #333;border-color: #555;}++/* 页脚样式 */+.footer {+ width: 100%;+ transition: all 0.3s ease;+}++.footer a:hover {+ text-decoration: underline;+}++/* 当内容较少时,确保页脚在底部 */+@media screen and (min-height: 800px) {+ body {+ display: flex;+ flex-direction: column;+ min-height: 100vh;+ }++ .container {+ flex: 1;+ }++ .footer {+ margin-top: auto;+ }+}++/* 在小屏幕上的页脚样式优化 */+@media screen and (max-width: 640px) {+ .footer {+ padding-bottom: 2rem;+ }+}diff --git a/index.html b/index.htmlindex 3c82151..f31e10e 100644--- a/index.html+++ b/index.html@@ -131,6 +131,34 @@</div></div>+ <!-- 页脚区域 -->+ <footer class="footer mt-8 py-6 border-t border-[#333] bg-[#0a0a0a]">+ <div class="container mx-auto px-4">+ <div class="flex flex-col md:flex-row justify-between items-center">+ <div class="mb-4 md:mb-0">+ <div class="flex items-center justify-center md:justify-start">+ <svg class="w-6 h-6 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"></path>+ </svg>+ <span class="gradient-text font-bold">LibreTV</span>+ </div>+ <p class="text-gray-500 text-sm mt-2 text-center md:text-left">© 2025 LibreTV - 自由观影,畅享精彩</p>+ </div>++ <div class="text-center md:text-right">+ <p class="text-gray-500 text-sm max-w-md">+ 免责声明:本站仅为视频搜索工具,不存储、上传或分发任何视频内容。+ 所有视频均来自第三方API接口。如有侵权,请联系相关内容提供方。+ </p>+ <div class="mt-2 flex justify-center md:justify-end space-x-4">+ <a href="about.html" class="text-gray-400 hover:text-white text-sm transition-colors">关于我们</a>+ <a href="privacy.html" class="text-gray-400 hover:text-white text-sm transition-colors">隐私政策</a>+ </div>+ </div>+ </div>+ </div>+ </footer>+<!-- 详情模态框 --><div id="modal" class="fixed inset-0 bg-black/95 hidden flex items-center justify-center"><div class="bg-[#111] p-8 rounded-lg w-11/12 max-w-4xl border border-[#333] max-h-[90vh] flex flex-col">diff --git a/js/app.js b/js/app.jsindex 9dae85b..f50c037 100644--- a/js/app.js+++ b/js/app.js@@ -145,6 +145,12 @@ function resetSearchArea() {document.getElementById('searchArea').classList.add('flex-1');document.getElementById('searchArea').classList.remove('mb-8');document.getElementById('resultsArea').classList.add('hidden');++ // 确保页脚正确显示,移除相对定位+ const footer = document.querySelector('.footer');+ if (footer) {+ footer.style.position = '';+ }}// 搜索功能