Styling with TailwindCSS

Styling the main allauth layout

Want more?

This lesson for enrolled students only. Join the course to unlock it!

You can see the code changes implemented in this lecture below.

If you have purchased the course in a different platform, you still have access to the code changes per lecture here on Teclado. The lecture video and lecture notes remain locked.
Join course for $15

Modified files

templates/allauth/layouts/base.html
--- 
+++ 
@@ -1,9 +1,11 @@
 {% extends "base.html" %}

 {% block base_content %}
-<div>
-  {% block content %}
+<main class="max-w-xl mx-auto">
+  <div class="text-center bg-gray-800 text-white rounded-lg mt-10 p-6 lg:p-16">
+    {% block content %}

-  {% endblock content %}
-</div>
+    {% endblock content %}
+  </div>
+</main>
 {% endblock base_content %}