Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improved README.md
The .gif and the logo are separated commits in case you don't want to include them, anyway they are easy to delete.
Preview:
💻 Demo
🛠️ Usage
Endpoint URL:
https://readme-jokes.vercel.app/api
Embed one of these in your README:
or
🖌️ Customization Guide
Customize using
?
after/api
in the https link, example here with no borders using thehideBorder
parameter.Markdown method:
![Jokes Card](https://readme-jokes.vercel.app/api?hideBorder)
Image method:
<img src="https://readme-jokes.vercel.app/api?hideBorder" alt="Jokes Card" />
Both methods will produce the following jokes card without border:
To use multiple parameters use
&
after the first parameter.For example:
https://readme-jokes.vercel.app/api?hideBorder&theme=cobalt&qColor=%23944bcc&aColor=%23bbdb51
This will generate a jokes card with the next features:
cobalt
theme#944bcc
(%23944bcc
)#bbdb51
(%23bbdb51
)⚙️ Parameters Available
NOTE: You need to use URL-encoded
#
for color values (%23
)❌
#FFFF00
→ ✔️%23FFFF00
bgColor
→ Background ColorExample:
https://readme-jokes.vercel.app/api?bgColor=%23ff00ff
(sets the color of the background to #ff00ff)
borderColor
→ Border ColorExample:
https://readme-jokes.vercel.app/api?borderColor=%23ff2200
(sets the color of the border to #ff2200)
qColor
→ Question Text ColorExample:
https://readme-jokes.vercel.app/api?qColor=%23949494
(sets the color of the question text to #949494)
aColor
→ Answer Text ColorExample:
https://readme-jokes.vercel.app/api?aColor=%2300ff00
(sets the color of the answer text to #00ff00)
textColor
→ Normal Text Color(does not apply to answer nor question text)
Example:
https://readme-jokes.vercel.app/api?textColor=%23ff0a0a
(sets the color of the normal text to #ff0a0a)
codeColor
→ Code Text ColorExample:
https://readme-jokes.vercel.app/api?codeColor=%2300ffff
(sets the color of the code text to #00ffff)
hideBorder
→ Mention as a value-less parameter to hide boderExample:
https://readme-jokes.vercel.app/api?hideBorder
theme
→ Theme (Must be one from the themes list)Example:
https://readme-jokes.vercel.app/api?theme=gradientBlue
(applies the
gradientBlue
theme)📝 CLICK HERE TO OPEN THE THEMES LIST
📝 Contributions
📖 References
Feel free to ask any questions, open a PR if you feel something can be done differently!
🌟Star this repository🌟
Created by Abhinav Sharma & Community | Deployed on Vercel