-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(banners-lib): banner generation MVP #19
base: dev
Are you sure you want to change the base?
Conversation
Run & review this pull request in StackBlitz Codeflow. |
|
Added to the SVG converting script a line to create .svg.js files. These files are normal JS files that exports just a single string, the SVG file content. This way the library doesn't need a build step to embed these files and/or node:fs to read them.
The banner's title now can changes position to fit correctly when there's no subtitle.
This pull request has been deployed to Vercel.
|
Removed the text to path conversion, it was too complicated to align the generated paths with the dynamic layouts' texts. So embeded font files using data URIs is being used, this is experimental and a "quick-fix", because data URIs could be not compatible and/or work in some environments and browsers. A comment and/or issue with more details about this will be created.
Uploaded the generated svg to be tested on github and other environments
time to reinvent the wheel again
Create the Banners Library, adding at least the basic features of:
Limitations that should be worked on:
node:fs
Closes #13