djangosnippets.org
djangosnippets.org copied to clipboard
SIte is not mobile friendly
Looking at the site on my phone is not a great experience.
I'm going to review the css setup and look to modernise it. I have yet to use https://tailwindcss.com/ and alpine.js so I was thinking this could be a good place to use them.
I want to get the benefits of a frontend framework but keep the maintenance costs low. These seem like a good fit for djangosnippets.
Hey @chriswedgwood — Yeah, modernising the site would be a good change. I'm very happy with the Tailwind/Alpine combo too.
One thing that's been handy is using is Extracting Components for forms, so we can just form.as_p()
(or whatever) and it gets styled properly.
- Best TW practice is to customise the theme, but that's a little more in-depth.
- They're also https://github.com/django-crispy-forms/crispy-tailwind is we need/want a bit more control over form layouts.
Other than that it's pretty easy to get going. Happy to advise!