diff --git a/src/app/client/client-view.tsx b/src/app/client/client-view.tsx index d84ffa094b..656c020e02 100644 --- a/src/app/client/client-view.tsx +++ b/src/app/client/client-view.tsx @@ -383,6 +383,7 @@ export function ClientView({ allow="autoplay; gamepad; fullscreen" referrerPolicy="no-referrer" loading="eager" + fetchPriority={"high" as const} /> diff --git a/src/app/client/loading.tsx b/src/app/client/loading.tsx index 5dfe6a4233..1be8672d27 100644 --- a/src/app/client/loading.tsx +++ b/src/app/client/loading.tsx @@ -1,16 +1,48 @@ +import Image from "next/image"; + export default function ClientLoading() { return (
+
+
+ +
+
+
); } diff --git a/src/app/globals.css b/src/app/globals.css index 4e896fa311..39463b0d44 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1701,6 +1701,28 @@ details[open] > summary .details-open\:rotate-180 { .animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; } +.animate-shake { + animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; +} +@keyframes shake { + 10%, + 90% { + transform: translateX(-2px); + } + 20%, + 80% { + transform: translateX(4px); + } + 30%, + 50%, + 70% { + transform: translateX(-6px); + } + 40%, + 60% { + transform: translateX(6px); + } +} /* Glass morphism */ .glass { diff --git a/src/components/auth/register-form.tsx b/src/components/auth/register-form.tsx index 69be714f77..67151cab3c 100644 --- a/src/components/auth/register-form.tsx +++ b/src/components/auth/register-form.tsx @@ -47,6 +47,8 @@ export function RegisterForm({ FormData >(register, { error: null, ok: false }); const [termsAccepted, setTermsAccepted] = useState(false); + const [termsError, setTermsError] = useState(false); + const termsRef = useRef(null); const [password, setPassword] = useState(""); const [showPassword, setShowPassword] = useState(false); const [showConfirm, setShowConfirm] = useState(false); @@ -115,11 +117,16 @@ export function RegisterForm({ className="relative overflow-hidden bg-center bg-cover rounded-t-xl" style={{ backgroundImage: "url(/assets/images/mybobba_banner.png)", - height: "180px", - maxHeight: "150px", + height: "160px", }} > -
+
-
- - +
+ + {t("accountDetails")} + +
-
- - +
+
+ + +
+
+ + +
{/* Password & Confirm */} -
-
-