This repo contains everything you need as a student of the Professional React & Next.js Course by ByteGrad.com
145
stars
71
forks
source link
Project Evento: Seed file with 6 popular cities and dynamic image URL (generated using Chat GPT) #9
Open
Dev-Dipesh opened 6 months ago
Seed File: seed.ts
Cities Included
7 events are added for each new city.
The dynamic image URL is created based on the following format:
Don't forget to add the external URL in the
next.config.js
Additional helpful utilities:
This function is used to decode the URI component. For example, if the city is "Los%20Angeles", it will be decoded to "Los Angeles".
This function is used to capitalize the first letter of each word in a string. For example, if the input is "new york", the output will be "New York".
Can be called as follows: