Introduction

Blocks are whole page sections, built from Fasla’s components and ready to drop into a page.

What a block is

A block is one file that composes Fasla components, such as Accordion, Tabs and Button, into a section of a page. It takes every colour from your theme tokens. Once it is in your project, the code is yours to change.

  • It is responsive: each block is designed at desktop, tablet and mobile widths, and changes layout at the md and lg breakpoints.
  • It follows the page’s direction. Every side is a logical one, so the same code lays out left to right in English and right to left in Arabic.
  • Its content comes from props. Each block ships with English and Arabic copy; locale picks which, and any prop you pass replaces it.

Images

Blocks don’t include images. A block with a photo shows a placeholder, and one with people shows their initials, until you pass your own: image takes a src and an alt, and each person takes a src.

Blocks on an inverted surface

A few blocks sit on an inverted surface: dark in light mode, light in dark mode. They are painted with the inverse tokens, so they never force a dark class on a section. Installing one with npx @smicolon/fasla-ui@latest add or npx shadcn@latest add also adds the tokens’ mapping to your stylesheet.

Installing one by hand takes three lines of CSS: see Installation.

Block families

  • FAQ: Twenty-six FAQ sections, from a centred accordion to search, topic tabs and a support chat, responsive and mirrored for Arabic.
  • Error State: Twenty-eight error pages, from a centred 404 to a server error, no access, offline and maintenance, responsive and mirrored for Arabic.
  • Logo Cloud: Twenty-two logo sections, from a single row of customer marks to a full wall, quotes, figures and a sector filter, responsive and mirrored for Arabic.
  • Authentications: Twenty-six sign-in and account screens, from a centred sign-in card to codes, two-factor, password recovery and onboarding, responsive and mirrored for Arabic.
  • Gallery: Twenty-two photo galleries, from a captioned grid and a masonry wall to carousels, a lightbox and a before-and-after slider, responsive and mirrored for Arabic.
  • Navbar: Seventeen navigation bars, from a logo and links to floating pills, search, an account menu and a shop header, responsive and mirrored for Arabic.
  • Pricing: Five pricing sections, from tier cards with a billing toggle and two plans side by side to a full feature matrix and a checkout step, responsive and mirrored for Arabic.
  • Hero: Twenty-nine landing-page heroes, from split layouts and photo-led openers to card grids and moving type, video and counters, responsive and mirrored for Arabic.
  • About: Sections that introduce a company: statements and photo heroes, stories and values, letters, culture walls and figures, responsive and mirrored for Arabic.
  • Careers: Sections for a careers page: open roles as lists, cards, teams, tables and accordions, with filtering and paging, responsive and mirrored for Arabic.
  • How it Works: Sections that explain a process: steps told with photos, cards and collages, and grids and panels with a drawn picture of each step, responsive and mirrored for Arabic.
  • Team: Fourteen team sections, from leadership grids, portrait walls and cut-out lineups to directories, tables, a carousel and a hiring call to action, responsive and mirrored for Arabic.
  • Social Proof: Testimonial sections, from quote grids and walls to spotlights, carousels and stories backed by a figure, responsive and mirrored for Arabic.
  • Blog Cards: Sections that show articles to readers: card grids, lead features, lists, panels beside a post and browsing controls, responsive and mirrored for Arabic.
  • Features: Twenty-seven features sections, from icon cards, numbered rows and checklists to photo-led layouts, carousels, tabs, accordions and product-in-use mock-ups, responsive and mirrored for Arabic.
  • Contact Us: Contact sections: forms set in type, forms beside a photo, places and hours, and other ways to reach the team, with client-side checks, responsive and mirrored for Arabic.
  • Footer: Sections that close a page: sitemaps, brand-led footers, call-to-action bands, minimal bars, contact layouts and app footers, responsive and mirrored for Arabic.
  • Video Call: Sections for a video-call product: the lobby, waiting room, incoming call and join link, call stages with a grid, a speaker, a shared screen or a side panel, the controls dock, live captions and reactions, the call summary, upcoming meetings and the AI recap, built from the same parts and responsive, mirrored for Arabic.