Skip to content

Commit

Permalink
[ux.symfony.com] Fix rendering/color issues on Map page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal authored and kbond committed Aug 15, 2024
1 parent 4f1862e commit c3a8806
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PackageHeader {
h1 {
text-shadow: 0 .25rem .25rem rgba(0, 0, 0, .05);
text-wrap: balance;

em {
display: inline-flex;
Expand Down
3 changes: 1 addition & 2 deletions ux.symfony.com/src/Service/UxPackageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
21 changes: 12 additions & 9 deletions ux.symfony.com/templates/ux_packages/map.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
{% set package = 'map'|ux_package %}

{% block package_header %}
<twig:Hero
eyebrows="Assert('Mapper')"
title="UX Map"
url="{{ url('app_map') }}"
>
Embed <code>interactive maps</code> in your Symfony application in a breeze!
<br />
Decouple your code from your map provider: <code>Google Maps</code>, <code>LeaftLet</code>.
</twig:Hero>
{% component PackageHeader with {
package: 'map',
eyebrowText: 'Seamless Maps Integration',
} %}
{% block title_header %}
Embed <em>interactive maps</em> in a breeze!
{% endblock %}

{% block sub_content %}
Decouple your code from your map provider: <em>Google Maps</em>, <em>LeaftLet</em>.
{% endblock %}
{% endcomponent %}
{% endblock %}

{% block code_block_left %}
Expand Down

0 comments on commit c3a8806

Please sign in to comment.