Skip to content

Commit 8cd28bf

Browse files
authored
Merge pull request #207 from gbanaag/main
fixed image links
2 parents d96f38b + ead071a commit 8cd28bf

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

projects/build-a-cafe-finder-with-javascript/build-a-cafe-finder-with-javascript.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ author: Gabriela Banaag
44
uid:
55
datePublished: 2025-08-06
66
description:
7-
header: https://imgur.com/a/iz4inIW
7+
header: https://i.imgur.com/VKm4oPJ.gif
8+
89
tags:
910
---
1011

1112
<BannerImage
12-
link="https://imgur.com/a/iz4inIW"
13+
link="https://i.imgur.com/VKm4oPJ.gif"
1314
description=""
1415
uid={false}
1516
cl="for-sidebar"
@@ -25,7 +26,7 @@ tags:
2526
/>
2627

2728
<BannerImage
28-
link="https://imgur.com/a/iz4inIW"
29+
link="https://i.imgur.com/VKm4oPJ.gif"
2930
description=""
3031
uid={false}
3132
/>
@@ -44,6 +45,8 @@ The Google Maps Platform is a collection of Application Programming Interfaces (
4445

4546
Some popular apps that use the Google Maps Platform include Uber and Airbnb, which access a user’s location to calculate rides and show rentals in specific areas!
4647

48+
<ImageZoom src="https://miro.medium.com/v2/resize:fit:7680/1*ThzU2nLvoAHfPwLqlddwhQ.png" />
49+
4750
The [Places API](https://developers.google.com/maps/documentation/places/web-service/overview) is a smaller API under the Google Maps API. It fetches location data like location names, addresses, photos, and many more attributes! It’s a great tool for accessing updated data and finding multiple places without manually copying all of their information into a project. ****We’ll be using this in our project! ****
4851

4952
# ## Setup
@@ -111,7 +114,7 @@ const proxy = "https://cors-anywhere.herokuapp.com/";
111114

112115
## ### Geolocation
113116

114-
To see cafes nearby, the browser needs access to your location. There’s a built in JavaScript function that takes care of that for you called ``useLocation()`` and it takes your device’s latitude and longitude coordinates.
117+
To see cafes nearby, the browser needs access to your location. There’s a built-in JavaScript function that takes care of that for you called ``useLocation()`` and it takes your device’s latitude and longitude coordinates.
115118

116119
```jsx
117120
function getLocation() {
@@ -185,8 +188,6 @@ If the API finds results for nearby cafes, we’ll take that data and insert it
185188

186189
We’re gonna create a wrapper for our cards, and inject data from the API into the wrapper as we go. To start, let’s make a function called ``displayCards()`` that renders a div container whenever the website starts up.
187190

188-
<ImageZoom src="https://imgur-url-here.png" style={{ width: "60%", height: "auto" }} alt="alt text here"/>
189-
190191
We’ll start by creating a container that takes the first saved cafe in our cafe options. We’ll make the content of this card blank for now, and fill it in with information when we use the Places API.
191192

192193
```jsx
@@ -258,7 +259,7 @@ container.appendChild(wrapper);
258259
<aside>
259260
💡
260261

261-
A ****library**** is a collection of reusable resources like functions, classes, and pieces of pre-written code. An **API****** is a an interface that lets your code communicate with another application.
262+
A ****library**** is a collection of reusable resources like functions, classes, and pieces of pre-written code. An **API****** is an interface that lets your code communicate with another application.
262263

263264
</aside>
264265

@@ -372,7 +373,7 @@ container.appendChild(card);
372373
373374
Here's my final result:
374375
375-
<ImageZoom src="https://imgur.com/a/TuZpvsR" />
376+
<ImageZoom src="https://i.imgur.com/qfYI134.gif" />
376377
377378
You did it! Enjoy your newly built cafe finder and be sure to treat yourself to a coffee, chai, matcha, or boba to celebrate your hard work. 🍵 
378379
@@ -389,6 +390,6 @@ If you’re looking for another challenge or a way to spice up your project, you
389390
390391
## ### Additional Resources
391392
392-
- GitHub repository
393+
- [GitHub repository with all the code](https://github.com/gbanaag/codedex-cafe-curator)
393394
- YouTube video (coming soon!)
394395
- [Places API Documentation](https://developers.google.com/maps/documentation/places/web-service/overview#how-use)

0 commit comments

Comments
 (0)