Skip to content

Commit

Permalink
Update Footer.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
babaohuang committed Dec 25, 2023
1 parent b6b4946 commit bd3eb5a
Showing 1 changed file with 48 additions and 37 deletions.
85 changes: 48 additions & 37 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,39 +1,50 @@
<footer>
<p mt-8 text-xs op-30 text-center class="max-w-[80vw] mx-auto flex justify-center flex-wrap mb-[1em]">
<a
b-slate-link
href="https://geminiprochat.com" target="_blank"
>
Gemini Pro Chat
</a>
<span px-1>|</span>
<a
b-slate-link
href="https://github.com/babaohuang/GeminiProChat" target="_blank"
>
Source Code
</a>
{import.meta.env.PARTNER_LINK1 && import.meta.env.PARTNER_LINK_TITLE1 && (
<>
<span px-1>|</span>
<a
b-slate-link
href={import.meta.env.PARTNER_LINK1} target="_blank"
>
{import.meta.env.PARTNER_LINK_TITLE1}
</a>
</>
)}
{import.meta.env.PARTNER_LINK2 && import.meta.env.PARTNER_LINK_TITLE2 && (
<>
<span px-1>|</span>
<a
b-slate-link
href={import.meta.env.PARTNER_LINK2} target="_blank"
>
{import.meta.env.PARTNER_LINK_TITLE2}
</a>
</>
)}
</p>
<div class="max-w-[80vw] mx-auto flex justify-center flex-wrap mb-[1em]">
<nav class="w-full text-center">
<ul class="flex flex-wrap justify-center items-center text-xs op-30">
<!-- Static links -->
<li><a b-slate-link href="https://geminiprochat.com" target="_blank">Gemini Pro Chat</a></li>
<li><span class="px-1">|</span></li>
<li><a b-slate-link href="https://github.com/babaohuang/GeminiProChat" target="_blank">Source Code</a></li>

<!-- Dynamic links for tos, privacy, blog -->
{import.meta.env.TOS_LINK && (
<>
<li><span class="px-1">|</span></li>
<li><a b-slate-link href={import.meta.env.TOS_LINK} target="_blank">Terms of Service</a></li>
</>
)}
{import.meta.env.PRIVACY_POLICY_LINK && (
<>
<li><span class="px-1">|</span></li>
<li><a b-slate-link href={import.meta.env.PRIVACY_POLICY_LINK} target="_blank">Privacy Policy</a></li>
</>
)}
{import.meta.env.BLOG_LINK && (
<>
<li><span class="px-1">|</span></li>
<li><a b-slate-link href={import.meta.env.BLOG_LINK} target="_blank">Blog</a></li>
</>
)}

<!-- Dynamic links from environment variables for partner links -->
{import.meta.env.PARTNER_LINK1 && import.meta.env.PARTNER_LINK_TITLE1 && (
<>
<li><span class="px-1">|</span></li>
<li><a b-slate-link href={import.meta.env.PARTNER_LINK1} target="_blank">{import.meta.env.PARTNER_LINK_TITLE1}</a></li>
</>
)}
{import.meta.env.PARTNER_LINK2 && import.meta.env.PARTNER_LINK_TITLE2 && (
<>
<li><span class="px-1">|</span></li>
<li><a b-slate-link href={import.meta.env.PARTNER_LINK2} target="_blank">{import.meta.env.PARTNER_LINK_TITLE2}</a></li>
</>
)}
</ul>
</nav>

<p class="mt-8 text-xs op-30 text-center">
Copyright 2023 © Gemini Pro Chat. All rights reserved.
</p>
</div>
</footer>

0 comments on commit bd3eb5a

Please sign in to comment.