-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add location component and implement google maps
- Loading branch information
1 parent
412bf22
commit c76ae75
Showing
5 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
NEXT_PUBLIC_JSCL_API_URL='https://api.jsconf.dev/graphql' | ||
NEXT_PUBLIC_TOKEN_STORAGE_KEY='HS:token_storage_key' | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY='pk_test_ZnVua3ktZ3JpZmZvbi04NC5jbGVyay5hY2NvdW50cy5kZXYk' | ||
NEXT_PUBLIC_GOOGLE_MAPS_KEY='your_google_maps_key_here' |
23 changes: 23 additions & 0 deletions
23
app/(transition)/(root)/events/[id]/_components/Location/Location.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { GoogleMapsEmbed } from '@next/third-parties/google' | ||
|
||
export const Location = () => { | ||
return ( | ||
<section className="flex w-full flex-col gap-2 bg-slate-900 p-6 dark:bg-slate-50"> | ||
<h2 className='text-xl text-slate-50 dark:text-slate-900 md:text-4xl'>Lugar</h2> | ||
<GoogleMapsEmbed | ||
apiKey={process.env.NEXT_PUBLIC_GOOGLE_MAPS_KEY} | ||
height={400} | ||
width="100%" | ||
mode="place" | ||
q="Brooklyn+Bridge,New+York,NY" | ||
/> | ||
<p className='text-slate-50 dark:text-slate-900'> | ||
Hub Providencia, Calle Falsa, 1234, Santiago Centro, Santiago, Chile. | ||
</p> | ||
<p className='text-slate-50 dark:text-slate-900'> | ||
Más descripción de como llegar al evento. Tocar la puerta X, subir por las escaleras de la derecha, etc. | ||
</p> | ||
</section> | ||
); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters