aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html')
-rw-r--r--src/html/admin.html2
-rw-r--r--src/html/bread.html2
-rw-r--r--src/html/index.html2
-rw-r--r--src/html/login.html25
4 files changed, 28 insertions, 3 deletions
diff --git a/src/html/admin.html b/src/html/admin.html
index 7c87ba6..d0d2e81 100644
--- a/src/html/admin.html
+++ b/src/html/admin.html
@@ -27,7 +27,7 @@
<option value="index">Index</option>
</select>
</div>
- <input type="submit">
+ <input type="submit" value="Submit">
</form>
</div>
</div>
diff --git a/src/html/bread.html b/src/html/bread.html
index e6eeb47..1ce1478 100644
--- a/src/html/bread.html
+++ b/src/html/bread.html
@@ -18,7 +18,7 @@
},
created() {
fetch(new Request('/posts/bread')).then(response => response.json())
- .then(response => this.posts = response.data);
+ .then(response => this.posts = response);
}
});
}
diff --git a/src/html/index.html b/src/html/index.html
index c7e398b..01f6e4e 100644
--- a/src/html/index.html
+++ b/src/html/index.html
@@ -19,7 +19,7 @@
},
created() {
fetch(new Request('/posts/index')).then(response => response.json())
- .then(response => this.posts = response.data);
+ .then(response => this.posts = response);
}
});
}
diff --git a/src/html/login.html b/src/html/login.html
new file mode 100644
index 0000000..53a2d06
--- /dev/null
+++ b/src/html/login.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <title>Mark's Kitchen - Login</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
+ <link rel="stylesheet" type="text/css" href="/css/styles.css">
+</head>
+
+<body>
+ <div>
+ <h1>Login</h1>
+ <div class="form">
+ <form action="/login" method="post" enctype="application/x-www-form-urlencoded">
+ <input type="text" placeholder="Enter Username" name="username" required>
+ <input type="password" placeholder="Enter Password" name="password" required>
+ <input type="submit">
+ </form>
+ </div>
+ </div>
+</body>
+
+</html> \ No newline at end of file