diff --git a/src/app/[locale]/loading.tsx b/src/app/[locale]/loading.tsx new file mode 100644 index 0000000..e4fa306 --- /dev/null +++ b/src/app/[locale]/loading.tsx @@ -0,0 +1,19 @@ +import { useTranslations } from "next-intl"; +import { Spinner } from "@/components/ui/spinner"; + +export default function Loading() { + const t = useTranslations("Fallback.Loading"); + + return ( +
+ +

{t("Title")}

+

+ {t("Description")} +

+
+ ); +} diff --git a/src/app/[locale]/qa/slow/page.tsx b/src/app/[locale]/qa/slow/page.tsx new file mode 100644 index 0000000..6d07a1b --- /dev/null +++ b/src/app/[locale]/qa/slow/page.tsx @@ -0,0 +1,16 @@ +async function delay(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); +} + +export default async function SlowPage() { + await delay(1500); + + return ( +
+

Slow Page Loaded

+

+ This page intentionally delayed rendering by 1.5 seconds for QA testing. +

+
+ ); +}