source: src/main/resources/static/UserLogin.html@ 57e58a3

Last change on this file since 57e58a3 was 57e58a3, checked in by ste08 <sjovanoska@…>, 4 months ago

Initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Login</title>
7 <link rel="stylesheet" href="/css/main.css">
8 <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
9</head>
10<body>
11
12<div id="app" class="login-container">
13 <h1>Login</h1>
14 <form @submit.prevent="loginUser">
15 <div class="form-group">
16 <label for="email">Email</label>
17 <input type="email" id="email" v-model="email" required placeholder="Enter your email" />
18 </div>
19
20 <div class="form-group">
21 <label for="password">Password</label>
22 <input type="password" id="password" v-model="password" required placeholder="Enter your password" />
23 </div>
24
25 <button type="submit">Login</button>
26 </form>
27 <p>
28 Don't have an account? <a href="/signup">Sign up here</a>
29 </p>
30</div>
31
32<script>
33 new Vue({
34 el: '#app',
35 data: {
36 email: '',
37 password: ''
38 },
39 methods: {
40 loginUser() {
41 if (this.email && this.password) {
42 window.location.href = '/flights';
43 }
44 }
45 }
46 });
47</script>
48
49</body>
50</html>
Note: See TracBrowser for help on using the repository browser.