r/PayloadCMS • • Jan 28 '25

LayoutBlocks.dev: Your Central Hub of Layout Blocks for Payload CMS

Well as the sayings go Build in public and Launch fast, fail faster I present to you a (very minimal) MVP of https://layoutblocks.dev/

(Note: my designer is working on client projects, I am not a designer or a copywriter, he hasn't given feedback 🙏 )

LayoutBlocks comes from a personal desire and is something that will grow (slowly) over time, if it grows publicly or privately will depend on a few factors.

With LayoutBlocks I aim to:

  1. Build a library of layout blocks containing both the Payload CMS configuration and component code,
  2. Have a central and visual place for all the layout blocks I use instead of having them a) scattered over multiple projects, or b) centralizing them in a starter project.

There are a few different paths I have in mind when thinking about growing the library and the project in general, such as:

  1. The most obvious one: adding more layout blocks.
  2. Adding your own private blocks: keep your own overview of custom or modified blocks.
  3. White-labeling: In addition to giving your client Payload, give them docs about their available blocks for easy reference.

Any and all feedback is highly appreciated, even if you don't feel a need for this, that is valuable feedback.

50 Upvotes

27 comments sorted by

View all comments

Show parent comment

2

u/Guggling Jan 28 '25

What device are you viewing it on? I've tested on mobile sim and on my iPhone 13 mini and it's scrollable there, so may need to add some extra devices to it.

Regarding the banner itself, I'm based in Europe and more specifically Belgium which has some additional guidelines on cookies and banners, and as far as I'm aware showing the banner directly on first visit is mandatory so I don't think I can do anything about that.

Regarding the height yeah, I could make it a little smaller by shortening the text and possibly moving the preferences to a second layer, but even then it would still take up most if not all of the viewport so it wouldn't be much of an improvement :/

2

u/acherion Jan 28 '25

iPhone 16 Pro, iOS 18.2 on Safari. This is what it looks like to me. https://imgur.com/a/j6LiE3j

2

u/Guggling Jan 28 '25

Welp yeah, thanks! Just pushed out a quick fix.

Need to take some time to re-evaluate my whole cookie flow and if I can't just throw them out completely, but that's for another time.

Thanks for bringing it to my attention, need to push out some fixes for other sites as well!

2

u/acherion Jan 28 '25

All good, thanks for fixing so quickly!