style: update footer layout and visibility

- Adjust footer padding for improved spacing
- Change visitor and view statistics display to a more concise
  format
- Maintain consistent font sizes for better readability

These changes enhance the visual presentation of the footer
while maintaining the functionality of hidden visitor statistics.
This commit is contained in:
songtianlun 2025-01-26 02:27:19 +08:00
parent b0bdb72f8e
commit 8cacf2a9ff

View File

@ -74,55 +74,25 @@
</main>
<!-- 页脚 -->
<footer class="footer footer-center p-6 bg-base-200 text-base-content">
<footer class="footer footer-center p-8 bg-base-200 text-base-content">
<div class="container mx-auto flex flex-col gap-2">
<!-- 站点统计 -->
<div id="busuanzi_container" class="hidden">
<div class="text-xs opacity-70 flex flex-wrap justify-center gap-x-4 gap-y-1">
<!-- 页面统计 -->
<div class="flex items-center gap-3">
<span class="text-primary/70 font-medium">PAGE:</span>
<span class="flex items-center gap-2">
<span class="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<span id="busuanzi_value_page_pv"></span>
</span>
<span class="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
<span id="busuanzi_value_page_uv"></span>
</span>
</span>
</div>
<!-- 总站统计 -->
<div class="flex items-center gap-3">
<span class="text-secondary/70 font-medium">TOTAL:</span>
<span class="flex items-center gap-2">
<span class="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2z" />
</svg>
<span id="busuanzi_value_site_pv"></span>
</span>
<span class="flex items-center gap-1">
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1z" />
</svg>
<span id="busuanzi_value_site_uv"></span>
</span>
</span>
</div>
<div id="busuanzi_container" class="text-sm opacity-70 hidden">
<div class="space-x-2">
<span>Page Views: <span id="busuanzi_value_page_pv"></span></span>
<span>|</span>
<span>Page Visitors: <span id="busuanzi_value_page_uv"></span></span>
<span>|</span>
<span>Total Views: <span id="busuanzi_value_site_pv"></span></span>
<span>|</span>
<span>Total Visitors: <span id="busuanzi_value_site_uv"></span></span>
</div>
</div>
<p class="font-display opacity-80 text-sm">
<p class="font-display opacity-80">
Copyright © 2024 - All rights reserved by AI Weather Art
</p>
</div>
</footer>
</body>
</html>