Files
MineGeo/components/PageLoading.tsx
pavel444-byte 927923dc95
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 11m31s
Improve accessibility and polish page styling
2026-10-24 14:11:17 +05:00

25 lines
658 B
TypeScript

import { getI18n } from "@/lib/i18n";
export async function PageLoading() {
const { t } = await getI18n();
return (
<main
className="section page-content route-loading"
aria-busy="true"
aria-label={t("Loading page")}
id="main-content"
tabIndex={-1}
>
<p role="status" className="muted">
{t("Loading page")}…
</p>
<div className="loading-title loading-surface" aria-hidden="true" />
<div className="cards-grid" aria-hidden="true">
{[0, 1, 2].map((index) => (
<div className="loading-card loading-surface" key={index} />
))}
</div>
</main>
);
}