Open marceloams opened 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
github-readme-quotes-returns | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 3, 2024 6:22pm |
@marceloams is attempting to deploy a commit to the shravan20's projects Team on Vercel.
A member of the Team first needs to authorize it.
The changes in this pull request introduce a customizable border color feature for quote templates. The README.md
file has been updated to document this new functionality, allowing users to specify a border color using the ?borderColor=COLOR
parameter. The quotesController
, quotesService
, and Template
class have been modified to support this new property. Additionally, the default layout's CSS has been updated to utilize the dynamic border color. Overall, these changes enhance the customization options for quote templates.
File | Change Summary |
---|---|
README.md | Added documentation for ?borderColor=COLOR feature and restructured quote category instructions. |
src/api/controllers/quotesController.js | Added borderColor property to quoteObject based on query parameter. |
src/api/services/quotesService.js | Added borderColor parameter to getQuote function and utilized it in setting the template's border color. |
src/layouts/layout.js | Updated default layout's CSS to use dynamic borderColor . |
src/models/Template.js | Introduced setBorderColor method in Template class to set border color. |
Objective | Addressed | Explanation |
---|---|---|
Add customizable border color option to default layout (#332) | ✅ |
src/api/services/quotesService.js
regarding the borderColor
parameter are related to the modifications in the TemplateCard
component, where the theme and quote URL construction is altered to include dynamic parameters, potentially including border color.In a world of quotes, bright and bold,
A border's hue, a story told.
With colors to choose, oh what a sight,
Customization brings pure delight!
So set your shade, let your voice be heard,
In every quote, let your heart be stirred! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Overview
This PR introduces an option to customize the border color in the default layout, enhancing the visual flexibility of the templates.
Changes
Closes #332.
Summary by CodeRabbit
?borderColor=COLOR
parameter.README.md
to include new border color customization feature and clarified instructions for adding quotes to categories.