feat: hide footer by default based on env variable

Show footer only if `NEXT_PUBLIC_SHOW_FOOTER` is "true".

Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
v0
2026-02-04 15:31:49 +00:00
parent bad51a7318
commit ff3dc45f2c

View File

@@ -1092,39 +1092,41 @@ export default function TwoFactorAuth() {
</Dialog> </Dialog>
{/* Footer */} {/* Footer */}
<footer className="border-t py-6 mt-auto relative z-10 bg-background/80 backdrop-blur-sm"> {process.env.NEXT_PUBLIC_SHOW_FOOTER === "true" && (
<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"> <footer className="border-t py-6 mt-auto relative z-10 bg-background/80 backdrop-blur-sm">
<p className="text-xs tracking-wider text-muted-foreground">© 2025 Simon. All rights reserved.</p> <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="flex items-center gap-4 text-xs tracking-wider text-muted-foreground/60"> <p className="text-xs tracking-wider text-muted-foreground">© 2025 Simon. All rights reserved.</p>
<a <div className="flex items-center gap-4 text-xs tracking-wider text-muted-foreground/60">
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> ICP备2025074424号
<span className="text-muted-foreground/30">|</span> </a>
<a <span className="text-muted-foreground/30">|</span>
href="https://beian.mps.gov.cn" <a
target="_blank" href="https://beian.mps.gov.cn"
rel="noopener noreferrer" target="_blank"
className="flex items-center gap-1.5 transition-colors hover:text-muted-foreground" rel="noopener noreferrer"
> className="flex items-center gap-1.5 transition-colors hover:text-muted-foreground"
<img >
alt="公安备案" <img
loading="lazy" alt="公安备案"
width="14" loading="lazy"
height="14" width="14"
decoding="async" height="14"
className="opacity-60" decoding="async"
src="/images/beian.png" className="opacity-60"
/> src="/images/beian.png"
53250402000233 />
</a> 53250402000233
</a>
</div>
</div> </div>
</div> </footer>
</footer> )}
<Toaster /> <Toaster />
</div> </div>