Hero Banner

The ptl-hero-banner include creates a responsive banner with optional imagery and up to two lines of text. Use title-style to choose whether the copy overlays the image or sits below it.

Options

Option Values Default Behavior
title-style overlay, caption overlay overlay places white text over the banner image. caption places a separate text area below the image.
image Image path or omitted Omitted Adds the banner image. When omitted, the banner is a solid light-green area.
title Text or omitted Omitted Primary heading. It is replaced by brand when brand is provided.
text Text or omitted Omitted Optional secondary line, displayed even when neither title nor brand is set. Text can wrap on smaller screens.
brand Text or omitted Omitted Replaces title as the primary heading in either title style. With title-style='caption', also displays the Pathway Technologies logo.
image-style cover, photo cover cover crops the image to fill the banner. photo keeps the full image visible and fills the remaining area with a blurred, darkened version of that image.
img-position top, center, bottom center Sets the vertical crop alignment when image-style='cover'. It has no effect with photo.

Text Behavior

Cover Image Position

Cover crops the image to fill the banner. img-position controls which vertical part of the image remains visible. These examples use the generated image of an adult Chinese woman working at a computer; each changes only the crop position.

Top

Values:

Top crop

Center

Values:

Centered crop

Bottom

Values:

Bottom crop

Caption With Brand

Caption style places copy below the image. Here, both title and brand are supplied to demonstrate precedence: the brand is the visible heading, and the company logo appears alongside the caption. The supporting text is the second line.

Values:

Pathway Technologies Ltd.

Engineering for safety-critical and regulated systems.

Caption With Photo

The photo treatment also works with caption style. The full image is contained and centered above the caption, with its blurred background behind it. img-position does not apply to photo style.

Values:

Pathway Technologies Ltd.

An optional second line can wrap on mobile.

Without an Image

The image is optional. The banner keeps its light-green background whether the text overlays the banner area or appears in the caption area.

Overlay Text Only

Values:

A simple text banner

A title and supporting copy can be used on their own.

Caption Brand Only

Values:

The logo appears because caption style and brand are both selected.

Pathway Technologies Ltd.