From c3a880693e3a8644c985b75d219696388b8ce09c Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Thu, 15 Aug 2024 07:38:11 +0200 Subject: [PATCH] [ux.symfony.com] Fix rendering/color issues on Map page --- .../styles/components/_PackageHeader.scss | 1 + .../src/Service/UxPackageRepository.php | 3 +-- .../templates/ux_packages/map.html.twig | 21 +++++++++++-------- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/ux.symfony.com/assets/styles/components/_PackageHeader.scss b/ux.symfony.com/assets/styles/components/_PackageHeader.scss index 7d2d6493b2b..e706df9013d 100644 --- a/ux.symfony.com/assets/styles/components/_PackageHeader.scss +++ b/ux.symfony.com/assets/styles/components/_PackageHeader.scss @@ -1,6 +1,7 @@ .PackageHeader { h1 { text-shadow: 0 .25rem .25rem rgba(0, 0, 0, .05); + text-wrap: balance; em { display: inline-flex; diff --git a/ux.symfony.com/src/Service/UxPackageRepository.php b/ux.symfony.com/src/Service/UxPackageRepository.php index 85f00eb2734..a0a2eb251a9 100644 --- a/ux.symfony.com/src/Service/UxPackageRepository.php +++ b/ux.symfony.com/src/Service/UxPackageRepository.php @@ -37,8 +37,7 @@ public function findAll(?string $query = null): array 'map', 'UX Map', 'app_map', - '#fff', - // 'linear-gradient(to bottom right, #58D984EB, #0083A2D1), #3386dfd4', + '#1BA980', 'linear-gradient(to bottom right, #1BA980, #209127 75%, #C0CB2A)', 'Interactive Maps', 'Render interactive Maps in PHP with Leaflet or Google Maps.', diff --git a/ux.symfony.com/templates/ux_packages/map.html.twig b/ux.symfony.com/templates/ux_packages/map.html.twig index 4c1d2f6fb73..0277e6cd360 100644 --- a/ux.symfony.com/templates/ux_packages/map.html.twig +++ b/ux.symfony.com/templates/ux_packages/map.html.twig @@ -3,15 +3,18 @@ {% set package = 'map'|ux_package %} {% block package_header %} - - Embed interactive maps in your Symfony application in a breeze! -
- Decouple your code from your map provider: Google Maps, LeaftLet. -
+ {% component PackageHeader with { + package: 'map', + eyebrowText: 'Seamless Maps Integration', + } %} + {% block title_header %} + Embed interactive maps in a breeze! + {% endblock %} + + {% block sub_content %} + Decouple your code from your map provider: Google Maps, LeaftLet. + {% endblock %} + {% endcomponent %} {% endblock %} {% block code_block_left %}