+ Activez votre compte +
++ Vous avez déjà un compte ?{' '} + + Se connecter + +
+diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ef6a52 --- /dev/null +++ b/.gitignore @@ -0,0 +1,41 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# env files (can opt-in for committing if needed) +.env* + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/CNAME b/CNAME deleted file mode 100644 index 4838ab9..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -mdt.lssd-community.cozedev.com \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e215bc4 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +# or +pnpm dev +# or +bun dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. + +This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. diff --git a/app/create-account/page.tsx b/app/create-account/page.tsx new file mode 100644 index 0000000..fcdd78b --- /dev/null +++ b/app/create-account/page.tsx @@ -0,0 +1,166 @@ +'use client'; + +import SexSelection from "@/components/forms/sex-selection"; +import { isAuthenticated } from "@/lib/auth"; +import Link from "next/link"; + +export default function CreateAccount() { + + if (isAuthenticated()) { + window.location.href = '/dashboard'; + return null; + } + + return ( +
+ Vous avez déjà un compte ?{' '} + + Se connecter + +
+Bienvenue sur votre profil. Voici vos informations personnages.
+ + { allCharacters.length > 0 ? ( +Formulaire de création de rapport d'arrestation à venir...
+Vous pouvez gérer vos demandes de mutation ici.
+Accédez aux documents officiels et aux ressources internes.
++ Vous n'avez pas de compte ?{' '} + + Créer un compte + +
+Consultez la structure hiérarchique de l'organisation.
+Né(e) le : ${dob}
`; - card.onclick = () => showSuspectPage(nom, prenom, dob, records); - container.appendChild(card); - }); -} - -function showSuspectPage(nom, prenom, dob, records) { - document.body.innerHTML = `Date de naissance : ${dob}
- - -Date : ${entry["Date et heure de l'arrestation"]}
-Agent : ${entry["Prénom de l'agent"]} ${entry["Nom de l'agent"]} (#${entry["Numéro de badge"]})
-Lieu : ${entry["Lieu de l'arrestation"]}
- -Badge #${badge}
-${records.length} arrestation(s)
`; - card.onclick = () => showAgentPage(badge, nom, prenom, records); - container.appendChild(card); - }); -} - -function showAgentPage(badge, nom, prenom, records) { - document.body.innerHTML = ` -Numéro de badge : ${badge}
-