Skip to content

Instantly share code, notes, and snippets.

View MichaelBrauner's full-sized avatar

Michael Brauner MichaelBrauner

View GitHub Profile
@MichaelBrauner
MichaelBrauner / login.html.twig
Last active September 21, 2021 04:36
Tailwind security forms for symfony projects
{% extends 'base.html.twig' %}
{% block title %}{{ 'Log in!'|trans }}{% endblock %}
{% set inputClasses = 'appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm' %}
{% set labelClasses = 'block text-sm font-medium text-gray-700' %}
{% block body %}
<section class="container mx-auto min-h-screen flex flex-col justify-center items-center py-12">