Skip to content

Commit

Permalink
Use custom banner color
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Jan 7, 2025
1 parent 7a4b0be commit 6e04b6c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/chartjs.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends 'ux_packages/package.html.twig' %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#165514'}) }}
{% endblock %}

{% block package_header %}
{% component PackageHeader with {
package: 'chartjs',
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/live_component.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends 'ux_packages/package.html.twig' %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#854e0d'}) }}
{% endblock %}

{% block package_header %}
{% component PackageHeader with {
package: 'live-component',
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/map.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends 'ux_packages/package.html.twig' %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#165514'}) }}
{% endblock %}

{% set package = 'map'|ux_package %}

{% block package_header %}
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/package.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
}
} %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#222'}) }}
{% endblock %}

{% block header %}
{{ include('_header.html.twig', {
theme: 'white'
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/stimulus.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends 'ux_packages/package.html.twig' %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#18543e'}) }}
{% endblock %}

{% block package_header %}
<twig:Package:PackageHeader
package="{{ 'stimulus'|ux_package }}"
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/turbo.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends 'ux_packages/package.html.twig' %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#331C50'}) }}
{% endblock %}

{% block package_header %}
{% component PackageHeader with {
package: 'turbo',
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/templates/ux_packages/twig_component.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends 'ux_packages/package.html.twig' %}

{% block banner %}
{{ include('_banner.html.twig', {color_back: '#4a5d20'}) }}
{% endblock %}

{% block package_header %}
{% component PackageHeader with {
package: 'twig-component',
Expand Down

0 comments on commit 6e04b6c

Please sign in to comment.