Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Boutzi committed Nov 4, 2024
1 parent 81d4db5 commit 5c25e03
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 10 additions & 7 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import { ThemeProvider } from "@/components/theme-provider";
import localFont from "next/font/local";
import { Anek_Telugu } from "next/font/google";
import "../globals.css";

import { ThemeProvider } from "@/components/theme-provider";
import { GlobalStatus } from "@/components/GlobalStatus";
import { Header } from "@/components/Header";
import { Footer } from "@/components/Footer";
import { GlobalStatus } from "@/components/GlobalStatus";
import { StatusProvider } from "@/context/StatusContext";
import { UserProvider } from "@/context/UserContext";
import GoogleTagManager from "@/components/GoogleTagManager";

import { NextIntlClientProvider } from "next-intl";
import { getMessages, getTranslations } from "next-intl/server";
import { routing } from "@/i18n/routing";
import { unstable_setRequestLocale } from "next-intl/server";

import { StatusProvider } from "@/context/StatusContext";
import { UserProvider } from "@/context/UserContext";
import { ColorProvider } from "@/context/ColorContext";
import { LoaderProvider } from "@/context/LoaderContext";
import GoogleTagManager from "@/components/GoogleTagManager";

export function generateStaticParams() {
return routing.locales.map((locale) => ({ locale }));
Expand All @@ -25,14 +28,14 @@ const AnekTelugu = Anek_Telugu({
});

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
src: "../fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
style: "normal",
});

const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
src: "../fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
Expand Down
4 changes: 3 additions & 1 deletion app/not-found.tsx → app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client";
import Link from "next/link";
import { Section } from "@/components/Section";
import { Button } from "@/components/ui/button";
import Error from "next/error";

export const metadata = {
title: "Error 404 - Page not found",
Expand All @@ -14,7 +16,7 @@ const NotFoundPage = () => {
<div className="px-4 m-auto max-w-screen-xl lg:py-16 lg:px-6">
<div className="mx-auto max-w-screen-sm text-center">
<h1 className="mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-primary-600 dark:text-primary-500">
404
<Error statusCode={404} /> 404
</h1>
<p className="mb-4 text-3xl tracking-tight font-bold text-gray-900 md:text-4xl dark:text-white">
Something&apos;s missing.
Expand Down

0 comments on commit 5c25e03

Please sign in to comment.