mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-07-09 15:08:06 +00:00
Edit Carousel
Took 1 hour 41 minutes
This commit is contained in:
@@ -3,7 +3,10 @@ import { Html, Head, Main, NextScript } from 'next/document'
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<Head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="icon" href="/logo.svg"/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type {NextApiRequest, NextApiResponse} from 'next';
|
||||
import CRUD from '@/utils/CRUD';
|
||||
import CRUD from '@/models/api/CRUD';
|
||||
import {CreateUserQuery} from '@/models/api/UserQuery';
|
||||
import {hashPassword} from '@/lib/PasswordTools';
|
||||
import prismaClient from '@/lib/prismaClient';
|
||||
|
||||
+12
-6
@@ -4,8 +4,10 @@ import {useRouter} from 'next/router';
|
||||
import {Flex} from '@chakra-ui/react';
|
||||
|
||||
import type {Session} from '@/models/data_models/Session';
|
||||
import CardUser from "../components/layout/Dashboard/CardUser";
|
||||
import LeftPanel from "../components/layout/Dashboard/LeftPanel/LeftPanel";
|
||||
import CardUser from "../components/layout/dashboard/card_user/CardUser";
|
||||
import LeftPanel from "../components/layout/dashboard/left_panel/LeftPanel";
|
||||
import Head from 'next/head';
|
||||
import {websiteName} from '@/lib/constants';
|
||||
|
||||
export default function Dashboard() {
|
||||
const router = useRouter();
|
||||
@@ -26,10 +28,14 @@ export default function Dashboard() {
|
||||
};
|
||||
|
||||
return (
|
||||
<Flex gap={10}>
|
||||
<LeftPanel user={refinedUser} />
|
||||
<CardUser user={refinedUser} />
|
||||
</Flex>
|
||||
<>
|
||||
<Head><title>{websiteName} | Dashboard</title></Head>
|
||||
|
||||
<Flex gap={10}>
|
||||
<LeftPanel user={refinedUser} />
|
||||
<Flex justify={'center'} alignItems={'center'} ><CardUser user={refinedUser} /></Flex>
|
||||
</Flex>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
+4
-8
@@ -1,18 +1,14 @@
|
||||
import Head from 'next/head';
|
||||
import Navbar from '@/components/Navbar';
|
||||
import HeroBanner from '@/components/layout/Home/HeroBanner';
|
||||
import HomePresentation from '@/components/layout/Home/PresentationSection';
|
||||
import HeroBanner from '@/components/layout/home/HeroBanner';
|
||||
import HomePresentation from '@/components/layout/home/PresentationSection';
|
||||
import {websiteName} from '@/lib/constants';
|
||||
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Create Next App</title>
|
||||
<meta name="description" content="Generated by create next app"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
</Head>
|
||||
<Head><title>{websiteName}</title></Head>
|
||||
|
||||
<Navbar/>
|
||||
<HeroBanner/>
|
||||
|
||||
+16
-11
@@ -2,20 +2,25 @@ import {
|
||||
Box,
|
||||
Flex,
|
||||
} from '@chakra-ui/react';
|
||||
import Head from 'next/head';
|
||||
import LoginForm from '@/components/form/LoginForm';
|
||||
|
||||
import {websiteName} from '@/lib/constants';
|
||||
|
||||
export default function Login() {
|
||||
return (
|
||||
<Flex gap={5} h={'100vh'} justify={'center'} alignItems={'center'}>
|
||||
<Box flexBasis={'100%'}
|
||||
display={{base: "none", md: "block"}}
|
||||
h={"100%"}
|
||||
bgImage={'/couple_horizon.png'}
|
||||
bgSize={'cover'}
|
||||
bgPos={'center'}
|
||||
/>
|
||||
<LoginForm/>
|
||||
</Flex>
|
||||
<>
|
||||
<Head><title>{websiteName} | Connexion</title></Head>
|
||||
|
||||
<Flex gap={5} h={'100vh'} justify={'center'} alignItems={'center'}>
|
||||
<Box flexBasis={'100%'}
|
||||
display={{base: 'none', md: 'block'}}
|
||||
h={'100%'}
|
||||
bgImage={'/couple_horizon.png'}
|
||||
bgSize={'cover'}
|
||||
bgPos={'center'}
|
||||
/>
|
||||
<LoginForm/>
|
||||
</Flex>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
import { Box, Flex } from "@chakra-ui/react";
|
||||
import RegisterForm from "@/components/form/RegisterForm";
|
||||
import {websiteName} from '@/lib/constants';
|
||||
import Head from 'next/head';
|
||||
|
||||
export default function Register() {
|
||||
return (
|
||||
<Box>
|
||||
<>
|
||||
<Head><title>{websiteName} | Inscription</title></Head>
|
||||
|
||||
<Flex gap={10} h={"100vh"} alignItems={"center"}>
|
||||
<Box
|
||||
display={{ base: "none", md: "block" }}
|
||||
@@ -15,6 +19,6 @@ export default function Register() {
|
||||
/>
|
||||
<RegisterForm />
|
||||
</Flex>
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user