Skip to content

Commit eb582a5

Browse files
committed
[ux.symfony.com] Fix rendering/color issues on Map page
1 parent 4f1862e commit eb582a5

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

ux.symfony.com/src/Service/UxPackageRepository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function findAll(?string $query = null): array
3737
'map',
3838
'UX Map',
3939
'app_map',
40-
'#fff',
41-
// 'linear-gradient(to bottom right, #58D984EB, #0083A2D1), #3386dfd4',
40+
'#1BA980',
4241
'linear-gradient(to bottom right, #1BA980, #209127 75%, #C0CB2A)',
4342
'Interactive Maps',
4443
'Render interactive Maps in PHP with Leaflet or Google Maps.',

ux.symfony.com/templates/ux_packages/map.html.twig

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
{% set package = 'map'|ux_package %}
44

55
{% block package_header %}
6-
<twig:Hero
7-
eyebrows="Assert('Mapper')"
8-
title="UX Map"
9-
url="{{ url('app_map') }}"
10-
>
11-
Embed <code>interactive maps</code> in your Symfony application in a breeze!
12-
<br />
13-
Decouple your code from your map provider: <code>Google Maps</code>, <code>LeaftLet</code>.
14-
</twig:Hero>
6+
{% component PackageHeader with {
7+
package: 'map',
8+
eyebrowText: "Assert('Mapper')"
9+
} %}
10+
{% block title_header %}
11+
Embed <em>interactive maps</em> in your Symfony application in a breeze!
12+
{% endblock %}
13+
14+
{% block sub_content %}
15+
Decouple your code from your map provider: <em>Google Maps</em>, <em>LeaftLet</em>.
16+
{% endblock %}
17+
{% endcomponent %}
1518
{% endblock %}
1619

1720
{% block code_block_left %}

0 commit comments

Comments
 (0)