F(frontend): add route loading feedback
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-20 11:47:27 +03:30
parent f2d5b92b22
commit 5711961b9b
12 changed files with 312 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import { Suspense } from "react";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";
import Providers from "@/components/providers";
import RouteProgress from "@/components/RouteProgress";
import { siteUrl } from "@/lib/site";
import "../index.css";
@@ -33,6 +35,9 @@ export default function RootLayout({
<html lang="fa" dir="rtl" suppressHydrationWarning>
<body className={`${vazirmatn.variable} font-sans antialiased`}>
<Providers>
<Suspense fallback={null}>
<RouteProgress />
</Suspense>
<Navbar />
{children}
<Footer />