forked from shipshapecode/shepherd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
444 lines (396 loc) · 14.3 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
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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Shepherd — Guide your users through a tour of your app.</title>
<meta
name="description"
content="Guide your users through a tour of your app."
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no"
/>
<!--favicons-->
<link
rel="apple-touch-icon"
sizes="180x180"
href="landing/assets/favicons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="landing/assets/favicons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="landing/assets/favicons/favicon-16x16.png"
/>
<link rel="manifest" href="landing/assets/favicons/site.webmanifest" />
<!-- Welcome docs styles -->
<link rel="stylesheet" href="dist/css/shepherd.css" />
<link rel="stylesheet" href="landing/css/ads.css" />
<link rel="stylesheet" href="landing/css/fonts.css" />
<link rel="stylesheet" href="landing/css/prism.css" />
<link rel="stylesheet" href="landing/css/welcome.css" />
<script src="landing/js/svg-inject.min.js"></script>
</head>
<body class="bg-white font-body p-4 text-navy">
<header class="flex justify-center mt-4 w-full">
<img
class="shepherd-logo absolute ml-2"
src="landing/assets/img/shepherd-head.svg"
onload="SVGInject(this)"
/>
<div
class="bg-grey-light flex flex-col font-heading max-w-8xl justify-center items-center w-full"
>
<nav
class="flex justify-center p-4 mt-40 text-xl w-full lg:justify-between lg:mt-0"
>
<div class="flex lg:p-12">
<a class="pr-6 uppercase hover:text-navy-light lg:pr-10" href="/">
Demo
</a>
<a
class="pr-6 uppercase lg:pr-0 hover:text-navy-light lg:pr-10"
href="https://shepherdjs.dev/docs/"
>
Docs
</a>
</div>
<div class="flex lg:p-12">
<a
class="pr-6 uppercase hover:text-navy-light lg:pr-10"
href="https://github.com/shipshapecode/shepherd"
>
GitHub
</a>
<a
class="uppercase hover:text-navy-light"
href="https://shipshape.io/contact/"
>
Contact
</a>
</div>
</nav>
<img
class="hero-welcome p-4 w-full lg:mt-4 lg:p-0 lg:w-auto"
src="landing/assets/img/shepherd-header.svg"
alt="Shepherd"
onload="SVGInject(this)"
/>
<h2 class="font-body p-2 text-xl">
Guide your users through a tour of your app.
</h2>
<div class="flex justify-center w-full">
<div class="flex flex-wrap max-w-6xl p-4 w-full lg:flex-nowrap">
<div class="m-4 relative w-full lg:w-1/3">
<div class="border-4 border-navy w-full">
<img
class="absolute a11y-icon z-20"
src="landing/assets/img/accessibility.svg"
alt=""
role="presentation"
onload="SVGInject(this)"
/>
<div
class="bg-grey-light border-b-4 border-navy h-40 relative w-full z-10"
></div>
<div class="bg-white h-72 p-6 relative z-10">
<h3 class="p-2 text-2xl text-center uppercase w-full">
Accessibility
</h3>
<p class="font-body p-2 text-xl">
Shepherd has full keyboard navigation support, focus
trapping, and a11y compliance via aria attributes.
</p>
</div>
<div
class="absolute bg-navy h-full -ml-3 mt-3 top-0 w-full z-0"
></div>
</div>
</div>
<div class="m-4 relative w-full lg:w-1/3">
<div class="border-4 border-navy w-full">
<img
class="absolute customizable-icon z-20"
src="landing/assets/img/customizable.svg"
alt=""
role="presentation"
onload="SVGInject(this)"
/>
<div
class="bg-grey-light border-b-4 border-navy h-40 relative w-full z-10"
></div>
<div class="bg-white h-72 p-6 relative z-10">
<h3 class="p-2 text-2xl text-center uppercase w-full">
Highly Customizable
</h3>
<p class="font-body p-2 text-xl">
Shepherd's styles are kept minimal, allowing you to easily
customize the look and feel, but still give you enough to
drop in and be ready to go quickly.
</p>
</div>
<div
class="absolute bg-navy h-full -ml-3 mt-3 top-0 w-full z-0"
></div>
</div>
</div>
<div class="m-4 relative w-full lg:w-1/3">
<div class="border-4 border-navy w-full">
<img
class="absolute framework-icon z-20"
src="landing/assets/img/framework.svg"
alt=""
role="presentation"
onload="SVGInject(this)"
/>
<div
class="bg-grey-light border-b-4 border-navy h-40 relative w-full z-10"
></div>
<div class="bg-white h-72 p-6 relative z-10">
<h3 class="p-2 text-2xl text-center uppercase w-full">
Framework Ready
</h3>
<p class="font-body p-2 text-xl">
Shepherd is ready to drop into your application using React,
Ember, Angular, Vue.js, ES Modules, or plain Javascript!
</p>
</div>
<div
class="absolute bg-navy h-full -ml-3 mt-3 top-0 w-full z-0"
></div>
</div>
</div>
</div>
</div>
</div>
</header>
<main>
<div class="font-heading mt-8 text-6xl text-center uppercase w-full">
<img
class="inline p-4 w-full lg:mt-4 lg:p-0 lg:w-auto"
src="landing/assets/img/demo.svg"
alt="Demo"
onload="SVGInject(this)"
/>
</div>
<div class="flex justify-center w-full">
<div class="max-w-3xl text-center w-full">
<div class="hero-including mt-8">
<h3 class="demo-heading font-heading text-2xl uppercase">
01. How to Include
</h3>
<script
type="text/plain"
class="language-markup"
id="hero-including-code"
>
<link rel="stylesheet" href="shepherd.js/dist/css/shepherd.css"/>
<script src="shepherd.js/dist/js/shepherd.min.js"></script>
</script>
</div>
<div class="hero-example mt-8">
<h3 class="demo-heading font-heading text-2xl uppercase">
02. Example
</h3>
<pre id="hero-example-code">
<code class="language-javascript">
const tour = new Shepherd.Tour({
defaultStepOptions: {
cancelIcon: {
enabled: true
},
classes: 'class-1 class-2',
scrollTo: { behavior: 'smooth', block: 'center' }
}
});
tour.addStep({
title: 'Creating a Shepherd Tour',
text: `Creating a Shepherd tour is easy. too!\
Just create a \`Tour\` instance, and add as many steps as you want.`,
attachTo: {
element: '.hero-example',
on: 'bottom'
},
buttons: [
{
action() {
return this.back();
},
classes: 'shepherd-button-secondary',
text: 'Back'
},
{
action() {
return this.next();
},
text: 'Next'
}
],
id: 'creating'
});
tour.start();
</code>
</pre>
</div>
<div class="hero-followup font-heading mb-12 mt-12 lg:mb-24 lg:mt-24">
<div class="bg-navy inline-block mb-4 w-56 lg:mr-4">
<a
class="button star bg-white border-2 border-navy p-6 text-navy whitespace-nowrap w-full"
href="https://github.com/shipshapecode/shepherd"
>
★ on Github
</a>
</div>
<div class="bg-navy inline-block mb-4 w-56">
<a
class="button bg-white border-2 border-navy p-6 text-navy whitespace-nowrap w-full"
href="https://shepherdjs.dev/docs/"
>
View Docs
</a>
</div>
</div>
<div class="mb-12 mt-8">
<h3 class="font-heading text-2xl uppercase">
Brands that use Shepherd
</h3>
<div class="flex flex-wrap justify-center w-full">
<div
class="flex items-center justify-center m-4 h-32 relative w-32 md:h-48 md:w-48 lg:h-56 lg:w-56"
>
<div
class="bg-white border-4 border-navy flex items-center justify-center h-full p-6 w-full z-10 md:p-12"
>
<img
class="h-auto w-full"
src="landing/assets/users/ally.svg"
alt=""
role="presentation"
onload="SVGInject(this)"
/>
</div>
<div
class="absolute bg-navy h-full -ml-3 mt-3 top-0 w-full z-0"
></div>
</div>
<div
class="flex items-center justify-center m-4 h-32 relative w-32 md:h-48 md:w-48 lg:h-56 lg:w-56"
>
<div
class="bg-white border-4 border-navy flex items-center justify-center h-full p-4 w-full z-10 md:p-8"
>
<img
class="h-auto w-full"
src="landing/assets/users/google.svg"
alt=""
role="presentation"
onload="SVGInject(this)"
/>
</div>
<div
class="absolute bg-navy h-full -ml-3 mt-3 top-0 w-full z-0"
></div>
</div>
<div
class="flex items-center justify-center m-4 h-32 relative w-32 md:h-48 md:w-48 lg:h-56 lg:w-56"
>
<div
class="bg-white border-4 border-navy flex items-center justify-center h-full p-4 w-full z-10 md:p-8"
>
<img
class="h-auto w-full"
src="landing/assets/users/bonsai.png"
alt=""
role="presentation"
/>
</div>
<div
class="absolute bg-navy h-full -ml-3 mt-3 top-0 w-full z-0"
></div>
</div>
</div>
</div>
<div class="flex justify-center">
<script
async
type="text/javascript"
src="//cdn.carbonads.com/carbon.js?serve=CEAIPKQJ&placement=shepherdjsdev"
id="_carbonads_js"
></script>
</div>
</div>
</div>
</main>
<footer class="flex justify-center mt-10 w-full">
<img
class="footer-logo absolute w-48"
src="landing/assets/img/shepherd-head-wink.svg"
alt=""
role="presentation"
onload="SVGInject(this)"
/>
<div
class="bg-grey border-4 border-navy flex flex-wrap items-center justify-center md:justify-between max-w-8xl p-8 pt-20 w-full md:pt-8"
>
<div
class="flex items-center justify-center w-full md:justify-between md:w-auto"
>
<img
class="inline mr-2 w-8"
src="landing/assets/img/ship-shape-logo.svg"
alt="Ship Shape Logo"
onload="SVGInject(this)"
/>
<span class="font-heading text-xl uppercase">
Library by
<a
class="underline hover:text-navy-light"
href="https://shipshape.io"
>Ship Shape</a
>
</span>
</div>
<div class="flex items-center">
<a href="https://github.com/shipshapecode">
<img
class="footer-icon mr-4 w-6"
src="landing/assets/img/github.svg"
alt="GitHub Logo"
onload="SVGInject(this)"
/>
</a>
<a href="https://twitter.com/shipshapecode">
<img
class="footer-icon mr-4 w-6"
src="landing/assets/img/twitter.svg"
alt="Twitter Logo"
onload="SVGInject(this)"
/>
</a>
<a href="https://www.linkedin.com/company/ship-shape/">
<img
class="footer-icon mr-4 w-6"
src="landing/assets/img/linkedin.svg"
alt="LinkedIn Logo"
onload="SVGInject(this)"
/>
</a>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/[email protected]/webcomponents-bundle.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=Object.assign%2CSymbol%2CElement.prototype.matches"></script>
<!-- Shepherd -->
<script src="dist/js/shepherd.js"></script>
<!-- Welcome page -->
<script src="landing/js/prism.js"></script>
<script src="landing/js/welcome.js"></script>
</body>
</html>