logo

パレット - カラフルに🎨

Palette — ビジュアルページビルダー、デザインの専門知識は不要です。

ライブデモ パレットをダウンロード

Scroll

デモ:EPT Paragraphs

17/09/2023, by Ivan

EPT モジュールを使用すると、HTML/CSS の知識がなくてもランディングページを簡単に作成できます。

Paragraphs と容易に利用できます

EPT モジュールは、Paragraph フィールドで使用できるパラグラフタイプを作成します:

Create EPT Paragraphs

そのため、ページ上で数回のクリックで新しいパラグラフを追加できます。

Paragraph モジュールの詳細はこちら:

https://www.drupal.org/docs/contributed-modules/paragraphs

パラグラフのコンテンツ(Content)と設定(Settings)

パラグラフの編集フォームには、コンテンツ(Content)と設定(Settings)の2つのタブがあります。コンテンツタブには、タイトル、テキスト、画像などのフィールドが含まれます。設定タブには、EPT 共通設定の「デザインオプション(Design Options)」、たとえば DOM Box、およびモジュール固有の設定(JavaScript プラグイン設定、定義済みスタイル)が含まれます:

EPT Design Options

DOM Box:マージン、ボーダー、パディング

各 EPT パラグラフには、パラグラフの上下の間隔と、パラグラフ内のパディングを設定する DOM Box 設定があります:

Drupal EPT DOM Box

 

ボーダーは1辺、2辺、または全辺にのみ設定できます。DOM Box でボーダーのサイズを入力するのを忘れないでください。入力しないとボーダーは表示されません。

背景色、画像、またはビデオ

すべての EPT パラグラフタイプには背景設定があります。Media モジュールに基づいて、背景色、画像、リモートビデオをサポートしています。 

画像

パラグラフの見た目を良くするために DOM Box を調整して、追加のパディング、マージン、ボーダーを追加してみてください。EPT Accordion/FAQ モジュールの例はこちら:
https://www.drupal.org/project/ept_accordion

Background Video

EPT modules support only YouTube background videos for now.

Where do programmers gather?

In the Stack Overflow lounge.

Can you give me a musical note for programming?

C#

In the Background Image Style field, you can choose how the background image behaves. If your image is too small, try selecting "Cover" or "Parallax" so the background image fills the entire paragraph:

画像
Parallax background image

Edge to Edge paragraphs

Very often on landing pages, it's necessary to use a full-width background while centering the content. In the EPT settings, there is a checkbox called "Edge to Edge" that makes the outer container of the paragraph span the full width:

画像
Edge to edge paragraph

What is the meaning of life?

42

A semicolon is missing.

Hello, World!

At Stack Overflow University.

If it works — don't touch it.

Container Max Width helps configure the width of the content within a paragraph that uses the Edge to Edge option. Since the paragraph stretches to full width, it's necessary to define the width for the text — sometimes this varies between paragraphs. You can modify the values of the Container Max Width classes; by default, EPT offers the following container width options:

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

Predefined styles

EPT modules usually include a set of predefined styles. This helps save time when styling a new component on your landing page. You can also create your own style and add it to the EPT module.

画像
Styles

Result:

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

Sitting in front of a computer, probably programming.

Can you describe the life of programmers in four words?

Eat. Sleep. Code. Repeat.

How do programmers enjoy life?

When they see their code run without errors.

What is the biggest lie in programming?

HTML is a programming language.

Customizable JavaScript plugins

Some EPT modules, such as EPT Slideshow, use JavaScript plugins:
https://www.drupal.org/project/ept_slideshow

You can customize this JavaScript plugin to suit your needs:

画像

 

Single slide mode:

Jane Doe

Jane Doe

Girl 3

Jane Doe

John Doe

John Doe

Multiple slides — carousel mode:

画像
EPT Slideshow settings
画像
Carousel settings
Jane Doe

Jane Doe

Girl 3

Jane Doe

John Doe

John Doe

Thank you for using the EPT modules! I would be happy to hear any ideas for EPT modules:

Create an issue on Drupal.org

Ask a question

Send a message on LinkedIn