mirror of
https://github.com/handsomezhuzhu/2fa-tool.git
synced 2026-02-20 19:50:15 +00:00
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:
@@ -1092,6 +1092,7 @@ export default function TwoFactorAuth() {
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
||||||
{/* Footer */}
|
{/* Footer */}
|
||||||
|
{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">© 2025 Simon. All rights reserved.</p>
|
||||||
@@ -1125,6 +1126,7 @@ export default function TwoFactorAuth() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
)}
|
||||||
|
|
||||||
<Toaster />
|
<Toaster />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user