diff --git a/ux.symfony.com/src/Controller/Icons/IconsController.php b/ux.symfony.com/src/Controller/Icons/IconsController.php index 774bb221862..8da9f87531c 100644 --- a/ux.symfony.com/src/Controller/Icons/IconsController.php +++ b/ux.symfony.com/src/Controller/Icons/IconsController.php @@ -42,7 +42,7 @@ public function index( ]; $iconSets = array_map(fn ($iconSet) => $iconSetRepository->find($iconSet), $iconSets); - return $this->render('icons/index.html.twig', [ + return $this->render('ux_packages/icons.html.twig', [ 'package' => $packageRepository->find('icons'), 'iconSets' => $iconSets, ]); diff --git a/ux.symfony.com/src/Service/UxPackageRepository.php b/ux.symfony.com/src/Service/UxPackageRepository.php index 0810e0e8def..483c7d47497 100644 --- a/ux.symfony.com/src/Service/UxPackageRepository.php +++ b/ux.symfony.com/src/Service/UxPackageRepository.php @@ -25,7 +25,7 @@ public function findAll(?string $query = null): array 'icons', 'UX Icons', 'app_icons', - '#fff', + 'purple', 'linear-gradient(to bottom right, cyan, purple)', 'SVG icons made easy', 'Render SVG icons seamlessly from your Twig templates.', diff --git a/ux.symfony.com/templates/icons/_aside.html.twig b/ux.symfony.com/templates/icons/_aside.html.twig deleted file mode 100644 index 704224eb53a..00000000000 --- a/ux.symfony.com/templates/icons/_aside.html.twig +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/ux.symfony.com/templates/icons/index.html.twig b/ux.symfony.com/templates/icons/index.html.twig deleted file mode 100644 index eb0bbad4668..00000000000 --- a/ux.symfony.com/templates/icons/index.html.twig +++ /dev/null @@ -1,73 +0,0 @@ -{% extends 'base.html.twig' %} - -{% block javascripts %} - {{ parent() }} - -{% endblock %} - -{% set meta = { - title: 'UX Icons - SVG icons made easy', - description: 'Render SVG icons seamlessly from your Twig templates. Find the perfect icon among 200,000 choices from the most popular icon sets.', - canonical: url('app_icons'), - social: { - title: 'Symfony UX Icons - SVG icons made easy', - description: 'Render SVG icons seamlessly from your Twig templates. Find the perfect icon among 200,000 choices from the most popular icon sets.', - image: { - url: absolute_url(asset(package.getSocialImage('1200x675'))), - type: 'image/png', - width: 1200, - height: 675, - alt: package.humanName ~ ' - Component Icon', - }, - } -} %} - -{% block content %} - -
-
-

SVG icons made easy

-

- UX Icons -

-
-

- Render SVG icons seamlessly from your Twig templates. -
- Find the perfect icon among 200,000 choices from the most popular icon sets. -

-
-
-
- -
- -
- -
-

Iconic Packages

-
-

Popular Icon Sets

-
-
-
- {% for icon_set in iconSets %} - - {% endfor %} -
-
-
- -{% endblock %} - -{% block aside %} - {{ include('icons/_aside.html.twig') }} -{% endblock %} - -{% block body %} - {{ parent() }} - -{% endblock %} diff --git a/ux.symfony.com/templates/ux_packages/icons.html.twig b/ux.symfony.com/templates/ux_packages/icons.html.twig new file mode 100644 index 00000000000..03f4281d8dc --- /dev/null +++ b/ux.symfony.com/templates/ux_packages/icons.html.twig @@ -0,0 +1,52 @@ +{% extends 'ux_packages/package.html.twig' %} + +{% block javascripts %} + {{ parent() }} + +{% endblock %} + +{% block package_header %} + {% component PackageHeader with { + package: 'icons', + eyebrowText: 'SVG icons made easy' + } %} + {% block title_header %} + UX Icons + {% endblock %} + + {% block sub_content %} + Render SVG icons seamlessly from your Twig templates. +
+ Find the perfect icon among 200,000 choices from the most popular icon sets. + {% endblock %} + {% endcomponent %} +{% endblock %} + +{% block package_content %} +
+ +
+ +
+

Iconic Packages

+
+

Popular Icon Sets

+
+
+
+ {% for icon_set in iconSets %} + + {% endfor %} +
+
+
+ +{% endblock %} + +{% block body %} + {{ parent() }} + +{% endblock %}