feat: add "Hello from the otter side" easter eggs

Custom 404 pages for landing and docs sites, otter greeting on the
first-login sidebar, and a one-time welcome toast after password change.
This commit is contained in:
SnapOtter
2026-05-16 22:45:22 +08:00
parent b5db8f3192
commit fd69a60e48
5 changed files with 94 additions and 3 deletions
@@ -100,6 +100,7 @@ export function ChangePasswordPage() {
return;
}
localStorage.setItem("snapotter-welcome", "1");
// Trigger browser password save prompt via real form submission + navigation
const username = localStorage.getItem("snapotter-username") || "admin";
triggerBrowserPasswordSave(username, newPassword);
@@ -218,6 +219,7 @@ export function ChangePasswordPage() {
</div>
<div className="hidden lg:flex flex-1 bg-primary/90 items-center justify-center p-12 text-white rounded-s-3xl">
<div className="max-w-lg space-y-6 text-center">
<span className="text-7xl">🦦</span>
<h2 className="text-3xl font-bold">{t.changePassword.sidebarTitle}</h2>
<p className="text-lg text-white/80">{t.changePassword.sidebarDescription}</p>
</div>