Skip to content

Commit f76144f

Browse files
committed
Create Login page
1 parent 903c0a4 commit f76144f

File tree

2 files changed

+50
-11
lines changed

2 files changed

+50
-11
lines changed

backend/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" class="h-full bg-gray-50">
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Vite App</title>
88
</head>
9-
<body>
9+
<body class="h-full">
1010
<div id="app"></div>
1111
<script type="module" src="/src/main.js"></script>
1212
</body>

backend/src/views/Login.vue

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,52 @@
11
<template>
2-
<h1>Login form</h1>
3-
</template>
2+
<div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
3+
<div class="max-w-md w-full space-y-8">
4+
<div>
5+
<img class="mx-auto h-12 w-auto" src="https://tailwindui.com/img/logos/workflow-mark-indigo-600.svg" alt="Workflow" />
6+
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900">Sign in to your account</h2>
7+
<p class="mt-2 text-center text-sm text-gray-600">
8+
Or
9+
{{ ' ' }}
10+
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500"> start your 14-day free trial </a>
11+
</p>
12+
</div>
13+
<form class="mt-8 space-y-6" action="#" method="POST">
14+
<input type="hidden" name="remember" value="true" />
15+
<div class="rounded-md shadow-sm -space-y-px">
16+
<div>
17+
<label for="email-address" class="sr-only">Email address</label>
18+
<input id="email-address" name="email" type="email" autocomplete="email" required="" class="appearance-none rounded-none relative block w-full px-3 py-2 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="Email address" />
19+
</div>
20+
<div>
21+
<label for="password" class="sr-only">Password</label>
22+
<input id="password" name="password" type="password" autocomplete="current-password" required="" class="appearance-none rounded-none relative block w-full px-3 py-2 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="Password" />
23+
</div>
24+
</div>
425

5-
<script>
6-
export default {
7-
name: "Login"
8-
}
9-
</script>
26+
<div class="flex items-center justify-between">
27+
<div class="flex items-center">
28+
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" />
29+
<label for="remember-me" class="ml-2 block text-sm text-gray-900"> Remember me </label>
30+
</div>
1031

11-
<style scoped>
32+
<div class="text-sm">
33+
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500"> Forgot your password? </a>
34+
</div>
35+
</div>
1236

13-
</style>
37+
<div>
38+
<button type="submit" class="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
39+
<span class="absolute left-0 inset-y-0 flex items-center pl-3">
40+
<LockClosedIcon class="h-5 w-5 text-indigo-500 group-hover:text-indigo-400" aria-hidden="true" />
41+
</span>
42+
Sign in
43+
</button>
44+
</div>
45+
</form>
46+
</div>
47+
</div>
48+
</template>
49+
50+
<script setup>
51+
import { LockClosedIcon } from '@heroicons/vue/solid'
52+
</script>

0 commit comments

Comments
 (0)