* replace next with vite
* disable strictmode (it interferes with collaboration in dev mode)
This commit is contained in:
Philipinho
2023-10-20 17:12:08 +01:00
parent a86991e3d7
commit 9b682c8af5
96 changed files with 645 additions and 505 deletions
+7
View File
@@ -0,0 +1,7 @@
interface AuthLayoutProps {
children: React.ReactNode
}
export default function AuthLayout({ children }: AuthLayoutProps) {
return <div>{children}</div>
}
+5
View File
@@ -0,0 +1,5 @@
import { LoginForm } from '@/features/auth/components/login-form';
export default function LoginPage() {
return <LoginForm />;
}
+5
View File
@@ -0,0 +1,5 @@
import { SignUpForm } from '@/features/auth/components/sign-up-form';
export default function SignUpPage() {
return <SignUpForm />;
}
+12
View File
@@ -0,0 +1,12 @@
import { useAtom } from 'jotai';
import { currentUserAtom } from '@/features/user/atoms/current-user-atom';
export default function Home() {
const [currentUser] = useAtom(currentUserAtom);
return (
<>
Hello {currentUser && currentUser.user.name}!
</>
);
}
+8
View File
@@ -0,0 +1,8 @@
import { useParams } from 'react-router-dom';
import Editor from '@/features/editor/editor';
export default function Page() {
const { pageId } = useParams();
return <Editor key={pageId} pageId={pageId} />;
}
+23
View File
@@ -0,0 +1,23 @@
import { Title, Text } from '@mantine/core';
import { ThemeToggle } from '@/components/theme-toggle';
export function Welcome() {
return (
<>
<Title ta="center" mt={100}>
<Text
inherit
variant="gradient"
component="span"
gradient={{ from: 'pink', to: 'yellow' }}
>
Welcome
</Text>
</Title>
<Text ta="center" size="lg" maw={580} mx="auto" mt="xl">
Welcome to something new and interesting.
</Text>
<ThemeToggle />
</>
);
}