-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstruction_creation.html
More file actions
397 lines (348 loc) · 11.4 KB
/
Copy pathinstruction_creation.html
File metadata and controls
397 lines (348 loc) · 11.4 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Étapes de création d'une maison</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
--primary: #1f6d67;
--darker: #13433f;
--primary-light: #e6f2f1;
--bg: #f5f7fb;
--card: #ffffff;
--text: #111827;
--muted: #6b7280;
--border: #e5e7eb;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg);
color: var(--text);
margin: 0;
padding: 2rem 1rem;
display: flex;
justify-content: center;
}
main {
display: flex;
gap: 2rem;
width: 100%;
max-width: 1400px;
justify-content: center;
transition: all 0.3s ease;
}
.container {
max-width: 650px;
width: 100%;
flex-shrink: 0;
}
h1 {
text-align: center;
color: var(--darker);
margin-bottom: 3rem;
font-size: 1.75rem;
}
.timeline {
display: flex;
flex-direction: column;
gap: 1.5rem;
position: relative;
}
/* Vertical line connecting the steps */
.timeline::before {
content: '';
position: absolute;
left: 24px;
top: 0;
bottom: 0;
width: 2px;
background-color: var(--border);
z-index: 0;
}
.step-card {
position: relative;
z-index: 1;
display: flex;
gap: 1.5rem;
align-items: center;
background-color: var(--card);
padding: 1.25rem 1.5rem;
border-radius: 12px;
border: 1px solid var(--border);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.step-number {
flex-shrink: 0;
width: 48px;
height: 48px;
border-radius: 50%;
background-color: var(--primary-light);
color: var(--primary);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.25rem;
border: 4px solid var(--bg);
}
.step-content {
flex-grow: 1;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
h2 {
margin: 0;
font-size: 1rem;
font-weight: 500;
line-height: 1.5;
color: var(--text);
}
button {
flex-shrink: 0;
background-color: var(--primary);
color: white;
border: none;
padding: 0.6rem 1.5rem;
border-radius: 6px;
font-weight: 600;
font-size: 0.875rem;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease;
font-family: inherit;
}
button:hover {
background-color: var(--darker);
}
button:active {
transform: translateY(1px);
}
.forms {
display: none; /* Hidden by default to center the left block */
flex-direction: column;
flex-grow: 1;
min-width: 400px;
}
#forms_block {
width: 100%;
height: 100%;
border-radius: 12px;
border: 1px solid var(--border);
background-color: var(--card);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.checkbox-wrapper-22 .switch {
display: inline-block;
height: 34px;
position: relative;
width: 60px;
}
.checkbox-wrapper-22 .switch input {
display: none;
}
.checkbox-wrapper-22 .slider {
background-color: #ccc;
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: .4s;
}
.checkbox-wrapper-22 .slider:before {
background-color: #fff;
bottom: 4px;
content: "";
height: 26px;
left: 4px;
position: absolute;
transition: .4s;
width: 26px;
}
.checkbox-wrapper-22 input:checked + .slider {
background-color: #1f6d67;
}
.checkbox-wrapper-22 input:checked + .slider:before {
transform: translateX(26px);
}
.checkbox-wrapper-22 .slider.round {
border-radius: 34px;
}
.checkbox-wrapper-22 .slider.round:before {
border-radius: 50%;
}
/* Mobile Responsiveness */
@media (max-width: 825px) {
.forms {
display: none !important; /* Force hide on mobile */
}
.check {
display: none !important; /* Hide toggle on mobile as it's not applicable */
}
}
@media (max-width: 550px) {
.step-content {
flex-direction: column;
align-items: flex-start;
}
.timeline::before {
display: none;
}
.step-card {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
padding: 1.25rem;
}
.step-number {
width: 36px;
height: 36px;
font-size: 1rem;
border: none;
}
button {
width: 100%;
}
}
</style>
<script>
// Toggle layout immediately when checkbox changes
document.addEventListener('DOMContentLoaded', () => {
const checkbox = document.getElementById("checkbox");
const formsContainer = document.getElementById("forms");
checkbox.addEventListener('change', (e) => {
const isDesktop = window.innerWidth > 825;
if (e.target.checked && isDesktop) {
formsContainer.style.display = "flex";
} else {
formsContainer.style.display = "none";
}
});
});
function openAirtable(url) {
// Corrected spelling from 'docuement' to 'document' and '.value' to '.checked'
const isChecked = document.getElementById("checkbox").checked;
const isDesktop = window.innerWidth > 825;
if (isDesktop && isChecked) {
// Hide the placeholder text
document.getElementById("text_info").style.display = "none";
const forms_block = document.getElementById("forms_block");
// Convert to embed link
const new_link = "https://airtable.com/embed/" + url.split("https://airtable.com/")[1];
console.log("Opening in iframe:", new_link);
forms_block.src = new_link;
} else {
const isMobile = /Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
if (isMobile) {
const appUrl = url
.replace('https://airtable.com/', 'airtable://')
.replace('http://airtable.com/', 'airtable://');
window.location.href = appUrl;
setTimeout(() => {
window.location.href = url;
}, 1500);
} else {
window.open(url, '_blank');
}
}
}
</script>
</head>
<body>
<main>
<div class="container">
<h1>Étapes de création d'une maison</h1>
<div class="check" style="display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center;">
<div class="checkbox-wrapper-22">
<label class="switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
</div>
<p style="margin: 0; font-size: 0.9rem; font-weight: 500;">Ouvrir les formulaires à droite</p>
</div>
<div class="timeline">
<div class="step-card">
<div class="step-number">1</div>
<div class="step-content">
<h2>Création d'une maison dans la liste (avec sa cover pic)</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/paguxCIHcWUmEVxGV/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">2</div>
<div class="step-content">
<h2>Création d'une maison</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pagwcxGKmJPxX8P2e/form')">Créer</button>
</div>
</div>
<p style="margin-left: 4rem; color: rgb(45,45,45); border-left: 3.5px solid rgb(45, 45, 45); padding-left: 1rem; border-radius: 3px; background-color: #e5e7eb; padding: 1rem;">
À partir de cette étape, il faudra lier chaque item avec la maison via le champ <strong>Link_Maison</strong>.
</p>
<div class="step-card">
<div class="step-number">3</div>
<div class="step-content">
<h2>Création des fonctionnements/équipements de la maison</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pagB4Dr4RpW2PHKrP/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">4</div>
<div class="step-content">
<h2>Création de la piscine (si la maison en possède)</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/paguyOO5i2IudgT5Y/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">5</div>
<div class="step-content">
<h2>Création du ou des propriétaires, puis les lier à sa Maison</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pagP0QXE7kBoXwnqd/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">6</div>
<div class="step-content">
<h2>Création des conditions de location, puis les lier à sa Maison</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pag28bopA2w1E2dqO/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">7</div>
<div class="step-content">
<h2>Création du Workflow Breezeway</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pagfm0qkd1jZ1IGc1/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">8</div>
<div class="step-content">
<h2>Création des Dispositions de la Maison</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pagD6R2PKr6rN4qng/form')">Créer</button>
</div>
</div>
<div class="step-card">
<div class="step-number">9</div>
<div class="step-content">
<h2>Création des Recommandations</h2>
<button onclick="openAirtable('https://airtable.com/appLWhCKR6pEGE02s/pagD6R2PKr6rN4qng/form')">Créer</button>
</div>
</div>
</div>
</div>
<div class="forms" id="forms">
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;">
<p id="text_info" style="text-align: center; color: var(--muted); margin-bottom: 2rem;">Les formulaires s'ouvriront ici.</p>
<iframe src="" frameborder="0" id="forms_block"></iframe>
<p style="padding-top: 1rem; font-style: italic; color: var(--muted); text-align: center; font-size: 0.875rem;">
Vous pouvez réappuyer sur "Créer" pour relancer un nouveau formulaire.
</p>
</div>
</div>
</main>
</body>
</html>