-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/add-tests
- Loading branch information
Showing
63 changed files
with
1,177 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
{% extends 'Auth/base.html' %} | ||
{% block title %}GreenCart | Login{% endblock %} | ||
|
||
{% block content %} | ||
{% block lottie_src %} | ||
https://lottie.host/54dad616-5c33-413f-8af8-e62aa9daf0cd/2RhLNcNx1Q.json | ||
{% endblock %} | ||
|
||
<h2 class="text-2xl font-bold text-gray-800 mb-6">Welcome Back</h2> | ||
<form method="post" action="{% url 'Auth:login' %}"> | ||
{% block content %} | ||
<h2 class="text-4xl font-bold text-green-800 mb-6 text-center">Welcome back to 💚🛒</h2> | ||
<form method="post" action="{% url 'Auth:login' %}" class="space-y-6"> | ||
{% csrf_token %} | ||
<div class="mb-4"> | ||
<label for="{{ form.email.id_for_label }}" class="block text-sm font-medium text-gray-700"> | ||
<div class="space-y-1"> | ||
<label for="{{ form.email.id_for_label }}" class="block text-sm font-medium text-green-700"> | ||
{{ form.email.label }}{% if form.email.field.required %}<span class="text-red-500">*</span>{% endif %} | ||
</label> | ||
{{ form.email }} | ||
</div> | ||
<div class="mb-6"> | ||
<label for="{{ form.password.id_for_label }}" class="block text-sm font-medium text-gray-700"> | ||
<div class="space-y-1"> | ||
<label for="{{ form.password.id_for_label }}" class="block text-sm font-medium text-green-700"> | ||
{{ form.password.label }}{% if form.password.field.required %}<span class="text-red-500">*</span>{% endif %} | ||
</label> | ||
{{ form.password }} | ||
</div> | ||
<div class="flex items-center justify-between"> | ||
<div class="flex items-center gap-1"> | ||
{{ form.remember_me }} | ||
{{ form.remember_me.label_tag }} | ||
<label for="remember_me" class="ml-2 block text-sm text-grey-700">{{ form.remember_me.label }}</label> | ||
</div> | ||
<div class="text-sm"> | ||
<a href="{% url 'Auth:forgot_password' %}" class="font-medium text-indigo-600 hover:text-indigo-500">Forgot | ||
your password?</a> | ||
<a href="{% url 'Auth:forgot_password' %}" class="font-medium text-green-600 hover:text-green-500">Forgot your password?</a> | ||
</div> | ||
</div> | ||
<div class="mt-6"> | ||
<button type="submit" | ||
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">Sign | ||
in</button> | ||
<div> | ||
<button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">Sign in</button> | ||
</div> | ||
</form> | ||
<p class="mt-4 text-sm text-center text-gray-600">Don't have an account? <a href="{% url 'Auth:signup' %}" | ||
class="font-medium text-indigo-600 hover:text-indigo-500">Sign up</a></p> | ||
{% endblock %} | ||
<p class="mt-6 text-center text-sm text-gray-600"> | ||
Don't have an account? | ||
<a href="{% url 'Auth:signup' %}" class="font-medium text-green-600 hover:text-green-500">Sign up</a> | ||
</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.