diff --git a/composer.json b/composer.json index 240b98e..cedd3ea 100644 --- a/composer.json +++ b/composer.json @@ -37,6 +37,7 @@ "symfony/ux-dropzone": "^2.16", "symfony/validator": "7.0.*", "symfony/yaml": "7.0.*", + "symfonycasts/tailwind-bundle": "^0.5.1", "twig/extra-bundle": "^2.12|^3.0", "twig/twig": "^2.12|^3.0" }, diff --git a/composer.lock b/composer.lock index 3bc79f6..21aedd5 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "93d79ec939cf0c840da056ec1d8622cb", + "content-hash": "cfad52fb50fff0fa9ae167c190da57f6", "packages": [ { "name": "babdev/pagerfanta-bundle", @@ -6974,6 +6974,60 @@ ], "time": "2024-01-23T15:02:46+00:00" }, + { + "name": "symfonycasts/tailwind-bundle", + "version": "v0.5.1", + "source": { + "type": "git", + "url": "https://github.com/SymfonyCasts/tailwind-bundle.git", + "reference": "e13e544c9d0f293c3155d34c6121dcf15a827867" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SymfonyCasts/tailwind-bundle/zipball/e13e544c9d0f293c3155d34c6121dcf15a827867", + "reference": "e13e544c9d0f293c3155d34c6121dcf15a827867", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/asset-mapper": "^6.3|^7.0", + "symfony/console": "^5.4|^6.3|^7.0", + "symfony/http-client": "^5.4|^6.3|^7.0", + "symfony/process": "^5.4|^6.3|^7.0" + }, + "require-dev": { + "phpstan/phpstan": "1.11.x-dev", + "symfony/filesystem": "^6.3|^7.0", + "symfony/framework-bundle": "^6.3|^7.0", + "symfony/phpunit-bridge": "^6.3|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfonycasts\\TailwindBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ryan Weaver", + "homepage": "https://symfonycasts.com" + } + ], + "description": "Delightful Tailwind Support for Symfony + AssetMapper", + "keywords": [ + "asset-mapper", + "tailwind" + ], + "support": { + "issues": "https://github.com/SymfonyCasts/tailwind-bundle/issues", + "source": "https://github.com/SymfonyCasts/tailwind-bundle/tree/v0.5.1" + }, + "time": "2024-02-20T11:53:29+00:00" + }, { "name": "twig/extra-bundle", "version": "v3.8.0", diff --git a/config/bundles.php b/config/bundles.php index 28b98da..05c4d2a 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -17,4 +17,5 @@ Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true], Symfony\UX\Dropzone\DropzoneBundle::class => ['all' => true], Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], + Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true], ]; diff --git a/symfony.lock b/symfony.lock index efc113b..16c6d83 100644 --- a/symfony.lock +++ b/symfony.lock @@ -272,6 +272,9 @@ "config/routes/web_profiler.yaml" ] }, + "symfonycasts/tailwind-bundle": { + "version": "v0.5.1" + }, "twig/extra-bundle": { "version": "v3.8.0" }, diff --git a/tailwind.config.js b/tailwind.config.js index 1ceba2b..2becc16 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,6 +7,6 @@ module.exports = { theme: { extend: {}, }, - plugins: [], + plugins: [require('@tailwindcss/container-queries')], } diff --git a/templates/base.html.twig b/templates/base.html.twig index 3d7729e..7ce5a72 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -6,7 +6,7 @@ {% block title %}Welcome!{% endblock %} {% block stylesheets %} - + {{ encore_entry_link_tags('app') }} {% endblock %} {% block javascripts %} @@ -14,29 +14,47 @@ {% endblock %} -
-