tecitheme 0.3.1 → 0.3.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/README.md +1 -1
- package/components/PricingTable.svelte +25 -17
- package/layouts/blocks.svelte +4 -12
- package/layouts/blocks.svelte.d.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,22 +63,30 @@
|
|
|
63
63
|
{/if}
|
|
64
64
|
{/each}
|
|
65
65
|
</div>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
">
|
|
78
|
-
{cta.text}
|
|
79
|
-
<span class="hidden sm:inline {(cta.color == "white" ? "text-gray-600" : "text-white")}" aria-hidden="true">→</span>
|
|
80
|
-
</a>
|
|
81
|
-
{/each}
|
|
82
|
-
</div>
|
|
66
|
+
{#if data.footer}
|
|
67
|
+
<div class="mt-8">
|
|
68
|
+
{#if data.footer.heading}
|
|
69
|
+
<div class="text-xl mb-4 text-gray-500 sm:text-center">
|
|
70
|
+
<p>{data.footer.heading}</p>
|
|
71
|
+
</div>
|
|
72
|
+
{/if}
|
|
73
|
+
{#if data.footer.text}
|
|
74
|
+
<div class="text-md mb-4 max-w-4xl mx-auto text-gray-500 sm:text-center">
|
|
75
|
+
<p>{@html data.footer.text}</p>
|
|
76
|
+
</div>
|
|
83
77
|
{/if}
|
|
78
|
+
{#if data.footer.ctas}
|
|
79
|
+
<div class="flex gap-x-8 py-2 sm:justify-center">
|
|
80
|
+
{#each data.footer.ctas as cta}
|
|
81
|
+
<a href={cta.url} class="inline-block whitespace-nowrap px-4 py-1.5 text-base font-semibold leading-7 shadow-sm ring-1 ring-gray-900/10 hover:ring-gray-900/20 hover:bg-teci-blue-dark
|
|
82
|
+
{(cta.color == "pyrosim" ? "bg-pyrosim text-white" : (cta.color == "pathfinder" ? "bg-pathfinder text-white" : (cta.color == "white" ? "bg-white text-gray-600 hover:text-white" : "bg-teci-blue-dark text-white")))}
|
|
83
|
+
">
|
|
84
|
+
{cta.text}
|
|
85
|
+
<span class="hidden sm:inline {(cta.color == "white" ? "text-gray-600" : "text-white")}" aria-hidden="true">→</span>
|
|
86
|
+
</a>
|
|
87
|
+
{/each}
|
|
88
|
+
</div>
|
|
89
|
+
{/if}
|
|
90
|
+
</div>
|
|
91
|
+
{/if}
|
|
84
92
|
</section>
|
package/layouts/blocks.svelte
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
export let date;
|
|
48
48
|
export let lastmod;
|
|
49
49
|
export let summary;
|
|
50
|
-
export let
|
|
50
|
+
export let image;
|
|
51
51
|
export let layout;
|
|
52
52
|
export let page_sections;
|
|
53
53
|
|
|
@@ -58,18 +58,10 @@
|
|
|
58
58
|
url = getContext("currentURL");
|
|
59
59
|
host = getContext("currentHost");
|
|
60
60
|
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
featuredImage = images[0];
|
|
64
|
-
} else {
|
|
65
|
-
featuredImage =
|
|
66
|
-
"https://teci-files.imgix.net/www/images/" +
|
|
67
|
-
images[0] +
|
|
68
|
-
"?w=1200&h=627&fit=crop&auto=compress&auto=format";
|
|
69
|
-
}
|
|
61
|
+
if (image) {
|
|
62
|
+
featuredImage = "https://teci-files.imgix.net/www/images/" + image + "?w=1200&h=627&fit=crop&auto=compress&auto=format";
|
|
70
63
|
} else {
|
|
71
|
-
featuredImage =
|
|
72
|
-
"https://teci-files.imgix.net/www/images/teci_icon_250.png";
|
|
64
|
+
featuredImage = "https://teci-files.imgix.net/www/images/teci_icon_250.png";
|
|
73
65
|
}
|
|
74
66
|
</script>
|
|
75
67
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} BlocksEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} BlocksSlots */
|
|
4
4
|
export default class Blocks extends SvelteComponentTyped<{
|
|
5
|
-
summary: any;
|
|
6
5
|
title: any;
|
|
7
6
|
date: any;
|
|
8
7
|
lastmod: any;
|
|
8
|
+
summary: any;
|
|
9
|
+
image: any;
|
|
9
10
|
layout: any;
|
|
10
11
|
page_sections: any;
|
|
11
|
-
images?: any[];
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -21,13 +21,13 @@ export type BlocksSlots = typeof __propDef.slots;
|
|
|
21
21
|
import { SvelteComponentTyped } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
|
-
summary: any;
|
|
25
24
|
title: any;
|
|
26
25
|
date: any;
|
|
27
26
|
lastmod: any;
|
|
27
|
+
summary: any;
|
|
28
|
+
image: any;
|
|
28
29
|
layout: any;
|
|
29
30
|
page_sections: any;
|
|
30
|
-
images?: any[];
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
33
33
|
[evt: string]: CustomEvent<any>;
|