easyblockshq / easyblocks

The open-source visual builder framework.
https://easyblocks.io
GNU Affero General Public License v3.0
241 stars 33 forks source link

If we want to add our own static data like Images and fonts, where do we need to add them? #39

Closed Tring-Jagannath closed 3 months ago

Tring-Jagannath commented 3 months ago

HI, I have checked the shopstory demo it was working nice, but I want to add my own Images and Fonts how do i add them? and also where does all data get saved?

r00dY commented 3 months ago

Fonts are standard design token fields: https://docs.easyblocks.io/essentials/configuration#config.tokens - the font faces should just be added in head section of your front-end (in a standard way). Easyblocks doesn't handling loading fonts (on purpose - to give you max flexibility)

Easyblocks doesn't handle storing images either. The images are just external data: https://docs.easyblocks.io/essentials/external-data. The widgets for images in the demo can be found in the demo code (https://github.com/easyblockshq/page-builder-demo/tree/main/src/app/easyblocks/externalData)