Open-source Page Block Builder with Remix and Tailwind CSS

Alexandro Martinez
JavaScript in Plain English
3 min readNov 25, 2022

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

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:

Thanks for reading 😃.

More content at PlainEnglish.io. Sign up for our free weekly newsletter. Follow us on Twitter, LinkedIn, YouTube, and Discord. Interested in Growth Hacking? Check out Circuit.

Sign up to discover human stories that deepen your understanding of the world.

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Written by Alexandro Martinez

Building SaasRock, The One-Man SaaS Framework built with Remix + Tailwind CSS

No responses yet

Write a response

Recommended from Medium

Lists

See more recommendations