Create a simple Tailwind HTML page called home.html for a Django project named FinanceTracker.
Browse filesThe page should have:
- A centered title “Personal Finance Tracker”
- Two buttons: “Login” and “Register”
- Buttons should link to `{% url 'login' %}` and `{% url 'register' %}`.
- Use a soft background color and rounded buttons.
Files changed (2)
- home.htmlAdded+22
- login.html+2-1
12345678910111213141516171819202122<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>FinanceTracker - Home</title> <script src="https://cdn.tailwindcss.com"></script></head><body class="bg-blue-50"> <div class="min-h-screen flex flex-col items-center justify-center p-4"> <h1 class="text-4xl font-bold text-gray-800 mb-12 text-center">Personal Finance Tracker</h1> <div class="flex flex-col sm:flex-row gap-4"> <a href="{% url 'login' %}" class="px-8 py-3 bg-blue-500 text-white font-medium rounded-lg hover:bg-blue-600 transition duration-200 text-center"> Login </a> <a href="{% url 'register' %}" class="px-8 py-3 bg-green-500 text-white font-medium rounded-lg hover:bg-green-600 transition duration-200 text-center"> Register </a> </div> </div></body></html>27 unmodified lines282930313233343527 unmodified lines</button><p class="text-center text-sm text-gray-600">Don't have an account? <a href="{% url 'register' %}" class="font-medium text-blue-600 hover:text-blue-500">Register</a></p></form></div></div></body>27 unmodified lines28293031323334353627 unmodified lines</button><p class="text-center text-sm text-gray-600">Don't have an account? <a href="{% url 'register' %}" class="font-medium text-blue-600 hover:text-blue-500">Register</a>or <a href="{% url 'home' %}" class="font-medium text-blue-600 hover:text-blue-500">Return Home</a></p></form></div></div></body>
home.htmlAdded+22
login.html+2-1