Employees can apply for leave and track balance, status, and history. Managers can view all requests and approve/reject them. Login with separate dashboards for employees and managers with the dummy json. Tables with filters (All, Pending, Approved, Rejected) for easy management.
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import type { Metadata } from "next";
|
||
import "./globals.css";
|
||
import { AuthProvider } from "@/context/AuthContext";
|
||
import { Geist } from "next/font/google";
|
||
import { cn } from "@/lib/utils";
|
||
|
||
const geist = Geist({subsets:['latin'],variable:'--font-sans'});
|
||
|
||
export const metadata: Metadata = {
|
||
title: "LeaveFlow – Leave Management",
|
||
description: "Streamlined leave management for teams",
|
||
};
|
||
|
||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||
return (
|
||
<html lang="en" className={cn("font-sans", geist.variable)}>
|
||
<head>
|
||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
||
<link
|
||
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap"
|
||
rel="stylesheet"
|
||
/>
|
||
</head>
|
||
<body>
|
||
<AuthProvider>{children}</AuthProvider>
|
||
</body>
|
||
</html>
|
||
);
|
||
} |