tecitheme 0.2.0 → 0.2.2
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 -0
- package/assets/TECi_logo.svelte +146 -119
- package/components/Banner.svelte +74 -42
- package/components/Button.svelte +6 -2
- package/components/CTA.svelte +31 -21
- package/components/Card.svelte +34 -17
- package/components/CountrySelector.svelte +133 -133
- package/components/Figure.svelte +24 -20
- package/components/Footer.svelte +292 -177
- package/components/Header.svelte +146 -120
- package/components/HeadingCentered.svelte +23 -21
- package/components/Icon.svelte +132 -124
- package/components/Math.svelte +15 -10
- package/components/MediaFeature.svelte +56 -32
- package/components/MetaSocial.svelte +12 -12
- package/components/Modal.svelte +33 -14
- package/components/NewsGrid.svelte +31 -25
- package/components/SidebarContent.svelte +84 -24
- package/components/Subscribe.svelte +4 -3
- package/components/ThreeColumn.svelte +1 -1
- package/components/TrialForm.svelte +249 -202
- package/components/TrialForm.svelte.d.ts +3 -3
- package/components/Video.svelte +14 -16
- package/components/Wrap.svelte +7 -7
- package/get-content.js +55 -40
- package/layouts/blocks.svelte +49 -36
- package/package.json +17 -17
- package/req_utils.js +52 -51
- package/site_config.json +2 -2
- package/utils.js +39 -22
- package/variables.js +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
<script>import CountrySelector from
|
|
2
|
-
import Icon from
|
|
3
|
-
import { onMount } from
|
|
4
|
-
import { scrollTo, validateEmail } from
|
|
5
|
-
import { variables } from
|
|
1
|
+
<script>import CountrySelector from "./CountrySelector.svelte";
|
|
2
|
+
import Icon from "./Icon.svelte";
|
|
3
|
+
import { onMount } from "svelte";
|
|
4
|
+
import { scrollTo, validateEmail } from "../utils.js";
|
|
5
|
+
import { variables } from "../variables";
|
|
6
6
|
onMount(() => {
|
|
7
7
|
setTimeout(() => {
|
|
8
8
|
timePassed = true;
|
|
9
9
|
}, 3000);
|
|
10
10
|
});
|
|
11
11
|
let resellerModal = false;
|
|
12
|
-
let country =
|
|
13
|
-
let name =
|
|
14
|
-
let email =
|
|
12
|
+
let country = "sel";
|
|
13
|
+
let name = "";
|
|
14
|
+
let email = "";
|
|
15
15
|
let product = 0;
|
|
16
16
|
let valid = false;
|
|
17
|
-
let message =
|
|
18
|
-
let error =
|
|
19
|
-
let answer =
|
|
17
|
+
let message = "";
|
|
18
|
+
let error = "";
|
|
19
|
+
let answer = "";
|
|
20
20
|
let submitted = false;
|
|
21
21
|
let waiting = false;
|
|
22
22
|
let timePassed = false;
|
|
23
|
-
$: if (country !=
|
|
24
|
-
name !=
|
|
23
|
+
$: if (country != "sel" &&
|
|
24
|
+
name != "" &&
|
|
25
25
|
validateEmail(email) &&
|
|
26
26
|
product != 0 &&
|
|
27
|
-
answer ==
|
|
27
|
+
answer == "" &&
|
|
28
28
|
timePassed) {
|
|
29
29
|
valid = true;
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
32
|
valid = false;
|
|
33
33
|
}
|
|
34
|
-
$: if (submitted == true && message ==
|
|
34
|
+
$: if (submitted == true && message == "") {
|
|
35
35
|
waiting = true;
|
|
36
|
-
scrollTo(
|
|
36
|
+
scrollTo("trial-request");
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
waiting = false;
|
|
40
40
|
}
|
|
41
41
|
const submitForm = async () => {
|
|
42
42
|
submitted = true;
|
|
43
|
-
error =
|
|
43
|
+
error = "";
|
|
44
44
|
try {
|
|
45
45
|
const submit = await fetch(variables.trialEndpoint, {
|
|
46
|
-
method:
|
|
46
|
+
method: "POST",
|
|
47
47
|
body: JSON.stringify({
|
|
48
48
|
name,
|
|
49
49
|
email,
|
|
50
50
|
country,
|
|
51
|
-
product
|
|
52
|
-
})
|
|
51
|
+
product,
|
|
52
|
+
}),
|
|
53
53
|
});
|
|
54
54
|
message = await submit.json();
|
|
55
55
|
}
|
|
@@ -60,190 +60,237 @@ const submitForm = async () => {
|
|
|
60
60
|
</script>
|
|
61
61
|
|
|
62
62
|
<div class="mt-10 sm:mt-0">
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
<div class="mt-8 md:grid md:grid-cols-3 md:gap-6">
|
|
64
|
+
<div class="md:col-span-1">
|
|
65
|
+
<div class="prose px-4 sm:px-0">
|
|
66
66
|
<h2>30-day Trial Request</h2>
|
|
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
|
-
|
|
67
|
+
<p>
|
|
68
|
+
Please complete the form and click "Send Request". <b
|
|
69
|
+
>All fields are required.</b
|
|
70
|
+
>
|
|
71
|
+
</p>
|
|
72
|
+
<p>
|
|
73
|
+
Within a few minutes, you will receive an email message containing a
|
|
74
|
+
download link.
|
|
75
|
+
</p>
|
|
76
|
+
<p>
|
|
77
|
+
If you need assistance, please send an email to <a
|
|
78
|
+
href="mailto:sales@thunderheadeng.com">sales</a
|
|
79
|
+
>.
|
|
80
|
+
</p>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="mt-5 md:col-span-2 md:mt-0">
|
|
84
|
+
<form id="trial-request" on:submit|preventDefault={submitForm}>
|
|
85
|
+
<div class="overflow-hidden border shadow">
|
|
86
|
+
{#if message}
|
|
87
|
+
<div class="prose bg-white px-4 py-5 sm:p-6">
|
|
88
|
+
<p>
|
|
89
|
+
Thank you <strong>{message.name}</strong> for requesting a trial
|
|
90
|
+
of {#if message.product == 1}PyroSim{:else if message.product == 2}Pathfinder{:else if message.product == 3}PyroSim
|
|
91
|
+
and Pathfinder{/if}!<br />
|
|
92
|
+
You will receive an email to <strong>{message.email}</strong>
|
|
93
|
+
with your activation key{#if message.product == 3}s{/if}
|
|
94
|
+
in a few moments.
|
|
95
|
+
</p>
|
|
96
|
+
{#if message.product == 1}
|
|
97
|
+
<h3>PyroSim</h3>
|
|
98
|
+
<p>
|
|
99
|
+
To download the most recent version visit the <a
|
|
100
|
+
href="https://support.thunderheadeng.com/pyrosim/"
|
|
101
|
+
>PyroSim Support</a
|
|
102
|
+
> page.
|
|
103
|
+
</p>
|
|
104
|
+
{:else if message.product == 2}
|
|
105
|
+
<h3>Pathfinder</h3>
|
|
106
|
+
<p>
|
|
107
|
+
To download the most recent version visit the <a
|
|
108
|
+
href="https://support.thunderheadeng.com/pathfinder/"
|
|
109
|
+
>Pathfinder Support</a
|
|
110
|
+
> page.
|
|
111
|
+
</p>
|
|
112
|
+
{:else if message.product == 3}
|
|
113
|
+
<h3>PyroSim</h3>
|
|
114
|
+
<p>
|
|
115
|
+
To download the most recent version visit the <a
|
|
116
|
+
href="https://support.thunderheadeng.com/pyrosim/"
|
|
117
|
+
>PyroSim Support</a
|
|
118
|
+
> page.
|
|
119
|
+
</p>
|
|
120
|
+
<h3>Pathfinder</h3>
|
|
121
|
+
<p>
|
|
122
|
+
To download the most recent version visit the <a
|
|
123
|
+
href="https://support.thunderheadeng.com/pathfinder/"
|
|
124
|
+
>Pathfinder Support</a
|
|
125
|
+
> page.
|
|
126
|
+
</p>
|
|
127
|
+
{/if}
|
|
128
|
+
<h3>Need Help?</h3>
|
|
129
|
+
<p>
|
|
130
|
+
Please email <a href="mailto:support@thunderheadeng.com"
|
|
131
|
+
>support@thunderheadeng.com</a
|
|
132
|
+
> if you have any questions.
|
|
133
|
+
</p>
|
|
134
|
+
</div>
|
|
135
|
+
{:else if error}
|
|
136
|
+
<p>There was an error: {error}</p>
|
|
137
|
+
{:else if waiting}
|
|
138
|
+
<div id="waiting" class="mx-auto p-12">
|
|
139
|
+
<p class="pb-8 text-center font-bold">
|
|
140
|
+
Waiting for Trial Approval...
|
|
141
|
+
</p>
|
|
142
|
+
<Icon classes="h-24 w-24 mx-auto animate-pulse" />
|
|
143
|
+
</div>
|
|
144
|
+
{:else}
|
|
145
|
+
<div class="space-y-6 bg-white px-4 py-5 sm:p-6">
|
|
146
|
+
<fieldset>
|
|
147
|
+
<div>
|
|
148
|
+
<legend class="text-lg font-bold text-gray-900">
|
|
149
|
+
Personal Information
|
|
150
|
+
</legend>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="flex flex-row items-center pt-4 align-middle">
|
|
153
|
+
<label
|
|
154
|
+
for="name"
|
|
155
|
+
class="block whitespace-nowrap pr-2 font-medium text-gray-700"
|
|
156
|
+
>
|
|
157
|
+
Full Name:
|
|
158
|
+
</label>
|
|
159
|
+
<input
|
|
160
|
+
id="name"
|
|
161
|
+
type="text"
|
|
162
|
+
name="name"
|
|
163
|
+
bind:value={name}
|
|
164
|
+
class="w-full border-0 border-b-2 border-gray-500 p-1"
|
|
165
|
+
/>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="flex flex-row items-center pt-4 align-middle">
|
|
168
|
+
<label
|
|
169
|
+
for="email"
|
|
170
|
+
class="block pr-2 font-medium text-gray-700"
|
|
171
|
+
>
|
|
172
|
+
Email:
|
|
173
|
+
</label>
|
|
174
|
+
<input
|
|
175
|
+
id="email"
|
|
176
|
+
type="text"
|
|
177
|
+
name="email"
|
|
178
|
+
bind:value={email}
|
|
179
|
+
class="w-full border-0 border-b-2 border-gray-500 p-1"
|
|
180
|
+
/>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="flex flex-row items-center pt-4 align-middle">
|
|
183
|
+
<label
|
|
184
|
+
for="country"
|
|
185
|
+
class="block pr-2 font-medium text-gray-700"
|
|
186
|
+
>
|
|
187
|
+
Country:
|
|
188
|
+
</label>
|
|
189
|
+
<input
|
|
190
|
+
id="country"
|
|
191
|
+
type="hidden"
|
|
192
|
+
name="country"
|
|
193
|
+
value={country}
|
|
194
|
+
/>
|
|
195
|
+
<CountrySelector
|
|
196
|
+
bind:selection={country}
|
|
197
|
+
bind:resellerModal
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
</fieldset>
|
|
201
|
+
<fieldset>
|
|
202
|
+
<div>
|
|
203
|
+
<legend class="text-lg font-bold text-gray-900">
|
|
204
|
+
What would you like to try?
|
|
205
|
+
</legend>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="mt-4 space-y-4">
|
|
208
|
+
<div class="flex items-center">
|
|
209
|
+
<input
|
|
210
|
+
id="pyrosim"
|
|
211
|
+
name="product"
|
|
212
|
+
type="radio"
|
|
213
|
+
value={1}
|
|
214
|
+
bind:group={product}
|
|
215
|
+
class="h-4 w-4 border-gray-300 text-blue-600 focus:ring-teci-blue-dark"
|
|
216
|
+
/>
|
|
217
|
+
<label
|
|
218
|
+
for="pyrosim"
|
|
219
|
+
class="ml-3 block text-sm font-medium text-gray-700"
|
|
220
|
+
>
|
|
221
|
+
PyroSim
|
|
222
|
+
</label>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="flex items-center">
|
|
225
|
+
<input
|
|
226
|
+
id="pathfinder"
|
|
227
|
+
name="product"
|
|
228
|
+
type="radio"
|
|
229
|
+
value={2}
|
|
230
|
+
bind:group={product}
|
|
231
|
+
class="h-4 w-4 border-gray-300 text-blue-600 focus:ring-teci-blue-dark"
|
|
232
|
+
/>
|
|
233
|
+
<label
|
|
234
|
+
for="pathfinder"
|
|
235
|
+
class="ml-3 block text-sm font-medium text-gray-700"
|
|
236
|
+
>
|
|
237
|
+
Pathfinder
|
|
238
|
+
</label>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="flex items-center">
|
|
241
|
+
<input
|
|
242
|
+
id="pyropath"
|
|
243
|
+
name="product"
|
|
244
|
+
type="radio"
|
|
245
|
+
value={3}
|
|
246
|
+
bind:group={product}
|
|
247
|
+
class="h-4 w-4 border-gray-300 text-blue-600 focus:ring-teci-blue-dark"
|
|
248
|
+
/>
|
|
249
|
+
<label
|
|
250
|
+
for="pyropath"
|
|
251
|
+
class="ml-3 block text-sm font-medium text-gray-700"
|
|
252
|
+
>
|
|
253
|
+
PyroSim and Pathfinder
|
|
254
|
+
</label>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</fieldset>
|
|
258
|
+
<input
|
|
259
|
+
class="confident"
|
|
260
|
+
id="answer"
|
|
261
|
+
type="text"
|
|
262
|
+
name="answer"
|
|
263
|
+
bind:value={answer}
|
|
264
|
+
placeholder="Correct answers only..."
|
|
265
|
+
/>
|
|
266
|
+
</div>
|
|
267
|
+
<div class="px-4 py-3 text-right sm:px-6">
|
|
268
|
+
<button
|
|
269
|
+
type="submit"
|
|
270
|
+
disabled={!valid}
|
|
271
|
+
class="inline-flex justify-center border border-transparent py-2 px-4 text-sm font-medium text-white shadow-sm {valid ===
|
|
272
|
+
true
|
|
273
|
+
? 'bg-teci-blue-light hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2'
|
|
274
|
+
: 'cursor-not-allowed bg-gray-300'}"
|
|
275
|
+
>
|
|
276
|
+
Send Request
|
|
277
|
+
</button>
|
|
278
|
+
{#if answer}
|
|
279
|
+
<p>
|
|
280
|
+
Something is wrong with the form, please email
|
|
281
|
+
support@thunderheadeng.com.
|
|
282
|
+
</p>
|
|
283
|
+
{/if}
|
|
284
|
+
</div>
|
|
285
|
+
{/if}
|
|
286
|
+
</div>
|
|
287
|
+
</form>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
243
290
|
</div>
|
|
244
291
|
|
|
245
292
|
<style>
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
293
|
+
.confident {
|
|
294
|
+
@apply hidden;
|
|
295
|
+
}
|
|
249
296
|
</style>
|
|
@@ -6,9 +6,9 @@ declare const __propDef: {
|
|
|
6
6
|
};
|
|
7
7
|
slots: {};
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
9
|
+
export type TrialFormProps = typeof __propDef.props;
|
|
10
|
+
export type TrialFormEvents = typeof __propDef.events;
|
|
11
|
+
export type TrialFormSlots = typeof __propDef.slots;
|
|
12
12
|
export default class TrialForm extends SvelteComponentTyped<TrialFormProps, TrialFormEvents, TrialFormSlots> {
|
|
13
13
|
}
|
|
14
14
|
export {};
|
package/components/Video.svelte
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
export let data = {};
|
|
3
|
-
export let v =
|
|
3
|
+
export let v = "";
|
|
4
4
|
let id;
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
if (v) {
|
|
7
7
|
id = v;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
id = '';
|
|
14
|
-
}
|
|
8
|
+
} else if (data) {
|
|
9
|
+
id = data.v;
|
|
10
|
+
} else {
|
|
11
|
+
id = "";
|
|
12
|
+
}
|
|
15
13
|
</script>
|
|
16
14
|
|
|
17
|
-
<section class="
|
|
18
|
-
<iframe
|
|
19
|
-
src="https://www.youtube.com/embed/{id}"
|
|
15
|
+
<section class="aspect-video w-full border border-gray-200 bg-black shadow-md">
|
|
16
|
+
<iframe
|
|
17
|
+
src="https://www.youtube.com/embed/{id}"
|
|
20
18
|
title="YouTube Video ID {id}"
|
|
21
|
-
class="w-full
|
|
22
|
-
frameborder="0"
|
|
19
|
+
class="aspect-video w-full"
|
|
20
|
+
frameborder="0"
|
|
23
21
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
|
24
|
-
allowfullscreen
|
|
25
|
-
|
|
22
|
+
allowfullscreen
|
|
23
|
+
/>
|
|
26
24
|
</section>
|
package/components/Wrap.svelte
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export let tag = "div";
|
|
3
|
+
export let when = true;
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
6
|
{#if when}
|
|
7
|
-
<svelte:element this={tag} {...$$restProps}>
|
|
8
|
-
|
|
9
|
-
</svelte:element>
|
|
7
|
+
<svelte:element this={tag} {...$$restProps}>
|
|
8
|
+
<slot />
|
|
9
|
+
</svelte:element>
|
|
10
10
|
{:else}
|
|
11
|
-
|
|
12
|
-
{/if}
|
|
11
|
+
<slot />
|
|
12
|
+
{/if}
|