Skip to content

Commit

Permalink
✨ create models and home page
Browse files Browse the repository at this point in the history
  • Loading branch information
diadjii committed Oct 15, 2021
1 parent 0da15b2 commit f0a77c2
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
10 changes: 10 additions & 0 deletions src/models/Citoyen.ts
Original file line number Diff line number Diff line change
@@ -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
) {}
}
10 changes: 10 additions & 0 deletions src/models/Evenement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { TypeIncident } from "./TypeIncident";

export class Evenement {
constructor(
public date:string,
public heure:string,
public typeIncident:TypeIncident,
public confirmed:number
) {}
}
3 changes: 3 additions & 0 deletions src/models/TypeIncident.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export class TypeIncident {
constructor(public libelle:string) { }
}
5 changes: 5 additions & 0 deletions src/models/Zone.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class Zone {
constructor(
public libelle:string) {
}
}
12 changes: 12 additions & 0 deletions src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

import React, { Component } from 'react'

export default class HomePage extends Component {
render() {
return (
<div>
<strong>Welcome to my web site</strong>
</div>
)
}
}

0 comments on commit f0a77c2

Please sign in to comment.