tecitheme 0.1.10 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Banner.svelte +1 -1
- package/components/Card.svelte +1 -1
- package/components/Figure.svelte +3 -3
- package/components/Footer.svelte +2 -2
- package/components/Header.svelte +35 -45
- package/components/MediaFeature.svelte +1 -1
- package/get-content.js +3 -3
- package/layouts/blocks.svelte +1 -1
- package/package.json +26 -24
- package/req_utils.js +1 -1
- package/site_config.json +11 -0
package/components/Banner.svelte
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<div class="max-w-7xl mx-auto py-3 px-3 sm:px-6 lg:px-8">
|
|
20
20
|
<div class="flex justify-between flex-wrap">
|
|
21
21
|
<div class="h-10 w-0 flex-1 flex items-center order-1">
|
|
22
|
-
<span class="flex p-
|
|
22
|
+
<span class="flex p-1">
|
|
23
23
|
<!-- Heroicon name: outline/speakerphone -->
|
|
24
24
|
<svg class="h-6 w-6 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
|
|
25
25
|
<path stroke-linecap="round" stroke-linejoin="round" d="M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z" />
|
package/components/Card.svelte
CHANGED
package/components/Figure.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { dev } from '$app/
|
|
2
|
+
import { dev } from '$app/environment';
|
|
3
3
|
|
|
4
4
|
export let image;
|
|
5
5
|
export let title;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
{#if image}
|
|
31
31
|
<section class="flex justify-center not-prose mb-8">
|
|
32
32
|
<figure class="bg-white w-auto mx-auto shadow-lg border border-slate-100 p-2">
|
|
33
|
-
<a href={figureLink}>
|
|
34
|
-
<img class="w-
|
|
33
|
+
<a class="w-full bg-slate-200 inline-block p-1" href={figureLink}>
|
|
34
|
+
<img class="w-auto mx-auto" src="{figureImage}" alt={title} title={title}>
|
|
35
35
|
</a>
|
|
36
36
|
{#if caption}
|
|
37
37
|
<figcaption class="text-center p-2">{@html caption}</figcaption>
|
package/components/Footer.svelte
CHANGED
package/components/Header.svelte
CHANGED
|
@@ -32,13 +32,8 @@
|
|
|
32
32
|
<svelte:window on:keyup="{handleEscape}" />
|
|
33
33
|
|
|
34
34
|
<header class="relative bg-white">
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
aria-hidden="true"
|
|
38
|
-
></div>
|
|
39
|
-
<div
|
|
40
|
-
class="relative mx-auto flex max-w-7xl items-center justify-between px-4 py-5 sm:px-6 sm:py-4 md:justify-start md:space-x-6 lg:space-x-10 lg:px-8"
|
|
41
|
-
>
|
|
35
|
+
<div aria-hidden="true" class="pointer-events-none absolute inset-0 z-30 shadow"></div>
|
|
36
|
+
<div class="relative mx-auto flex max-w-7xl items-center justify-between px-4 py-5 sm:px-6 sm:py-4 md:justify-start md:space-x-6 lg:space-x-10 lg:px-8">
|
|
42
37
|
<!-- Nav Icon Linked to WWW Homepage -->
|
|
43
38
|
<div class="flex-shrink-0">
|
|
44
39
|
<a href="https://www.thunderheadeng.com" class="flex">
|
|
@@ -52,18 +47,14 @@
|
|
|
52
47
|
<nav class="flex md:space-x-6 lg:space-x-10">
|
|
53
48
|
<!-- Products -->
|
|
54
49
|
<div id="products">
|
|
55
|
-
<button
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
openMenu == 'products'
|
|
59
|
-
? (openMenu = '')
|
|
60
|
-
: (openMenu = 'products')}"
|
|
61
|
-
class="group inline-flex items-center bg-white text-base font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-teci-blue-light focus:ring-offset-2"
|
|
50
|
+
<button type="button"
|
|
51
|
+
on:click={() => (openMenu == 'products')?(openMenu = ''):(openMenu = 'products')}
|
|
52
|
+
class="text-left group inline-flex items-center bg-white text-base font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-teci-blue-light focus:ring-offset-2"
|
|
62
53
|
aria-expanded="{openMenu == 'products'}"
|
|
63
54
|
>
|
|
64
55
|
<span class:text-gray-900="{openMenu == 'products'}">Products</span>
|
|
65
56
|
<svg
|
|
66
|
-
class="ml-2 h-5 w-5 group-hover:text-gray-900 {openMenu
|
|
57
|
+
class="ml-2 h-5 w-5 group-hover:text-gray-900 {openMenu ==
|
|
67
58
|
'products'
|
|
68
59
|
? 'rotate-180 text-gray-900'
|
|
69
60
|
: 'text-gray-400'}"
|
|
@@ -82,14 +73,14 @@
|
|
|
82
73
|
<!-- Flyout menu -->
|
|
83
74
|
{#if openMenu == 'products'}
|
|
84
75
|
<div
|
|
85
|
-
class="absolute inset-x-0 top-full z-10 transform bg-white shadow-lg"
|
|
76
|
+
class="text-left absolute inset-x-0 top-full z-10 transform bg-white shadow-lg"
|
|
86
77
|
use:clickOutside
|
|
87
78
|
on:outclick="{() => (openMenu = '')}"
|
|
88
79
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
89
80
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
90
81
|
>
|
|
91
|
-
<
|
|
92
|
-
class="mx-auto grid max-w-7xl gap-y-8 px-4 py-8 sm:grid-cols-2 sm:gap-8 sm:px-6 lg:grid-cols-3 lg:px-8"
|
|
82
|
+
<button on:click={() => (openMenu = '')}
|
|
83
|
+
class="text-left mx-auto grid max-w-7xl gap-y-8 px-4 py-8 sm:grid-cols-2 sm:gap-8 sm:px-6 lg:grid-cols-3 lg:px-8"
|
|
93
84
|
>
|
|
94
85
|
<a
|
|
95
86
|
href="https://www.thunderheadeng.com/pyrosim/"
|
|
@@ -179,12 +170,12 @@
|
|
|
179
170
|
</div>
|
|
180
171
|
</div>
|
|
181
172
|
</a>
|
|
182
|
-
</
|
|
173
|
+
</button>
|
|
183
174
|
|
|
184
175
|
<!-- Action Buttons -->
|
|
185
|
-
<div class="relative bg-gray-50">
|
|
186
|
-
<
|
|
187
|
-
class="
|
|
176
|
+
<div class="relative bg-gray-50 text-left">
|
|
177
|
+
<button on:click="{() => (openMenu = '')}"
|
|
178
|
+
class="max-w-7xl space-y-6 px-4 py-5 sm:flex sm:space-y-0 sm:space-x-10 sm:px-6 lg:px-8"
|
|
188
179
|
>
|
|
189
180
|
<div class="flow-root">
|
|
190
181
|
<a
|
|
@@ -254,7 +245,7 @@
|
|
|
254
245
|
<span class="ml-3">Contact Sales</span>
|
|
255
246
|
</a>
|
|
256
247
|
</div>
|
|
257
|
-
</
|
|
248
|
+
</button>
|
|
258
249
|
</div>
|
|
259
250
|
</div>
|
|
260
251
|
{/if}
|
|
@@ -289,14 +280,14 @@
|
|
|
289
280
|
|
|
290
281
|
{#if openMenu == 'support'}
|
|
291
282
|
<div
|
|
292
|
-
class="absolute left-1/2 z-40 mt-3 w-screen max-w-md -translate-x-1/2 transform overflow-hidden px-2 shadow-lg ring-1 ring-black ring-opacity-5 sm:px-0"
|
|
283
|
+
class="text-left absolute left-1/2 z-40 mt-3 w-screen max-w-md -translate-x-1/2 transform overflow-hidden px-2 shadow-lg ring-1 ring-black ring-opacity-5 sm:px-0"
|
|
293
284
|
use:clickOutside
|
|
294
285
|
on:outclick="{() => (openMenu = '')}"
|
|
295
286
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
296
287
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
297
288
|
>
|
|
298
|
-
<
|
|
299
|
-
class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
289
|
+
<button on:click="{() => (openMenu = '')}"
|
|
290
|
+
class="text-left w-full relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
300
291
|
>
|
|
301
292
|
<a
|
|
302
293
|
href="https://support.thunderheadeng.com/docs/"
|
|
@@ -405,9 +396,9 @@
|
|
|
405
396
|
</p>
|
|
406
397
|
</div>
|
|
407
398
|
</a>
|
|
408
|
-
</
|
|
409
|
-
<
|
|
410
|
-
class="space-y-6 bg-gray-50 px-5 py-5 sm:flex sm:space-y-0 sm:space-x-10 sm:px-8"
|
|
399
|
+
</button>
|
|
400
|
+
<button on:click="{() => (openMenu = '')}"
|
|
401
|
+
class="w-full space-y-6 bg-gray-50 px-5 py-5 sm:flex sm:space-y-0 sm:space-x-10 sm:px-8"
|
|
411
402
|
>
|
|
412
403
|
<div class="flow-root">
|
|
413
404
|
<a
|
|
@@ -455,7 +446,7 @@
|
|
|
455
446
|
<span class="ml-3">Contact Support</span>
|
|
456
447
|
</a>
|
|
457
448
|
</div>
|
|
458
|
-
</
|
|
449
|
+
</button>
|
|
459
450
|
</div>
|
|
460
451
|
{/if}
|
|
461
452
|
</div>
|
|
@@ -464,8 +455,7 @@
|
|
|
464
455
|
<div id="events" class="relative">
|
|
465
456
|
<button
|
|
466
457
|
type="button"
|
|
467
|
-
on:click="{() =>
|
|
468
|
-
openMenu == 'events' ? (openMenu = '') : (openMenu = 'events')}"
|
|
458
|
+
on:click="{() => openMenu == 'events' ? (openMenu = '') : (openMenu = 'events')}"
|
|
469
459
|
class="group inline-flex items-center bg-white text-base font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-teci-blue-light focus:ring-offset-2"
|
|
470
460
|
aria-expanded="{openMenu == 'events'}"
|
|
471
461
|
>
|
|
@@ -495,8 +485,8 @@
|
|
|
495
485
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
496
486
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
497
487
|
>
|
|
498
|
-
<
|
|
499
|
-
class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
488
|
+
<button on:click="{() => (openMenu = '')}"
|
|
489
|
+
class="relative w-full text-left grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
500
490
|
>
|
|
501
491
|
<a
|
|
502
492
|
href="https://www.thunderheadeng.com/training/"
|
|
@@ -575,9 +565,9 @@
|
|
|
575
565
|
</p>
|
|
576
566
|
</div>
|
|
577
567
|
</a>
|
|
578
|
-
</
|
|
579
|
-
<
|
|
580
|
-
class="space-y-6 bg-gray-50 px-5 py-5 sm:flex sm:space-y-0 sm:space-x-10 sm:px-8"
|
|
568
|
+
</button>
|
|
569
|
+
<button on:click="{() => (openMenu = '')}"
|
|
570
|
+
class="w-full text-left space-y-6 bg-gray-50 px-5 py-5 sm:flex sm:space-y-0 sm:space-x-10 sm:px-8"
|
|
581
571
|
>
|
|
582
572
|
<div class="flow-root">
|
|
583
573
|
<a
|
|
@@ -624,7 +614,7 @@
|
|
|
624
614
|
<span class="ml-3">Contact Training</span>
|
|
625
615
|
</a>
|
|
626
616
|
</div>
|
|
627
|
-
</
|
|
617
|
+
</button>
|
|
628
618
|
</div>
|
|
629
619
|
{/if}
|
|
630
620
|
</div>
|
|
@@ -664,8 +654,8 @@
|
|
|
664
654
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
665
655
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
666
656
|
>
|
|
667
|
-
<
|
|
668
|
-
class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
657
|
+
<button on:click="{() => (openMenu = '')}"
|
|
658
|
+
class="w-full text-left relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
669
659
|
>
|
|
670
660
|
<a
|
|
671
661
|
href="https://www.thunderheadeng.com/about/"
|
|
@@ -770,7 +760,7 @@
|
|
|
770
760
|
</p>
|
|
771
761
|
</div>
|
|
772
762
|
</a>
|
|
773
|
-
</
|
|
763
|
+
</button>
|
|
774
764
|
</div>
|
|
775
765
|
{/if}
|
|
776
766
|
</div>
|
|
@@ -935,7 +925,7 @@
|
|
|
935
925
|
</svg>
|
|
936
926
|
</button>
|
|
937
927
|
</div>
|
|
938
|
-
<
|
|
928
|
+
<button on:click="{() => (openMenu = '')}" class="mt-6 sm:mt-8 w-full">
|
|
939
929
|
<nav>
|
|
940
930
|
<div class="grid gap-7 sm:grid-cols-2 sm:gap-y-8 sm:gap-x-4">
|
|
941
931
|
<a href="/" class="-m-3 flex items-center p-3 hover:bg-gray-50">
|
|
@@ -1066,9 +1056,9 @@
|
|
|
1066
1056
|
</a>
|
|
1067
1057
|
</div>
|
|
1068
1058
|
</nav>
|
|
1069
|
-
</
|
|
1059
|
+
</button>
|
|
1070
1060
|
</div>
|
|
1071
|
-
<
|
|
1061
|
+
<button on:click="{() => (openMenu = '')}" class="py-6 px-5 w-full text-left">
|
|
1072
1062
|
<div class="grid grid-cols-2 gap-4">
|
|
1073
1063
|
<div class="flow-root">
|
|
1074
1064
|
<a
|
|
@@ -1202,7 +1192,7 @@
|
|
|
1202
1192
|
</a>
|
|
1203
1193
|
</div>
|
|
1204
1194
|
</div>
|
|
1205
|
-
</
|
|
1195
|
+
</button>
|
|
1206
1196
|
</div>
|
|
1207
1197
|
{/if}
|
|
1208
1198
|
</header>
|
package/get-content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// get-content.js
|
|
2
2
|
// HTML parser from https://github.com/html-to-text/node-html-to-text
|
|
3
3
|
import { convert } from "html-to-text"
|
|
4
|
-
import { dev } from "$app/
|
|
4
|
+
import { dev } from "$app/environment";
|
|
5
5
|
|
|
6
6
|
export async function getContent (content) {
|
|
7
7
|
let indexData = []
|
|
@@ -11,10 +11,10 @@ export async function getContent (content) {
|
|
|
11
11
|
// Use 'content' variable to determine files to import.
|
|
12
12
|
switch (content) {
|
|
13
13
|
case "news":
|
|
14
|
-
iterableContentFiles = Object.entries(import.meta.glob("/src/routes/news/*(!(
|
|
14
|
+
iterableContentFiles = Object.entries(import.meta.glob("/src/routes/news/*(!(+page)).md"));
|
|
15
15
|
break;
|
|
16
16
|
default:
|
|
17
|
-
iterableContentFiles = Object.entries(import.meta.glob("/src/routes/**/*(!(
|
|
17
|
+
iterableContentFiles = Object.entries(import.meta.glob("/src/routes/**/*(!(+page)).md"));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const allContent = await Promise.all(
|
package/layouts/blocks.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tecitheme",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"svelte": true,
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@jsdevtools/rehype-toc": "^3.0.2",
|
|
7
|
-
"@sveltejs/adapter-netlify": "1.0.0-next.
|
|
8
|
-
"@sveltejs/kit": "1.0.0-next.
|
|
9
|
-
"@
|
|
10
|
-
"@tailwindcss/
|
|
7
|
+
"@sveltejs/adapter-netlify": "1.0.0-next.83",
|
|
8
|
+
"@sveltejs/kit": "1.0.0-next.532",
|
|
9
|
+
"@sveltejs/package": "^1.0.0-next.5",
|
|
10
|
+
"@tailwindcss/forms": "^0.5.3",
|
|
11
|
+
"@tailwindcss/typography": "^0.5.7",
|
|
11
12
|
"@types/cookie": "^0.5.1",
|
|
12
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
13
|
-
"@typescript-eslint/parser": "^5.
|
|
14
|
-
"autoprefixer": "^10.4.
|
|
15
|
-
"dotenv": "^16.0.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
|
14
|
+
"@typescript-eslint/parser": "^5.41.0",
|
|
15
|
+
"autoprefixer": "^10.4.12",
|
|
16
|
+
"dotenv": "^16.0.3",
|
|
16
17
|
"encoding": "^0.1.13",
|
|
17
|
-
"eslint": "^8.
|
|
18
|
+
"eslint": "^8.26.0",
|
|
18
19
|
"eslint-config-prettier": "^8.5.0",
|
|
19
20
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
20
|
-
"html-to-text": "^8.2.
|
|
21
|
+
"html-to-text": "^8.2.1",
|
|
21
22
|
"markdown-yaml-metadata-parser": "^3.0.0",
|
|
22
23
|
"mdsvex": "^0.10.6",
|
|
23
|
-
"postcss": "^8.4.
|
|
24
|
-
"prettier": "^2.
|
|
25
|
-
"prettier-plugin-tailwindcss": "^0.1.
|
|
24
|
+
"postcss": "^8.4.18",
|
|
25
|
+
"prettier": "^2.7.1",
|
|
26
|
+
"prettier-plugin-tailwindcss": "^0.1.13",
|
|
26
27
|
"rehype-parse": "^8.0.4",
|
|
27
28
|
"rehype-slug": "^5.0.1",
|
|
28
29
|
"rehype-stringify": "^9.0.3",
|
|
29
30
|
"stream": "^0.0.2",
|
|
30
|
-
"svelte": "^3.
|
|
31
|
-
"svelte-check": "^2.
|
|
32
|
-
"svelte-paginate": "^0.0
|
|
31
|
+
"svelte": "^3.52.0",
|
|
32
|
+
"svelte-check": "^2.9.2",
|
|
33
|
+
"svelte-paginate": "^0.1.0",
|
|
33
34
|
"svelte-preprocess": "^4.10.7",
|
|
34
|
-
"svelte2tsx": "^0.5.
|
|
35
|
-
"tailwindcss": "^3.1
|
|
35
|
+
"svelte2tsx": "^0.5.20",
|
|
36
|
+
"tailwindcss": "^3.2.1",
|
|
36
37
|
"tslib": "^2.4.0",
|
|
37
|
-
"typescript": "^4.
|
|
38
|
-
"uuid-by-string": "^
|
|
39
|
-
"vite": "^2.
|
|
38
|
+
"typescript": "^4.8.4",
|
|
39
|
+
"uuid-by-string": "^4.0.0",
|
|
40
|
+
"vite": "^3.2.0",
|
|
40
41
|
"vite-plugin-autoimport": "^1.6.6"
|
|
41
42
|
},
|
|
42
43
|
"type": "module",
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@lukeed/uuid": "^2.0.0",
|
|
45
46
|
"cookie": "^0.5.0",
|
|
46
|
-
"katex": "^0.
|
|
47
|
-
"svelte": "^3.
|
|
47
|
+
"katex": "^0.16.3",
|
|
48
|
+
"svelte": "^3.52.0"
|
|
48
49
|
},
|
|
49
50
|
"exports": {
|
|
50
51
|
"./package.json": "./package.json",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"./get-content": "./get-content.js",
|
|
74
75
|
"./layouts/blocks.svelte": "./layouts/blocks.svelte",
|
|
75
76
|
"./req_utils": "./req_utils.js",
|
|
77
|
+
"./site_config.json": "./site_config.json",
|
|
76
78
|
"./utils": "./utils.js",
|
|
77
79
|
"./variables": "./variables.js"
|
|
78
80
|
}
|
package/req_utils.js
CHANGED
package/site_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"showBanner": true,
|
|
3
|
+
"bannerData":{
|
|
4
|
+
"showCTA": true,
|
|
5
|
+
"shortText": "Short text in a few words to show how it works.",
|
|
6
|
+
"longText": "Long test text that goes on and on for a while with some information about something that people should know about.",
|
|
7
|
+
"ctaText": "Take Action",
|
|
8
|
+
"ctaLink": "https://www.thunderheadeng.com",
|
|
9
|
+
"allowClose": false
|
|
10
|
+
}
|
|
11
|
+
}
|