|
1 | 1 | --- |
2 | 2 | import wechatQr from "../assets/wechat-qrcode.jpg"; |
| 3 | +import { t } from "../i18n/utils.ts"; |
| 4 | +
|
| 5 | +interface Props { |
| 6 | + locale?: "zh" | "en"; |
| 7 | +} |
| 8 | +
|
| 9 | +const { locale = "zh" } = Astro.props; |
| 10 | +const prefix = locale === "en" ? "/en" : ""; |
3 | 11 | --- |
4 | 12 |
|
5 | 13 | <footer class="border-t border-border mt-auto"> |
6 | 14 | <div class="max-w-[1100px] mx-auto px-4 sm:px-6 py-6 sm:py-8"> |
7 | | - <!-- WeChat Subscribe --> |
8 | | - <div class="flex flex-col sm:flex-row items-center gap-5 sm:gap-8 mb-6 sm:mb-8 pb-6 sm:pb-8 border-b border-border"> |
9 | | - <img |
10 | | - src={wechatQr.src} |
11 | | - alt="微信公众号二维码" |
12 | | - class="w-32 h-32 sm:w-36 sm:h-36 rounded-xl object-cover shadow-[0_8px_30px_rgba(99,102,241,0.10)] border border-border flex-shrink-0" |
13 | | - loading="lazy" |
14 | | - /> |
15 | | - <div class="text-center sm:text-left"> |
16 | | - <h3 class="text-base sm:text-lg font-semibold mb-1.5">微信扫码关注</h3> |
17 | | - <p class="text-text-dim text-sm leading-relaxed">每日推送直达,不错过任何重要资讯</p> |
| 15 | + <!-- Top: Quick Links + WeChat --> |
| 16 | + <div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-6 sm:gap-8 mb-6 sm:mb-8 pb-6 sm:pb-8 border-b border-border"> |
| 17 | + <!-- Content --> |
| 18 | + <div> |
| 19 | + <h4 class="text-xs font-semibold text-text-muted uppercase tracking-wider mb-2.5 sm:mb-3">{t("nav.industry", locale)}</h4> |
| 20 | + <ul class="space-y-2 text-sm"> |
| 21 | + <li><a href={`${prefix}/daily`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("nav.daily", locale)}</a></li> |
| 22 | + <li><a href={`${prefix}/weekly`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("nav.weekly", locale)}</a></li> |
| 23 | + <li><a href={`${prefix}/topics`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("nav.topics", locale)}</a></li> |
| 24 | + </ul> |
| 25 | + </div> |
| 26 | + <!-- Rankings --> |
| 27 | + <div> |
| 28 | + <h4 class="text-xs font-semibold text-text-muted uppercase tracking-wider mb-2.5 sm:mb-3">{t("nav.rankings", locale)}</h4> |
| 29 | + <ul class="space-y-2 text-sm"> |
| 30 | + <li><a href={`${prefix}/ai/tools/coding`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("rankings.categories.coding", locale)}</a></li> |
| 31 | + <li><a href={`${prefix}/ai/tools/writing`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("rankings.categories.writing", locale)}</a></li> |
| 32 | + <li><a href={`${prefix}/ai/tools/agent`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("rankings.categories.agent", locale)}</a></li> |
| 33 | + </ul> |
18 | 34 | </div> |
| 35 | + <!-- More --> |
| 36 | + <div class="hidden sm:block"> |
| 37 | + <h4 class="text-xs font-semibold text-text-muted uppercase tracking-wider mb-2.5 sm:mb-3">{locale === "en" ? "More" : "更多"}</h4> |
| 38 | + <ul class="space-y-2 text-sm"> |
| 39 | + <li><a href={`${prefix}/search`} class="text-text-dim hover:text-accent-light transition-colors no-underline">{t("nav.search", locale)}</a></li> |
| 40 | + <li><a href="https://github.com/doocs/awesome-ai" target="_blank" rel="noopener" class="text-text-dim hover:text-accent-light transition-colors no-underline">{locale === "en" ? "Contribute" : "贡献"}</a></li> |
| 41 | + <li><a href="https://github.com/doocs/awesome-ai/blob/main/LICENSE" target="_blank" rel="noopener" class="text-text-dim hover:text-accent-light transition-colors no-underline">MIT License</a></li> |
| 42 | + </ul> |
| 43 | + </div> |
| 44 | + <!-- WeChat (spans 2 cols on lg) --> |
| 45 | + <div class="col-span-2 lg:col-span-2 flex items-center gap-4 sm:gap-5"> |
| 46 | + <img |
| 47 | + src={wechatQr.src} |
| 48 | + alt="WeChat QR" |
| 49 | + class="w-20 h-20 sm:w-24 sm:h-24 rounded-lg object-cover shadow-[0_4px_20px_rgba(99,102,241,0.08)] border border-border flex-shrink-0" |
| 50 | + loading="lazy" |
| 51 | + /> |
| 52 | + <div> |
| 53 | + <h4 class="text-sm font-semibold mb-1">{locale === "en" ? "Follow on WeChat" : "微信扫码关注"}</h4> |
| 54 | + <p class="text-text-dim text-xs leading-relaxed">{locale === "en" ? "Daily updates delivered to your chat" : "每日推送直达,不错过重要资讯"}</p> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + <!-- Bottom --> |
| 59 | + <div class="flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-text-muted"> |
| 60 | + <p class="text-center sm:text-left"> |
| 61 | + {locale === "en" ? "Extracting real signals from the AI noise" : "不做信息搬运工,只做有价值的筛选和分析"} |
| 62 | + </p> |
| 63 | + <p> |
| 64 | + Copyright © <span id="footer-year"></span> <a href="https://github.com/doocs" class="text-accent-light no-underline hover:underline" target="_blank" rel="noopener">Doocs</a> |
| 65 | + </p> |
19 | 66 | </div> |
20 | | - <!-- Copyright --> |
21 | | - <p class="text-center text-xs sm:text-sm text-text-muted"> |
22 | | - Copyright © <span id="footer-year"></span> <a href="https://github.com/doocs" class="text-accent-light no-underline hover:underline" target="_blank" rel="noopener">Doocs</a> |
23 | | - · Licensed under <a href="https://github.com/doocs/awesome-ai/blob/main/LICENSE" class="text-accent-light no-underline hover:underline" target="_blank" rel="noopener">MIT License</a> |
24 | | - </p> |
25 | 67 | </div> |
26 | 68 | </footer> |
27 | 69 | <script> |
|
0 commit comments