first commit

This commit is contained in:
Simon CATANESE 2024-03-27 11:36:49 +01:00
parent 3633f7d0d2
commit 7e785756db
6 changed files with 49 additions and 1 deletions

29
package-lock.json generated
View File

@ -10,6 +10,7 @@
"license": "ISC",
"dependencies": {
"axios": "^1.6.7",
"bootstrap": "^5.3.3",
"react": "^18.2.0",
"react-cookie": "^7.0.2",
"react-dom": "^18.2.0",
@ -758,6 +759,16 @@
"node": ">=16"
}
},
"node_modules/@popperjs/core": {
"version": "2.11.8",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
"integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
"peer": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/popperjs"
}
},
"node_modules/@remix-run/router": {
"version": "1.14.2",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.14.2.tgz",
@ -1663,6 +1674,24 @@
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true
},
"node_modules/bootstrap": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
"integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/twbs"
},
{
"type": "opencollective",
"url": "https://opencollective.com/bootstrap"
}
],
"peerDependencies": {
"@popperjs/core": "^2.11.8"
}
},
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",

View File

@ -16,6 +16,7 @@
},
"dependencies": {
"axios": "^1.6.7",
"bootstrap": "^5.3.3",
"react": "^18.2.0",
"react-cookie": "^7.0.2",
"react-dom": "^18.2.0",

View File

@ -5,6 +5,7 @@ import "./assets/styles/index.css";
import { BrowserRouter } from "react-router-dom";
import { CookiesProvider } from "react-cookie";
import setupAxios from "./setupAxios";
import "bootstrap";
setupAxios();

View File

@ -42,7 +42,9 @@ export const Register = () => {
placeholder="confirmation"
onChange={(e) => setConfirmation(e.target.value)}
/>
<button type="submit">submit</button>
<button class="btn-outline-primary" type="submit">
submit
</button>
</form>
</div>
);

13
src/pages/test.jsx Normal file
View File

@ -0,0 +1,13 @@
import React from "react";
import { useAuth } from "../hooks";
export const Test = () => {
const { user } = useAuth();
return (
<div>
<h1>Vive la macronie à bat montjoiuie saint dennis</h1>
</div>
);
};

View File

@ -2,11 +2,13 @@ import React from "react";
import { Route, Routes } from "react-router-dom";
import { Home, Login, Register } from "./pages";
import { Test } from "./pages/test";
export const Router = () => (
<Routes>
<Route index element={<Home />} />
<Route path="login" element={<Login />} />
<Route path="register" element={<Register />} />
<Route path="test" element={<Test />} />
</Routes>
);