forked from jmstfv/rectangles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (60 loc) · 4.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Rectangles</title>
<link rel="stylesheet" href="assets/base.css">
<script src="assets/voodoo.js" defer></script>
<link rel="canonical" href="https://rectangles.app/">
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="description" content="Visualize your day as 144 rectangles, where each rectangle represents 10 minutes.">
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@jmstfv">
<meta name="twitter:image" content="https://rectangles.app/assets/rectangles.png">
<meta name="twitter:description" content="Visualize your day as 144 rectangles, where each rectangle represents 10 minutes.">
<meta name="twitter:title" content="Rectangles">
</head>
<body>
<main class="flex flex-wrap justify-around p-2">
<noscript>
Sorry pal, but this won't work without JavaScript. You are probably doing that for privacy reasons, and I do respect that. You can download this website, inspect the source code, and run it locally. Or, you can whitelist it in your browser/script blocker. I don't have any third-party trackers on this website, and the code is open-sourced, so there's not much to be worried about.
</noscript>
<section class="grid-container"></section>
<section class="text-container">
<h1 class="border-b-3 mb-0">Rectangles</h1>
<p>There are 144 rectangles.</p>
<p>Each rectangle represents 10 minutes of your day.</p>
<div class="flex flex-wrap items-center">
<div class="grid-item bg-time-passed m-1"></div>
<p>Time that has already passed today</p>
</div>
<div class="flex flex-wrap items-center">
<div class="grid-item m-1"></div>
<p>Time that you still have left today</p>
</div>
<div class="border-b-3">
<p>To put it into a perspective (hover or click):</p>
<ul>
<li class="m-1 js-hover cursor-pointer" title="30 rectangles - 5 hours" data-rectangles="30">Average psilocybin mushroom trip</li>
<li class="m-1 js-hover cursor-pointer" title="45 rectangles - 7.5 hours" data-rectangles="45">A good night's sleep for adults</li>
<li class="m-1 js-hover cursor-pointer" title="48 rectangles - 8 hours" data-rectangles="48">Average workday</li>
<li class="m-1 js-hover cursor-pointer" title="96 rectangles - 16 hours" data-rectangles="96">Intermittent fasting (16/8)</li>
</ul>
</div>
<section class="text-center p-1 mt-1">
<a href="?full_screen=true" title="Toggle full screen" class="m-1">
<svg width="30" height="30" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"/><path d="M21 3v6h-2V6l-3 4-2-2 4-3h-3V3zM3 3v6h2V6l3 4 2-2-4-3h3V3zm18 18v-6h-2v3l-3-4-2 2 4 3h-3v2zM9 21v-2H6l4-3-2-2-3 4v-3H3v6z"/></svg></a>
<a href="about.html" title="Behind-the-scenes details" class="m-1">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="30" height="30" xml:space="preserve"><path d="M256 0C114.8 0 0 114.8 0 256s114.8 256 256 256 256-114.8 256-256S397.2 0 256 0zm0 492.3c-130.3 0-236.3-106-236.3-236.3S125.7 19.7 256 19.7s236.3 106 236.3 236.3-106 236.3-236.3 236.3z"/><path d="M246.2 118.2a78.1 78.1 0 0 0-56.8 24 9.8 9.8 0 1 0 14.2 13.7 59.1 59.1 0 0 1 101.6 41c0 20.3-9.4 26.7-26.6 38.4-9 6.2-19.3 13.2-29.7 23.6-28.1 27.9-19.4 59-10.9 71.6a9.8 9.8 0 0 0 13.6 2.6c4.5-3 5.7-9.1 2.7-13.6-1.5-2.4-14.5-23.9 8.4-46.7 9.2-9 18.7-15.5 27-21.2 18.1-12.3 35.2-24 35.2-54.7a78.9 78.9 0 0 0-78.7-78.7zM245.1 364.3a9.8 9.8 0 0 0-9.8 9.9v9.8a9.8 9.8 0 0 0 19.7 0v-9.8c0-5.5-4.4-9.9-9.9-9.9z"/></svg>
</a>
<a href="https://twitter.com/jmstfv" title="That's me!" target="_blank" rel="noopener" class="m-1">
<svg width="30" height="30" xmlns="http://www.w3.org/2000/svg"><path d="M29.2 8a11.2 11.2 0 0 1-3.1.7 5.8 5.8 0 0 0 2.3-2.9A11.1 11.1 0 0 1 25 7.1a5 5 0 0 0-3.8-1.7 5.3 5.3 0 0 0-5.5 5.3 3.7 3.7 0 0 0 .2 1.2A14.5 14.5 0 0 1 5 6.5 4.2 4.2 0 0 0 4.2 9a5.5 5.5 0 0 0 2.4 4.5 7.3 7.3 0 0 1-2.4-.8v.2a5 5 0 0 0 4.1 5.2 5 5 0 0 1-1.4.1 3 3 0 0 1-1.1-.1 5.3 5.3 0 0 0 5 3.7A11 11 0 0 1 4 24a4.5 4.5 0 0 1-1.2-.1 15.8 15.8 0 0 0 9.4 2.6c9.9 0 14.4-8.2 14.4-15.2v-.7a10.4 10.4 0 0 0 2.6-2.8Z" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/></svg>
</a>
</section>
</section>
</main>
</body>
</html>