fix(ui): minor ui tweak in pretest screen

This commit is contained in:
shafin-r
2025-08-23 13:36:26 +06:00
parent 6f4f2a8668
commit 46608356ee
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ function PretestPageContent() {
return ( return (
<BackgroundWrapper> <BackgroundWrapper>
<div className="min-h-screen"> <div className="min-h-screen">
<div className="mx-10 mt-10"> <div className="mx-10 pt-10">
<button <button
onClick={() => router.push("/categories/subjects")} onClick={() => router.push("/categories/subjects")}
className="mb-4" className="mb-4"

View File

@ -7,13 +7,13 @@ const setCookie = (name: string, value: string | null, days: number = 7) => {
if (typeof document === "undefined") return; if (typeof document === "undefined") return;
if (value === null) { if (value === null) {
document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Strict; Secure`; document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax;`; //SameSite=Strict; Secure in production
} else { } else {
const expires = new Date(); const expires = new Date();
expires.setTime(expires.getTime() + days * 24 * 60 * 60 * 1000); expires.setTime(expires.getTime() + days * 24 * 60 * 60 * 1000);
document.cookie = `${name}=${encodeURIComponent( document.cookie = `${name}=${encodeURIComponent(
value value
)}; expires=${expires.toUTCString()}; path=/; SameSite=Strict; Secure`; )}; expires=${expires.toUTCString()}; path=/; SameSite=Lax;`; //SameSite=Strict; Secure in production
} }
}; };