aboutsummaryrefslogtreecommitdiff
path: root/src/html/index.html
blob: f51122b24e3e70b7b3297268ed9577b948092291 (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
42
43
44
45
46
47
<!doctype html>
<html lang="en">

<head>
    <title>Mark's Kitchen</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">
    <link rel="shortcut icon" href="/favicon.ico">
    <script src="/js/feed.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
    <script>
        window.onload = loadFeed(function () {
            var feed = new Vue({
                el: '.feed',
                data: {
                    posts: []
                },
                created() {
                    fetch(new Request('/posts/index')).then(response => response.json())
                        .then(response => this.posts = response);
                }
            });
        })
    </script>
</head>

<body>
    <h1>Welcome to Mark's Kitchen</h1>
    <nav class="titlebar">
        <a href="bread" class="btn btn-primary">Bread</a>
        <a href="blog" class="btn btn-primary">Blog</a>
        <!-- <a href="essay" class="btn btn-primary">Essays</a> (Hello inspector, this page exists, but just isn't very interesting, so I'm removing the link) -->
        <a href="email" class="btn btn-primary">Email</a>
        <a href="misc" class="btn btn-primary">Misc</a>
    </nav>

    <div id="feed">
    </div>

    <!-- <footer>
        <div>Mark Powers 2020</div>
    </footer> -->
</body>

</html>