tecitheme 0.1.0 → 0.1.3
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/Card.svelte +1 -1
- package/components/Figure.svelte +2 -2
- package/components/Header.svelte +17 -17
- package/components/MediaFeature.svelte +5 -5
- package/components/MetaSocial.svelte +2 -16
- package/components/MetaSocial.svelte.d.ts +0 -2
- package/components/NewsGrid.svelte +1 -1
- package/layouts/blocks.svelte +3 -3
- package/package.json +1 -1
package/components/Card.svelte
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<div class="group flex flex-col items-stretch space-y-2 border border-gray-100 p-2 hover:border-gray-200 hover:shadow-md" >
|
|
10
10
|
{#if data.image}
|
|
11
|
-
<div style="background-image: url({data.image});"
|
|
11
|
+
<div style="background-image: url('https://thunderheadeng-www.imgix.net{data.image}?w=600&auto=compress&auto=format');"
|
|
12
12
|
class="w-full shrink-0 {halfHeight ? 'aspect-video' : 'aspect-square'} flex items-center justify-center border border-gray-200 bg-cover bg-no-repeat"
|
|
13
13
|
>
|
|
14
14
|
<div class="{halfHeight ? 'space-y-4' : 'space-y-8'} flex h-full w-full flex-col items-center justify-center" >
|
package/components/Figure.svelte
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
<section class="flex justify-center not-prose mb-8">
|
|
9
9
|
<figure class="bg-white w-auto mx-auto shadow-lg border border-slate-100 p-2">
|
|
10
|
-
<a href={link ? link : image}>
|
|
11
|
-
<img class="w-full" src={image} alt={title} title={title}>
|
|
10
|
+
<a href={link ? link : 'https://thunderheadeng-www.imgix.net' + image}>
|
|
11
|
+
<img class="w-full" src="https://thunderheadeng-www.imgix.net{image}?auto=compress&auto=format" alt={title} title={title}>
|
|
12
12
|
</a>
|
|
13
13
|
{#if caption}
|
|
14
14
|
<figcaption class="text-center p-2">{@html caption}</figcaption>
|
package/components/Header.svelte
CHANGED
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
|
|
82
82
|
<!-- Flyout menu -->
|
|
83
83
|
{#if openMenu == 'products'}
|
|
84
|
-
<div
|
|
84
|
+
<div
|
|
85
85
|
class="absolute inset-x-0 top-full z-10 transform bg-white shadow-lg"
|
|
86
86
|
use:clickOutside
|
|
87
87
|
on:outclick="{() => (openMenu = '')}"
|
|
88
88
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
89
89
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
90
90
|
>
|
|
91
|
-
<div
|
|
91
|
+
<div on:click="{() => (openMenu = '')}"
|
|
92
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"
|
|
93
93
|
>
|
|
94
94
|
<a
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
|
|
184
184
|
<!-- Action Buttons -->
|
|
185
185
|
<div class="relative bg-gray-50">
|
|
186
|
-
<div
|
|
186
|
+
<div on:click="{() => (openMenu = '')}"
|
|
187
187
|
class="mx-auto 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
188
|
>
|
|
189
189
|
<div class="flow-root">
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
296
296
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
297
297
|
>
|
|
298
|
-
<div
|
|
298
|
+
<div on:click="{() => (openMenu = '')}"
|
|
299
299
|
class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
300
300
|
>
|
|
301
301
|
<a
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
</div>
|
|
407
407
|
</a>
|
|
408
408
|
</div>
|
|
409
|
-
<div
|
|
409
|
+
<div on:click="{() => (openMenu = '')}"
|
|
410
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"
|
|
411
411
|
>
|
|
412
412
|
<div class="flow-root">
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
496
496
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
497
497
|
>
|
|
498
|
-
<div
|
|
498
|
+
<div on:click="{() => (openMenu = '')}"
|
|
499
499
|
class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
500
500
|
>
|
|
501
501
|
<a
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
</div>
|
|
577
577
|
</a>
|
|
578
578
|
</div>
|
|
579
|
-
<div
|
|
579
|
+
<div on:click="{() => (openMenu = '')}"
|
|
580
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"
|
|
581
581
|
>
|
|
582
582
|
<div class="flow-root">
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
in:slide="{{ duration: 250, easing: cubicOut }}"
|
|
665
665
|
out:slide="{{ duration: 150, easing: cubicIn }}"
|
|
666
666
|
>
|
|
667
|
-
<div
|
|
667
|
+
<div on:click="{() => (openMenu = '')}"
|
|
668
668
|
class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8"
|
|
669
669
|
>
|
|
670
670
|
<a
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
</a>
|
|
747
747
|
|
|
748
748
|
<a
|
|
749
|
-
href="https://www.thunderheadeng.com/pyrosim/licensing
|
|
749
|
+
href="https://www.thunderheadeng.com/pyrosim/licensing#international-distributors"
|
|
750
750
|
class="-m-3 flex items-start p-3 transition duration-150 ease-in-out hover:bg-gray-50"
|
|
751
751
|
>
|
|
752
752
|
<svg
|
|
@@ -904,10 +904,10 @@
|
|
|
904
904
|
>
|
|
905
905
|
<div class="px-4 pt-5 pb-6 sm:pb-8">
|
|
906
906
|
<div class="flex items-center justify-between">
|
|
907
|
-
<a class="block" href="https://www.thunderheadeng.com">
|
|
907
|
+
<a on:click="{() => (openMenu = '')}" class="block" href="https://www.thunderheadeng.com">
|
|
908
908
|
<img
|
|
909
909
|
class="h-10 w-auto"
|
|
910
|
-
src="https://files.thunderheadeng.com/
|
|
910
|
+
src="https://files.thunderheadeng.com/www/images/teci_logo.svg"
|
|
911
911
|
alt="Thunderhead Engineering"
|
|
912
912
|
/>
|
|
913
913
|
</a>
|
|
@@ -1073,7 +1073,7 @@
|
|
|
1073
1073
|
<div class="flow-root">
|
|
1074
1074
|
<a
|
|
1075
1075
|
href="https://www.thunderheadeng.com/news"
|
|
1076
|
-
class="-m-3 flex items-
|
|
1076
|
+
class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
|
|
1077
1077
|
>
|
|
1078
1078
|
<svg
|
|
1079
1079
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
<div class="flow-root">
|
|
1096
1096
|
<a
|
|
1097
1097
|
href="https://support.thunderheadeng.com/release-notes"
|
|
1098
|
-
class="-m-3 flex items-
|
|
1098
|
+
class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
|
|
1099
1099
|
>
|
|
1100
1100
|
<svg
|
|
1101
1101
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1117,7 +1117,7 @@
|
|
|
1117
1117
|
<div class="flow-root">
|
|
1118
1118
|
<a
|
|
1119
1119
|
href="https://store2.thunderheadeng.com/cart"
|
|
1120
|
-
class="-m-3 flex items-
|
|
1120
|
+
class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
|
|
1121
1121
|
>
|
|
1122
1122
|
<svg
|
|
1123
1123
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1139,7 +1139,7 @@
|
|
|
1139
1139
|
<div class="flow-root">
|
|
1140
1140
|
<a
|
|
1141
1141
|
href="https://store2.thunderheadeng.com/trial/"
|
|
1142
|
-
class="-m-3 flex items-
|
|
1142
|
+
class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
|
|
1143
1143
|
>
|
|
1144
1144
|
<svg
|
|
1145
1145
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
<div class="flow-root">
|
|
1161
1161
|
<a
|
|
1162
1162
|
href="mailto:sales@thunderheadeng.com"
|
|
1163
|
-
class="-m-3 flex items-
|
|
1163
|
+
class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
|
|
1164
1164
|
>
|
|
1165
1165
|
<svg
|
|
1166
1166
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1182,7 +1182,7 @@
|
|
|
1182
1182
|
<div class="flow-root">
|
|
1183
1183
|
<a
|
|
1184
1184
|
href="mailto:support@thunderheadeng.com"
|
|
1185
|
-
class="-m-3 flex items-
|
|
1185
|
+
class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
|
|
1186
1186
|
>
|
|
1187
1187
|
<svg
|
|
1188
1188
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -4,17 +4,17 @@ import Video from './Video.svelte'
|
|
|
4
4
|
export let data;
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<section class="w-full mx-auto flex flex-col md:flex-row items-start justify-center">
|
|
7
|
+
<section class="w-full mx-auto flex flex-col items-center md:flex-row md:items-start justify-center">
|
|
8
8
|
{#if data.v}
|
|
9
|
-
<div class="block w-full max-w-xl
|
|
9
|
+
<div class="block w-full max-w-xl mb-4 md:mb-0">
|
|
10
10
|
<Video bind:data />
|
|
11
11
|
</div>
|
|
12
12
|
{:else if data.image}
|
|
13
|
-
<div class="block w-full max-w-xl
|
|
13
|
+
<div class="block w-full max-w-xl mb-4 md:mb-0">
|
|
14
14
|
<figure>
|
|
15
|
-
<a href={data.image}>
|
|
15
|
+
<a href="https://thunderheadeng-www.imgix.net{data.image}">
|
|
16
16
|
<img class="w-full aspect-video object-cover border bg-black border-gray-200 shadow-md {data.imageClass ? data.imageClass : ''}"
|
|
17
|
-
src={data.image} alt={data.name}
|
|
17
|
+
src="https://thunderheadeng-www.imgix.net{data.image}?w=576&ar=16:9&fit=crop&auto=compress&auto=format" alt={data.name}
|
|
18
18
|
/>
|
|
19
19
|
</a>
|
|
20
20
|
</figure>
|
|
@@ -3,27 +3,13 @@
|
|
|
3
3
|
export let description
|
|
4
4
|
export let image
|
|
5
5
|
export let url
|
|
6
|
-
export let host
|
|
7
|
-
|
|
8
|
-
function imageURL(str)
|
|
9
|
-
{
|
|
10
|
-
var tarea = str;
|
|
11
|
-
if (tarea.indexOf("http://") == 0 || tarea.indexOf("https://") == 0) {
|
|
12
|
-
return true
|
|
13
|
-
}
|
|
14
|
-
return false
|
|
15
|
-
}
|
|
16
6
|
</script>
|
|
17
7
|
|
|
18
8
|
<meta property="og:type" content="website">
|
|
19
|
-
<meta property="og:url" content=
|
|
9
|
+
<meta property="og:url" content={url}>
|
|
20
10
|
<meta name="og:title" content={title} >
|
|
21
11
|
<meta name="og:description" content={description} >
|
|
22
|
-
|
|
23
|
-
<meta name="og:image" content="{image}" >
|
|
24
|
-
{:else}
|
|
25
|
-
<meta name="og:image" content="https://{host}/{image}" >
|
|
26
|
-
{/if}
|
|
12
|
+
<meta name="og:image" content={image} >
|
|
27
13
|
<meta name="twitter:card" content="summary_large_image">
|
|
28
14
|
<meta name="twitter:site" content="@thunderheadeng">
|
|
29
15
|
<meta name="twitter:creator" content="@thunderheadeng">
|
|
@@ -6,7 +6,6 @@ export default class MetaSocial extends SvelteComponentTyped<{
|
|
|
6
6
|
description: any;
|
|
7
7
|
image: any;
|
|
8
8
|
url: any;
|
|
9
|
-
host: any;
|
|
10
9
|
}, {
|
|
11
10
|
[evt: string]: CustomEvent<any>;
|
|
12
11
|
}, {}> {
|
|
@@ -21,7 +20,6 @@ declare const __propDef: {
|
|
|
21
20
|
description: any;
|
|
22
21
|
image: any;
|
|
23
22
|
url: any;
|
|
24
|
-
host: any;
|
|
25
23
|
};
|
|
26
24
|
events: {
|
|
27
25
|
[evt: string]: CustomEvent<any>;
|
package/layouts/blocks.svelte
CHANGED
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
host = getContext('currentHost');
|
|
42
42
|
|
|
43
43
|
if (images.length > 0) {
|
|
44
|
-
featuredImage = images[0]
|
|
44
|
+
featuredImage = 'https://thunderheadeng-www.imgix.net'+images[0]+'?w=1200&h=627&fit=crop&auto=compress&auto=format'
|
|
45
45
|
} else {
|
|
46
|
-
featuredImage =
|
|
46
|
+
featuredImage = 'https://files.thunderheadeng.com/www/images/teci_icon_250.png'
|
|
47
47
|
}
|
|
48
48
|
</script>
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<title>{title} | Thunderhead Engineering</title>
|
|
52
52
|
<meta name="description" content={summary}>
|
|
53
53
|
{#if browser}
|
|
54
|
-
<MetaSocial title={title} description={summary} image={featuredImage} {url}
|
|
54
|
+
<MetaSocial title={title} description={summary} image={featuredImage} {url} />
|
|
55
55
|
{/if}
|
|
56
56
|
</svelte:head>
|
|
57
57
|
|