-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (60 loc) · 1.81 KB
/
index.html
File metadata and controls
61 lines (60 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/tailwind.bundle.css">
<title>Tailwind css</title>
</head>
<body class="flex w-full h-full " style="height: min-content;">
<!-- component -->
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mt-48 my-2 my-auto mx-auto w-4/12" id="root">
<div class="-mx-3 md:flex mb-6">
<div class="md:w-full px-3">
<label class="block uppercase tracking-wide text-grey-darker text-xs font-bold mb-2">
Email
</label>
<input
class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-red rounded py-3 px-4 mb-3"
type="text"
v-model="email"
placeholder="Example@email.com">
<p class="text-red text-xs italic">Please enter your email.</p>
</div>
</div>
<div class="-mx-3 md:flex mb-6">
<div class="md:w-full px-3">
<label class="block uppercase tracking-wide text-grey-darker text-xs font-bold mb-2">
Password
</label>
<input
class="appearance-none block w-full bg-grey-lighter text-grey-darker border border-grey-lighter rounded py-3 px-4 mb-3"
type="password"
v-model="password"
placeholder="******************">
</div>
</div>
<button
class="shadow bg-purple-500 hover:bg-purple-400 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded"
v-on:click="handle"
type="button">
Sign in
</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
const app = new Vue({
el: '#root',
data: {
email: '',
password: ''
},
methods: {
handle() {
console.log("working");
console.log(this.email, this.password);
}
}
});
</script>
</body>
</html>