From eb582a5f244865f29bb13939d0999afae1452cb1 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 --- .../src/Service/UxPackageRepository.php | 3 +-- .../templates/ux_packages/map.html.twig | 21 +++++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) 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..941059dee41 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: "Assert('Mapper')" + } %} + {% block title_header %} + Embed interactive maps in your Symfony application in a breeze! + {% endblock %} + + {% block sub_content %} + Decouple your code from your map provider: Google Maps, LeaftLet. + {% endblock %} + {% endcomponent %} {% endblock %} {% block code_block_left %}