Skip navigation
Home | About Us

Complete Block Showcase – Pedagogical Guide

Comprehensive demonstration of ALL available block variations

🎓 Complete Block Guide - FlexibleContentPage

Comprehensive demonstration of ALL available block variations


📚 Guide Contents

  • Hero Blocks - 8 variations with explanations
  • Grid System - All column layouts
  • Card Grids - With/without images, different links
  • Content Blocks - Text, buttons, quotes, images
  • Multimedia - Videos, maps, tables
  • Custom Blocks - Paragraph, heading, list, divider

Each example includes an explanation of its configuration and recommended usage.

🎨 1. Hero Blocks – Featured Sections

Hero Blocks are visually impactful sections that occupy most or all of the screen. Perfect for headers, calls to action, or featured content.

Hero 1: Solid Color

Configuration:

  • fluid: True – Full screen
  • background_color: "#055354" – Brand primary color
  • foreground_color: "#ffffff" – White text
  • Inner row with fluid: True to remove margins

Best for: Simple and direct messages, primary CTAs

Welcome to gpTRAC

Telehealth Resource & Assistance Center

Learn More

Hero 2: CSS Gradient

Configuration:

Best for: Modern designs, secondary sections with visual impact

Modern Gradient

No heavy images required

Hero 6: Centered Content with Margins

Configuration:

Best for: Long-form content, when you want to limit reading width

Content with Margins

Full-width background, but text width is limited for readability

Hero 7: Two-Column Layout

Configuration:

Best for: Landing pages, when you have plenty of content to explain

Detailed Information

This column can contain long-form text, lists, or any content to explain in detail.

  • Key point 1
  • Key point 2
  • Key point 3

Call to Action

This column can hold your primary CTA.

Register Now

Hero 8: With Internal CardGrid

Configuration:

Best for: Services pages, main features, comparisons

📐 2. Grid System – Responsive Layouts

Bootstrap uses a 12‑column grid. Combine widths to create any layout. Breakpoints (sm, md, lg, xl) adapt layouts to screen sizes automatically.

Grid 1: Single Column (100%)

Code: col-12

Use: Content that should span the full width

col-12 - Ancho completo (12/12 = 100%)

Grid 2: Two Equal Columns (50/50)

Code: col-md-6

Responsive: Stack on mobile (100% each), side‑by‑side on tablet+

col-md-6
6/12 = 50%

col-md-6
6/12 = 50%

Grid 3: Three Equal Columns (33% each)

Code: col-md-4

Math: 4 + 4 + 4 = 12 ✓

col-md-4
4/12 ≈ 33%

col-md-4
4/12 ≈ 33%

col-md-4
4/12 ≈ 33%

Grid 4: Four Columns (25% each)

Code: col-sm-6 col-lg-3

Advanced responsive:

🎯

col-sm-6 col-lg-3

col-sm-6 col-lg-3

🚀

col-sm-6 col-lg-3

💡

col-sm-6 col-lg-3

Grid 5: Asymmetric Layout (70/30)

Code: col-md-8 + col-md-4

Math: 8 + 4 = 12 ✓

Common use: Main content + sidebar

Main Content

col-md-8 = 8/12 ≈ 66%

Main area for articles, products, detailed information, etc.

This wider column draws more attention.

Sidebar

col-md-4 = 4/12 ≈ 33%

  • Navigation
  • Extra info
  • Widgets
  • Announcements

Grid 6: With Offset (Spacing)

Code: col-md-6 offset-md-3

Effect: Centers a 6‑unit column with 3‑unit space on each side

Math: 3 (offset) + 6 (content) + 3 (auto) = 12 ✓

Centered Content

col-md-6 offset-md-3

Perfect for forms, CTAs, or content you want to highlight by centering.

🃏 CardGrid Block — All Variations

CardGrid creates responsive card layouts. Cards auto-flow and stack on mobile.

CardGrid 1: Basic Cards (Text Only)

Configuration:

Best for: Feature highlights, service descriptions, benefits

CardGrid 2: Four Cards Grid

Configuration:

Best for: Service offerings, feature highlights, team members

CardGrid 3: Cards with Images

Configuration:

Best for: Blog previews, team members, portfolio items, product showcases

CardGrid 4: Full-Width CardGrid

Configuration:

Best for: Landing page sections, hero features, portfolio showcases

🧩 CodeRed Content Blocks — Additional Components

FlexibleContentPage includes 20 additional CodeRed CMS content blocks.

Text & Typography Blocks

Media Blocks

Interactive & Structural Blocks

Advanced Blocks

💡 Pro Tip: All CodeRed blocks support advanced settings including custom CSS classes, IDs, and tracking attributes. This makes them incredibly flexible for any design need.

Using Multimedia Blocks

The CodeRed multimedia blocks mentioned above can be added directly in the Wagtail editor:

All multimedia blocks are fully responsive and work seamlessly across all devices.

⚡ Custom Basic Blocks — Simple & Fast

Lightweight custom blocks for quick content creation (defined in flexible_blocks.py).

Custom Block Examples

In addition to CodeRed's blocks, this project includes 5 custom basic blocks for simpler, faster content creation:

  1. Heading Block — CharBlock for simple section titles
  2. Paragraph Block — RichTextBlock for formatted text (what you're reading now!)
  3. List Block — ListBlock of RichTextBlocks for bulleted/numbered lists
  4. Divider Block — StaticBlock for horizontal rules
  5. Image Block — ImageChooserBlock for simple images without captions

When to use custom blocks vs CodeRed blocks:

Example of Heading

The heading above was created with the custom heading block — just a simple text field, no formatting needed.


⬆️ The line above is a divider block — instant visual separation.


List Block Example

The custom list block creates structured lists with rich text support:

Use the list block when you need more control than a simple bulleted list in a paragraph.

✅ Summary — Complete Block System

This showcase demonstrated all 34 available blocks in FlexibleContentPage:

Key Takeaways:

Happy building! 🚀

PARTNER TELEHEALTH RESOURCE CENTERS