Demo: EBT Blocks

08/02/2023, by Ivan

Using EBT modules you can easily set up landing pages without any HTML/CSS knowledge.

Easy to use with Layout Builder and Drupal blocks

EBT modules create block types which you can use in Layout Builder:

EBT Layout Builder

So you can add new block in few click on any layout builder page.

Here is more information about Layout Builder module:

https://www.drupal.org/docs/8/core/modules/layout-builder

Block Content and Settings

On block edit form you will find two tabs Content and Settings. Content tab contains fields: Titles, texts, images, etc. Settings tab contains EBT common settings "Design Options", for example DOM Box, and module specific settings: javascript plugin settings, predefined styles:

Drupal EBT block settings

DOM Box: margins, borders, paddings

Each EBT block has DOM Box settings to set up gaps below and above the block and paddings inside the block:

EBT Design Options

You can set border only for one side, two sides or all sides. Don't forget to type border size in DOM Box, without it border will not appear.

Background color, image or video

All EBT block types have background settings. It supports background color, images and remote videos based on Media module. 

EBT background image

Play around with DOM Box to get blocks looking better, try to add additional paddings, margins or border. Here is an example of EBT Accordion/FAQ module:
https://www.drupal.org/project/ebt_accordion

Background Video

EBT blocks support only YouTube background videos for now.

FAQ

Where do programmers hangout?

At Stack Overflow lounge.

Can you give me a programming music note? 

C#

In Background Image Style field you can select behaviour for image background, if your image too small, try to select "Cover" or "Parallax" to fit bg image in entire block:

Background Image Style

Edge to Edge blocks

Very often in Landing pages we need to have full width background and centered content. In EBT settings you have "Edge to Edge" check box to make block full width outer container:
Edge to Edge setting

Result:

FAQ

What is the meaning of life?

42

What is the most popular programming problem? 

Missing a Semicolon.

What two words every programmer learned to code first?

“Hello, world.”

Where did programmers learn to program?

At Stackoverflow University.

What is the golden rule in programming?

If it works, don't touch it.

Container Max Width helps to adjust width for content inside you Edge to Edge block. As we fit block full width we need to set width for text, sometimes we have different width for different blocks. You can change values for Container Max Width classes, by default EBT provides next container widths:

  • Auto (100%) - Full width for text container
  • xxSmall - 280px
  • xSmall - 480px
  • Small - 780px
  • Default - 960px
  • Large - 1120px
  • xLarge - 1320
  • xxLarge - 1600

Predefined styles

Usually EBT modules have bunch of predefined styles. It helps to save time for styling new component in your landing page. You also can create own style and add it to EBT module.

Predefined styles

Result:

FAQ

As a programmer, where do you see yourself 10 years from now?

Sitting in front of a computer, probably programming.

Can you summarize the life of programmers in four words?

Eat. Sleep. Code. Repeat.

How do programmers enjoy life?

When they see their codes run without error.

What is the biggest lie in computer programming?

HTML is a programming language.

Predefined styles are likely do not fit your site, so you can overwrite them in custom theme. If you found a bug or want to suggest enhancement for styles or EBT modules functionality feel free to open ticket on drupal.org for specific EBT module.

Custumizable javascript plugins

Some EBT modules like EBT Slideshow use javascript plugins:
https://www.drupal.org/project/ebt_slideshow

You can adjust this javascript plugin for your needs:
javascript plugin

Based on your settings EBT Slideshow can be single slide slider or multiple slide carousel:

One slide mode:

Slide image
Jane Doe

Jane Doe

Slide image
Girl 3

Jane Doe

Slide image
John Doe

John Doe

Multiple slides - carousel mode:

Slide option

Carousel

Result:

Slideshow - carousel mode

Slide image
Girl 1

Jane Doe

Slide image
Girl 2

Jane Doe

Slide image
Man 2

John Doe

Slide image
Man 1

John Doe

Thank you for using EBT module! I will be glad for any ideas for EBT modules:

Create an issue on Drupal.org

Contact EBT modules developer

Or message me on LinkedIn