generated from johnfmorton/vite-module-builder-w-ghpages-npm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (43 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Module Demo Page</title>
<!-- Script tag for demo page purposes in demo-page-assets/demo.ts -->
<script type="module" src="demo-page-assets/demo.ts"></script>
</head>
<body>
<div class="bg-slate-50 py-24 sm:py-32 min-h-screen">
<div class="mx-auto max-w-screen-lg p-6 lg:p-8 bg-gradient-to-br from-white to-slate-200 rounded shadow-2xl">
<div class="mx-auto lg:mx-0">
<h1 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl mb-6">Accessible Card Web Component Demo Page</h1>
<p class="mb-4 text-lg leading-8 text-gray-600">This is a demo page for the module builder workflow found at <a href="https://github.com/johnfmorton/accessible-card-web-component" class="underline text-blue-600">https://github.com/johnfmorton/accessible-card-web-component</a>. The demo page imports a typescript file during development. It comese preconfigured with <a href="https://tailwindcss.com/" class="underline text-blue-600">TailwindCSS</a>.</p>
<p class="mb-4 text-lg leading-8 text-gray-600">
The typescript file is compiled to javascript, a type definitions file, and a css file when hosted in a GitHub Pages page during production.
</p>
<p class="mb-4 text-lg leading-8 text-gray-600">
Below you can see if the module executed correctly.
</p>
<ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8">
<li>
<accessible-card img-scr="https://via.placeholder.com/640x360" img-alt="Placeholder image" title-tag-type="h3" cta-text="Learn more" cta-url="https://example.com/learn-more" support-text="This is support text.">
This is headline <span style="color:red;">1</span>
</accessible-card>
</li>
<li>
<accessible-card img-scr="https://via.placeholder.com/640x360" img-alt="Placeholder image" title-tag-type="h3" cta-text="Learn more" cta-url="https://example.com/learn-more" support-text="This is support text.">
This is my headline <span style="color:red;">here</span>
</accessible-card>
</li>
<li>
<accessible-card img-scr="https://via.placeholder.com/640x360" img-alt="Placeholder image" title-tag-type="h3" cta-text="Learn more" cta-url="" support-text="This is support text which is really long and may go over several lines.">
This is my headline <span style="color:red;">here</span>
</accessible-card>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>