chingu-voyages / v48-tier1-team-04

Chingu Raptors present: Dinosauria | Voyage-48 | https://chingu.io/ | Twitter: https://twitter.com/ChinguCollabs
https://v48-tier1-team-04.netlify.app/
2 stars 1 forks source link

Random fact generator/mn #97

Closed mnichols08 closed 5 months ago

mnichols08 commented 5 months ago

we can leverage this utility across multiple facets.

By importing the file using import randomPhrase from "../utils/randomPhrase"; we can later call it to place a random phrase in the url to share our project to twitter, or to place a random fact really anywhere. We just need to pass in a dinosaur, like so:

randomPhrase({ imageSrc, name, taxonomy, namedBy, foundIn, typeOfDinosaur, length, weight, diet, whenLived, typeSpecies, description, }) or simply randomPhrase(dinosaur), depending on how you have the data available. But this will return a random phrase similar to: Did you know Dacentruruss is a armoured dinosaur?

netlify[bot] commented 5 months ago

Deploy Preview for v48-tier1-team-04-dev ready!

Name Link
Latest commit e9347a56d7f4a9cb9b440d8e505ca5fb03572982
Latest deploy log https://app.netlify.com/sites/v48-tier1-team-04-dev/deploys/6615e7f98de3610008e3bfb2
Deploy Preview https://deploy-preview-97--v48-tier1-team-04-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mnichols08 commented 5 months ago

oh yeah it also gets scss working properly