-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an example for the 50-50-full-width-image hero pattern without …
…the subtitle_text
- Loading branch information
1 parent
68c59ca
commit 7d623e0
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
templates/docs/examples/patterns/hero/hero-50-50-full-width-image-without-subtitle_text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% from "_macros/vf_hero.jinja" import vf_hero %} | ||
|
||
{% block title %}Hero / 50/50 / Full width image{% endblock %} | ||
{% block standalone_css %}patterns_all{% endblock %} | ||
|
||
{% set is_paper = true %} | ||
{% block content %} | ||
|
||
{% call(slot) vf_hero( | ||
title_text='H1 - ideally one line, up to two', | ||
layout='50/50-full-width-image' | ||
) -%} | ||
{%- if slot == 'description' -%} | ||
<p> | ||
Generally, the height of the right hand side of a 50/50 split should contain more content than the left | ||
hand side. | ||
</p> | ||
{%- endif -%} | ||
{%- if slot == 'cta' -%} | ||
<a href="#" class="p-button--positive">Learn more</a> | ||
<a href="#">Contact us ›</a> | ||
{%- endif -%} | ||
{%- if slot == 'image' -%} | ||
<div class="p-image-container--cinematic is-cover"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/a299c914-GettyImages-DataCenter.jpeg" alt=""> | ||
</div> | ||
{% endif -%} | ||
{% endcall -%} | ||
|
||
{% endblock %} |