A simple component that outputs an h1
element with the provided message. Currently the heading element will be centered using CSS.
src/components/patterns/cloud-services/welcome-message
// src/components/patterns/cloud-services/welcome-message/schema.yaml
$schema: http://json-schema.org/draft-07/schema
$id: /patterns/cloud-services/welcome-message
additionalProperties: false
required:
- message
properties:
heading_id:
type: string
message:
type: string
// src/components/patterns/cloud-services/welcome-message/mocks.yaml
message: Welcome message
// src/components/patterns/cloud-services/welcome-message/welcome-message.twig
<h1 class="CloudServicesWelcomeMessage" {% if heading_id %} id="{{ heading_id }}" {% endif %}>{{ message }}</h1>