From 7cd149a44605883fee9c658a917292727cc865a7 Mon Sep 17 00:00:00 2001 From: Muhammad Ali Date: Fri, 20 Dec 2024 12:03:58 +0500 Subject: [PATCH] Added an example for the 50-50-full-width-image hero pattern without the subtitle_text --- .../docs/examples/patterns/hero/combined.html | 1 + ...ull-width-image-without-subtitle_text.html | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 templates/docs/examples/patterns/hero/hero-50-50-full-width-image-without-subtitle_text.html diff --git a/templates/docs/examples/patterns/hero/combined.html b/templates/docs/examples/patterns/hero/combined.html index 3f5593386..607437d57 100644 --- a/templates/docs/examples/patterns/hero/combined.html +++ b/templates/docs/examples/patterns/hero/combined.html @@ -19,6 +19,7 @@
{% include 'docs/examples/patterns/hero/hero-signpost-full-width-image.html' %}
{% include 'docs/examples/patterns/hero/hero-50-50.html' %}
{% include 'docs/examples/patterns/hero/hero-50-50-full-width-image.html' %}
+
{% include 'docs/examples/patterns/hero/hero-50-50-full-width-image-without-subtitle_text.html' %}
{% include 'docs/examples/patterns/hero/hero-50-50-split-on-medium.html' %}
{% include 'docs/examples/patterns/hero/hero-75-25.html' %}
{% include 'docs/examples/patterns/hero/hero-fallback.html' %}
diff --git a/templates/docs/examples/patterns/hero/hero-50-50-full-width-image-without-subtitle_text.html b/templates/docs/examples/patterns/hero/hero-50-50-full-width-image-without-subtitle_text.html new file mode 100644 index 000000000..7854248da --- /dev/null +++ b/templates/docs/examples/patterns/hero/hero-50-50-full-width-image-without-subtitle_text.html @@ -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' -%} +

+ Generally, the height of the right hand side of a 50/50 split should contain more content than the left + hand side. +

+ {%- endif -%} + {%- if slot == 'cta' -%} + Learn more + Contact us › + {%- endif -%} + {%- if slot == 'image' -%} +
+ +
+ {% endif -%} +{% endcall -%} + +{% endblock %}