aboutsummaryrefslogtreecommitdiff
path: root/src/html/email.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/email.html')
-rw-r--r--src/html/email.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/html/email.html b/src/html/email.html
new file mode 100644
index 0000000..dfd9b51
--- /dev/null
+++ b/src/html/email.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <title>Mark's Kitchen - Email</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/styles.css">
+ <!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
+ <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
+ <script>
+ window.onload = function(){
+ var feed = new Vue({
+ el: '#status',
+ data: {
+ show: window.location.hash == '#success'
+ },
+ });
+ }
+ </script>
+</head>
+
+<body>
+ <div>
+ <h1>Email</h1>
+ <p>Sign up to receive Mark's email newsletter</p>
+ <h2 id="status" v-if='show'>Success, thank you!</h2>
+ <div class="form">
+ <form action="/email" method="post" enctype="application/x-www-form-urlencoded">
+ <input type="text" placeholder="Your name" name="name" required>
+ <input type="email" placeholder="Your email" name="email" required>
+ <input type="submit" value="Submit">
+ </form>
+ </div>
+ </div>
+</body>
+
+</html> \ No newline at end of file