-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (184 loc) · 8.33 KB
/
index.html
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
<!DOCTYPE html>
<html class="no-js" 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>What should I do next?</title>
<link rel="canonical" href="https://spacenomads.github.io/what-should-I-do-next/" />
<link rel="icon" type="image/png" href="favicon.png">
<link rel="author" href="humans.txt" />
<link rel="manifest" href="manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="WSIDN :)">
<meta name="format-detection" content="telephone=no">
<link rel="apple-touch-icon" href="img/icons/icon-72x72.png">
<link rel="apple-touch-icon" href="img/icons/icon-128x128.png">
<link rel="apple-touch-icon" href="img/icons/icon-144x144.png">
<link rel="apple-touch-icon" href="img/icons/icon-152x152.png">
<link rel="apple-touch-icon" href="img/icons/icon-192x192.png">
<link rel="apple-touch-icon" href="img/icons/icon-256x256.png">
<link rel="apple-touch-icon" href="img/icons/icon-512x512.png">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/app.css">
</head>
<body class="app js__app">
<main class="app__main js__app-main">
<!-- main screen -->
<section class="app__content tpl-screen js__app-content">
<header class="tpl-screen__intro">
<div class="tpl-wrapper">
<button class="tpl-screen__menu-trigger js__app-menu-trigger">Menu</button>
<h1 class="tpl-screen__title">What should I do next?</h1>
<div class="tpl-screen__description">
<p>Write 3 tasks and let me decide what to do if you find yourself kind of stuck.</p>
</div>
</div>
</header>
<div class="tpl-screen___content">
<div class="tpl-wrapper">
<ol class="app__tasks">
<li class="app__task">
<div class="app__taks-container">
<label for="task--1" class="app__task-label">First task</label>
<input id="task--1" class="app__task-field js__app-field" data-index="0" type="text" placeholder="What">
<div class="app__taks-index">1</div>
</div>
</li>
<li class="app__task">
<div class="app__taks-container">
<label for="task--2" class="app__task-label">Second task</label>
<input id="task--2" class="app__task-field js__app-field" data-index="1" type="text" placeholder="Should">
<div class="app__taks-index">2</div>
</div>
</li>
<li class="app__task">
<div class="app__taks-container">
<label for="task--3" class="app__task-label">Third task</label>
<input id="task--3" class="app__task-field js__app-field" data-index="2" type="text" placeholder="I do next?">
<div class="app__taks-index">3</div>
</div>
</li>
</ol>
</div>
</div>
<footer class="tpl-screen__cta">
<div class="tpl-wrapper">
<button class="button app__choose-task js__app-btn js__app-btn--disabled" disabled>Choose task</button>
</div>
</footer>
</section>
<!-- Instructions screen -->
<section id="instructions" class="app__instructions tpl-screen tpl-modal">
<header class="tpl-screen__intro">
<div class="tpl-wrapper">
<button class="tpl-screen__modal-close js__app-modal-close">Close instructions</button>
<h2 class="tpl-screen__title">Instructions</h2>
<div class="tpl-screen__description">
<p>Decisions are hard, but I find them even harder during vacation when I often find myself stuck between what task to do next.</p>
<p>So I made this app to help me, to unstuck myself and do something.</p>
<p>Write three tasks, and the app will randomly choose one of them.</p>
<p>Why only three? Because I think that having a limited amount of options, help ourselves to prioritize and two possibilities are easy enough to choose between them.</p>
</div>
</div>
</header>
<div class="tpl-screen___content">
<div class="tpl-wrapper"></div>
</div>
<footer class="tpl-screen__cta">
<div class="tpl-wrapper"></div>
</footer>
</section>
<!-- history screen -->
<section id="history" class="app__history tpl-screen tpl-modal js__app-history">
<header class="tpl-screen__intro">
<div class="tpl-wrapper">
<button class="tpl-screen__modal-close js__app-modal-close">Close history</button>
<h2 class="tpl-screen__title">Task history</h2>
<div class="tpl-screen__description">
<p>Your history begins on this page; here you can find every decision I made for you.</p>
<p>Also, you can clear them so no one will ever know :)</p>
</div>
</div>
</header>
<div class="tpl-screen___content">
<div class="tpl-wrapper">
<ol class="app__history-items js__app-history-items"></ol>
</div>
</div>
<footer class="tpl-screen__cta">
<div class="tpl-wrapper">
<button class="button app__delete-history js__app-delete-history"><span class="button__icon">Delete history</span></button>
</div>
</footer>
</section>
<!-- Donate screen -->
<section id="donate" class="app__donate tpl-screen tpl-modal">
<header class="tpl-screen__intro">
<div class="tpl-wrapper">
<button class="tpl-screen__modal-close js__app-modal-close">Close donate</button>
<h2 class="tpl-screen__title">Donate</h2>
<div class="tpl-screen__description">
<p>If you find this app useful, or you want to help a fellow one-eyed man, consider donating a small amount of money.</p>
<p>Then a cold beer will accompany me while coding stuff ;)</p>
<p><a href="https://paypal.me/guanaiman" class="app__donate-link js__link-ext">Donate</a></p>
</div>
</div>
</header>
<div class="tpl-screen___content">
<div class="tpl-wrapper"></div>
</div>
<footer class="tpl-screen__cta">
<div class="tpl-wrapper">
<img src="img/1925.png" class="app__donate-beer" alt="Cerveza Alhambra 1925">
</div>
</footer>
</section>
<!-- Result screen -->
<section class="tpl-result js__app-result">
<div class="tpl-wrapper">
<div class="tpl-result__task-container">
<small class="tpl-result__task-label">Your next task is...</small>
<h2 class="tpl-result__task js__app-result-task"></h2>
</div>
</div>
<button class="tpl-result__reset js__app-reset">Reset task list</button>
</section>
</main>
<nav class="tpl-menu">
<div class="tpl-wrapper">
<ul class="tpl-menu__items">
<li class="tpl-menu__item">
<a href="#instructions" class="tpl-menu__link js__menu-modal">Instructions</a>
</li>
<li class="tpl-menu__item">
<a href="#history" class="tpl-menu__link js__menu-modal">Task History</a>
</li>
<li class="tpl-menu__item">
<a href="https://github.com/spacenomads/what-should-I-do-next" class="tpl-menu__link js__link-ext">Github project</a>
</li>
<li class="tpl-menu__item">
<a href="#donate" class="tpl-menu__link js__menu-modal">Donate</a>
</li>
</ul>
<button class="tpl-menu__close js__app-menu-close">Close menu</button>
<footer class="tpl-menu__footer">
<p class="tpl-menu__author">2019 / <a href="https://spacenomads.com" class="tpl-menu__footer-link js__link-ext">Space Nomads</a> - <a href="https://github.com/spacenomads/what-should-I-do-next/blob/master/LICENSE" class="tpl-menu__footer-link js__link-ext">License</a></p>
</footer>
</div>
</nav>
<script src="js/app.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('service-worker.js', {
scope: './'
})
.then(function () {
console.log('Hell Yee-haw! 🦄')
});
}
</script>
</body>
</html>