aboutsummaryrefslogtreecommitdiff
path: root/src/html/email.html
blob: 13f34d5d1726a3441339fceb10b561075e922ee1 (plain)
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
<!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>
            <a class="navigation" href="/" title="marks.kitchen">&lt;</a>
            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>