♻️ refactor: all codebase

Completely refactoring the entire old codebase with a new codebase. This change also altered most of the core UI from the old codebase, replacing it with Shadcn with some customizations.
This commit is contained in:
2026-01-07 08:44:48 +07:00
parent fbcb575a36
commit a82e7a7424
95 changed files with 1143 additions and 3303 deletions

View File

@ -1,20 +1,40 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono, Inter } from "next/font/google";
import Navbar from "@/shared/widgets/navbar/components/Navbar";
import "./globals.css";
import GeistFontProvider from "@/providers/fonts/GeistFontProvider";
import HeroUIWrapper from "@/providers/HeroUIWrapper";
import NextTopLoader from "nextjs-toploader";
import React from "react";
const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" className="dark">
<body>
<NextTopLoader easing="ease" showSpinner={false} />
<GeistFontProvider>
<HeroUIWrapper>{children}</HeroUIWrapper>
</GeistFontProvider>
<html lang="en" className={`${inter.variable} dark`}>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<div className="max-w-400 mx-auto relative">
<Navbar />
<div className="pt-16">{children}</div>
</div>
</body>
</html>
);
};
export default RootLayout;
}