- Update footer padding for better spacing - Add hidden container for site statistics - Modify display of page and total site statistics These changes improve the presentation and organization of site statistics, making it easier for users to understand site traffic and engagement.
129 lines
5.2 KiB
Plaintext
129 lines
5.2 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title><%= content_for(:title) || "Today Ai Weather" %></title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<%= display_meta_tags(
|
|
site: 'TodayAIWeather',
|
|
reverse: true,
|
|
og: {
|
|
site_name: 'TodayAIWeather',
|
|
type: 'website',
|
|
url: request.original_url
|
|
},
|
|
alternate: {
|
|
"zh-CN" => url_for(locale: 'zh-CN'),
|
|
"en" => url_for(locale: 'en')
|
|
}
|
|
) %>
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= yield :head %>
|
|
|
|
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
|
|
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
|
|
|
|
<link rel="icon" href="/icon.png" type="image/png">
|
|
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/icon.png">
|
|
|
|
<%# Includes all stylesheet files in app/assets/stylesheets %>
|
|
<%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
|
<script defer data-domain="todayaiweather.com" src="https://plausible.frytea.com/js/script.js"></script>
|
|
|
|
<script defer src="https://busuanzi.frytea.com/js"></script>
|
|
|
|
<!-- Google tag (gtag.js) -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PX1C92V5L7"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'G-PX1C92V5L7');
|
|
</script>
|
|
|
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7296634171837358"
|
|
crossorigin="anonymous"></script>
|
|
|
|
</head>
|
|
|
|
<body class="min-h-screen bg-base-100 font-sans">
|
|
<!-- 导航栏 -->
|
|
<div class="navbar bg-base-100/80 backdrop-blur-sm fixed top-0 z-50">
|
|
<div class="container mx-auto">
|
|
<div class="flex-1">
|
|
<%= link_to root_path, class: "text-2xl font-display font-bold hover:text-primary transition-colors" do %>
|
|
Today AI Weather
|
|
<% end %>
|
|
</div>
|
|
<div class="flex-none">
|
|
<%= link_to "Cities", cities_path, class: "btn btn-ghost font-sans" %>
|
|
<%= link_to "Arts", arts_path, class: "btn btn-ghost font-sans" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主要内容 -->
|
|
<main class="pt-16">
|
|
<%= yield %>
|
|
</main>
|
|
|
|
<!-- 页脚 -->
|
|
<footer class="footer footer-center p-6 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>
|
|
</div>
|
|
|
|
<p class="font-display opacity-80 text-sm">
|
|
Copyright © 2024 - All rights reserved by AI Weather Art
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|