{% block content %}{% endblock %}
{% include "partials/footer.html" %}
diff --git a/templates/shortcodes/row.html b/templates/shortcodes/row.html
index 67961bb..0f01a61 100644
--- a/templates/shortcodes/row.html
+++ b/templates/shortcodes/row.html
@@ -35,7 +35,7 @@ Parameters:
{% set columns = body | safe | markdown | split(pat="|||
") %} -{% set row_class = "relative py-12 flex flex-col sm:grid sm:grid-cols-2 sm:gap-10 md:flex md:flex-row flex-wrap max-w-fit "%} +{% set row_class = "relative flex flex-col md:flex md:flex-row flex-wrap max-w-fit overflow-hidden"%} {% if 2 < columns | length %} @@ -44,66 +44,49 @@ Parameters: {% set row_class = row_class ~ " lg:items-center" %} {% endif %} -{% set col_class = "flex-1 mb-4 md:mb-12 lg:mb-0 " %} -{% set col_class = col_class ~ " lg:mx-8 " %} +{% set col_class = "flex-1 mb-4 md:mb-12 lg:mb-0" %} - +{% set row_id = '' %} -{% set margin_class = " mx-4 md:mx-16 lg:mx-24 " %} +{% if id %} +{% set row_id = id %} -{% if margin %} - {% if "none" in margin %} - {% set margin_class = " mx-0 " %} - {% elif "wide" in margin %} - {% set margin_class = " mx-4 sm:mx-8 md:mx-12 lg:mx-16 xl:mx-20 " %} - {% elif "moderate" in margin %} - {% set margin_class = " mx-8 sm:mx-16 md:mx-24 lg:mx-28 " %} - {% elif "narrow" in margin %} - {% set margin_class = " mx-12 sm:mx-20 md:mx-28 lg:mx-32 " %} - {% elif "tight" in margin %} - {% set margin_class = " mx-20 sm:mx-32 md:mx-60 lg:mx-80 xl:mx-96 " %} - {% endif %} - {% if "lean-left" in margin %} - {% set col_class = col_class ~ " lg:last:px-20 lg:max-w-[50%] lg:mx-0 " %} - {% set row_class = row_class ~ " !ml-0 sm:gap-0 " %} - {% elif "lean-right" in margin %} - {% set col_class = col_class ~ " lg:first:px-20 lg:max-w-[50%] lg:mx-0 " %} - {% set row_class = row_class ~ " !mr-0 sm:gap-0 " %} - {% endif %} {% endif %} -{% set row_class = row_class ~ margin_class %} + + +{% if reverse %} + {% if "rightreserve" in reverse %} + {% set row_class = "flex flex-col-reverse md:flex-row items-center" %} + {% elif "leftreserve" in reverse %} + {% set row_class = "flex flex-col md:flex-row items-center" %} + + {% endif %} + {% endif %} {% if style %} {% if "center" in style %} - {% set row_class = row_class ~ " text-center items-center mx-auto justify-center " %} + {% set row_class = row_class ~ " text-center items-center lg:mx-auto " %} {% set col_class = col_class ~ " flex-1 " %} {% endif %} - - {% if "lean" in style %} - {% if "lean-left" in style %} - {% set col_class = col_class ~ " last:px-20 lg:max-w-[50%] " %} - {% set row_class = row_class ~ " sm:gap-0 " %} - {% elif "lean-right" in style %} - {% set col_class = col_class ~ " first:px-20 lg:max-w-[50%] -mr-8 md:-mr-12 lg:-mr-16 xl:-mr-20 " %} - {% set row_class = row_class ~ " sm:gap-0 " %} - {% else %} - {% set row_class = row_class ~ " md:py-0 " %} - {% set col_class = col_class ~ " lg:m-0" %} - {% endif %} - {% else %} - {% set row_class = row_class ~ " w-screen " %} + {% if "right" in style %} + {% set row_class = row_class ~ " text-right justify-center " %} + {% endif %} + + {% if "items-end" in style %} + {% set row_class = row_class ~ " lg:items-end" %} + {% set col_class = col_class ~ " flex-1 " %} {% endif %} - {% if "between" in style %} - {% set row_class = row_class ~ " lg:max-w-6xl " %} - {% elif "moderate" in style %} - {% set row_class = row_class ~ " " %} - {% endif %} + {% if "between" in style %} + {% set row_class = row_class ~ " lg:max-w-6xl " %} + {% elif "moderate" in style %} + {% set row_class = row_class ~ " " %} + {% endif %} {% if "narrow" in style %} @@ -128,6 +111,65 @@ Parameters: {% set anchor_link = anchor %} {% endif %} + + +{% set padding_class = " py-8 md:py-8 lg:py-28" %} + +{% if padding %} + {% if "none" in padding %} + {% set padding_class = " py-0" %} + {% elif "top" in padding %} + {% set padding_class = " py-2 md:py-4 lg:pt-28" %} + {% elif "bottom" in padding %} + {% set padding_class = " py-2 md:py-4 lg:pb-28" %} + {% endif %} +{% endif %} + +{% if css %} + {% set padding_class = padding_class ~ " " ~ css %} +{% endif %} + +{% set row_class = row_class ~ padding_class %} + + + +{% set margin_class = " mx-4 md:mx-16 lg:mx-24" %} + +{% if margin %} + {% if "none" in margin %} + {% set margin_class = " mx-0" %} + {% elif "wide" in margin %} + {% set margin_class = " mx-4 md:mx-12 lg:mx-16 xl:mx-20" %} + {% elif "moderate" in margin %} + {% set margin_class = " mx-4 md:mx-20 lg:mx-28" %} + {% elif "narrow" in margin %} + {% set margin_class = " mx-4 md:mx-28 lg:mx-40" %} + {% elif "tight" in margin %} + {% set margin_class = " mx-4 md:mx-40 lg:mx-80 xl:mx-96" %} + {% elif "header" in margin %} + {% set margin_class = " mx-4 md:mx-28 lg:mx-40 my-10" %} + {% endif %} + {% if "lean-left" in margin %} + {% set margin = margin_class | replace(from=" ", to=" first:")%} + {% set margin_left = margin | replace(from="mx", to="-ml") %} + {% set margin_right = margin | replace(from="mx", to="mr") %} + {% set col_class = col_class ~ " md:last:px-8 lg:last:px-20 lg:max-w-[50%] lg:mx-0 " ~ margin_left ~ margin_right %} + {% set row_class = row_class ~ " sm:gap-0 " %} + {% elif "lean-right" in margin %} + {% set margin = margin_class | replace(from=" ", to=" last:")%} + {% set margin_left = margin | replace(from="mx", to="ml") %} + {% set margin_right = margin | replace(from="mx", to="-mr") %} + {% set col_class = col_class ~ " md:first:px-8 lg:first:px-20 lg:max-w-[50%] lg:mx-0 " ~ margin_left ~ margin_right %} + {% set row_class = row_class ~ " sm:gap-0 " %} + {% endif %} +{% endif %} + +{% if css %} + {% set margin_class = margin_class ~ " " ~ css %} +{% endif %} + +{% set row_class = row_class ~ margin_class %} + {% set styles = "" %} @@ -150,26 +192,31 @@ Parameters: {% if "full" in bgStyle %} {% set styles = styles ~ "height: -webkit-fill-available; height: 100vh;" %} {% elif "hero" in bgStyle %} - {% set div_class = div_class ~ " -mt-24 pt-24 " %} + {% set div_class = div_class ~ " -mt-24 pt-12 " %} {% endif %} {% endif %} {% if bgColor %} {% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %} - {% set row_class = row_class ~ " py-0 " %} + {% set row_class = row_class %} +{% endif %} + +{% if class %} + {% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %} + {% set row_class = row_class %} {% endif %} {% set no_margins = " -mx-8 md:-mx-12 lg:-mx-16 xl:-mx-20" %} -
-
+
+
{% for column in columns%}
{% if column | as_str | length < 10 %}
-
+
{{ column | safe }}
{% else %}