# Extra Hero

Adds the Extra Hero block type plus sample content for Drupal recipes.

## Requirements

- Drupal core >= 10.4
- For best UX, use the Basecore theme, which provides the intended styling for this block: https://www.drupal.org/project/basecore

## Installation

Download the recipe with Composer:

```sh
composer require drupal/extra_hero
```

Apply this recipe through the Recipes UI or with Drush. If you use the UI, you can also enable it via the Extra Project Browser, which groups the `extra_*` recipes: https://www.drupal.org/project/extra_project_browser

## Try Extra Hero instantly in your browser

Want to see Extra Hero in action without installing anything locally? This repository includes a ready-to-run [GitHub Codespaces + DDEV environment](https://github.com/skounis/drupal-codespaces) with Drupal CMS, Basecore, and the Extra Hero recipe. [Open the repo](https://github.com/skounis/drupal-codespaces) in Codespaces, run `make`, and you can explore the block, edit its fields, and preview the front-end result in minutes.

## What this recipe provides

- Block type: Extra Hero
- Fields and form/display configuration for the block type
- Sample content in `content/`

## Where to find the demo

In Layout Builder, go to Add block → Content block and look for:

- Extra Hero - Signature Hero

## Extra Hero block

Extra Hero is a flexible landing-page hero block that pairs bold headline text with a supporting image and a call-to-action area. It is designed for marketing-style pages where you want a strong first impression with a primary message, supporting copy, and one or more links.

Key parts of the block:
- Title: multiple title lines for a rotating headline effect.
- Description: rich text summary beneath the title.
- Note: short supporting text (for example, pricing or a brief disclaimer).
- Media: a single image with alt and title text.
- Alignment: horizontal (left/right) and vertical (top/center/bottom) alignment controls.
- Layout: column width options to control text vs. image emphasis.
- Actions: one or more links (URL + link text) for calls to action.

The sample content in `content/` includes a hero image and a demo Extra Hero block to help you preview and test the layout quickly.

## Configuration

All configuration is included in the recipe under `config/` and is installed when the recipe is applied.

## Maintainers

- TODO: Add maintainers and contact information.

## License

GPL-2.0-or-later. See `LICENSE.txt`.
