feat: Add login form to login page
This commit is contained in:
1 parent
84236a7b67
commit
699df9665d
6 files changed
+4
-122
No files matched your search
@@ -1,25 +0,0 @@
|
||||
---
|
||||
layout: default
|
||||
title: "Login"
|
||||
permalink: /login
|
||||
---
|
||||
|
||||
<section class="bg-gray-100 py-12">
|
||||
<div class="container mx-auto px-4 sm:px-16 md:px-10 lg:px-12 xl:px-24 xxl:px-32">
|
||||
<div class="max-w-md mx-auto bg-white p-8 rounded-lg shadow-md">
|
||||
<h2 class="text-2xl font-bold mb-6 text-center">Login</h2>
|
||||
<form action="/login" method="POST">
|
||||
<div class="mb-4">
|
||||
<label for="email" class="block text-gray-700">Email</label>
|
||||
<input type="email" id="email" name="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-600" required>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
<label for="password" class="block text-gray-700">Password</label>
|
||||
<input type="password" id="password" name="password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-600" required>
|
||||
</div>
|
||||
<button type="submit" class="w-full bg-indigo-700 text-white py-2 rounded-lg hover:bg-indigo-800 focus:outline-none focus:ring-2 focus:ring-indigo-600">Login</button>
|
||||
</form>
|
||||
<p class="mt-4 text-center text-gray-600">Don't have an account? <a href="/signup" class="text-indigo-700 hover:underline">Sign up</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -3,3 +3,5 @@ layout: simple
|
||||
title: "Login"
|
||||
permalink: /login
|
||||
---
|
||||
|
||||
{% include login.liquid %}
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
layout: default
|
||||
title: "Sign Up"
|
||||
permalink: /signup
|
||||
---
|
||||
|
||||
<section class="bg-gray-100 py-12">
|
||||
<div class="container mx-auto px-4 sm:px-16 md:px-10 lg:px-12 xl:px-24 xxl:px-32">
|
||||
<div class="max-w-md mx-auto bg-white p-8 rounded-lg shadow-md">
|
||||
<h2 class="text-2xl font-bold mb-6 text-center">Sign Up</h2>
|
||||
<form action="/signup" method="POST">
|
||||
<div class="mb-4">
|
||||
<label for="name" class="block text-gray-700">Name</label>
|
||||
<input type="text" id="name" name="name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-600" required>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label for="email" class="block text-gray-700">Email</label>
|
||||
<input type="email" id="email" name="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-600" required>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
<label for="password" class="block text-gray-700">Password</label>
|
||||
<input type="password" id="password" name="password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-indigo-600" required>
|
||||
</div>
|
||||
<button type="submit" class="w-full bg-indigo-700 text-white py-2 rounded-lg hover:bg-indigo-800 focus:outline-none focus:ring-2 focus:ring-indigo-600">Sign Up</button>
|
||||
</form>
|
||||
<p class="mt-4 text-center text-gray-600">Already have an account? <a href="/login" class="text-indigo-700 hover:underline">Login</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -1,66 +0,0 @@
|
||||
---
|
||||
layout: default
|
||||
title: "Sign Up - Resharespace"
|
||||
permalink: /signup/
|
||||
---
|
||||
|
||||
<div class="min-h-screen flex items-center justify-center bg-gray-100 py-12 px-4 sm:px-6 lg:px-8">
|
||||
<div class="max-w-md w-full space-y-8 bg-white p-10 shadow-xl rounded-lg">
|
||||
<div>
|
||||
<img class="mx-auto h-12 w-auto" src="{{ '/assets/svg/logo_full.svg' | relative_url }}" alt="Resharespace">
|
||||
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">
|
||||
Create your account
|
||||
</h2>
|
||||
</div>
|
||||
<form class="mt-8 space-y-6" action="#" method="POST">
|
||||
<div class="rounded-md shadow-sm -space-y-px">
|
||||
<div>
|
||||
<label for="full-name" class="sr-only">Full name</label>
|
||||
<input id="full-name" name="full-name" type="text" autocomplete="name" required
|
||||
class="appearance-none rounded-none relative block w-full px-3 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-t-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
|
||||
placeholder="Full name">
|
||||
</div>
|
||||
<div>
|
||||
<label for="email-address" class="sr-only">Email address</label>
|
||||
<input id="email-address" name="email" type="email" autocomplete="email" required
|
||||
class="appearance-none rounded-none relative block w-full px-3 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
|
||||
placeholder="Email address">
|
||||
</div>
|
||||
<div>
|
||||
<label for="password" class="sr-only">Password</label>
|
||||
<input id="password" name="password" type="password" autocomplete="new-password" required
|
||||
class="appearance-none rounded-none relative block w-full px-3 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
|
||||
placeholder="Password">
|
||||
</div>
|
||||
<div>
|
||||
<label for="confirm-password" class="sr-only">Confirm Password</label>
|
||||
<input id="confirm-password" name="confirm-password" type="password" autocomplete="new-password" required
|
||||
class="appearance-none rounded-none relative block w-full px-3 py-3 border border-gray-300 placeholder-gray-500 text-gray-900 rounded-b-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 focus:z-10 sm:text-sm"
|
||||
placeholder="Confirm Password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center">
|
||||
<input id="terms-conditions" name="terms-conditions" type="checkbox" required
|
||||
class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
||||
<label for="terms-conditions" class="ml-2 block text-sm text-gray-900">
|
||||
I agree to the <a href="{{ '/pages/terms.html' | relative_url }}" class="font-medium text-indigo-700 hover:text-indigo-500">Terms and Conditions</a>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button type="submit"
|
||||
class="group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-700 hover:bg-indigo-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
||||
Sign up
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="text-sm text-center">
|
||||
<p class="text-gray-600">Already have an account?
|
||||
<a href="{{ '/login/' | relative_url }}" class="font-medium text-indigo-700 hover:text-indigo-500">
|
||||
Sign in
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user