Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Component Banner Generation #19

Open
yashsehgal opened this issue Mar 10, 2024 · 0 comments
Open

Automated Component Banner Generation #19

yashsehgal opened this issue Mar 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yashsehgal
Copy link
Member

yashsehgal commented Mar 10, 2024

Issue

As of now, I am using Figma for creating banners for each cookie component/example and manually updating it in the JSON file for cookies.

Solution

To write a script as a generator code in generators to do the following steps,

  1. Render a cookie from components/cookies
  2. Place the render in a banner template component - in a way it will fit the cookie card and look consistent.
  3. Convert the composed render to a single image as a rectangular banner.
  4. Upload the image on a Supabase storage.
  5. Store the received CDN URL from Supabase, to a local cookies list file - @/app/cookies/common/cookies-list.tsx

Add this procedure as an NPM script, only to be run once, manually.

image

@yashsehgal yashsehgal added the enhancement New feature or request label Mar 10, 2024
@yashsehgal yashsehgal self-assigned this Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant