Skip to content

Commit c3a8806

Browse files
Kocalkbond
authored andcommitted
[ux.symfony.com] Fix rendering/color issues on Map page
1 parent 4f1862e commit c3a8806

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

ux.symfony.com/assets/styles/components/_PackageHeader.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.PackageHeader {
22
h1 {
33
text-shadow: 0 .25rem .25rem rgba(0, 0, 0, .05);
4+
text-wrap: balance;
45

56
em {
67
display: inline-flex;

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

+1-2
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

+12-9
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: 'Seamless Maps Integration',
9+
} %}
10+
{% block title_header %}
11+
Embed <em>interactive maps</em> 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)