mirror of
https://github.com/handsomezhuzhu/2fa-tool.git
synced 2026-02-20 11:43:19 +00:00
feat: move footer sensitive info to environment variables
Remove hardcoded personal info and use env vars for footer settings. Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
62
app/page.tsx
62
app/page.tsx
@@ -1095,34 +1095,42 @@ export default function TwoFactorAuth() {
|
|||||||
{process.env.NEXT_PUBLIC_SHOW_FOOTER === "true" && (
|
{process.env.NEXT_PUBLIC_SHOW_FOOTER === "true" && (
|
||||||
<footer className="border-t py-6 mt-auto relative z-10 bg-background/80 backdrop-blur-sm">
|
<footer className="border-t py-6 mt-auto relative z-10 bg-background/80 backdrop-blur-sm">
|
||||||
<div className="mx-auto flex max-w-4xl flex-col items-center gap-2 text-center md:flex-row md:justify-between md:gap-4 px-4">
|
<div className="mx-auto flex max-w-4xl flex-col items-center gap-2 text-center md:flex-row md:justify-between md:gap-4 px-4">
|
||||||
<p className="text-xs tracking-wider text-muted-foreground">© 2025 Simon. All rights reserved.</p>
|
<p className="text-xs tracking-wider text-muted-foreground">
|
||||||
|
© {new Date().getFullYear()} {process.env.NEXT_PUBLIC_FOOTER_COPYRIGHT || ""}. All rights reserved.
|
||||||
|
</p>
|
||||||
<div className="flex items-center gap-4 text-xs tracking-wider text-muted-foreground/60">
|
<div className="flex items-center gap-4 text-xs tracking-wider text-muted-foreground/60">
|
||||||
<a
|
{process.env.NEXT_PUBLIC_ICP_NUMBER && (
|
||||||
href="https://beian.miit.gov.cn/"
|
<a
|
||||||
target="_blank"
|
href="https://beian.miit.gov.cn/"
|
||||||
rel="noopener noreferrer"
|
target="_blank"
|
||||||
className="transition-colors hover:text-muted-foreground"
|
rel="noopener noreferrer"
|
||||||
>
|
className="transition-colors hover:text-muted-foreground"
|
||||||
滇ICP备2025074424号
|
>
|
||||||
</a>
|
{process.env.NEXT_PUBLIC_ICP_NUMBER}
|
||||||
<span className="text-muted-foreground/30">|</span>
|
</a>
|
||||||
<a
|
)}
|
||||||
href="https://beian.mps.gov.cn"
|
{process.env.NEXT_PUBLIC_ICP_NUMBER && process.env.NEXT_PUBLIC_PSB_NUMBER && (
|
||||||
target="_blank"
|
<span className="text-muted-foreground/30">|</span>
|
||||||
rel="noopener noreferrer"
|
)}
|
||||||
className="flex items-center gap-1.5 transition-colors hover:text-muted-foreground"
|
{process.env.NEXT_PUBLIC_PSB_NUMBER && (
|
||||||
>
|
<a
|
||||||
<img
|
href="https://beian.mps.gov.cn"
|
||||||
alt="公安备案"
|
target="_blank"
|
||||||
loading="lazy"
|
rel="noopener noreferrer"
|
||||||
width="14"
|
className="flex items-center gap-1.5 transition-colors hover:text-muted-foreground"
|
||||||
height="14"
|
>
|
||||||
decoding="async"
|
<img
|
||||||
className="opacity-60"
|
alt="公安备案"
|
||||||
src="/images/beian.png"
|
loading="lazy"
|
||||||
/>
|
width="14"
|
||||||
滇公网安备53250402000233号
|
height="14"
|
||||||
</a>
|
decoding="async"
|
||||||
|
className="opacity-60"
|
||||||
|
src="/images/beian.png"
|
||||||
|
/>
|
||||||
|
{process.env.NEXT_PUBLIC_PSB_NUMBER}
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user