add background color

This commit is contained in:
Ehab Hassan 2022-03-28 10:44:07 +02:00
parent 74da4f8d20
commit ef86a0d3f6
2 changed files with 8 additions and 2 deletions

View File

@ -95,7 +95,9 @@ And were aiming for new heights. The Peoples Internet will turn into a DAO
{% end %} {% end %}
{% row(style="center narrow") %}
{% row(bgColor="#70dfc9" style="center narrow") %}
## **START THE INTERNET <br> REVOLUTION** ## **START THE INTERNET <br> REVOLUTION**

View File

@ -41,7 +41,6 @@ Parameters:
{% set row_class = row_class ~ " lg:m-20" %} {% set row_class = row_class ~ " lg:m-20" %}
{% endif %} {% endif %}
{% endif %} {% endif %}
<!-- makes row full screen width and adds background img --> <!-- makes row full screen width and adds background img -->
@ -50,6 +49,11 @@ Parameters:
{% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover" %} {% set styles = "background: url('" ~ bgPath ~ "'); background-size: cover" %}
{% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 lg:py-40 p-8 sm:p-12 md:p-16 lg:p-20" %} {% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 lg:py-40 p-8 sm:p-12 md:p-16 lg:p-20" %}
{% endif %} {% endif %}
{% if bgColor %}
{% set styles = "background-color: " ~ bgColor ~ "; background-size: cover" %}
{% set row_class = row_class ~ "w-screen -mx-8 sm:-mx-12 md:-mx-16 lg:-mx-20 lg:py-40 p-8 sm:p-12 md:p-16 lg:p-20" %}
{% endif %}
<div class="{{row_class}}" style="{{styles}}"> <div class="{{row_class}}" style="{{styles}}">