tecitheme 0.7.6 → 0.8.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.
Files changed (76) hide show
  1. package/package.json +1 -1
  2. package/dist/assets/TECi_logo.svelte +0 -177
  3. package/dist/assets/TECi_logo.svelte.d.ts +0 -23
  4. package/dist/assets/js/store.d.ts +0 -3
  5. package/dist/assets/js/store.js +0 -4
  6. package/dist/components/Accordion.svelte +0 -74
  7. package/dist/components/Accordion.svelte.d.ts +0 -27
  8. package/dist/components/Banner.svelte +0 -91
  9. package/dist/components/Banner.svelte.d.ts +0 -33
  10. package/dist/components/Button.svelte +0 -21
  11. package/dist/components/Button.svelte.d.ts +0 -37
  12. package/dist/components/CTA.svelte +0 -51
  13. package/dist/components/CTA.svelte.d.ts +0 -23
  14. package/dist/components/CTASplitImage.svelte +0 -34
  15. package/dist/components/CTASplitImage.svelte.d.ts +0 -23
  16. package/dist/components/Card.svelte +0 -91
  17. package/dist/components/Card.svelte.d.ts +0 -25
  18. package/dist/components/CognitoForm.svelte +0 -24
  19. package/dist/components/CognitoForm.svelte.d.ts +0 -27
  20. package/dist/components/ContentTwoColumns.svelte +0 -54
  21. package/dist/components/ContentTwoColumns.svelte.d.ts +0 -23
  22. package/dist/components/CountrySelector.svelte +0 -167
  23. package/dist/components/CountrySelector.svelte.d.ts +0 -27
  24. package/dist/components/FeatureGrid.svelte +0 -44
  25. package/dist/components/FeatureGrid.svelte.d.ts +0 -23
  26. package/dist/components/Figure.svelte +0 -40
  27. package/dist/components/Figure.svelte.d.ts +0 -29
  28. package/dist/components/Footer.svelte +0 -243
  29. package/dist/components/Footer.svelte.d.ts +0 -23
  30. package/dist/components/Header.svelte +0 -1178
  31. package/dist/components/Header.svelte.d.ts +0 -30
  32. package/dist/components/HeadingCentered.svelte +0 -38
  33. package/dist/components/HeadingCentered.svelte.d.ts +0 -23
  34. package/dist/components/Hero.svelte +0 -82
  35. package/dist/components/Hero.svelte.d.ts +0 -23
  36. package/dist/components/Icon.svelte +0 -162
  37. package/dist/components/Icon.svelte.d.ts +0 -25
  38. package/dist/components/LogoCloud.svelte +0 -25
  39. package/dist/components/LogoCloud.svelte.d.ts +0 -23
  40. package/dist/components/Math.svelte +0 -24
  41. package/dist/components/Math.svelte.d.ts +0 -25
  42. package/dist/components/MediaFeature.svelte +0 -76
  43. package/dist/components/MediaFeature.svelte.d.ts +0 -23
  44. package/dist/components/Modal.svelte +0 -69
  45. package/dist/components/Modal.svelte.d.ts +0 -29
  46. package/dist/components/NewsGrid.svelte +0 -196
  47. package/dist/components/NewsGrid.svelte.d.ts +0 -23
  48. package/dist/components/PricingTable.svelte +0 -100
  49. package/dist/components/PricingTable.svelte.d.ts +0 -23
  50. package/dist/components/SidebarContent.svelte +0 -124
  51. package/dist/components/SidebarContent.svelte.d.ts +0 -33
  52. package/dist/components/Stats.svelte +0 -40
  53. package/dist/components/Stats.svelte.d.ts +0 -23
  54. package/dist/components/Testimonial.svelte +0 -168
  55. package/dist/components/Testimonial.svelte.d.ts +0 -23
  56. package/dist/components/ThreeColumn.svelte +0 -20
  57. package/dist/components/ThreeColumn.svelte.d.ts +0 -23
  58. package/dist/components/TrialForm.svelte +0 -296
  59. package/dist/components/TrialForm.svelte.d.ts +0 -14
  60. package/dist/components/Video.svelte +0 -125
  61. package/dist/components/Video.svelte.d.ts +0 -27
  62. package/dist/components/Wrap.svelte +0 -12
  63. package/dist/components/Wrap.svelte.d.ts +0 -31
  64. package/dist/get-content.d.ts +0 -9
  65. package/dist/get-content.js +0 -98
  66. package/dist/index.d.ts +0 -31
  67. package/dist/index.js +0 -31
  68. package/dist/layouts/blocks.svelte +0 -95
  69. package/dist/layouts/blocks.svelte.d.ts +0 -47
  70. package/dist/req_utils.d.ts +0 -3
  71. package/dist/req_utils.js +0 -63
  72. package/dist/site_config.json +0 -13
  73. package/dist/utils.d.ts +0 -5
  74. package/dist/utils.js +0 -162
  75. package/dist/variables.d.ts +0 -3
  76. package/dist/variables.js +0 -5
