@@ -16,11 +16,11 @@ const SinglePropertyDetail = ({
16
16
const { properties } = property ;
17
17
if ( ! properties ) return null ;
18
18
19
- const { address, priority_level, guncrime_density, OPA_ID } = properties ;
19
+ const { access_process , address, tree_canopy_gap , neighborhood , owner_1 , owner_2 , priority_level, guncrime_density, zipcode , OPA_ID } = properties ;
20
20
const image = `https://storage.googleapis.com/cleanandgreenphilly/${ OPA_ID } .jpg` ;
21
21
22
22
return (
23
- < div className = "max-w-sm w- full md:w-1/2 p-4" >
23
+ < div className = "w- full p-4" >
24
24
< Button onClick = { ( ) => setSelectedProperty ( null ) } > Back </ Button >
25
25
< div className = "bg-white rounded-lg overflow-hidden" >
26
26
< div className = "relative h-48 w-full rounded-lg overflow-hidden" >
@@ -32,13 +32,60 @@ const SinglePropertyDetail = ({
32
32
/>
33
33
</ div >
34
34
< div className = "p-4" >
35
- < div className = "font-bold text-xl" > { address } </ div >
36
- < div className = "text-gray-700 mb" > { `Guncrime Density: ${ guncrime_density } ` } </ div >
35
+ < h2 className = "font-bold text-2xl" > { address } </ h2 >
37
36
</ div >
38
- < div className = "px-4 pb-2" >
39
- < span className = "inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2" >
40
- { priority_level }
41
- </ span >
37
+ < div className = "flex" >
38
+ < div className = "p-2" >
39
+ < table >
40
+ < tbody >
41
+ < tr >
42
+ < th className = "text-left font-normal" > Neighborhood</ th >
43
+ < td > { neighborhood } </ td >
44
+ </ tr >
45
+ < tr >
46
+ < th className = "text-left font-normal" > Gun Crime Rate</ th >
47
+ < td > { guncrime_density } </ td >
48
+ </ tr >
49
+ < tr >
50
+ < th className = "text-left font-normal" > Drug Crime</ th >
51
+ < td > ???</ td >
52
+ </ tr >
53
+ < tr >
54
+ < th className = "text-left font-normal" > Tree Canopy Gap</ th >
55
+ < td > { tree_canopy_gap } </ td >
56
+ </ tr >
57
+ < tr >
58
+ < th className = "text-left font-normal" > Suggested Priority</ th >
59
+ < td > { priority_level } </ td >
60
+ </ tr >
61
+ < tr >
62
+ < th className = "text-left font-normal" > L& I Violations </ th >
63
+ < td > ???</ td >
64
+ </ tr >
65
+ < tr >
66
+ < th className = "text-left font-normal" > Tax delinquency</ th >
67
+ < td > ???</ td >
68
+ </ tr >
69
+ < tr >
70
+ < th className = "text-left font-normal" > Acquisition Process</ th >
71
+ < td > { access_process } </ td >
72
+ </ tr >
73
+ < tr >
74
+ < th className = "text-left font-normal" > Zip Code</ th >
75
+ < td > { zipcode } </ td >
76
+ </ tr >
77
+ </ tbody >
78
+ </ table >
79
+ </ div >
80
+ < div className = "p-2" >
81
+ < h3 className = "pb-1 font-bold text-lg" > Owner</ h3 >
82
+ < div className = "pb-2" >
83
+ < p > { owner_1 } </ p >
84
+ < p > { owner_2 } </ p >
85
+ </ div >
86
+ < h3 className = "pb-1 font-bold text-lg" > Relevant Info</ h3 >
87
+ < p className = "pb-2" > weeeee</ p >
88
+ </ div >
42
89
</ div >
43
90
</ div >
44
91
</ div >
0 commit comments