Skip to content

Commit

Permalink
minor styling updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiyuan Fang authored and Yiyuan Fang committed Jun 10, 2020
1 parent b9e2d20 commit d98cae3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Divvy -- find your buddy</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
8 changes: 8 additions & 0 deletions src/components/fakedata.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,63 @@ export const users = [
{
id: 'ewr060110',
month: "6",
date:"10",
time: "13:00",
name: 'Kevin',
airport: 'EWR'
},
{
id: 'ewr060110',
month: "6",
date:"10",
time: "15:00",
name: 'Arthur',
airport: 'EWR'
},
{
id: 'ewr060110',
month: "6",
date:"10",
time: "11:00",
name: 'Gladys',
airport: 'JFK'
},
{
id: 'ewr060110',
month: "6",
date:"10",
time: "15:00",
name: 'Michael',
airport: 'EWR'
},
{
id: 'bdl060110',
month: "6",
date:"11",
time: "11:00",
name: 'Bohan',
airport: 'BDL'
},
{
id: 'lga060110',
month:"6",
date:"10",
time: "10:00",
name: 'Archie',
airport: 'LGA'
},
{
id: 'lga060110',
month:"6",
date:"10",
time: "10:00",
name: 'Arash',
airport: 'LGA'
},
{
id: 'lga060110',
month:"6",
date:"10",
time: "10:00",
name: 'Jesus',
airport: 'LGA'
Expand Down
5 changes: 3 additions & 2 deletions src/containers/Airport2.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function Timeblock ({time, date, airport, users}){

const Userlist = users.filter(user => {
return (Number(user.month) === (date.getMonth()+1)
&& Number(user.date) === date.getDate()
&& user.airport.toLowerCase() === airport.name.toLowerCase()
&& user.time === time)
});
Expand All @@ -68,8 +69,8 @@ function Timeblock ({time, date, airport, users}){
})

return (
<div className = "bg-light-red dib br2 pa1 ma3 grow " >
<h4>{time}</h4>
<div className = "bg-light-red dib br2 pa1 ma1 grow " >
<h5>{time}</h5>
{Basketmap}
</div> )

Expand Down

0 comments on commit d98cae3

Please sign in to comment.