tecitheme 0.0.6 → 0.0.9

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.
@@ -27,7 +27,7 @@
27
27
  {#if showCTA}
28
28
  <!-- CTA Button -->
29
29
  <div class="order-3 mt-2 flex-shrink-0 w-full sm:order-2 sm:mt-0 sm:w-auto">
30
- <div class="rounded-md shadow-sm">
30
+ <div class="shadow-sm">
31
31
  <a href={ctaLink}
32
32
  class="flex items-center justify-center px-4 py-2 border shadow-md border-transparent text-sm leading-5 font-medium text-teci-blue-light bg-white hover:text-white hover:bg-teci-blue-dark focus:outline-none focus:shadow-outline transition ease-in-out duration-150"
33
33
  aria-label="Button to {ctaText}"
@@ -41,7 +41,7 @@
41
41
  <!-- Hide Banner Button -->
42
42
  <div class="order-2 flex-shrink-0 sm:order-3 sm:ml-3">
43
43
  <button x-on:click="toggle" type="button"
44
- class="-mr-1 flex p-2 rounded-md hover:bg-teci-blue-dark focus:outline-none focus:bg-teci-blue-dark sm:-mr-2 transition ease-in-out duration-150"
44
+ class="-mr-1 flex p-2 hover:bg-teci-blue-dark focus:outline-none focus:bg-teci-blue-dark sm:-mr-2 transition ease-in-out duration-150"
45
45
  aria-label="Dismiss"
46
46
  title="Dismiss Banner"
47
47
  >
@@ -0,0 +1,8 @@
1
+ <script>
2
+ export let url;
3
+ export let text;
4
+ </script>
5
+
6
+ <div class="not-prose my-4">
7
+ <a class="block btn w-64 text-2xl shadow-md mx-auto text-center ring-0 focus:ring-0" href={url} rel=external>{text}</a>
8
+ </div>
@@ -0,0 +1,25 @@
1
+ /** @typedef {typeof __propDef.props} ButtonProps */
2
+ /** @typedef {typeof __propDef.events} ButtonEvents */
3
+ /** @typedef {typeof __propDef.slots} ButtonSlots */
4
+ export default class Button extends SvelteComponentTyped<{
5
+ url: any;
6
+ text: any;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {}> {
10
+ }
11
+ export type ButtonProps = typeof __propDef.props;
12
+ export type ButtonEvents = typeof __propDef.events;
13
+ export type ButtonSlots = typeof __propDef.slots;
14
+ import { SvelteComponentTyped } from "svelte";
15
+ declare const __propDef: {
16
+ props: {
17
+ url: any;
18
+ text: any;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {};
24
+ };
25
+ export {};
@@ -0,0 +1,30 @@
1
+ <script>
2
+ export let data = {
3
+ title: 'Ready to dive in?',
4
+ subtitle: 'Start your free trial today.',
5
+ links: [
6
+ {
7
+ linkText: 'Get Started',
8
+ linkURL: '/product'
9
+ }
10
+ ]
11
+ }
12
+ </script>
13
+
14
+ <!-- This example requires Tailwind CSS v2.0+ -->
15
+ <section class="bg-white mb-12">
16
+ <div class="mx-auto text-center px-4 sm:px-6 lg:px-8">
17
+ <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl">
18
+ <span class="block">{data.title}</span>
19
+ </h2>
20
+ <div class="mt-8 flex justify-center">
21
+ {#each data.links as link}
22
+ <div class="inline-flex shadow">
23
+ <a href={link.linkURL} class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium text-white bg-teci-blue-light hover:bg-teci-blue-dark">{link.linkText}</a>
24
+ </div>
25
+ {:else}
26
+ <br>
27
+ {/each}
28
+ </div>
29
+ </div>
30
+ </section>
@@ -0,0 +1,37 @@
1
+ /** @typedef {typeof __propDef.props} CtaProps */
2
+ /** @typedef {typeof __propDef.events} CtaEvents */
3
+ /** @typedef {typeof __propDef.slots} CtaSlots */
4
+ export default class Cta extends SvelteComponentTyped<{
5
+ data?: {
6
+ title: string;
7
+ subtitle: string;
8
+ links: {
9
+ linkText: string;
10
+ linkURL: string;
11
+ }[];
12
+ };
13
+ }, {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {}> {
16
+ }
17
+ export type CtaProps = typeof __propDef.props;
18
+ export type CtaEvents = typeof __propDef.events;
19
+ export type CtaSlots = typeof __propDef.slots;
20
+ import { SvelteComponentTyped } from "svelte";
21
+ declare const __propDef: {
22
+ props: {
23
+ data?: {
24
+ title: string;
25
+ subtitle: string;
26
+ links: {
27
+ linkText: string;
28
+ linkURL: string;
29
+ }[];
30
+ };
31
+ };
32
+ events: {
33
+ [evt: string]: CustomEvent<any>;
34
+ };
35
+ slots: {};
36
+ };
37
+ export {};
@@ -4,9 +4,11 @@
4
4
  export let caption;
5
5
  </script>
6
6
 
7
- <figure class="not-prose shadow-lg border border-slate-100 p-2">
8
- <img src={image} alt={title} title={title}>
9
- {#if caption}
10
- <figcaption class="text-center p-2">{@html caption}</figcaption>
11
- {/if}
12
- </figure>
7
+ <section class="flex justify-center not-prose">
8
+ <figure class="bg-white w-auto mx-auto shadow-lg border border-slate-100 p-2">
9
+ <img class="w-full" src={image} alt={title} title={title}>
10
+ {#if caption}
11
+ <figcaption class="text-center p-2">{@html caption}</figcaption>
12
+ {/if}
13
+ </figure>
14
+ </section>
@@ -46,8 +46,8 @@
46
46
  x-transition:leave-end="opacity-0 -translate-y-1"
47
47
  class="absolute z-10 top-full inset-x-0 transform shadow-lg bg-white" style="display: none;">
48
48
  <div
49
- class="max-w-7xl mx-auto grid gap-y-6 px-4 py-6 sm:grid-cols-2 sm:gap-8 sm:px-6 sm:py-8 lg:grid-cols-4 lg:px-8 lg:py-12 xl:py-16">
50
- <a href="https://www.thunderheadeng.com/pyrosim/" class="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50">
49
+ class="max-w-7xl mx-auto grid gap-y-8 px-4 py-8 sm:grid-cols-2 sm:gap-8 sm:px-6 lg:grid-cols-3 lg:px-8">
50
+ <a href="https://www.thunderheadeng.com/pyrosim/" class="-m-3 p-3 flex flex-col justify-between hover:bg-gray-50">
51
51
  <div class="flex md:h-full lg:flex-col">
52
52
  <div class="flex-shrink-0">
53
53
  <Icon classes="h-12 w-auto" icon="pyrosim" />
@@ -68,7 +68,7 @@
68
68
  </div>
69
69
  </a>
70
70
 
71
- <a href="https://www.thunderheadeng.com/pathfinder/" class="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50">
71
+ <a href="https://www.thunderheadeng.com/pathfinder/" class="-m-3 p-3 flex flex-col justify-between hover:bg-gray-50">
72
72
  <div class="flex md:h-full lg:flex-col">
73
73
  <div class="flex-shrink-0">
74
74
  <Icon classes="h-12 w-auto" icon="pathfinder" />
@@ -89,7 +89,7 @@
89
89
  </div>
90
90
  </a>
91
91
 
92
- <a href="https://www.thunderheadeng.com/petrasim/" class="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50">
92
+ <a href="https://www.thunderheadeng.com/petrasim/" class="-m-3 p-3 flex flex-col justify-between hover:bg-gray-50">
93
93
  <div class="flex md:h-full lg:flex-col">
94
94
  <div class="flex-shrink-0">
95
95
  <Icon classes="h-12 w-auto" icon='petrasim' />
@@ -110,7 +110,7 @@
110
110
  </div>
111
111
  </a>
112
112
  <!--
113
- <a href="#" class="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50">
113
+ <a href="#" class="-m-3 p-3 flex flex-col justify-between hover:bg-gray-50">
114
114
  <div class="flex md:h-full lg:flex-col">
115
115
  <div class="flex-shrink-0">
116
116
  <span
@@ -220,10 +220,10 @@
220
220
  x-transition:leave-end="opacity-0 -translate-y-1"
221
221
  class="absolute z-40 left-1/2 transform -translate-x-1/2 mt-3 px-2 w-screen max-w-md sm:px-0"
222
222
  style="display: none;">
223
- <div class="rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden">
223
+ <div class="shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden">
224
224
  <div class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8">
225
225
  <a href="https://support.thunderheadeng.com/docs/"
226
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
226
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
227
227
  <!-- Heroicon name: outline/book-open -->
228
228
  <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-teci-blue-light" fill="none"
229
229
  viewBox="0 0 24 24" stroke="currentColor">
@@ -241,7 +241,7 @@
241
241
  </a>
242
242
 
243
243
  <a href="https://support.thunderheadeng.com/tutorials/"
244
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
244
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
245
245
  <!-- Heroicon name: outline/library -->
246
246
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
247
247
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -259,7 +259,7 @@
259
259
  </a>
260
260
 
261
261
  <a href="https://support.thunderheadeng.com/release-notes/"
262
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
262
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
263
263
  <!-- Heroicon name: outline/document-text -->
264
264
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
265
265
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -277,7 +277,7 @@
277
277
  </a>
278
278
 
279
279
  <a href="https://support.thunderheadeng.com/answers/"
280
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
280
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
281
281
  <!-- Heroicon name: outline/cursor-click -->
282
282
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
283
283
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -353,10 +353,10 @@
353
353
  x-transition:leave-end="opacity-0 -translate-y-1"
354
354
  class="absolute z-40 left-1/2 transform -translate-x-1/2 mt-3 px-2 w-screen max-w-md sm:px-0"
355
355
  style="display: none;">
356
- <div class="rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden">
356
+ <div class="shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden">
357
357
  <div class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8">
358
358
  <a href="https://www.thunderheadeng.com/training/"
359
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
359
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
360
360
  <!-- Heroicon name: outline/calendar -->
361
361
  <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-teci-blue-light" fill="none"
362
362
  viewBox="0 0 24 24" stroke="currentColor">
@@ -374,7 +374,7 @@
374
374
  </a>
375
375
 
376
376
  <a href="https://www.femtc.com/"
377
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
377
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
378
378
  <!-- Heroicon name: outline/presentation-chart-line -->
379
379
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
380
380
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -392,7 +392,7 @@
392
392
  </a>
393
393
 
394
394
  <a href="https://www.thunderheadeng.com/training/"
395
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
395
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
396
396
  <!-- Heroicon name: outline/cursor-click -->
397
397
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
398
398
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -478,10 +478,10 @@
478
478
  x-transition:leave-end="opacity-0 -translate-y-1"
479
479
  class="absolute z-40 left-1/2 transform -translate-x-1/2 mt-3 px-2 w-screen max-w-md sm:px-0"
480
480
  style="display: none;">
481
- <div class="rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden">
481
+ <div class="shadow-lg ring-1 ring-black ring-opacity-5 overflow-hidden">
482
482
  <div class="relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8">
483
483
  <a href="https://www.thunderheadeng.com/about/"
484
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
484
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
485
485
  <!-- Heroicon name: outline/information-circle -->
486
486
  <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-teci-blue-light" fill="none"
487
487
  viewBox="0 0 24 24" stroke="currentColor">
@@ -499,7 +499,7 @@
499
499
  </a>
500
500
 
501
501
  <a href="https://www.thunderheadeng.com/news/"
502
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
502
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
503
503
  <!-- Heroicon name: outline/speakerphone -->
504
504
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
505
505
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -517,7 +517,7 @@
517
517
  </a>
518
518
 
519
519
  <a href="https://www.thunderheadeng.com/job-openings/"
520
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
520
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
521
521
  <!-- Heroicon name: outline/briefcase -->
522
522
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
523
523
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -535,7 +535,7 @@
535
535
  </a>
536
536
 
537
537
  <a href="https://www.thunderheadeng.com/pyrosim/pyrosim-licensing/#distributors"
538
- class="-m-3 p-3 flex items-start rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
538
+ class="-m-3 p-3 flex items-start hover:bg-gray-50 transition ease-in-out duration-150">
539
539
  <!-- Heroicon name: outline/globe-alt -->
540
540
  <svg xmlns="http://www.w3.org/2000/svg" class="flex-shrink-0 h-6 w-6 text-teci-blue-light"
541
541
  fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -1,8 +1,10 @@
1
1
  <script>
2
+ // Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
2
3
  export let icon;
3
4
  export let classes;
4
5
  </script>
5
6
 
7
+ <div>
6
8
  {#if icon == 'pyrosim'}
7
9
  <img
8
10
  class={classes}
@@ -24,6 +26,10 @@
24
26
  alt="PetraSim"
25
27
  title="PetraSim Icon"
26
28
  />
29
+ {:else if icon?.startsWith("icon-")}
30
+ <div class="{classes} w-12 bg-teci-blue-dark flex flex-col justify-center items-center">
31
+ <span class="material-icons block text-4xl text-white">{icon?.slice(5)}</span>
32
+ </div>
27
33
  {:else}
28
34
  <svg class={classes} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250">
29
35
  <path
@@ -43,3 +49,4 @@
43
49
  />
44
50
  </svg>
45
51
  {/if}
52
+ </div>
@@ -0,0 +1,29 @@
1
+ <script>
2
+ import YT from "./YT.svelte"
3
+ export let data;
4
+ </script>
5
+
6
+ <section class="w-full mx-auto flex flex-col md:flex-row items-center">
7
+ {#if data.video}
8
+ <div class="w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
9
+ <YT v={data.video} />
10
+ </div>
11
+ {:else if data.image}
12
+ <a class="block w-full max-w-xl mb-4 md:mb-0" href={data.image}>
13
+ <figure>
14
+ <img class="aspect-video object-cover" src={data.image} alt={data.name}/>
15
+ </figure>
16
+ </a>
17
+ {/if}
18
+ <div class="flex flex-col justify-center {data.position === 'right' ? 'md:order-last md:ml-8' : 'md:order-first md:mr-8'}">
19
+ <div class="w-full max-w-3xl">
20
+ <h2 class="text-lg font-bold pb-4">{data.name}</h2>
21
+ <span class="prose">{@html data.text}</span>
22
+ </div>
23
+ {#if data.ctaText}
24
+ <div class="text-right md:text-left mt-4">
25
+ <a class="inline-block btn" href={data.ctaURL}>{data.ctaText}</a>
26
+ </div>
27
+ {/if}
28
+ </div>
29
+ </section>
@@ -0,0 +1,23 @@
1
+ /** @typedef {typeof __propDef.props} MediaFeatureProps */
2
+ /** @typedef {typeof __propDef.events} MediaFeatureEvents */
3
+ /** @typedef {typeof __propDef.slots} MediaFeatureSlots */
4
+ export default class MediaFeature extends SvelteComponentTyped<{
5
+ data: any;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {}> {
9
+ }
10
+ export type MediaFeatureProps = typeof __propDef.props;
11
+ export type MediaFeatureEvents = typeof __propDef.events;
12
+ export type MediaFeatureSlots = typeof __propDef.slots;
13
+ import { SvelteComponentTyped } from "svelte";
14
+ declare const __propDef: {
15
+ props: {
16
+ data: any;
17
+ };
18
+ events: {
19
+ [evt: string]: CustomEvent<any>;
20
+ };
21
+ slots: {};
22
+ };
23
+ export {};
@@ -17,8 +17,8 @@
17
17
 
18
18
  {#if shown}
19
19
  <div class="fixed inset-0 bg-gray-900 bg-opacity-50 overflow-y-auto h-full w-full">
20
- <div class="relative top-20 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white">
21
- <button type="button" on:click={hide} class="absolute top-0 right-0 bg-white rounded-sm p-1 mr-2 mt-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
20
+ <div class="relative top-20 mx-auto p-5 border w-96 shadow-lg bg-white">
21
+ <button type="button" on:click={hide} class="absolute top-0 right-0 bg-white p-1 mr-2 mt-2 inline-flex items-center justify-center text-teci-blue-light hover:text-white hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-inset focus:ring-teci-blue-dark">
22
22
  <span class="sr-only">Close menu</span>
23
23
  <!-- Heroicon name: outline/x -->
24
24
  <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
@@ -3,65 +3,57 @@
3
3
  export let posts;
4
4
  </script>
5
5
 
6
- <div class="relative pb-12 w-full mx-auto divide-y-2 divide-gray-200">
6
+ <div class="relative mx-auto w-full divide-y-2 divide-gray-200">
7
7
  <div>
8
- <h2 class="text-3xl tracking-tight font-extrabold text-gray-900 sm:text-4xl">
9
- {data.title}
10
- </h2>
11
- <div
12
- class="mt-3 sm:mt-4 lg:grid lg:grid-cols-2 lg:gap-5 lg:items-center"
13
- >
14
- <p class="text-xl text-gray-500">{data.subtitle}</p>
15
- <form class="mt-6 flex flex-col sm:flex-row lg:mt-0 lg:justify-end">
16
- <div>
17
- <label for="email-address" class="sr-only"
18
- >Email address</label
19
- >
20
- <input
21
- id="email-address"
22
- name="email-address"
23
- type="email"
24
- autocomplete="email"
25
- required
26
- class="appearance-none w-full px-4 py-2 border border-gray-300 text-base rounded-md text-gray-900 bg-white placeholder-gray-500 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 lg:max-w-xs"
27
- placeholder="Enter your email"
28
- />
29
- </div>
30
- <div
31
- class="mt-2 flex-shrink-0 w-full flex rounded-md shadow-sm sm:mt-0 sm:ml-3 sm:w-auto sm:inline-flex"
32
- >
33
- <button
34
- type="button"
35
- class="w-full bg-indigo-600 px-4 py-2 border border-transparent rounded-md flex items-center justify-center text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:w-auto sm:inline-flex"
36
- >Notify me</button
37
- >
38
- </div>
39
- </form>
40
- </div>
8
+ <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl">
9
+ {data.title}
10
+ </h2>
11
+ <div class="mt-3 sm:mt-4 lg:grid lg:grid-cols-2 lg:items-center lg:gap-5">
12
+ <p class="text-xl text-gray-500">{data.subtitle}</p>
13
+ <form class="mt-6 flex flex-col sm:flex-row lg:mt-0 lg:justify-end">
14
+ <div>
15
+ <label for="email-address" class="sr-only">Email address</label>
16
+ <input
17
+ id="email-address"
18
+ name="email-address"
19
+ type="email"
20
+ autocomplete="email"
21
+ required
22
+ class="w-full appearance-none border-b-2 border-b-gray-800 bg-white px-4 py-2 text-base text-gray-900 placeholder-gray-500 focus:border-teci-blue-light focus:outline-none focus:ring-teci-blue-light lg:max-w-xs"
23
+ placeholder="Enter your email"
24
+ />
25
+ </div>
26
+ <div
27
+ class="mt-2 flex w-full flex-shrink-0 shadow-sm sm:mt-0 sm:ml-3 sm:inline-flex sm:w-auto"
28
+ >
29
+ <button type="button" class="btn">Subscribe</button>
30
+ </div>
31
+ </form>
32
+ </div>
41
33
  </div>
42
- <div class="mt-6 pt-10 grid gap-16 lg:grid-cols-2 lg:gap-x-5 lg:gap-y-12">
43
- {#each posts as post}
44
- <div>
45
- <p class="text-sm text-gray-500">
46
- <time datetime="{post.meta.date}">{post.meta.date}</time>
47
- </p>
48
- <a href={post.path} class="mt-2 block">
49
- <p class="text-xl font-semibold text-gray-900">
50
- {post.meta.title}
51
- </p>
52
- <p class="mt-3 text-base text-gray-500">
53
- {post.meta.summary}
54
- </p>
55
- </a>
56
- <div class="mt-3">
57
- <a
58
- href="{post.path}"
59
- class="text-base font-semibold text-indigo-600 hover:text-indigo-500"
60
- >
61
- Read full story
62
- </a>
63
- </div>
64
- </div>
65
- {/each}
34
+ <div class="mt-6 grid gap-16 pt-10 lg:grid-cols-2 lg:gap-x-5 lg:gap-y-12">
35
+ {#each posts as post}
36
+ <div>
37
+ <p class="text-sm text-gray-500">
38
+ <time datetime={post.meta.date}>{post.meta.date}</time>
39
+ </p>
40
+ <a href={post.path} class="mt-2 block">
41
+ <p class="text-xl font-semibold text-gray-900">
42
+ {post.meta.title}
43
+ </p>
44
+ <p class="mt-3 text-base text-gray-500">
45
+ {post.meta.summary}
46
+ </p>
47
+ </a>
48
+ <div class="mt-3">
49
+ <a
50
+ href={post.path}
51
+ class="text-base font-semibold text-teci-blue-light hover:text-teci-blue-dark"
52
+ >
53
+ Read full story
54
+ </a>
55
+ </div>
56
+ </div>
57
+ {/each}
66
58
  </div>
67
59
  </div>
@@ -1,24 +1,26 @@
1
1
  <script>
2
- //Based on: https://tailwindui.com/components/marketing/sections/header#component-2c3b25e7b9e4490edd7b6950692c0a11
3
-
4
- export let data = {
5
- toptext: 'Small Top Text ',
6
- title: 'Big Title Text',
7
- subtitle: 'Subtitle Text'
8
- };
2
+ //Based on: https://tailwindui.com/components/marketing/sections/header#component-2c3b25e7b9e4490edd7b6950692c0a11
3
+
4
+ export let data = {
5
+ toptext: 'Small Top Text ',
6
+ title: 'Big Title Text',
7
+ subtitle: 'Subtitle Text - Fairly long to see where the text wraps for this element, because who knows where things will end up.'
8
+ };
9
9
  </script>
10
10
 
11
11
  <!-- This example requires Tailwind CSS v2.0+ -->
12
- <div class="text-center pb-12">
13
- {#if data.toptext}
14
- <h2 class="text-base font-semibold text-indigo-600 tracking-wide uppercase">
15
- {data.toptext}
16
- </h2>
17
- {/if}
18
- <p class="mt-1 text-4xl font-extrabold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl">
19
- {data.title}
20
- </p>
21
- <p class="max-w-xl mt-5 mx-auto text-xl text-gray-500">
22
- {data.subtitle}
23
- </p>
12
+ <div class="w-full text-center">
13
+ {#if data.toptext}
14
+ <h2 class="text-base font-semibold text-teci-blue-dark tracking-wide uppercase">
15
+ {data.toptext}
16
+ </h2>
17
+ {/if}
18
+ <p class="mt-1 text-4xl font-extrabold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl">
19
+ {data.title}
20
+ </p>
21
+ {#if data.subtitle}
22
+ <p class="max-w-4xl mt-5 mx-auto text-xl text-gray-500">
23
+ {data.subtitle}
24
+ </p>
25
+ {/if}
24
26
  </div>
@@ -0,0 +1,53 @@
1
+ <script>
2
+ import { onMount } from "svelte";
3
+ export let data;
4
+
5
+ let tocMoved = false;
6
+
7
+ onMount(() => {
8
+ function moveTOC() {
9
+ console.log("Moving TOC");
10
+ var oldParent = document.getElementsByClassName('page-toc')[0];
11
+ if (oldParent && oldParent.nodeType == 1){
12
+ var newParent = document.getElementById('sidebar-nav');
13
+ var loader = document.getElementById('loader');
14
+ var classes = oldParent.classList;
15
+ newParent.insertAdjacentElement('beforeend', oldParent)
16
+ loader.remove();
17
+ classes.remove("hidden");
18
+ tocMoved = true;
19
+ console.log("TOC Moved")
20
+ } else {
21
+ console.log(tocMoved, oldParent);
22
+ if(!tocMoved && oldParent == undefined){
23
+ console.log("Reloading");
24
+ window.location.reload();
25
+ } else {
26
+ console.log("Leave it alone.")
27
+ tocMoved = true;
28
+ }
29
+ }
30
+ };
31
+
32
+ if (tocMoved == false && data.sidebar) {
33
+ moveTOC();
34
+ };
35
+ });
36
+ </script>
37
+
38
+ <section class="w-auto mx-auto flex flex-col lg:flex-row items-start lg:space-x-8">
39
+ {#if data.sidebar}
40
+ <div id="sidebar-nav" class="pr-4 lg:text-right font-medium mb-4 w-auto lg:max-w-xs lg:mb-0 lg:w-60 lg:sticky lg:top-8 shrink-0 lg:border-r lg:border-r-gray-400">
41
+ <div id="loader">
42
+ <svg role="status" class="inline-block mr-2 w-6 h-6 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
43
+ <path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
44
+ <path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/>
45
+ </svg>
46
+ <span class="inline-block">Loading...</span>
47
+ </div>
48
+ </div>
49
+ {/if}
50
+ <div id="text" class="w-full prose max-w-none lg:max-w-prose">
51
+ <slot />
52
+ </div>
53
+ </section>
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} SidebarContentProps */
2
+ /** @typedef {typeof __propDef.events} SidebarContentEvents */
3
+ /** @typedef {typeof __propDef.slots} SidebarContentSlots */
4
+ export default class SidebarContent extends SvelteComponentTyped<{
5
+ data: any;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {
9
+ default: {};
10
+ }> {
11
+ }
12
+ export type SidebarContentProps = typeof __propDef.props;
13
+ export type SidebarContentEvents = typeof __propDef.events;
14
+ export type SidebarContentSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ data: any;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {
24
+ default: {};
25
+ };
26
+ };
27
+ export {};
@@ -2,63 +2,69 @@
2
2
  //Based on:
3
3
  //https://tailwindui.com/components/marketing/sections/feature-sections#component-c683653471044e6ffc32739e199dfbf2
4
4
  //https://tailwindui.com/components/marketing/sections/team-sections#component-0efa5ebc92e2aa72bc2332fcf5578869
5
+ //Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
5
6
 
6
7
  import Icon from './Icon.svelte';
7
8
 
8
- export let title = 'A better way to send money.';
9
+ export let title = 'A better way to do things.';
9
10
 
10
11
  export let data = [
11
12
  {
12
13
  icon: 'pyrosim',
13
14
  image: 'https://www.thunderheadeng.com/wp-content/uploads/2013/09/company_pyrosim.jpg',
14
- heading: 'PyroSim',
15
- subheading: 'Fire & Smoke',
16
- text: 'Analyze fire control and smoke dissipation in various structures for fire protection and safety or investigation.',
17
- linkText: 'Learn More »',
18
- linkURL: '/pyrosim'
15
+ heading: 'Product 1',
16
+ subheading: 'Nutshell',
17
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis quam ultrices, vestibulum lacus nec, interdum est. Ut.',
18
+ linkURL: '/product'
19
19
  },
20
20
  {
21
- icon: 'pathfinder',
21
+ icon: '',
22
22
  image: 'https://www.thunderheadeng.com/wp-content/uploads/2013/08/company_pathfinder.png',
23
- heading: 'Pathfinder',
24
- subheading: 'Evacuation',
25
- text: 'Understand pedestrian egress and congestion hazards for fire protection and safety or urban planning.',
26
- linkText: 'Learn More »',
27
- linkURL: '/pathfinder'
23
+ heading: 'Product 2',
24
+ subheading: 'No Icon',
25
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis quam ultrices, vestibulum lacus nec, interdum est. Ut.',
26
+ linkURL: '/product'
28
27
  },
29
28
  {
30
- icon: 'petrasim',
29
+ icon: 'icon-auto_stories',
31
30
  image: 'https://www.thunderheadeng.com/wp-content/uploads/2013/08/company_petrasim.png',
32
- heading: 'PetraSim',
33
- subheading: 'Subsurface Flow',
34
- text: 'Model nonisothermal multiphase flow and transport in fractured and porous media for environmental engineering.',
35
- linkText: 'Learn More »',
36
- linkURL: '/petrasim'
31
+ heading: 'Google Icon, No Subtitle or Text',
32
+ subheading: '',
33
+ text: '',
34
+ linkURL: '/product'
37
35
  }
38
36
  ];
39
37
  </script>
40
38
 
41
39
  <!-- This example requires Tailwind CSS v2.0+ -->
42
- <div class="pb-12 bg-white mx-auto">
40
+ <div class="w-full mx-auto">
43
41
  <h2 class="sr-only">{title}</h2>
44
42
  <dl class="space-y-10 sm:grid sm:grid-cols-2 sm:gap-8 sm:space-y-0 lg:grid-cols-3">
45
43
  {#each data as col}
46
44
  <div>
47
45
  <a href={col.linkURL}>
48
46
  <div class="space-y-4">
49
- <div class="aspect-w-3 aspect-h-2">
50
- <img class="object-cover shadow-lg rounded-lg" src={col.image} alt="" />
47
+ {#if col.image}
48
+ <div class="w-full aspect-square bg-slate-100">
49
+ <img class="w-full aspect-square object-cover shadow-md border border-gray-200" src={col.image} alt="" />
51
50
  </div>
52
- <div class="flex flex-row items-center space-x-4">
53
- <Icon classes="h-12 w-auto" icon={col.icon} />
54
- <div class="leading-6 font-medium">
55
- <h3 class="text-2xl">{col.heading}</h3>
56
- <p class="text-teci-blue-dark">{col.subheading}</p>
51
+ {/if}
52
+ <div class="flex flex-row items-start space-x-4">
53
+ {#if col.icon}
54
+ <Icon classes="h-12 w-auto" icon={col.icon} />
55
+ {/if}
56
+ <div class="leading-none font-medium flex flex-col">
57
+ <h3 class="text-2xl leading-none">{col.heading}</h3>
58
+ {#if col.subheading}
59
+ <p class="text-teci-blue-dark leading-6">{col.subheading}</p>
60
+ {/if}
57
61
  </div>
58
62
  </div>
59
- <div class="text-lg">
63
+ {#if col.text}
64
+ <div class="text-lg">
60
65
  <p class="text-gray-500">{col.text}</p>
61
66
  </div>
67
+ {/if}
62
68
  </div>
63
69
  </a>
64
70
  </div>
@@ -8,7 +8,6 @@ export default class ThreeColumn extends SvelteComponentTyped<{
8
8
  heading: string;
9
9
  subheading: string;
10
10
  text: string;
11
- linkText: string;
12
11
  linkURL: string;
13
12
  }[];
14
13
  title?: string;
@@ -28,7 +27,6 @@ declare const __propDef: {
28
27
  heading: string;
29
28
  subheading: string;
30
29
  text: string;
31
- linkText: string;
32
30
  linkURL: string;
33
31
  }[];
34
32
  title?: string;
@@ -59,13 +59,11 @@ const submitForm = async () => {
59
59
  };
60
60
  </script>
61
61
 
62
- <div class="prose">
63
- <h2>30-day Trial Request</h2>
64
- </div>
65
- <div class="mt-10 sm:mt-0 pb-12">
62
+ <div class="mt-10 sm:mt-0">
66
63
  <div class="md:grid md:grid-cols-3 md:gap-6 mt-8">
67
64
  <div class="md:col-span-1">
68
- <div class=" prose px-4 sm:px-0">
65
+ <div class="prose px-4 sm:px-0">
66
+ <h2>30-day Trial Request</h2>
69
67
  <p>
70
68
  Please complete the form and click "Send Request". <b>All fields are required.</b>
71
69
  </p>
@@ -2,11 +2,13 @@
2
2
  export let v
3
3
  </script>
4
4
 
5
- <iframe
6
- class="w-full aspect-video border border-slate-100 shadow-lg p-2"
7
- src="https://www.youtube-nocookie.com/embed/{v}"
8
- title="YouTube video player"
5
+ <section class="w-full aspect-video border bg-black border-gray-200 shadow-md">
6
+ <iframe
7
+ src="https://www.youtube-nocookie.com/embed/{v}?rel=0&modestbranding=1"
8
+ title="YouTube Video ID {v}"
9
+ class="w-full aspect-video"
9
10
  frameborder="0"
10
- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
11
+ allow="accelerometer; clipboard-write; encrypted-media; gyroscope"
11
12
  allowfullscreen
12
13
  />
14
+ </section>
@@ -1,7 +1,11 @@
1
1
  <script>
2
- import SectionHeaderCentered from 'tecitheme/components/SectionHeaderCentered.svelte';
3
- import ThreeColumn from 'tecitheme/components/ThreeColumn.svelte';
4
- import NewsGrid from 'tecitheme/components/NewsGrid.svelte';
2
+ import SectionHeaderCentered from '../components/SectionHeaderCentered.svelte';
3
+ import ThreeColumn from '../components/ThreeColumn.svelte';
4
+ import NewsGrid from '../components/NewsGrid.svelte';
5
+ import YT from '../components/YT.svelte';
6
+ import CTA from '../components/CTA.svelte';
7
+ import SidebarContent from '../components/SidebarContent.svelte';
8
+ import MediaFeature from '../components/MediaFeature.svelte';
5
9
 
6
10
  export let title
7
11
  export let page_sections
@@ -9,17 +13,29 @@
9
13
  </script>
10
14
 
11
15
  <svelte:head>
12
- <title>{title}</title>
16
+ <title>{title} | Thunderhead Engineering</title>
13
17
  </svelte:head>
14
18
 
19
+ <article class="flex flex-col space-y-12">
15
20
  {#each page_sections as section}
16
- {#if section.block == "heading-centered"}
21
+ {#if section.fieldGroup == "heading-centered"}
17
22
  <SectionHeaderCentered bind:data={section} />
18
- {:else if section.block == "three-column"}
23
+ {:else if section.fieldGroup == "three-column"}
19
24
  <ThreeColumn bind:data={section.cards} />
20
- {:else if section.block == "news-grid"}
25
+ {:else if section.fieldGroup == "news-grid"}
21
26
  <NewsGrid bind:data={section} bind:posts={posts} />
22
- {:else if section.block == "content"}
27
+ {:else if section.fieldGroup == "video"}
28
+ <YT bind:v={section.v} />
29
+ {:else if section.fieldGroup == "cta-center"}
30
+ <CTA bind:data={section} />
31
+ {:else if section.fieldGroup == "sidebar-content"}
32
+ <SidebarContent bind:data={section}>
33
+ <slot/>
34
+ </SidebarContent>
35
+ {:else if section.fieldGroup == "media-feature"}
36
+ <MediaFeature bind:data={section} />
37
+ {:else if section.fieldGroup == "content"}
23
38
  <div class="content prose"><slot/></div>
24
39
  {/if}
25
- {/each}
40
+ {/each}
41
+ </article>
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
+ "@jsdevtools/rehype-toc": "^3.0.2",
6
7
  "@sveltejs/adapter-auto": "next",
7
- "@sveltejs/adapter-netlify": "^1.0.0-next.44",
8
+ "@sveltejs/adapter-netlify": "next",
8
9
  "@sveltejs/kit": "next",
9
- "@tailwindcss/forms": "^0.4.0",
10
- "@tailwindcss/typography": "^0.5.1",
10
+ "@tailwindcss/forms": "^0.5.0",
11
+ "@tailwindcss/typography": "^0.5.2",
11
12
  "@types/cookie": "^0.4.1",
12
13
  "@typescript-eslint/eslint-plugin": "^4.31.1",
13
14
  "@typescript-eslint/parser": "^4.31.1",
@@ -20,43 +21,48 @@
20
21
  "mdsvex": "^0.10.5",
21
22
  "postcss": "^8.4.6",
22
23
  "prettier": "^2.5.1",
23
- "prettier-plugin-tailwindcss": "^0.1.5",
24
+ "prettier-plugin-tailwindcss": "^0.1.7",
25
+ "rehype-parse": "^8.0.4",
26
+ "rehype-slug": "^5.0.1",
27
+ "rehype-stringify": "^9.0.3",
24
28
  "stream": "^0.0.2",
25
- "svelte": "^3.46.3",
26
- "svelte-check": "^2.4.2",
29
+ "svelte": "^3.46.4",
30
+ "svelte-check": "^2.4.3",
27
31
  "svelte-cubed": "^0.2.1",
28
- "svelte-preprocess": "^4.10.2",
29
- "svelte2tsx": "^0.5.2",
30
- "tailwindcss": "^3.0.18",
32
+ "svelte-preprocess": "^4.10.4",
33
+ "svelte2tsx": "^0.5.3",
34
+ "tailwindcss": "^3.0.23",
31
35
  "three": "^0.137.5",
32
36
  "tslib": "^2.3.1",
33
37
  "typescript": "^4.5.5",
34
- "vite": "^2.7.13"
38
+ "vite": "^2.8.3"
35
39
  },
36
40
  "type": "module",
37
41
  "dependencies": {
38
42
  "@lukeed/uuid": "^2.0.0",
39
- "cookie": "^0.4.1",
40
- "katex": "^0.15.2",
41
- "ultra_cart_rest_api_v2": "^3.6.36"
43
+ "cookie": "^0.4.2",
44
+ "katex": "^0.15.2"
42
45
  },
43
46
  "exports": {
44
47
  "./package.json": "./package.json",
45
48
  "./assets/TECi_logo.svelte": "./assets/TECi_logo.svelte",
46
49
  "./components/Banner.svelte": "./components/Banner.svelte",
50
+ "./components/Button.svelte": "./components/Button.svelte",
51
+ "./components/CTA.svelte": "./components/CTA.svelte",
47
52
  "./components/CountrySelector.svelte": "./components/CountrySelector.svelte",
48
53
  "./components/Figure.svelte": "./components/Figure.svelte",
49
54
  "./components/Footer.svelte": "./components/Footer.svelte",
50
55
  "./components/Header.svelte": "./components/Header.svelte",
51
56
  "./components/Icon.svelte": "./components/Icon.svelte",
52
57
  "./components/Math.svelte": "./components/Math.svelte",
58
+ "./components/MediaFeature.svelte": "./components/MediaFeature.svelte",
53
59
  "./components/Modal.svelte": "./components/Modal.svelte",
54
60
  "./components/NewsGrid.svelte": "./components/NewsGrid.svelte",
55
61
  "./components/SectionHeaderCentered.svelte": "./components/SectionHeaderCentered.svelte",
62
+ "./components/SidebarContent.svelte": "./components/SidebarContent.svelte",
56
63
  "./components/ThreeColumn.svelte": "./components/ThreeColumn.svelte",
57
64
  "./components/TrialForm.svelte": "./components/TrialForm.svelte",
58
65
  "./components/YT.svelte": "./components/YT.svelte",
59
- "./demodata": "./demodata.js",
60
66
  "./layouts/blocks.svelte": "./layouts/blocks.svelte",
61
67
  "./layouts/news.svelte": "./layouts/news.svelte",
62
68
  "./req_utils": "./req_utils.js",
package/demodata.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export namespace bannerData {
2
- const showCTA: boolean;
3
- const shortText: string;
4
- const longText: string;
5
- const ctaText: string;
6
- const ctaLink: string;
7
- }
package/demodata.js DELETED
@@ -1,7 +0,0 @@
1
- export const bannerData = {
2
- showCTA: true,
3
- shortText: "Some Banner Short text in a few words.",
4
- longText: "Some Banner Long test text that goes on and on for a while with some information about something.",
5
- ctaText: "Take Action",
6
- ctaLink: "https://www.thunderheadeng.com"
7
- }