-
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 remote-tracking branch 'origin/master' into feat/add-tests
- Loading branch information
Showing
10 changed files
with
335 additions
and
127 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 |
---|---|---|
@@ -1,29 +1,32 @@ | ||
{% load static %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{% block title %}{% endblock %}</title> | ||
<script src="https://cdn.tailwindcss.com/"></script> | ||
<link rel="stylesheet" href="{% static 'css/app.css' %}"> | ||
</head> | ||
|
||
<body class="bg-gray-100 flex items-center justify-center h-screen"> | ||
|
||
{% include 'alert.html' %} | ||
{% include 'alert.html' %} | ||
|
||
<div class="bg-white shadow-lg rounded-lg overflow-hidden w-full max-w-4xl"> | ||
<div class="md:flex"> | ||
<div class="hidden md:block md:w-1/2"> | ||
<img class="object-cover h-full w-full" src="{% static 'images/logo.png' %}" alt="Random Image"> | ||
</div> | ||
<div class="w-full md:w-1/2 p-8"> | ||
{% block content %} | ||
{% endblock %} | ||
<div class="bg-white shadow-lg rounded-lg overflow-hidden w-full max-w-4xl"> | ||
<div class="md:flex"> | ||
<div class="hidden md:block md:w-1/2"> | ||
<img class="object-cover h-full w-full" src="{% static 'images/logo.png' %}" alt="Random Image"> | ||
</div> | ||
<div class="w-full md:w-1/2 p-8"> | ||
{% block content %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="{% static 'js/setTimeoutForAlert.js' %}"> </script> | ||
<script src="{% static 'js/setTimeoutForAlert.js' %}"> </script> | ||
</body> | ||
</html> | ||
|
||
</html> |
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,31 +1,39 @@ | ||
{% extends 'Auth/base.html' %} | ||
{% extends 'Auth/base.html' %} | ||
{% block title %}GreenCart | Login{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h2 class="text-2xl font-bold text-gray-800 mb-6">Welcome Back</h2> | ||
<form method="post" action="{% url 'Auth:login' %}"> | ||
{% csrf_token %} | ||
<div class="mb-4"> | ||
{{ form.email.label_tag }} | ||
{{ form.email }} | ||
</div> | ||
<div class="mb-6"> | ||
{{ form.password.label_tag }} | ||
{{ 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 }} | ||
</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> | ||
</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> | ||
</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> | ||
<h2 class="text-2xl font-bold text-gray-800 mb-6">Welcome Back</h2> | ||
<form method="post" action="{% url 'Auth:login' %}"> | ||
{% csrf_token %} | ||
<div class="mb-4"> | ||
<label for="{{ form.email.id_for_label }}" class="block text-sm font-medium text-gray-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"> | ||
{{ 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 }} | ||
</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> | ||
</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> | ||
</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 %} |
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
Oops, something went wrong.