-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (71 loc) · 1.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://glitch.com/favicon.ico" />
<link
rel="stylesheet"
href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css"
/>
<script src="path/to/dayjs/dayjs.min.js"></script>
<script src="/script.js" defer></script>
<style>
.mealImage {
width: 200px;
object-fit: cover;
height: 200px;
padding: 2px;
}
.hourLabel {
position: absolute;
bottom: -5rem;
right: 1rem;
background-color: white;
padding: 0.025rem 0.25rem;
border-radius: 10px;
color: black;
}
@media only screen and (max-width: 767px) {
.mealImage {
width: 50%;
object-fit: cover;
height: 200px;
padding: 2px;
}
}
@media print {
@page {
size: a4 landscape;
margin: 0mm;
}
#mainPage {
display: none;
}
}
</style>
</head>
<body>
<main id="mainPage" class="container">
<h1>Meal week review 👏👏</h1>
<p>How does this work:</p>
<ul>
<li>You upload pictures of the meals for the week.</li>
<li>The page generates an overview of your meals.</li>
<li>You should print it to PDF!</li>
</ul>
<input
type="file"
multiple
id="images"
name="images"
accept="image/png, image/jpeg"
/>
<button id="generateButton" class="contrast">Generate</button>
</main>
<main id="sumaryPage" class="container" style="display: none">
<h1 id="weekTitle">Week</h1>
<div id="imagePreviewContainer"></div>
</main>
</body>
</html>