diff --git a/package.json b/package.json index c281c86..e39e63b 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "@testing-library/user-event": "^12.8.3", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-router-dom": "^5.3.0", "react-scripts": "4.0.3", "web-vitals": "^1.1.1" }, diff --git a/src/models/Citoyen.ts b/src/models/Citoyen.ts new file mode 100644 index 0000000..8655da6 --- /dev/null +++ b/src/models/Citoyen.ts @@ -0,0 +1,10 @@ +import { Zone } from "./Zone"; + +export class Citoyen { + constructor( + public prenom:string, + public nom:string, + public zone:Zone, + public is_adult:boolean + ) {} +} diff --git a/src/models/Evenement.ts b/src/models/Evenement.ts new file mode 100644 index 0000000..8c1f38b --- /dev/null +++ b/src/models/Evenement.ts @@ -0,0 +1,10 @@ +import { TypeIncident } from "./TypeIncident"; + +export class Evenement { + constructor( + public date:string, + public heure:string, + public typeIncident:TypeIncident, + public confirmed:number + ) {} +} diff --git a/src/models/TypeIncident.ts b/src/models/TypeIncident.ts new file mode 100644 index 0000000..c8440c1 --- /dev/null +++ b/src/models/TypeIncident.ts @@ -0,0 +1,3 @@ +export class TypeIncident { + constructor(public libelle:string) { } +} \ No newline at end of file diff --git a/src/models/Zone.ts b/src/models/Zone.ts new file mode 100644 index 0000000..1a881d9 --- /dev/null +++ b/src/models/Zone.ts @@ -0,0 +1,5 @@ +export class Zone { + constructor( + public libelle:string) { + } +} \ No newline at end of file diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx new file mode 100644 index 0000000..e6c5df7 --- /dev/null +++ b/src/pages/HomePage.tsx @@ -0,0 +1,12 @@ + +import React, { Component } from 'react' + +export default class HomePage extends Component { + render() { + return ( +