summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 0c5627c0a35e63067791584dacbb2e9f80f76ae0 (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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!doctype html>
<html class="no-js" lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>Goals</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <style type="text/css">
            body {
                font-family: Verdana, sans-serif;
                font-size: 12px;
            }
            form label {
                display: inline-block;
                width: 10em;
                font-weight: bolder;
            }
            .globals {
                position: absolute;
                top: 1em;
                right: 1em;
                margin: 0;
                padding: 0;
            }
            .globals a:visited {
                color: blue;
            }
            .globals li {
                list-style: none;
                display: inline-block;
            }
            .globals li:after {
                content: "|";
                color: #999999;
                padding: 0 0 0 0.3em;
            }
            .globals li:last-child:after {
                content: "";
            }
            .goal {
                position: relative;
                background-color: #CCCCCC;
                padding: 0.1em 1em;
                margin: 0 0 1em 0;
            }
            .goal .actions {
                position: absolute;
                right: 0.5em;
                top: 0.5em;
            }
            .goal button {
                line-height: 2em;
                min-width: 2em;
                border: 0;
                color: white;
            }
            .goal button.add {
                background-color: #4286f4;
            }
            .goal button.delete {
                background-color: #d60000;
            }
            .goal p.label {
                font-weight: bolder;
            }
            .progressbar {
                display: inline-block;
                text-align: center;
                height: 2em;
                line-height: 2em;
                width: 100%;
                border: 1px solid black;
                margin: 10px 0;
            }
            .progressbar.more-than-half {
                /* gte 70% */
                background: linear-gradient(90deg, #1cb600 70%, #FFFFFF 70%);
            }
            .progressbar.done {
                /* 100% */
                background-color: #ffaa00;
            }
            .progressbar.half {
                /* gte 50% lt 70% */
                background: linear-gradient(90deg, #fff000 50%, #FFFFFF 50%);
            }
            .progressbar.less-than-half {
                /* lt 50% */
                background: linear-gradient(90deg, #d60000 20%, #FFFFFF 20%);
            }

            .goal .overlay {
                position: absolute;
                top: 0;
                left: 0;
                height: 100%;
                width: 100%;
                background-color: #CCCCCC;
                opacity: 0.9;
                z-index: 1;
            }
            .goal .overlay p {
                margin: 0.5em 0;
                display: block;
                text-align: center;
                font-size: 200%;
                font-weight: bolder;
            }
            .goal .overlay button, form button {
                margin: 0.5em 0;
                background-color: black;
                color: white;
                width: 20%;
            }
            form button {
                width: 30%;
            }
            .goal .add-progress form {
                padding-top: 1em;
                text-align: center;
            }

            @media only screen and (max-width: 500px) {
                h1 {
                    margin: 0;
                }
                .globals {
                    position: initial;
                    line-height: 2em;
                    margin-bottom: 1em;
                }
                .goal button {
                    line-height: 2.5em;
                }
                form label {
                    width: 30%;
                }
            }
        </style>
    </head>
    <body>
        <h1>Week of August 28</h1>
        <ul class="globals">
            <li><a href="#">Create Goal</a></li>
            <li><a href="#">Retrospective</a></li>
            <li>mcrute</li>
        </ul>
        <div class="goal">
            <p class="label">Create Goal</p>
            <form>
                <div class="row"><label for="goal_name">Goal Name:</label><input id="goal_name" name="goal_name" type="text"/></div>
                <div class="row"><label for="goal_value">Goal Value:</label><input id="goal_value" name="goal_value" type="text" pattern="\d*"/></div>
                <div class="row"><label for="units">Units: </label><input id="units" name="units" type="text"/></div>
                <div class="row"><label for="time_period">Time Period:</label><select id="time_period" name="time_period">
                        <option>Day</option>
                        <option>Week</option>
                        <option>Month</option>
                        <option>Year</option>
                    </select>
                </div>
                <div class="row">
                    <button type="submit">Create Goal</button>
                    <button class="cancel">Cancel</button>
                </div>
            </form>
        </div>
        <div class="goal">
            <div class="overlay delete-confirm">
                <p>Really delete?</p>
                <p>
                    <button class="yes">Yes</button>
                    <button class="yes">No</button>
                </p>
            </div>
            <p class="label">Exercise (150 minutes / week):</p>
            <div class="actions">
                <p>
                    <button class="delete" type="submit">-</button>
                    <button class="add" type="submit">+</button>
                </p>
            </div>
            <p><div class="progressbar less-than-half">30 minutes (25%)</div></p>
        </div>
        <div class="goal">
            <div class="overlay add-progress">
                <form>
                    <div class="row"><label for="progress">Progress (minutes):</label><input type="text" pattern="\d*" /></div>
                    <div class="row"><button class="yes">Save</button></div>
                </form>
            </div>
            <p class="label">Exercise (150 minutes / week):</p>
            <div class="actions">
                <button class="delete" type="submit">-</button>
                <button class="add" type="submit">+</button>
            </div>
            <div class="progressbar half">75 minutes (50%)</div>
        </div>
        <div class="goal">
            <p class="label">Exercise (150 minutes / week):</p>
            <div class="actions">
                <button class="delete" type="submit">-</button>
                <button class="add" type="submit">+</button>
            </div>
            <div class="progressbar half">75 minutes (50%)</div>
        </div>
        <div class="goal">
            <p class="label">Exercise (150 minutes / week):</p>
            <div class="actions">
                <button class="delete" type="submit">-</button>
                <button class="add" type="submit">+</button>
            </div>
            <div class="progressbar more-than-half">100 minutes (80%)</div>
        </div>
        <div class="goal">
            <p class="label">Exercise (150 minutes / week):</p>
            <div class="actions">
                <button class="delete" type="submit">-</button>
                <button class="add" type="submit">+</button>
            </div>
            <div class="progressbar done">Goal Completed!</div>
        </div>
    </body>
</html>