Published on

Open-source Page Block Builder with Remix and Tailwind CSS

Authors

Remix Page Block Editor, Contact and Newsletter Pages, and Theme and Locale selectors.

Code: https://github.com/AlexandroMtzG/remix-page-blocks

Demo: https://remix-page-blocks.vercel.app

Open-source Page Block Builder with Remix and Tailwind CSS

Context

I’ve been a SaaS builder for 3 years now, ever since I learned Tailwind CSS, my design iterations have been a joy.

But Remix completely changed the game for me, being an SSR-focused framework plus providing full stack components, it allowed me to iterate SaaS development even faster.

Page Blocks

I’ve already designed the same Hero Block a few times:

Same Hero Block

They all have the same structure:

  • Headline
  • Subheadline
  • CTA buttons (primary or secondary)
  • An optional top text/link
  • An optional bottom text/link

You can understand how this becomes tiring, even with months between each SaaS app development, so it makes sense for me to start abstracting the most common components into a Page Builder.

HeroBlockDto

Developer Experience

I always focus on great DX first, so this approach lets you design the Landing page blocks by code, and once it’s in production, it’d let you make changes to your blocks by persisting changes in the database (with Prisma).

Here’s how the Hero block looks:

Hero Block by Code

And here’s what the Hero Block editor looks like:

Hero Block Editor

Open Source

I decided to make this bit open source to help other Remix developers iterate faster, or at least provide them a simple page builder, give it a star. I can see someone building a full website builder with this project as the base. If you want to check out my other open-source projects, check out my GitHub profile.

SaasRock

If you like what I do, check out my commercial SaaS boilerplate, SaasRock, or watch how I’m using this Page Block builder here: https://www.loom.com/share/eccf927d35cd4ad3b4a1d512257cea53.


Thanks for reading 😃.

If you liked this post, follow me on Twitter or subscribe to the Newsletter for more 😃