-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
247 lines (237 loc) · 7.7 KB
/
index.html
File metadata and controls
247 lines (237 loc) · 7.7 KB
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Futuristic Space Calendar</title>
<link
id="topcoat-stylesheet"
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/topcoat/0.8.0/css/topcoat-mobile-dark.min.css"
/>
<link rel="stylesheet" href="./css/style.css" />
<script src="https://d3js.org/d3.v7.min.js"></script>
</head>
<body
data-bs-theme="dark"
data-bs-core="modern"
class="subpixel-antialiased text-body"
>
<corp-calendar
data-augmented-ui="tl-clip br-clip both"
class="p-5"
></corp-calendar>
<!-- Calendar UI Templates -->
<!-- Encompassing UI Template -->
<template id="calendar-ui-template">
<section class="calendar-grid-layout">
<div class="calendar-fixed-section">
<slot name="calendar"></slot>
</div>
<div class="calendar-fixed-section">
<slot name="event-panel"></slot>
</div>
<div class="calendar-wide-section">
<slot name="event-list"></slot>
</div>
</section>
</template>
<!-- Calendar Template -->
<template id="calendar-template">
<link href="./css/calendar.css" rel="stylesheet" />
<section
class="calendar card rounded-0 p-4"
slot="calendar"
data-augmented-ui="tl-clip br-clip none"
>
<header
class="calendar-header card-header d-flex justify-content-between align-items-center"
data-augmented-ui="br-clip tl-clip inlay"
>
<h1
id="month-title"
class="text-uppercase text-center flex-grow-1"
></h1>
</header>
<table
class="calendar-table table table-striped table-striped-columns"
data-augmented-ui="tl-clip none"
>
<thead class="p-1" data-augmented-ui="tl-clip inlay">
<tr class="p-1 bg-gradient bg-info">
<th
scope="col"
class="p-1 bg-gradient bg-primary"
data-augmented-ui="tl-clip inlay"
>
Sun
</th>
<th
scope="col"
class="p-1 bg-gradient bg-primary-subtle"
data-augmented-ui="tl-clip inlay"
>
Mon
</th>
<th
scope="col"
class="p-1 bg-gradient bg-primary-subtle"
data-augmented-ui="tl-clip inlay"
>
Tue
</th>
<th
scope="col"
class="p-1 bg-gradient bg-primary-subtle"
data-augmented-ui="tl-clip inlay"
>
Wed
</th>
<th
scope="col"
class="p-1 bg-gradient bg-primary-subtle"
data-augmented-ui="tl-clip inlay"
>
Thu
</th>
<th
scope="col"
class="p-1 bg-gradient bg-primary-subtle"
data-augmented-ui="tl-clip inlay"
>
Fri
</th>
<th
scope="col"
class="p-1 bg-gradient bg-primary"
data-augmented-ui="tl-clip inlay"
>
Sat
</th>
</tr>
</thead>
<tbody id="calendar-body"></tbody>
</table>
<footer class="card-footer text-center">
<div class="btn-group">
<button
class="btn topcoat-icon-button nav-button prev ps-5"
data-augmented-ui="tl-clip inlay"
>
◁
</button>
<button
class="btn topcoat-icon-button nav-button next pe-5"
data-augmented-ui="br-clip inlay"
>
▷
</button>
</div>
</footer>
</section>
</template>
<!-- Calendar Row Template -->
<template id="calendar-row-template">
<tr class="calendar-row bg-primary bg-gradient bg-opacity-10"></tr>
</template>
<!-- Calendar Cell Template -->
<template id="calendar-cell-template">
<td class="calendar-day" data-augmented-ui="tr-clip bl-clip inlay">
<span class="day-number"></span>
<time datetime=""></time>
</td>
</template>
<!-- Event Panel Template -->
<template id="event-panel-template">
<section class="card event-panel p-4 d-none" slot="event-panel">
<header
class="card-header mb-3"
data-augmented-ui="tl-clip br-clip inlay"
>
<hgroup
class="text-center d-flex justify-content-between align-items-center"
>
<h3>Add Event</h3>
<button id="closeEventPanel" class="btn topcoat-button">❌</button>
</hgroup>
</header>
<form id="addEventForm" class="bg-primary-subtle p-2" data-augmented-ui="tl-clip br-clip inlay">
<div class="row">
<div class="mb-3 form-floating col-6">
<input
type="text"
id="newEventTitle"
class="form-control topcoat-text-input"
placeholder="Title"
required
data-augmented-ui="tl-clip br-clip both"
/>
<label for="newEventTitle">Title</label>
</div>
<div class="mb-3 form-floating col-6">
<input
type="time"
id="newEventTime"
class="form-control topcoat-text-input"
placeholder="00:00 00"
value="00:00 00"
data-augmented-ui="tl-clip br-clip inlay"
/>
<label for="newEventTime">Time</label>
</div>
</div>
<div class="mb-3 form-floating">
<textarea
id="newEventInput"
class="form-control topcoat-textarea"
style="height: 12em"
placeholder="Description"
data-augmented-ui="tl-clip br-clip inlay"
></textarea>
<label for="newEventInput">Description</label>
</div>
<div class="text-center">
<button
id="addEventButton"
type="button"
class="btn btn-success topcoat-button px-5"
data-augmented-ui="tl-clip br-clip inlay"
>
➕ Add
</button>
</div>
</form>
</section>
</template>
<!-- Event List Template -->
<template id="event-list-template">
<section
class="card full-width-event-list p-3 bg-body"
slot="event-list"
data-augmented-ui="tl-clip br-clip inlay"
>
<header class="mb-2">
<h2 class="mb-1">
Events for <time id="selectedDate" datetime=""></time>
</h2>
</header>
<div id="event-gantt" class="event-gantt" style="position: relative; height: 50px; margin-bottom: 1rem;"></div>
<ul id="eventList" class="list-unstyled topcoat-list__container"></ul>
</section>
</template>
<!-- Event List Item Template -->
<template id="event-list-item-template">
<li
class="event-item d-flex justify-content-between align-items-center topcoat-list__item"
>
<details class="event-title">
<summary class="event-text"></summary>
</details>
<button class="btn btn-sm topcoat-icon-button--quiet remove-event">
❌
</button>
</li>
</template>
<script src="./js/calendar.js"></script>
</body>
</html>