tecitheme 0.8.0 → 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 -888
  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 -1
  76. package/dist/variables.js +0 -2
@@ -1,91 +0,0 @@
1
- <script>
2
- import Button from './Button.svelte'
3
-
4
- //Allows icons from https://fonts.google.com/icons?selected=Material+Icons by name in the format 'icon-XXXX'.
5
- import { getColorStyles } from '../utils'
6
- import Icon from "./Icon.svelte";
7
- export let data = {};
8
- export let halfHeight = undefined;
9
-
10
- let backgroundImage;
11
-
12
- if (data.image) {
13
- if (data.image.includes("gif")) {
14
- backgroundImage = "https://teci.imgix.net/www/images/" + data.image;
15
- } else {
16
- backgroundImage =
17
- "https://teci.imgix.net/www/images/" +
18
- data.image +
19
- "?w=698&h=392&fit=crop&auto=compress&auto=format";
20
- }
21
- }
22
- </script>
23
-
24
- <div class="group flex flex-col items-stretch space-y-2 border border-gray-100 p-2 hover:border-gray-200 hover:shadow-md">
25
- {#if data.image}
26
- <div
27
- style="background-image: url({backgroundImage});"
28
- class="w-full shrink-0 {halfHeight?'aspect-video':'aspect-square'} flex items-center justify-center border border-gray-200 bg-cover bg-no-repeat"
29
- >
30
- <div
31
- class="{halfHeight
32
- ? 'space-y-4'
33
- : 'space-y-8'} flex h-full w-full flex-col items-center justify-center"
34
- >
35
- {#if data.links}
36
- {#each data.links as link}
37
- <a href={link.url} class="btn w-3/4 whitespace-nowrap text-center text-sm {getColorStyles('button', link.color)}">
38
- {link.text}
39
- </a>
40
- {/each}
41
- {:else}
42
- <a href={data.cardURL} class="h-full w-full">
43
- <span>&#8203;</span>
44
- </a>
45
- {/if}
46
- </div>
47
- </div>
48
- {/if}
49
- <a href={data.cardURL}>
50
- <div class="flex flex-row items-start space-x-2">
51
- {#if data.icon}
52
- <div class="grid place-items-center">
53
- <Icon classes={data.classes} icon={data.icon} />
54
- </div>
55
- {/if}
56
- {#if data.heading || data.subheading}
57
- <div class="flex flex-col font-medium leading-none">
58
- {#if data.heading}
59
- <h3 class="text-2xl leading-none text-gray-900">{data.heading}</h3>
60
- {/if}
61
- {#if data.subheading}
62
- <p class="leading-6 {getColorStyles('text', data.subheadingColor)}">
63
- {data.subheading}
64
- </p>
65
- {/if}
66
- </div>
67
- {/if}
68
- </div>
69
- </a>
70
- {#if data.text}
71
- <div class="flex w-full flex-1 flex-col">
72
- {@html data.text}
73
- {#if data.cardActionStyle == "link"}
74
- <a
75
- class="mt-2 inline-block text-sm font-medium text-teci-blue-light"
76
- href={data.cardURL}
77
- >
78
- {data.cardLinkText}<span aria-hidden="true"> →</span>
79
- </a>
80
- {/if}
81
- </div>
82
- {/if}
83
- {#if data.cardActionStyle == "button"}
84
- <Button
85
- url={data.cardURL}
86
- text={data.cardLinkText}
87
- color={data.cardLinkColor}
88
- justify="right"
89
- />
90
- {/if}
91
- </div>
@@ -1,25 +0,0 @@
1
- /** @typedef {typeof __propDef.props} CardProps */
2
- /** @typedef {typeof __propDef.events} CardEvents */
3
- /** @typedef {typeof __propDef.slots} CardSlots */
4
- export default class Card extends SvelteComponent<{
5
- data?: {};
6
- halfHeight?: any;
7
- }, {
8
- [evt: string]: CustomEvent<any>;
9
- }, {}> {
10
- }
11
- export type CardProps = typeof __propDef.props;
12
- export type CardEvents = typeof __propDef.events;
13
- export type CardSlots = typeof __propDef.slots;
14
- import { SvelteComponent } from "svelte";
15
- declare const __propDef: {
16
- props: {
17
- data?: {};
18
- halfHeight?: any;
19
- };
20
- events: {
21
- [evt: string]: CustomEvent<any>;
22
- };
23
- slots: {};
24
- };
25
- export {};
@@ -1,24 +0,0 @@
1
- <script>
2
- import { browser } from '$app/environment';
3
- import { onMount } from 'svelte';
4
-
5
- export let title = undefined;
6
- export let data_key = undefined;
7
- export let data_form = undefined;
8
-
9
- let elem = undefined;
10
-
11
- onMount(async () => {
12
- elem = document.querySelector('form.cog-cognito');
13
- if (elem) {
14
- elem.classList.add('cog-disable-movement');
15
- }
16
- });
17
- </script>
18
-
19
- {#if browser}
20
- <div class="prose max-w-none w-full">
21
- <h1>{title}</h1>
22
- <script src="https://www.cognitoforms.com/f/seamless.js" data-key={data_key} data-form={data_form}></script>
23
- </div>
24
- {/if}
@@ -1,27 +0,0 @@
1
- /** @typedef {typeof __propDef.props} CognitoFormProps */
2
- /** @typedef {typeof __propDef.events} CognitoFormEvents */
3
- /** @typedef {typeof __propDef.slots} CognitoFormSlots */
4
- export default class CognitoForm extends SvelteComponent<{
5
- title?: any;
6
- data_key?: any;
7
- data_form?: any;
8
- }, {
9
- [evt: string]: CustomEvent<any>;
10
- }, {}> {
11
- }
12
- export type CognitoFormProps = typeof __propDef.props;
13
- export type CognitoFormEvents = typeof __propDef.events;
14
- export type CognitoFormSlots = typeof __propDef.slots;
15
- import { SvelteComponent } from "svelte";
16
- declare const __propDef: {
17
- props: {
18
- title?: any;
19
- data_key?: any;
20
- data_form?: any;
21
- };
22
- events: {
23
- [evt: string]: CustomEvent<any>;
24
- };
25
- slots: {};
26
- };
27
- export {};
@@ -1,54 +0,0 @@
1
- <script>
2
- import { getColorStyles } from '../utils'
3
- export let data = {};
4
- let id
5
-
6
- if (data.name) {
7
- id = encodeURIComponent(data.name).toLowerCase()
8
- }
9
- </script>
10
-
11
- <section {id} class="overflow-hidden mx-auto max-w-max lg:max-w-7xl">
12
- <div class="relative z-10 mb-8 md:mb-2">
13
- <div class="max-w-prose text-base lg:max-w-none">
14
- <h2 class="font-semibold leading-6 {getColorStyles('text', data.color)}">{data.preheading}</h2>
15
- <p class="mt-2 text-3xl font-bold leading-8 tracking-tight sm:text-4xl text-black">{data.heading}</p>
16
- </div>
17
- </div>
18
- <div class="relative">
19
- <svg class="absolute top-0 right-0 -mt-20 -mr-20 hidden md:block md:[overflow-anchor:none]" width="404" height="384" fill="none" viewBox="0 0 404 384" aria-hidden="true">
20
- <defs>
21
- <pattern id="95e8f2de-6d30-4b7e-8159-f791729db21b" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
22
- <rect x="0" y="0" width="4" height="4" class="{getColorStyles('text', data.color)} opacity-20" fill="currentColor" />
23
- </pattern>
24
- </defs>
25
- <rect width="404" height="384" fill="url(#95e8f2de-6d30-4b7e-8159-f791729db21b)" />
26
- </svg>
27
- <svg class="absolute bottom-0 left-0 -mb-20 -ml-20 hidden md:block md:[overflow-anchor:none]" width="404" height="384" fill="none" viewBox="0 0 404 384" aria-hidden="true">
28
- <defs>
29
- <pattern id="7a00fe67-0343-4a3c-8e81-c145097a3ce0" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse">
30
- <rect x="0" y="0" width="4" height="4" class="{getColorStyles('text', data.color)} opacity-20" fill="currentColor" />
31
- </pattern>
32
- </defs>
33
- <rect width="404" height="384" fill="url(#7a00fe67-0343-4a3c-8e81-c145097a3ce0)" />
34
- </svg>
35
- <div class="relative md:m-4 p-2 bg-white">
36
- <div class="prose prose-lg columns-1 lg:columns-2 lg:max-w-none">
37
- {@html data.body}
38
- </div>
39
- {#if data.ctas}
40
- <div class="mt-8 flex gap-x-4 float-right py-1">
41
- {#each data.ctas as cta}
42
- <a href={cta.url}
43
- class="inline-block px-4 py-1.5 text-base font-semibold leading-7 shadow-sm ring-1 ring-gray-900/10 hover:ring-gray-900/20
44
- {getColorStyles('button', cta.color)}"
45
- >
46
- {cta.text}
47
- <span class="hidden sm:inline" aria-hidden="true">&rarr;</span>
48
- </a>
49
- {/each}
50
- </div>
51
- {/if}
52
- </div>
53
- </div>
54
- </section>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} ContentTwoColumnsProps */
2
- /** @typedef {typeof __propDef.events} ContentTwoColumnsEvents */
3
- /** @typedef {typeof __propDef.slots} ContentTwoColumnsSlots */
4
- export default class ContentTwoColumns extends SvelteComponent<{
5
- data?: {};
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type ContentTwoColumnsProps = typeof __propDef.props;
11
- export type ContentTwoColumnsEvents = typeof __propDef.events;
12
- export type ContentTwoColumnsSlots = 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,167 +0,0 @@
1
- <script>
2
- import Modal from './Modal.svelte';
3
-
4
- export let resellerModal = true;
5
- export let selection = 'sel';
6
- export let allowContinue = false;
7
-
8
- let modal;
9
- let modalData;
10
- let resellerIndex = -1;
11
-
12
- let resellerArray = [
13
- ['BE', 'NL', 'LU'],
14
- ['CN', 'HK'],
15
- ['CZ', 'SK'],
16
- ['EG', 'JO', 'LB', 'OM', 'QA', 'SA', 'AE'],
17
- ['FR'],
18
- ['DE', 'CH', 'AT', 'LI'],
19
- ['GR','CY'],
20
- ['IN', 'BD', 'LK', 'CM', 'BT', 'MM'],
21
- ['IT', 'HU'],
22
- ['JP'],
23
- ['KR'],
24
- ['PL', 'UA'],
25
- ['RU', 'AM', 'AZ', 'BY', 'GE', 'KZ', 'KG', 'MD', 'TJ', 'TM', 'UZ'],
26
- ['RO'],
27
- ['SG', 'MY', 'ID', 'VN'],
28
- ['ES'],
29
- ];
30
-
31
- let resellerLinks = [
32
- 'belgium-netherlands-and-luxembourg',
33
- 'china-and-hong-kong',
34
- 'czech-republic-and-slovak-republic',
35
- 'egypt-jordan-lebanon-oman-qatar-saudi-arabia-united-arab-emirates',
36
- 'france-and-french-language-customers-in-other-regions',
37
- 'germany-switzerland-austria-and-liechtenstein',
38
- 'greece-cyprus',
39
- 'india-bangladesh-sri-lanka-nepal-bhutan-myanmar',
40
- 'italy-hungary',
41
- 'japan',
42
- 'korea',
43
- 'poland-ukraine',
44
- 'russia-and-cis',
45
- 'romania',
46
- 'singapore-malaysia-indonesia-and-vietnam',
47
- 'spain',
48
- ];
49
-
50
- function isReseller() {
51
- resellerIndex = resellerArray.findIndex((arr) => arr.includes(selection));
52
- return resellerIndex > -1;
53
- }
54
-
55
- function handleSelection() {
56
- if (resellerModal) {
57
- if (selection != 'sel' && !isReseller()) {
58
- allowContinue = true;
59
- } else if (selection != 'sel' && isReseller()) {
60
- modal.show();
61
- allowContinue = false;
62
- } else {
63
- allowContinue = false;
64
- }
65
- }
66
- }
67
-
68
- $:modalData = {
69
- modalContent: `<h2 class="text-lg leading-6 font-medium text-gray-900">Reseller Required</h2><div class="mt-2 px-7 py-3"><p class="text-sm text-gray-500">Thunderhead cannot sell to you directly, you must use the authorized reseller for your region.</p></div><div class="items-center px-4 py-3"><a href="https://www.thunderheadeng.com/partners#${resellerLinks[resellerIndex]}" id="ok-btn" class="px-4 py-2 bg-teci-blue-light text-white text-base font-medium w-full shadow-sm hover:bg-teci-blue-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">Reseller Contact Information</a></div>`,
70
- };
71
- </script>
72
-
73
- <select
74
- name="card_country"
75
- bind:value="{selection}"
76
- on:change="{handleSelection}"
77
- >
78
- <option value="sel">Select Your Country</option>
79
- <option value="AI">Anguilla</option>
80
- <option value="AR">Argentina</option>
81
- <option value="AM">Armenia</option>
82
- <option value="AU">Australia</option>
83
- <option value="AT">Austria</option>
84
- <option value="AZ">Azerbaijan</option>
85
- <option value="BD">Bangladesh</option>
86
- <option value="BY">Belarus</option>
87
- <option value="BE">Belgium</option>
88
- <option value="BR">Brazil</option>
89
- <option value="CA">Canada</option>
90
- <option value="CL">Chile</option>
91
- <option value="HR">Croatia</option>
92
- <option value="CN">China</option>
93
- <option value="CR">Costa Rica</option>
94
- <option value="CY">Cyprus</option>
95
- <option value="CZ">Czech Republic</option>
96
- <option value="DK">Denmark</option>
97
- <option value="DO">Dominican Republic</option>
98
- <option value="EC">Ecuador</option>
99
- <option value="EG">Egypt</option>
100
- <option value="EE">Estonia</option>
101
- <option value="FO">Faroe Islands</option>
102
- <option value="FI">Finland</option>
103
- <option value="FR">France</option>
104
- <option value="GE">Georgia</option>
105
- <option value="DE">Germany</option>
106
- <option value="GR">Greece</option>
107
- <option value="HK">Hong Kong</option>
108
- <option value="HU">Hungary</option>
109
- <option value="IS">Iceland</option>
110
- <option value="IN">India</option>
111
- <option value="ID">Indonesia</option>
112
- <option value="IE">Ireland</option>
113
- <option value="IL">Israel</option>
114
- <option value="IT">Italy</option>
115
- <option value="JM">Jamaica</option>
116
- <option value="JP">Japan</option>
117
- <option value="JO">Jordan</option>
118
- <option value="KZ">Kazakhstan</option>
119
- <option value="KW">Kuwait</option>
120
- <option value="KG">Kyrgyzstan</option>
121
- <option value="LV">Latvia</option>
122
- <option value="LB">Lebanon</option>
123
- <option value="LT">Lithuania</option>
124
- <option value="LU">Luxembourg</option>
125
- <option value="MY">Malaysia</option>
126
- <option value="MT">Malta</option>
127
- <option value="MX">Mexico</option>
128
- <option value="MD">Moldova</option>
129
- <option value="MM">Myanmar</option>
130
- <option value="CM">Nepal</option>
131
- <option value="NL">Netherlands</option>
132
- <option value="NZ">New Zealand</option>
133
- <option value="NO">Norway</option>
134
- <option value="OM">Oman</option>
135
- <option value="PE">Peru</option>
136
- <option value="PH">Philippines</option>
137
- <option value="PL">Poland</option>
138
- <option value="PT">Portugal</option>
139
- <option value="QA">Qatar</option>
140
- <option value="RO">Romania</option>
141
- <option value="RU">Russia</option>
142
- <option value="SA">Saudi Arabia</option>
143
- <option value="SG">Singapore</option>
144
- <option value="SK">Slovakia</option>
145
- <option value="SI">Slovenia</option>
146
- <option value="ZA">South Africa</option>
147
- <option value="KR">South Korea</option>
148
- <option value="ES">Spain</option>
149
- <option value="LK">Sri Lanka</option>
150
- <option value="SE">Sweden</option>
151
- <option value="CH">Switzerland</option>
152
- <option value="TW">Taiwan</option>
153
- <option value="TJ">Tajikistan</option>
154
- <option value="TH">Thailand</option>
155
- <option value="TR">Turkey</option>
156
- <option value="TM">Turkmenistan</option>
157
- <option value="UA">Ukraine</option>
158
- <option value="AE">United Arab Emirates</option>
159
- <option value="GB">United Kingdom</option>
160
- <option value="US">United States</option>
161
- <option value="UY">Uruguay</option>
162
- <option value="UZ">Uzbekistan</option>
163
- <option value="VE">Venezuela</option>
164
- <option value="VN">Viet Nam</option>
165
- </select>
166
-
167
- <Modal bind:this="{modal}" bind:data="{modalData}" />
@@ -1,27 +0,0 @@
1
- /** @typedef {typeof __propDef.props} CountrySelectorProps */
2
- /** @typedef {typeof __propDef.events} CountrySelectorEvents */
3
- /** @typedef {typeof __propDef.slots} CountrySelectorSlots */
4
- export default class CountrySelector extends SvelteComponent<{
5
- resellerModal?: boolean;
6
- selection?: string;
7
- allowContinue?: boolean;
8
- }, {
9
- [evt: string]: CustomEvent<any>;
10
- }, {}> {
11
- }
12
- export type CountrySelectorProps = typeof __propDef.props;
13
- export type CountrySelectorEvents = typeof __propDef.events;
14
- export type CountrySelectorSlots = typeof __propDef.slots;
15
- import { SvelteComponent } from "svelte";
16
- declare const __propDef: {
17
- props: {
18
- resellerModal?: boolean;
19
- selection?: string;
20
- allowContinue?: boolean;
21
- };
22
- events: {
23
- [evt: string]: CustomEvent<any>;
24
- };
25
- slots: {};
26
- };
27
- export {};
@@ -1,44 +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="overflow-hidden mx-auto max-w-max lg:max-w-7xl">
14
- <div class="sm:text-center">
15
- {#if data.preheading}
16
- <p class="mb-2 text-lg font-semibold leading-8 {getColorStyles('text', data.color)}">
17
- {data.preheading}
18
- </p>
19
- {/if}
20
- <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
21
- {data.heading}
22
- </h2>
23
- {#if data.subheading}
24
- <p class="mx-auto mt-6 max-w-2xl text-lg leading-8">
25
- {data.subheading}
26
- </p>
27
- {/if}
28
- </div>
29
- <div class="mt-12 max-w-lg sm:mx-auto md:max-w-none">
30
- <div class="grid grid-cols-1 gap-y-8 md:grid-cols-2 md:gap-x-12">
31
- {#each data.blocks as block}
32
- <div class="relative flex flex-row gap-6">
33
- <div class="hidden sm:flex h-12 w-12 items-center justify-center sm:shrink-0 flex-shrink-0 {getColorStyles('background', data.color)}">
34
- <Icon classes="w-auto" icon={block.icon} />
35
- </div>
36
- <div class="sm:min-w-0 sm:flex-1">
37
- <p class="text-lg font-semibold leading-8 text-gray-900">{block.heading}</p>
38
- <p class="mt-2 text-base leading-7">{block.body}</p>
39
- </div>
40
- </div>
41
- {/each}
42
- </div>
43
- </div>
44
- </section>
@@ -1,23 +0,0 @@
1
- /** @typedef {typeof __propDef.props} FeatureGridProps */
2
- /** @typedef {typeof __propDef.events} FeatureGridEvents */
3
- /** @typedef {typeof __propDef.slots} FeatureGridSlots */
4
- export default class FeatureGrid extends SvelteComponent<{
5
- data?: {};
6
- }, {
7
- [evt: string]: CustomEvent<any>;
8
- }, {}> {
9
- }
10
- export type FeatureGridProps = typeof __propDef.props;
11
- export type FeatureGridEvents = typeof __propDef.events;
12
- export type FeatureGridSlots = 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,40 +0,0 @@
1
- <script>
2
- export let image = undefined;
3
- export let title = undefined;
4
- export let caption = undefined;
5
- export let link = undefined;
6
-
7
- let figureImage;
8
- let figureLink;
9
- let id
10
-
11
- if (title) {
12
- id = encodeURIComponent(title).toLowerCase()
13
- }
14
-
15
- if (image.startsWith("http")) {
16
- figureImage = image;
17
- figureLink = link ? link : image;
18
- } else if (image.includes("gif")) {
19
- figureImage = "https://teci.imgix.net/www/images/" + image;
20
- figureLink = link ? link : "https://teci.imgix.net/www/images/" + image;
21
- } else {
22
- figureImage = "https://teci.imgix.net/www/images/" +
23
- image +
24
- "?auto=compress&auto=format";
25
- figureLink = link ? link : "https://teci.imgix.net/www/images/" + image;
26
- }
27
- </script>
28
-
29
- {#if image}
30
- <section {id} class="not-prose mb-8 flex justify-center">
31
- <figure class="mx-auto w-auto border border-slate-100 p-2 shadow-lg">
32
- <a class="inline-block w-full bg-slate-200 p-1" href={figureLink}>
33
- <img class="mx-auto w-auto" src={figureImage} alt={title} {title} />
34
- </a>
35
- {#if caption}
36
- <figcaption class="p-2 text-center">{@html caption}</figcaption>
37
- {/if}
38
- </figure>
39
- </section>
40
- {/if}
@@ -1,29 +0,0 @@
1
- /** @typedef {typeof __propDef.props} FigureProps */
2
- /** @typedef {typeof __propDef.events} FigureEvents */
3
- /** @typedef {typeof __propDef.slots} FigureSlots */
4
- export default class Figure extends SvelteComponent<{
5
- caption?: any;
6
- link?: any;
7
- title?: any;
8
- image?: any;
9
- }, {
10
- [evt: string]: CustomEvent<any>;
11
- }, {}> {
12
- }
13
- export type FigureProps = typeof __propDef.props;
14
- export type FigureEvents = typeof __propDef.events;
15
- export type FigureSlots = typeof __propDef.slots;
16
- import { SvelteComponent } from "svelte";
17
- declare const __propDef: {
18
- props: {
19
- caption?: any;
20
- link?: any;
21
- title?: any;
22
- image?: any;
23
- };
24
- events: {
25
- [evt: string]: CustomEvent<any>;
26
- };
27
- slots: {};
28
- };
29
- export {};