|
| 1 | +{% extends 'base.html.twig' %} |
| 2 | + |
| 3 | +{% set meta = { |
| 4 | + title: 'Documentation', |
| 5 | + description: 'Symfony UX bundle and packages documentation', |
| 6 | + canonical: url('app_documentation'), |
| 7 | +} %} |
| 8 | + |
| 9 | +{% block content %} |
| 10 | + <div class="hero"> |
| 11 | + <div class="container-fluid container-xxl px-4 pt-4 px-md-5"> |
| 12 | + <h1 class="text-center mt-5">Documentation</h1> |
| 13 | + <p class="text-center demo-introduction"> |
| 14 | + Read full documentation on |
| 15 | + <a href="https://symfony.com/bundles#symfony-ux-bundles"><code>symfony.com</code></a> |
| 16 | + </p> |
| 17 | + </div> |
| 18 | + </div> |
| 19 | + |
| 20 | + <section class="container-fluid container-xxl px-4 px-md-5 py-3"> |
| 21 | + <div class="align-items-center text-md-start mb-4"> |
| 22 | + <h2 class="ubuntu pt-2 component-headlines">Packages</h2> |
| 23 | + </div> |
| 24 | + <div |
| 25 | + style="display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));"> |
| 26 | + {% for package in packages %} |
| 27 | + <div class="PackageBox" style="--gradient: {{ package.gradient }};--color: {{ package.color }};"> |
| 28 | + <div class="PackageBox_logo" style="--logo-size: 4rem;"> |
| 29 | + <img width="36" height="36" src="{{ asset('images/ux_packages/' ~ package.imageFilename) }}" |
| 30 | + alt="Image for the {{ package.humanName }} UX package"> |
| 31 | + </div> |
| 32 | + <div class="PackageBox_content"> |
| 33 | + <h3 class="PackageBox_title" style="font-size: 1.25rem;"> |
| 34 | + <a href="{{ path(package.route) }}">{{ package.humanName }}</a> |
| 35 | + </h3> |
| 36 | + <a href="{{ package.officialDocsUrl }}" class="PackageBox_link" |
| 37 | + rel="external noopener noreferrer" |
| 38 | + title="{{ package.humanName }} documentation on symfony.com" |
| 39 | + > |
| 40 | + <twig:ux:icon name="lucide:book" width="1em" /> |
| 41 | + Read Docs |
| 42 | + </a> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + {% endfor %} |
| 46 | + </div> |
| 47 | + </section> |
| 48 | + |
| 49 | +{% endblock %} |
| 50 | + |
| 51 | +{% block aside %} |
| 52 | + {{ include('_aside.html.twig') }} |
| 53 | +{% endblock %} |
0 commit comments