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:
2024-06-12 09:47:17 +02:00
parent 4d00d4b936
commit 1c42b6a4b6
66 changed files with 3316 additions and 3424 deletions

View File

@@ -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>
);
}

View File

@@ -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>
);
}