-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (100 loc) · 2.98 KB
/
index.html
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>index-Mission2</title>
<!-- fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC&family=Roboto&display=swap"
/>
<!-- Bootstrap5.css -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css"
integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="/src/style.css" />
<!-- end of styles.CSS -->
</head>
<body>
<section id="app">
<section id="login-card">
<h1 v-show="hintMsg">{{ hintMsg }}</h1>
<form class="login-form" id="loginApp" @submit.prevent="login">
<!--
#NOTE:
https://staging.vuejs.org/guide/essentials/event-handling.html#event-modifiers
-->
<div class="email">
<label for="inputEmail"></label>
<input
type="email"
name="username"
id="inputEmail"
v-model.lazy="user.username"
v-model.trim="user.username"
placeholder="[email protected]"
required
autofocus
/>
<!--
#NOTE:
https://book.vue.tw/CH1/1-4-directive.html
v-model.trim="user.username"
v-model.lazy="user.username"
-->
</div>
<div class="password">
<label for="inputPassword"></label>
<input
type="password"
name="password"
id="inputPassword"
v-model.lazy="user.password"
v-model.trim="user.password"
placeholder="******"
required
/>
</div>
<button type="submit" class="btn login-btn btn-success">Login</button>
</form>
<!-- end of login-form -->
</section>
<!-- end of container -->
</section>
<!-- end of DOM -->
<!-- axios.js -->
<!-- Bootstrap5.js -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js"
integrity="sha512-OvBgP9A2JBgiRad/mM36mkzXSXaJE9BEIENnVEmeZdITvwT09xnxLtT4twkCa8m/loMbPHsvPl0T8lRGVBwjlQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<!--
Message-vue@3:
You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.
-->
<!--
<script src="https://unpkg.com/vue@3"
integrity="sha384-wF/ixqQ9lhCfSnbALWTBjzGJTDkdSQfae2zFlZkri33I/tyUtSKJuVCklc+iCCiJ"
crossorigin="anonymous">
</script>
-->
<!-- Main -->
<script type="module" src="/src/scripts/main.js"></script>
<!-- end of script.js -->
<!--
Layout-credit
https://codepen.io/nedev/pen/EVaGqW
-->
</body>
</html>