Using the suru gradient patterns, you can now easily build homepage takeovers with a simple include, passing in all your variables to build a takeover in minutes.
p-takeover--gradThis is the default takeover style with an aubergine to orange gradient.
The following is the jinja2 template code you need for all takeovers, but with the default pattern.
{% with title="A guide to developing Android apps on Ubuntu",
subtitle="Learn what makes Ubuntu the perfect platform for Android app development",
class="",
header_image="https://assets.ubuntu.com/v1/30f461a5-android-on-ubuntu.svg",
image_style="margin: 1.5rem 0;",
image_height="158",
image_width="380",
image_hide_small=true,
equal_cols=true,
primary_url="/engage/developing-android-on-ubuntu?utm_source=takeover&utm_campaign=CY19_IOT_Snapstore_Whitepaper_AndroidonUbuntu",
primary_cta="Download the whitepaper",
primary_cta_class="",
secondary_url="",
secondary_cta="",
lang="",
locale="",
timezone="" %}
{% include "takeovers/_template.html" %}
{% endwith %}
col-7, col-5 optionalp-link--external will be added automatically optionalp-button--positive optionalp-link--external will be added automatically optional