@@ -1,30 +0,0 @@
1
- /** @typedef {typeof __propDef.props} HeaderProps */
2
- /** @typedef {typeof __propDef.events} HeaderEvents */
3
- /** @typedef {typeof __propDef.slots} HeaderSlots */
4
- export default class Header extends SvelteComponent<{
5
- clickOutside?: (node: any) => {
6
- destroy(): void;
7
- };
8
- }, {
9
- [evt: string]: CustomEvent<any>;
10
- }, {}> {
11
- get clickOutside(): (node: any) => {
12
- destroy(): void;
13
- };
14
- }
15
- export type HeaderProps = typeof __propDef.props;
16
- export type HeaderEvents = typeof __propDef.events;
17
- export type HeaderSlots = typeof __propDef.slots;
18
- import { SvelteComponent } from "svelte";
19
- declare const __propDef: {
20
- props: {
21
- clickOutside?: (node: any) => {
22
- destroy(): void;
23
- };
24
- };
25
- events: {
26
- [evt: string]: CustomEvent<any>;
27
- };
28
- slots: {};
29
- };
30
- export {};
@@ -1,38 +0,0 @@
1
- <script>
2
- //Based on: https://tailwindui.com/components/marketing/sections/header#component-2c3b25e7b9e4490edd7b6950692c0a11
3
- import Icon from "./Icon.svelte";
4
- export let data = {};
5
- let id
6
-
7
- if (data.name) {
8
- id = encodeURIComponent(data.name).toLowerCase()
9
- }
10
- </script>
11
-
12
- <!-- This example requires Tailwind CSS v2.0+ -->
13
- <section {id} class="w-full text-center">
14
- {#if data.toptext}
15
- <p class="text-base font-semibold uppercase text-teci-blue-dark">
16
- {data.toptext}
17
- </p>
18
- {/if}
19
- {#if data.title || data.logo}
20
- {#if data.logo}
21
- <div class="grid place-items-center">
22
- <h1 class="sr-only">{data.title}</h1>
23
- <Icon classes={data.classes} icon={data.logo} />
24
- </div>
25
- {:else}
26
- <h1
27
- class="mt-1 text-4xl font-bold text-gray-900 sm:text-5xl sm:tracking-tight lg:text-6xl"
28
- >
29
- {data.title}
30
- </h1>
31
- {/if}
32
- {/if}
33
- {#if data.subtitle}
34
- <p class="mx-auto mt-5 max-w-4xl text-xl text-gray-500">
35
- {data.subtitle}
36
- </p>
37
- {/if}
38
- </section>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} HeadingCenteredProps */
2
- /** @typedef {typeof __propDef.events} HeadingCenteredEvents */
3
- /** @typedef {typeof __propDef.slots} HeadingCenteredSlots */
4
- export default class HeadingCentered extends SvelteComponent<{
5
- data?: {};
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type HeadingCenteredProps = typeof __propDef.props;
11
- export type HeadingCenteredEvents = typeof __propDef.events;
12
- export type HeadingCenteredSlots = typeof __propDef.slots;
13
- import { SvelteComponent } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- data?: {};
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export {};
@@ -1,82 +0,0 @@
1
- <script>
2
- import Icon from './Icon.svelte'
3
-
4
- import { getColorStyles } from '../utils'
5
- export let data = {};
6
- let id
7
-
8
- if (data.name) {
9
- id = encodeURIComponent(data.name).toLowerCase()
10
- }
11
- </script>
12
-
13
- <section {id} class="relative">
14
- <div class="mx-auto max-w-7xl md:grid md:grid-cols-12 md:gap-x-8 md:px-0">
15
- <div class="pt-0 pb-0 md:col-span-8 lg:col-span-7 xl:col-span-6">
16
- <div class="mx-auto">
17
- {#if data.logo}
18
- <span class="sr-only">{data.title}</span>
19
- <Icon icon={data.logo} classes="h-12 sm:h-20" />
20
- {:else}
21
- <h1 class="z-10 text-4xl font-bold tracking-tight sm:text-center sm:text-6xl">
22
- {data.heading}
23
- </h1>
24
- {/if}
25
- {#if data.banner_text}
26
- <div class="mt-6 sm:mt-8 lg:mt-4 inline-flex space-x-6">
27
- <a href={data.banner_url}>
28
- <span class="rounded-full bg-gray-300/10 border px-3 py-1 text-sm font-semibold leading-6 {getColorStyles('text', data.color)}">
29
- {data.banner_text}
30
- </span>
31
- </a>
32
- <a href={data.banner_link_url}>
33
- <span class="inline-flex items-center space-x-1 text-sm font-medium leading-6 text-gray-500">
34
- <span>{data.banner_link_text}</span>
35
- <!-- Heroicon name: mini/chevron-right -->
36
- <svg class="h-5 w-5 {getColorStyles('text', data.color)}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
37
- <path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
38
- </svg>
39
- </span>
40
- </a>
41
- </div>
42
- {/if}
43
- <h2 class="mt-10 text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl">{data.tagline}</h2>
44
- <p class="mt-6 text-lg leading-8">{data.text}</p>
45
- {#if data.ctas}
46
- <div class="mt-10 flex gap-x-8 sm:justify-left">
47
- {#each data.ctas as cta}
48
- <a href={cta.url} class="inline-block btn {getColorStyles('button', cta.color)}">
49
- {cta.text}
50
- <span class="hidden sm:inline" aria-hidden="true">&rarr;</span>
51
- </a>
52
- {/each}
53
- </div>
54
- {/if}
55
- <div class="mt-16">
56
- <section class="{getColorStyles('background', data.color)}">
57
- <div class="text-center mx-auto max-w-4xl py-10 px-6 sm:py-10 lg:px-8">
58
- <h2 class="text-3xl font-bold tracking-tight text-white sm:text-2xl">
59
- <span class="block">{@html data.heading}</span>
60
- </h2>
61
- <p class="mt-4 text-lg leading-6 text-gray-200">{@html data.body}</p>
62
- <a href={data.cta_url} class="mt-8 inline-block btn {getColorStyles('button', data.cta_color)}">
63
- {@html data.cta}
64
- </a>
65
- </div>
66
- </section>
67
- </div>
68
- </div>
69
- </div>
70
- <div class="relative hidden md:block md:col-span-4 lg:col-span-5 xl:col-span-6">
71
- {#if data.video}
72
- <video src="https://teci.imgix.net/www/videos/{data.video}" autoplay="true" loop muted
73
- class="absolute object-cover h-full w-full">
74
- </video>
75
- {:else if data.image}
76
- <img src="https://teci.imgix.net/www/images/{data.image}?fmt=auto" alt={data.heading}
77
- class="absolute object-cover h-full w-full"
78
- >
79
- {/if}
80
- </div>
81
- </div>
82
- </section>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} HeroProps */
2
- /** @typedef {typeof __propDef.events} HeroEvents */
3
- /** @typedef {typeof __propDef.slots} HeroSlots */
4
- export default class Hero extends SvelteComponent<{
5
- data?: {};
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type HeroProps = typeof __propDef.props;
11
- export type HeroEvents = typeof __propDef.events;
12
- export type HeroSlots = typeof __propDef.slots;
13
- import { SvelteComponent } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- data?: {};
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export {};
@@ -1,162 +0,0 @@
1
- <script>
2
- // Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
3
- export let icon = undefined;
4
- export let classes = undefined;
5
-
6
- let id;
7
-
8
- if (icon) {
9
- id = encodeURIComponent(icon).toLowerCase()
10
- }
11
- </script>
12
-
13
- {#if icon == "pyrosim"}
14
- <span {id} class="not-prose">
15
- <img
16
- class={classes}
17
- src="https://teci.imgix.net/www/images/pyrosim_icon.svg"
18
- alt="PyroSim"
19
- title="PyroSim Icon"
20
- />
21
- </span>
22
- {:else if icon == "pyrosim-results"}
23
- <span {id} class="not-prose">
24
- <img
25
- class={classes}
26
- src="https://teci.imgix.net/www/images/pyrosim-results_icon.svg"
27
- alt="PyroSim Results"
28
- title="PyroSim Results Icon"
29
- />
30
- </span>
31
- {:else if icon == "pyrosim-logo"}
32
- <span {id} class="not-prose">
33
- <img
34
- class={classes}
35
- src="https://teci.imgix.net/www/images/pyrosim_logo.svg"
36
- alt="PyroSim Logo"
37
- title="PyroSim Logo"
38
- />
39
- </span>
40
- {:else if icon == "pathfinder"}
41
- <span {id} class="not-prose">
42
- <img
43
- class={classes}
44
- src="https://teci.imgix.net/www/images/pathfinder_icon.svg"
45
- alt="Pathfinder"
46
- title="Pathfinder Icon"
47
- />
48
- </span>
49
- {:else if icon == "pathfinder-results"}
50
- <span {id} class="not-prose">
51
- <img
52
- class={classes}
53
- src="https://teci.imgix.net/www/images/pathfinder-results_icon.svg"
54
- alt="Pathfinder Results"
55
- title="Pathfinder Results Icon"
56
- />
57
- </span>
58
- {:else if icon == "pathfinder-logo"}
59
- <span {id} class="not-prose">
60
- <img
61
- class={classes}
62
- src="https://teci.imgix.net/www/images/pathfinder_logo.svg"
63
- alt="Pathfinder Logo"
64
- title="Pathfinder Logo"
65
- />
66
- </span>
67
- {:else if icon == "ventus"}
68
- <span {id} class="not-prose">
69
- <img
70
- class={classes}
71
- src="https://teci.imgix.net/www/images/ventus_icon.svg"
72
- alt="Ventus"
73
- title="Ventus Icon"
74
- />
75
- </span>
76
- {:else if icon == "ventus-logo"}
77
- <span {id} class="not-prose">
78
- <img
79
- class={classes}
80
- src="https://teci.imgix.net/www/images/ventus_logo.svg"
81
- alt="Ventus Logo"
82
- title="Ventus Logo"
83
- />
84
- </span>
85
- {:else if icon == "petrasim"}
86
- <span {id} class="not-prose">
87
- <img
88
- class={classes}
89
- src="https://teci.imgix.net/www/images/petrasim_icon.svg"
90
- alt="PetraSim"
91
- title="PetraSim Icon"
92
- />
93
- </span>
94
- {:else if icon == "petrasim-logo"}
95
- <span {id} class="not-prose">
96
- <img
97
- class={classes}
98
- src="https://teci.imgix.net/www/images/petrasim_logo.svg"
99
- alt="PetraSim Logo"
100
- title="PetraSim Logo"
101
- />
102
- </span>
103
- {:else if icon == "teci-logo"}
104
- <span {id} class="not-prose">
105
- <img
106
- class={classes}
107
- src="https://teci.imgix.net/www/images/teci_logo.svg"
108
- alt="Thunderhead Logo"
109
- title="Thunderhead Logo"
110
- />
111
- </span>
112
- {:else if icon == "teci-icon"}
113
- <span {id} class="not-prose">
114
- <svg
115
- class={classes}
116
- xmlns="http://www.w3.org/2000/svg"
117
- viewBox="0 0 250 250"
118
- >
119
- <path
120
- style="fill:#0c3879;fill-rule:evenodd;stroke:none"
121
- d="M88.113 220.536h97.672v97.672H88.113z"
122
- transform="matrix(2.5596 0 0 2.5596 -225.533 -564.483)"
123
- />
124
- <path
125
- style="fill:#fff;fill-rule:evenodd;stroke:none"
126
- d="M145.864 260.176h22.042c2.792 0 4.883.835 6.559 2.651 1.532 1.673 2.232 3.764 2.232 6.278 0 2.37-.7 4.464-2.232 6.277-1.676 1.675-3.767 2.651-6.559 2.651h-22.042v-17.857m0 23.159h22.042c2.792 0 4.883.838 6.559 2.65 1.532 1.674 2.232 3.768 2.232 6.278 0 2.373-.7 4.464-2.232 6.278-1.676 1.675-3.767 2.65-6.559 2.65h-22.042v-17.856"
127
- transform="matrix(2.5596 0 0 2.5596 -225.533 -564.483)"
128
- />
129
- <path
130
- style="fill:#fff;fill-rule:evenodd;stroke:none"
131
- d="M132.471 301.192c-5.861 0-8.79-3.07-8.79-8.929l-.138-37.389-20.648-.14c-7.116-1.254-10.185-9.626-5.165-15.206 1.535-1.535 3.63-2.373 6.14-2.651h26.926l1.675.14h35.435c2.792 0 4.883.836 6.559 2.649 1.532 1.675 2.232 3.767 2.232 6.28 0 2.37-.7 4.464-2.232 6.277-1.676 1.673-3.767 2.651-6.559 2.651H141.26V301.192h-8.788"
132
- transform="matrix(2.5596 0 0 2.5596 -225.533 -564.483)"
133
- />
134
- </svg>
135
- </span>
136
- {:else if icon?.startsWith("icon-")}
137
- <span {id} class="material-icons-outlined {classes}">{icon?.slice(5)}</span>
138
- {:else}
139
- <span {id} class="not-prose">
140
- <svg
141
- class={classes}
142
- xmlns="http://www.w3.org/2000/svg"
143
- viewBox="0 0 250 250"
144
- >
145
- <path
146
- style="fill:#0c3879;fill-rule:evenodd;stroke:none"
147
- d="M88.113 220.536h97.672v97.672H88.113z"
148
- transform="matrix(2.5596 0 0 2.5596 -225.533 -564.483)"
149
- />
150
- <path
151
- style="fill:#fff;fill-rule:evenodd;stroke:none"
152
- d="M145.864 260.176h22.042c2.792 0 4.883.835 6.559 2.651 1.532 1.673 2.232 3.764 2.232 6.278 0 2.37-.7 4.464-2.232 6.277-1.676 1.675-3.767 2.651-6.559 2.651h-22.042v-17.857m0 23.159h22.042c2.792 0 4.883.838 6.559 2.65 1.532 1.674 2.232 3.768 2.232 6.278 0 2.373-.7 4.464-2.232 6.278-1.676 1.675-3.767 2.65-6.559 2.65h-22.042v-17.856"
153
- transform="matrix(2.5596 0 0 2.5596 -225.533 -564.483)"
154
- />
155
- <path
156
- style="fill:#fff;fill-rule:evenodd;stroke:none"
157
- d="M132.471 301.192c-5.861 0-8.79-3.07-8.79-8.929l-.138-37.389-20.648-.14c-7.116-1.254-10.185-9.626-5.165-15.206 1.535-1.535 3.63-2.373 6.14-2.651h26.926l1.675.14h35.435c2.792 0 4.883.836 6.559 2.649 1.532 1.675 2.232 3.767 2.232 6.28 0 2.37-.7 4.464-2.232 6.277-1.676 1.673-3.767 2.651-6.559 2.651H141.26V301.192h-8.788"
158
- transform="matrix(2.5596 0 0 2.5596 -225.533 -564.483)"
159
- />
160
- </svg>
161
- </span>
162
- {/if}
@@ -1,25 +0,0 @@
1
- /** @typedef {typeof __propDef.props} IconProps */
2
- /** @typedef {typeof __propDef.events} IconEvents */
3
- /** @typedef {typeof __propDef.slots} IconSlots */
4
- export default class Icon extends SvelteComponent<{
5
- icon?: any;
6
- classes?: any;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
- }
11
- export type IconProps = typeof __propDef.props;
12
- export type IconEvents = typeof __propDef.events;
13
- export type IconSlots = typeof __propDef.slots;
14
- import { SvelteComponent } from "svelte";
15
- declare const __propDef: {
16
- props: {
17
- icon?: any;
18
- classes?: any;
19
- };
20
- events: {
21
- [evt: string]: CustomEvent<any>;
22
- };
23
- slots: {};
24
- };
25
- export {};
@@ -1,25 +0,0 @@
1
- <div class="bg-white">
2
- <div class="mx-auto max-w-7xl py-12 px-6 lg:py-16 lg:px-8">
3
- <p class="text-center text-lg font-semibold">Trusted by fire protection experts all over the world</p>
4
- <div class="mt-6 grid grid-cols-2 gap-0.5 md:grid-cols-3 lg:mt-8">
5
- <div class="col-span-1 flex justify-center bg-gray-50 py-8 px-8">
6
- <img class="max-h-12" src="https://tailwindui.com/img/logos/transistor-logo-gray-400.svg" alt="Workcation">
7
- </div>
8
- <div class="col-span-1 flex justify-center bg-gray-50 py-8 px-8">
9
- <img class="max-h-12" src="https://tailwindui.com/img/logos/mirage-logo-gray-400.svg" alt="Mirage">
10
- </div>
11
- <div class="col-span-1 flex justify-center bg-gray-50 py-8 px-8">
12
- <img class="max-h-12" src="https://tailwindui.com/img/logos/tuple-logo-gray-400.svg" alt="Tuple">
13
- </div>
14
- <div class="col-span-1 flex justify-center bg-gray-50 py-8 px-8">
15
- <img class="max-h-12" src="https://tailwindui.com/img/logos/laravel-logo-gray-400.svg" alt="Laravel">
16
- </div>
17
- <div class="col-span-1 flex justify-center bg-gray-50 py-8 px-8">
18
- <img class="max-h-12" src="https://tailwindui.com/img/logos/statickit-logo-gray-400.svg" alt="StaticKit">
19
- </div>
20
- <div class="col-span-1 flex justify-center bg-gray-50 py-8 px-8">
21
- <img class="max-h-12" src="https://tailwindui.com/img/logos/statamic-logo-gray-400.svg" alt="Statamic">
22
- </div>
23
- </div>
24
- </div>
25
- </div>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} LogoCloudProps */
2
- /** @typedef {typeof __propDef.events} LogoCloudEvents */
3
- /** @typedef {typeof __propDef.slots} LogoCloudSlots */
4
- export default class LogoCloud extends SvelteComponent<{
5
- [x: string]: never;
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type LogoCloudProps = typeof __propDef.props;
11
- export type LogoCloudEvents = typeof __propDef.events;
12
- export type LogoCloudSlots = typeof __propDef.slots;
13
- import { SvelteComponent } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- [x: string]: never;
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export {};
@@ -1,24 +0,0 @@
1
- <script>
2
- // Based on: https://svelte.dev/repl/49ff6c089825418888cf804d9dde77bc?version=3.46.4
3
- import katex from "katex";
4
- export let math = undefined;
5
- export let displayMode = false;
6
-
7
- const options = {
8
- displayMode: displayMode,
9
- throwOnError: false,
10
- };
11
-
12
- $: katexString = katex.renderToString(math, options);
13
- </script>
14
-
15
- <svelte:head>
16
- <link
17
- rel="stylesheet"
18
- href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css"
19
- integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X"
20
- crossorigin="anonymous"
21
- />
22
- </svelte:head>
23
-
24
- {@html katexString}
@@ -1,25 +0,0 @@
1
- /** @typedef {typeof __propDef.props} MathProps */
2
- /** @typedef {typeof __propDef.events} MathEvents */
3
- /** @typedef {typeof __propDef.slots} MathSlots */
4
- export default class Math extends SvelteComponent<{
5
- math?: any;
6
- displayMode?: boolean;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
- }
11
- export type MathProps = typeof __propDef.props;
12
- export type MathEvents = typeof __propDef.events;
13
- export type MathSlots = typeof __propDef.slots;
14
- import { SvelteComponent } from "svelte";
15
- declare const __propDef: {
16
- props: {
17
- math?: any;
18
- displayMode?: boolean;
19
- };
20
- events: {
21
- [evt: string]: CustomEvent<any>;
22
- };
23
- slots: {};
24
- };
25
- export {};
@@ -1,76 +0,0 @@
1
- <script>
2
- import Video from './Video.svelte'
3
-
4
- import { getColorStyles } from '../utils'
5
- export let data = {};
6
-
7
- let figureImage;
8
- let figureLink;
9
- let id
10
-
11
- if (data.name) {
12
- id = encodeURIComponent(data.name).toLowerCase()
13
- }
14
-
15
- if (data.image) {
16
- if (data.image.startsWith("http")) {
17
- figureImage = data.image;
18
- figureLink = data.link ? data.link : data.image;
19
- } else if (data.image.includes("gif")) {
20
- figureImage = "https://teci.imgix.net/www/images/" + data.image;
21
- figureLink = data.link
22
- ? data.link
23
- : "https://teci.imgix.net/www/images/" + data.image;
24
- } else {
25
- figureImage =
26
- "https://teci.imgix.net/www/images/" +
27
- data.image +
28
- "?w=576&ar=16:9&fit=crop&auto=compress&auto=format";
29
- figureLink = data.link
30
- ? data.link
31
- : "https://teci.imgix.net/www/images/" + data.image;
32
- }
33
- }
34
- </script>
35
-
36
- <section {id}
37
- class="mx-auto flex w-full flex-col items-center justify-center md:flex-row md:items-start"
38
- >
39
- {#if data.v}
40
- <div class="mb-4 block w-full max-w-xl md:mb-0">
41
- <Video bind:data />
42
- </div>
43
- {:else if data.image}
44
- <div class="mb-4 block w-full max-w-xl md:mb-0">
45
- <figure>
46
- <a href={figureLink}>
47
- <img
48
- class="aspect-video w-full border border-gray-200 bg-black object-cover shadow-md {data.imageClass
49
- ? data.imageClass
50
- : ''}"
51
- src={figureImage}
52
- alt={data.name}
53
- />
54
- </a>
55
- </figure>
56
- </div>
57
- {/if}
58
- <div
59
- class="flex w-full max-w-xl flex-col justify-center {data.position ===
60
- 'right'
61
- ? 'md:order-last md:ml-8'
62
- : 'md:order-first md:mr-8'}"
63
- >
64
- <div class="w-full max-w-3xl">
65
- <h2 class="pb-4 text-lg font-bold">{data.name}</h2>
66
- <span class="prose">{@html data.text}</span>
67
- </div>
68
- {#if data.ctaText}
69
- <div class="mt-4 text-right md:text-left">
70
- <a class="btn {getColorStyles('button', data.ctaColor)}" href={data.ctaURL}>
71
- {data.ctaText}
72
- </a>
73
- </div>
74
- {/if}
75
- </div>
76
- </section>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} MediaFeatureProps */
2
- /** @typedef {typeof __propDef.events} MediaFeatureEvents */
3
- /** @typedef {typeof __propDef.slots} MediaFeatureSlots */
4
- export default class MediaFeature extends SvelteComponent<{
5
- data?: {};
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 { SvelteComponent } from "svelte";
14
- declare const __propDef: {
15
- props: {
16
- data?: {};
17
- };
18
- events: {
19
- [evt: string]: CustomEvent<any>;
20
- };
21
- slots: {};
22
- };
23
- export {};
@@ -1,69 +0,0 @@
1
- <script>
2
- import Button from "./Button.svelte";
3
- export let data = {};
4
- let shown = false;
5
-
6
- export function show() {
7
- shown = true;
8
- }
9
- export function hide() {
10
- shown = false;
11
- }
12
- </script>
13
-
14
- <svelte:window
15
- on:keydown={(e) => {
16
- if (e.keyCode == 27) {
17
- hide();
18
- }
19
- }}
20
- />
21
-
22
- {#if (data.title || data.text || data.buttonText)}
23
- <div class="prose max-w-none">
24
- {#if data.title}
25
- <h2>{data.title}</h2>
26
- {/if}
27
- {#if data.text}
28
- <p>{data.text}</p>
29
- {/if}
30
- {#if data.buttonText}
31
- <Button on:click={show} action=true text={data.buttonText} color={data.buttonColor} justify='left' />
32
- {/if}
33
- </div>
34
- {/if}
35
-
36
- {#if shown}
37
- <div
38
- class="fixed inset-0 z-50 !mt-0 h-full w-full overflow-y-auto bg-gray-900 bg-opacity-50"
39
- >
40
- <div class="relative top-20 mx-auto w-96 border bg-white p-5 shadow-lg">
41
- <button
42
- type="button"
43
- on:click={hide}
44
- class="absolute top-0 right-0 mr-2 mt-2 inline-flex items-center justify-center bg-white p-1 text-teci-blue-light hover:bg-teci-blue-dark hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-teci-blue-dark"
45
- >
46
- <span class="sr-only">Close menu</span>
47
- <!-- Heroicon name: outline/x -->
48
- <svg
49
- class="h-6 w-6"
50
- xmlns="http://www.w3.org/2000/svg"
51
- fill="none"
52
- viewBox="0 0 24 24"
53
- stroke="currentColor"
54
- aria-hidden="true"
55
- >
56
- <path
57
- stroke-linecap="round"
58
- stroke-linejoin="round"
59
- stroke-width="2"
60
- d="M6 18L18 6M6 6l12 12"
61
- />
62
- </svg>
63
- </button>
64
- <div class="mt-3 text-center">
65
- {@html data.modalContent}
66
- </div>
67
- </div>
68
- </div>
69
- {/if}