feat: Improve code formatting and import order
Rearranged import orders for better visibility and readability. Also, cleaned up some of the typescript and JSX by adding appropriate line breaks and spaces, and ensuring the use of semicolons for better punctuation.
This commit is contained in:
@@ -1,37 +1,38 @@
|
||||
import type { Metadata } from "next";
|
||||
import '@fontsource-variable/kode-mono';
|
||||
import "@fontsource-variable/kode-mono";
|
||||
import "./globals.css";
|
||||
import {ThemeProvider} from "@/components/providers/theme-provider";
|
||||
import { Footer } from "@/components/footer";
|
||||
import { Header } from "@/components/header";
|
||||
import { PrimaryNavigationMenu } from "@/components/primary-nav";
|
||||
import { Providers } from "@/components/providers/providers";
|
||||
import { ThemeProvider } from "@/components/providers/theme-provider";
|
||||
import type React from "react";
|
||||
import {Footer} from "@/components/footer";
|
||||
import {Header} from "@/components/header";
|
||||
import {PrimaryNavigationMenu} from "@/components/primary-nav";
|
||||
import {Providers} from "@/components/providers/providers";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "YeloBit",
|
||||
description: "Generated by create next app",
|
||||
icons: "yellow-bit.svg"};
|
||||
title: "YeloBit",
|
||||
description: "Generated by create next app",
|
||||
icons: "yellow-bit.svg",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="icon" href="/public/favicon.ico" sizes="any"/>
|
||||
</head>
|
||||
<body className={"w-full min-h-screen flex flex-col items-center justify-between"}>
|
||||
<Providers>
|
||||
<Header>
|
||||
<PrimaryNavigationMenu/>
|
||||
</Header>
|
||||
{children}
|
||||
<Footer/>
|
||||
</Providers>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="icon" href="/public/favicon.ico" sizes="any" />
|
||||
</head>
|
||||
<body className={"w-full min-h-screen flex flex-col items-center justify-between"}>
|
||||
<Providers>
|
||||
<Header>
|
||||
<PrimaryNavigationMenu />
|
||||
</Header>
|
||||
{children}
|
||||
<Footer />
|
||||
</Providers>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main className="flex flex-col items-center justify-end h-full w-2/4">
|
||||
<h1>Hello world !</h1>
|
||||
</main>
|
||||
);
|
||||
return (
|
||||
<main className="flex flex-col items-center justify-end h-full w-2/4">
|
||||
<h1>Hello world !</h1>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user