Skip to content

Commit f1b0b6c

Browse files
committed
2 parents dc841cd + e205741 commit f1b0b6c

File tree

6 files changed

+76
-9992
lines changed

6 files changed

+76
-9992
lines changed

app/static/dist/bundle.js

Lines changed: 0 additions & 9950 deletions
This file was deleted.

app/static/js/components/Dashboard.js

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,37 @@ export default class Dashboard extends React.Component {
5959
console.log(this.state);
6060
let {open_complaints, closed_complaints, address, num_complaints} = this.state;
6161
return (
62-
<div>
62+
<div className="dash">
6363
<Row>
6464
<Col sm={2} className="leftSection">
6565
<h3 style={{textAllign:"center"}}>70 Morningside drive</h3>
66+
<div className="buttons">
6667
<Button style={{textAllign:"center"}} variant="primary" >Change Building</Button>
68+
</div>
6769
<br />
70+
<div className="buttons">
6871
<Button style={{textAllign:"center"}} variant="primary" >Edit Noficiations</Button>
72+
</div>
6973
<br />
74+
<div className="buttons">
7075
<Button style={{textAllign:"center"}} variant="primary" onClick={this.props.signOut}>Logout</Button>
76+
</div>
7177
<br />
7278
<a href="https://portal.311.nyc.gov/article/?kanumber=KA-01082" class="complain">Complain!</a>
7379
</Col>
7480
<Col sm={10} className="rightSection">
7581
<div className="headerDiv">
82+
7683
<div className="headerLeft">
7784
<h3>{num_complaints} Complaints</h3>
7885
<h4>{address}</h4>
7986
</div>
87+
8088
<Button className="accountButton">Account</Button>
8189
</div>
90+
8291
<div className="complaintDiv">
92+
8393
<div className="upperPortion">
8494
<Row>
8595
<Col sm={6}>
@@ -94,23 +104,51 @@ export default class Dashboard extends React.Component {
94104
</Col>
95105
</Row>
96106
</div>
107+
97108
<div className="lowerPortion">
98109
<Row>
99-
<Col sm={4}>
100-
<Card header="Administrative" data={closed_complaints} />
110+
<Col>
111+
<div className="centerWrapper">
112+
<h4>Admin here</h4>
113+
<div className="comp">
114+
<h4>Open Complaints</h4>
115+
{
116+
open_complaints.map((complaint) => (
117+
<p>{JSON.stringify(complaint)}</p>
118+
))
119+
}
120+
</div>
121+
</div>
101122
</Col>
102-
<Col sm={4}>
103-
<Card header="Environmental" data={closed_complaints} />
123+
<Col>
124+
<div className="centerWrapper">
125+
<h4>Env here</h4>
126+
<div className="comp">
127+
<h4>Closed Complaints</h4>
128+
{
129+
closed_complaints.map((complaint) => (
130+
<p>{JSON.stringify(complaint)}</p>
131+
))
132+
}
133+
</div>
134+
</div>
104135
</Col>
105-
<Col sm={4}>
106-
<Card header="Safety" data={closed_complaints} />
136+
<Col>
137+
<div className="centerWrapper">
138+
<h4>Safety here</h4>
139+
<div className="comp">
140+
<h4>Placeholder</h4>
141+
</div>
142+
</div>
107143
</Col>
108144
</Row>
109145
</div>
146+
147+
110148
</div>
111149
</Col>
112150
</Row>
113151
</div>
114152
);
115153
}
116-
}
154+
}

app/static/js/styles/Master.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.dash {
2+
overflow: hidden;
3+
}
14
.hero {
25
height: 100vh;
36
width: 100vw;
@@ -141,7 +144,17 @@
141144
border: 1px solid #333;
142145
}
143146

144-
.card {
145-
overflow-y: scroll;
146-
height: 50vh;
147+
.comp {
148+
text-align: center;
149+
width: 20vw;
150+
height: 50vh;
151+
border-radius: 10px;
152+
overflow-y: auto;
153+
border-width: 1px;
154+
border: solid black;
155+
overflow-x: hidden;
156+
}
157+
158+
.buttons {
159+
text-align: center;
147160
}

app/static/package-lock.json

Lines changed: 11 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
from app import app
33

44
if __name__ == '__main__':
5-
# output = subprocess.call(["./refreshReact.sh"])
5+
# output = subprocess.call(["./refreshReact.sh"])
66
app.run()

test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hello
2+

0 commit comments

Comments
 (0)