feat: update splash screen elements

This commit is contained in:
ramvignesh-b
2026-04-21 01:49:15 +05:30
parent bd0f2e0171
commit b5d55bd258
5 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ describe("ProtectedRoute", () => {
"/protected",
);
expect(screen.getByText(/Unsealing.../i)).toBeInTheDocument();
expect(screen.getByText(/Unsealing/i)).toBeInTheDocument();
expect(screen.queryByText("Secret")).not.toBeInTheDocument();
});
@@ -90,7 +90,7 @@ describe("PublicRoute", () => {
</PublicRoute>,
"/public",
);
expect(screen.getByText(/Unsealing.../i)).toBeInTheDocument();
expect(screen.getByText(/Unsealing/i)).toBeInTheDocument();
expect(screen.queryByText("Login Page")).not.toBeInTheDocument();
});
+10 -4
View File
@@ -6,11 +6,17 @@ export default function SplashScreen() {
<div className="fixed w-screen h-screen inset-0 bg-base-100 flex flex-col items-center justify-center z-9999">
<div className="flex flex-col items-center gap-6 animate-pulse">
<Logo />
<div className="flex flex-col items-center gap-2">
<EnvelopeOpenIcon weight="duotone" fill="primary" size={12} />
<span className="loading loading-ring loading-lg text-primary" />
<p className="text-xs uppercase font-sans tracking-widest opacity-40">
Unsealing...
<EnvelopeOpenIcon
weight="thin"
className={"absolute text-primary/50"}
size={40}
/>
<span className="loading loading-ring loading-xl text-primary"></span>
...
<p className="text-xs uppercase font-sans tracking-[1em] opacity-40">
Unsealing
</p>
</div>
</div>