first commit
This commit is contained in:
9
app/(form)/form/page.tsx
Normal file
9
app/(form)/form/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import MultiStepForm from "@/ui/MultiForm";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<MultiStepForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
BIN
app/favicon.ico
Normal file
BIN
app/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
26
app/globals.css
Normal file
26
app/globals.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
/* :root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
} */
|
||||
|
||||
/* @theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-geist-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
} */
|
||||
|
||||
/* @media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #0a0a0a;
|
||||
--foreground: #ededed;
|
||||
}
|
||||
} */
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: var(--font-vazir);
|
||||
}
|
||||
40
app/layout.tsx
Normal file
40
app/layout.tsx
Normal file
@@ -0,0 +1,40 @@
|
||||
"use client";
|
||||
import "./globals.css";
|
||||
import { FontVazir } from "@/config/font.config";
|
||||
import ThemeRegistry from "@/ui/providers/ThemeRegitstry";
|
||||
import { CacheProvider } from "@emotion/react";
|
||||
import rtlCache from "@/core/theme/rtlCache";
|
||||
import { LocalizationProvider } from "@mui/x-date-pickers";
|
||||
import { AdapterDateFnsJalali } from "@mui/x-date-pickers/AdapterDateFnsJalali";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { useState } from "react";
|
||||
import { Toaster } from "sonner";
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const [queryClient] = useState(() => new QueryClient());
|
||||
|
||||
return (
|
||||
<html
|
||||
lang="fa"
|
||||
dir="rtl"
|
||||
className={`${FontVazir.variable} ${FontVazir.className} h-full antialiased`}
|
||||
style={{ fontFamily: FontVazir.style.fontFamily }}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<CacheProvider value={rtlCache}>
|
||||
<ThemeRegistry>
|
||||
<LocalizationProvider dateAdapter={AdapterDateFnsJalali}>
|
||||
{children}
|
||||
<Toaster position="bottom-right" richColors />
|
||||
</LocalizationProvider>
|
||||
</ThemeRegistry>
|
||||
</CacheProvider>
|
||||
</QueryClientProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
18
app/page.tsx
Normal file
18
app/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
"use client";
|
||||
import LoginForm from "@/ui/forms/LoginForm";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
minHeight: "100vh",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
backgroundColor: "#f8fafc",
|
||||
paddingTop: 4,
|
||||
}}
|
||||
>
|
||||
<LoginForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user