- Add custom border, background, and spacing utilities to base template - Enhance message notification styling and layout - Update delete modal button appearance and behavior - Refine comment card component with Tailwind classes and responsive behavior - Adjust sidebar responsiveness for mobile view
29 lines
2.0 KiB
HTML
29 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Register{% endblock %}
|
|
{% block content %}
|
|
<div class="min-h-screen flex items-center justify-center px-4">
|
|
<div class="w-full max-w-md card-surface p-8">
|
|
<div class="text-center mb-8">
|
|
<div class="flex items-center justify-center gap-2 mb-4">
|
|
<svg class="w-8 h-8 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2M9 7a2 2 0 012-2h2a2 2 0 012 2m0 10V7"/></svg>
|
|
<h1 class="text-2xl font-bold text-primary">ProMan</h1>
|
|
</div>
|
|
<p class="text-tertiary">Create your account</p>
|
|
</div>
|
|
<form method="post" class="space-y-3">
|
|
{% csrf_token %}
|
|
{% for field in form %}
|
|
<div class="space-y-1.5">
|
|
<label class="text-sm font-medium text-secondary">{{ field.label }}</label>
|
|
<input type="{{ field.field.widget.input_type|default:'text' }}" name="{{ field.name }}" value="{{ field.value|default:'' }}" class="w-full px-3 py-2 rounded-lg border border-soft bg-white text-sm text-primary focus:outline-none focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500 transition-colors" {% if field.field.required %}required{% endif %}>
|
|
{% if field.errors %}<p class="text-xs text-red-600">{{ field.errors.0 }}</p>{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
<button type="submit" class="w-full px-4 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700 transition-colors mt-2">Create Account</button>
|
|
</form>
|
|
<p class="text-center mt-6 text-sm text-tertiary">
|
|
Already have an account? <a href="{% url 'login' %}" class="text-blue-600 hover:text-blue-800 font-medium">Sign in</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |