aboutsummaryrefslogtreecommitdiff
path: root/views/index.ejs
blob: 5a2eea4fdd47f25670dc6c9cae0a84387428f44f (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>TODOy</title>
        <link rel="shortcut icon" href="https://i.imgur.com/69mCrs0.jpg" type="image/jpg">
        <!-- CSS -->
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
            integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

        <style>
            html {
                overflow: hidden;
                background-color: black;
                user-select: none;
            }
            body {
                background-color: transparent;
            }

            .bg-container img {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: auto;
                opacity: 0.5;
                z-index: -2;
                -webkit-user-drag: none;
            }

            .container {
                z-index: 999;
            }

            #white-txt {
                color: white !important;
            }

            .highlightable {
                user-select: text;
            }

            footer {
                position: fixed;
                left: 0;
                bottom: 0;
                width: 100%;
                color: white;
                text-align: center;
            }

            #pink-link {
                color: pink;
            }
            #pink-link:hover {
                color: rgb(214, 161, 170);
            }
        </style>
        <!-- External Libraries -->
        <!-- Invisible Scripts -->
    </head>
    <body>
        <!-- Visable Scripts -->

        <div class="bg-container">
            <img src="https://i.ytimg.com/vi/0sLaYGjGIDo/maxresdefault.jpg" alt="Zero Two">
        </div>

        <div class="container my-5">
            <a href="#" style="text-decoration: none;"><h1 id="white-txt">TODOy</h1></a>
            <form action="/todoItems" method="POST" class="my-4 form-inline">
                <label for="todoItem" class="sr-only">TODO Item</label>
                <input type="text" name="todoItem" id="todoItem" class="form-control col mr-2">
                <button type="submit" class="btn btn-success">Add TODO Item</button>
            </form>

            <table class="table table-striped">
                <thead>
                    <tr>
                        <th id="white-txt">TODO Item</th>
                        <th id="white-txt">TODO Item Created Time</th>
                        <th id="white-txt">Delete/ Change</th>
                    </tr>
                </thead>
                <tbody>
                    <% todoItems.forEach(todoItem => { %>
                        <tr>
                            <td id="white-txt" class="highlightable"><%= todoItem.item %></td>
                            <td id="white-txt" class="highlightable"><%= todoItem.date %></td>
                            <td><button class="btn btn-danger">Delete</button>&nbsp;&nbsp;<button class="btn btn-warning">Change</button></td>
                        </tr>
                    <% }) %>
                </tbody>
            </table>
        </div>

        <footer>
            <link rel="stylesheet" type="text/css" href="//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" />
            Made with <i class="icon ion-heart"></i> by <a href="https://kyzer.co/" id="pink-link">Sin</a>.
        </footer>
    </body>
</html>