Skip to content

Commit

Permalink
feat: rebuild home page
Browse files Browse the repository at this point in the history
Resolves #386

- Transform locations data
- Add global types
- Add @types/react-router-dom
- Create HomePage
- Integrate HomePage in main
- Update App
  • Loading branch information
yosevu committed Oct 16, 2022
1 parent 6f81d30 commit 922b69d
Show file tree
Hide file tree
Showing 9 changed files with 1,090 additions and 23 deletions.
198 changes: 197 additions & 1 deletion data/place.json
Original file line number Diff line number Diff line change
@@ -1 +1,197 @@
[{"createdAt":1593110876410,"updatedAt":1593110876410,"id":2,"placeName":"Gus's Fried Chicken","city":"Memphis","state":"TN","address":"310 S Front Street","phone":"(901) 527-4877","placeImage":"","fd":"gus-fried-chicken","placeImageAlt":"","placeURL":"http://gusfriedchicken.com","placeWebsiteDisplay":"www.gusfriedchicken.com"},{"createdAt":1593110876442,"updatedAt":1593110876442,"id":12,"placeName":"Canal Street Arcade and Deli","city":"Dayton","state":"OH","address":"308 E 1st Street","phone":"(937) 220-9333","placeImage":"2","fd":"canal-street-arcade-and-deli","placeImageAlt":"Canal Street Deli","placeURL":"https://www.facebook.com/Canal-Street-Arcade-and-Deli-1752274581651410/","placeWebsiteDisplay":"www.facebook.com/Canal-Street-Arcade-and-Deli-1752274581651410"},{"createdAt":1593110876411,"updatedAt":1593110876411,"id":22,"placeName":"Jimmy Johns","city":"Dayton","state":"OH","address":"1157 Brown Street","phone":"(937) 226-2600","placeImage":"","fd":"jimmy-johns","placeImageAlt":"","placeURL":"https://www.jimmyjohns.com","placeWebsiteDisplay":"www.jimmyjohns.com"},{"createdAt":1593110876449,"updatedAt":1593110876449,"id":32,"placeName":"Basil's on Market","city":"Dayton","state":"OH","address":"312 N Patterson Blvd","phone":"(937) 818-4390","placeImage":"32","fd":"basils-on-market","placeImageAlt":"Basil's Cocktail","placeURL":"http://www.basilsonmarket.com","placeWebsiteDisplay":"www.basilsonmarket.com"},{"createdAt":1593110876452,"updatedAt":1593110876452,"id":42,"placeName":"2nd Street Market","city":"Dayton","state":"OH","address":"600 E. Second Street","phone":"(937) 228-2088","placeImage":"12","fd":"2nd-street-market","placeImageAlt":"2nd Street Market","placeURL":"https://www.metroparks.org/places-to-go/2nd-street-market/","placeWebsiteDisplay":"www.metroparks.org"},{"createdAt":1593110876464,"updatedAt":1593110876464,"id":52,"placeName":"Bareburger","city":"Columbus","state":"OH","address":"463 N. High St.","phone":"","placeImage":"42","fd":"bareburger","placeImageAlt":"Bareburger","placeURL":"https://bareburger.com/","placeWebsiteDisplay":"www.bareburger.com"},{"createdAt":1593110876467,"updatedAt":1593110876467,"id":62,"placeName":"Bagger Dave's Burger Tavern","city":"Dayton","state":"OH","address":"5299 Cornerstone North Blvd","phone":"(937) 310-1247","placeImage":"22","fd":"bagger-daves","placeImageAlt":"Bagger Dave's Burger Tavern","placeURL":"https://www.baggerdaves.com/","placeWebsiteDisplay":"www.baggerdaves.com"},{"createdAt":1593110876397,"updatedAt":1593110876397,"id":72,"placeName":"Bourbon Street Grill","city":"Dayton","state":"OH","address":"1043 Brown Street","phone":"(937) 610-0083","placeImage":"","fd":"bourbon-street-grill","placeImageAlt":"","placeURL":"https://www.facebook.com/BourbonSyreetGrillandCafe1043/","placeWebsiteDisplay":"www.facebook.com/BourbonSyreetGrillandCafe1043"},{"createdAt":1593110876471,"updatedAt":1593110876471,"id":82,"placeName":"Coco's Bistro","city":"Dayton","state":"OH","address":"250 Warren St","phone":"(937) 228-2626","placeImage":"52","fd":"cocos-bistro","placeImageAlt":"Coco's Bistro","placeURL":"http://www.228coco.com/","placeWebsiteDisplay":"www.228coco.com"},{"createdAt":1593110876474,"updatedAt":1593110876474,"id":92,"placeName":"Ginger & Spice","city":"Dayton","state":"OH","address":"1105 Brown Street","phone":"(937) 716-1298","placeImage":"62","fd":"ginger-and-spice","placeImageAlt":"Ginger & Spice Chicken","placeURL":"http://mygingerandspice.com","placeWebsiteDisplay":"www.gingerandspice.com"},{"createdAt":1593110876510,"updatedAt":1593110876510,"id":102,"placeName":"Jeet India","city":"Dayton","state":"OH","address":"2750 North Fairfield Road","phone":"(937) 431-8881","placeImage":"72","fd":"jeet-india","placeImageAlt":"Jeet India","placeURL":"http://www.jeetindiadayton.com","placeWebsiteDisplay":"www.jeetindiadayton.com"},{"createdAt":1593110876528,"updatedAt":1593110876528,"id":112,"placeName":"Gaucho","city":"Pittsburgh","state":"PA","address":"1601 Penn Ave","phone":"(412) 709-6622","placeImage":"82","fd":"gaucho","placeImageAlt":"Gaucho Parrilla Argentina","placeURL":"http://www.eatgaucho.com/","placeWebsiteDisplay":"www.eatgaucho.com"},{"createdAt":1593110876860,"updatedAt":1593110876860,"id":122,"placeName":"a new place","city":"a new city","state":"SD","address":"7140 Manchester St.","phone":"(555) 555-5555","placeImage":"","fd":"","placeImageAlt":"","placeURL":"","placeWebsiteDisplay":""}]
[
{
"createdAt": 1593110876410,
"updatedAt": 1593110876410,
"id": 2,
"placeName": "Gus's Fried Chicken",
"city": "Memphis",
"state": "TN",
"address": "310 S Front Street",
"phone": "(901) 527-4877",
"placeImage": "",
"fd": "gus-fried-chicken",
"placeImageAlt": "",
"placeURL": "http://gusfriedchicken.com",
"placeWebsiteDisplay": "www.gusfriedchicken.com"
},
{
"createdAt": 1593110876442,
"updatedAt": 1593110876442,
"id": 12,
"placeName": "Canal Street Arcade and Deli",
"city": "Dayton",
"state": "OH",
"address": "308 E 1st Street",
"phone": "(937) 220-9333",
"placeImage": "2",
"fd": "canal-street-arcade-and-deli",
"placeImageAlt": "Canal Street Deli",
"placeURL": "https://www.facebook.com/Canal-Street-Arcade-and-Deli-1752274581651410/",
"placeWebsiteDisplay": "www.facebook.com/Canal-Street-Arcade-and-Deli-1752274581651410"
},
{
"createdAt": 1593110876411,
"updatedAt": 1593110876411,
"id": 22,
"placeName": "Jimmy Johns",
"city": "Dayton",
"state": "OH",
"address": "1157 Brown Street",
"phone": "(937) 226-2600",
"placeImage": "",
"fd": "jimmy-johns",
"placeImageAlt": "",
"placeURL": "https://www.jimmyjohns.com",
"placeWebsiteDisplay": "www.jimmyjohns.com"
},
{
"createdAt": 1593110876449,
"updatedAt": 1593110876449,
"id": 32,
"placeName": "Basil's on Market",
"city": "Dayton",
"state": "OH",
"address": "312 N Patterson Blvd",
"phone": "(937) 818-4390",
"placeImage": "32",
"fd": "basils-on-market",
"placeImageAlt": "Basil's Cocktail",
"placeURL": "http://www.basilsonmarket.com",
"placeWebsiteDisplay": "www.basilsonmarket.com"
},
{
"createdAt": 1593110876452,
"updatedAt": 1593110876452,
"id": 42,
"placeName": "2nd Street Market",
"city": "Dayton",
"state": "OH",
"address": "600 E. Second Street",
"phone": "(937) 228-2088",
"placeImage": "12",
"fd": "2nd-street-market",
"placeImageAlt": "2nd Street Market",
"placeURL": "https://www.metroparks.org/places-to-go/2nd-street-market/",
"placeWebsiteDisplay": "www.metroparks.org"
},
{
"createdAt": 1593110876464,
"updatedAt": 1593110876464,
"id": 52,
"placeName": "Bareburger",
"city": "Columbus",
"state": "OH",
"address": "463 N. High St.",
"phone": "",
"placeImage": "42",
"fd": "bareburger",
"placeImageAlt": "Bareburger",
"placeURL": "https://bareburger.com/",
"placeWebsiteDisplay": "www.bareburger.com"
},
{
"createdAt": 1593110876467,
"updatedAt": 1593110876467,
"id": 62,
"placeName": "Bagger Dave's Burger Tavern",
"city": "Dayton",
"state": "OH",
"address": "5299 Cornerstone North Blvd",
"phone": "(937) 310-1247",
"placeImage": "22",
"fd": "bagger-daves",
"placeImageAlt": "Bagger Dave's Burger Tavern",
"placeURL": "https://www.baggerdaves.com/",
"placeWebsiteDisplay": "www.baggerdaves.com"
},
{
"createdAt": 1593110876397,
"updatedAt": 1593110876397,
"id": 72,
"placeName": "Bourbon Street Grill",
"city": "Dayton",
"state": "OH",
"address": "1043 Brown Street",
"phone": "(937) 610-0083",
"placeImage": "",
"fd": "bourbon-street-grill",
"placeImageAlt": "",
"placeURL": "https://www.facebook.com/BourbonSyreetGrillandCafe1043/",
"placeWebsiteDisplay": "www.facebook.com/BourbonSyreetGrillandCafe1043"
},
{
"createdAt": 1593110876471,
"updatedAt": 1593110876471,
"id": 82,
"placeName": "Coco's Bistro",
"city": "Dayton",
"state": "OH",
"address": "250 Warren St",
"phone": "(937) 228-2626",
"placeImage": "52",
"fd": "cocos-bistro",
"placeImageAlt": "Coco's Bistro",
"placeURL": "http://www.228coco.com/",
"placeWebsiteDisplay": "www.228coco.com"
},
{
"createdAt": 1593110876474,
"updatedAt": 1593110876474,
"id": 92,
"placeName": "Ginger & Spice",
"city": "Dayton",
"state": "OH",
"address": "1105 Brown Street",
"phone": "(937) 716-1298",
"placeImage": "62",
"fd": "ginger-and-spice",
"placeImageAlt": "Ginger & Spice Chicken",
"placeURL": "http://mygingerandspice.com",
"placeWebsiteDisplay": "www.gingerandspice.com"
},
{
"createdAt": 1593110876510,
"updatedAt": 1593110876510,
"id": 102,
"placeName": "Jeet India",
"city": "Dayton",
"state": "OH",
"address": "2750 North Fairfield Road",
"phone": "(937) 431-8881",
"placeImage": "72",
"fd": "jeet-india",
"placeImageAlt": "Jeet India",
"placeURL": "http://www.jeetindiadayton.com",
"placeWebsiteDisplay": "www.jeetindiadayton.com"
},
{
"createdAt": 1593110876528,
"updatedAt": 1593110876528,
"id": 112,
"placeName": "Gaucho",
"city": "Pittsburgh",
"state": "PA",
"address": "1601 Penn Ave",
"phone": "(412) 709-6622",
"placeImage": "82",
"fd": "gaucho",
"placeImageAlt": "Gaucho Parrilla Argentina",
"placeURL": "http://www.eatgaucho.com/",
"placeWebsiteDisplay": "www.eatgaucho.com"
},
{
"createdAt": 1593110876860,
"updatedAt": 1593110876860,
"id": 122,
"placeName": "a new place",
"city": "a new city",
"state": "SD",
"address": "7140 Manchester St.",
"phone": "(555) 555-5555",
"placeImage": "",
"fd": "",
"placeImageAlt": "",
"placeURL": "",
"placeWebsiteDisplay": ""
}
]
Loading

0 comments on commit 922b69d

Please sign in to comment.