tecitheme 0.1.1 → 0.1.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.
@@ -8,7 +8,7 @@
8
8
 
9
9
  <div class="group flex flex-col items-stretch space-y-2 border border-gray-100 p-2 hover:border-gray-200 hover:shadow-md" >
10
10
  {#if data.image}
11
- <div style="background-image: url({data.image});"
11
+ <div style="background-image: url('https://thunderheadeng-www.imgix.net{data.image}?w=600&auto=compress&auto=format');"
12
12
  class="w-full shrink-0 {halfHeight ? 'aspect-video' : 'aspect-square'} flex items-center justify-center border border-gray-200 bg-cover bg-no-repeat"
13
13
  >
14
14
  <div class="{halfHeight ? 'space-y-4' : 'space-y-8'} flex h-full w-full flex-col items-center justify-center" >
@@ -7,8 +7,8 @@
7
7
 
8
8
  <section class="flex justify-center not-prose mb-8">
9
9
  <figure class="bg-white w-auto mx-auto shadow-lg border border-slate-100 p-2">
10
- <a href={link ? link : image}>
11
- <img class="w-full" src={image} alt={title} title={title}>
10
+ <a href={link ? link : 'https://thunderheadeng-www.imgix.net' + image}>
11
+ <img class="w-full" src="https://thunderheadeng-www.imgix.net{image}?auto=compress&auto=format" alt={title} title={title}>
12
12
  </a>
13
13
  {#if caption}
14
14
  <figcaption class="text-center p-2">{@html caption}</figcaption>
@@ -904,10 +904,10 @@
904
904
  >
905
905
  <div class="px-4 pt-5 pb-6 sm:pb-8">
906
906
  <div class="flex items-center justify-between">
907
- <a class="block" href="https://www.thunderheadeng.com">
907
+ <a on:click="{() => (openMenu = '')}" class="block" href="https://www.thunderheadeng.com">
908
908
  <img
909
909
  class="h-10 w-auto"
910
- src="https://files.thunderheadeng.com/support/images/te_logo.svg"
910
+ src="https://files.thunderheadeng.com/www/images/teci_logo.svg"
911
911
  alt="Thunderhead Engineering"
912
912
  />
913
913
  </a>
@@ -1073,7 +1073,7 @@
1073
1073
  <div class="flow-root">
1074
1074
  <a
1075
1075
  href="https://www.thunderheadeng.com/news"
1076
- class="-m-3 flex items-center p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1076
+ class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1077
1077
  >
1078
1078
  <svg
1079
1079
  xmlns="http://www.w3.org/2000/svg"
@@ -1095,7 +1095,7 @@
1095
1095
  <div class="flow-root">
1096
1096
  <a
1097
1097
  href="https://support.thunderheadeng.com/release-notes"
1098
- class="-m-3 flex items-center p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1098
+ class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1099
1099
  >
1100
1100
  <svg
1101
1101
  xmlns="http://www.w3.org/2000/svg"
@@ -1117,7 +1117,7 @@
1117
1117
  <div class="flow-root">
1118
1118
  <a
1119
1119
  href="https://store2.thunderheadeng.com/cart"
1120
- class="-m-3 flex items-center p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1120
+ class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1121
1121
  >
1122
1122
  <svg
1123
1123
  xmlns="http://www.w3.org/2000/svg"
@@ -1139,7 +1139,7 @@
1139
1139
  <div class="flow-root">
1140
1140
  <a
1141
1141
  href="https://store2.thunderheadeng.com/trial/"
1142
- class="-m-3 flex items-center p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1142
+ class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1143
1143
  >
1144
1144
  <svg
1145
1145
  xmlns="http://www.w3.org/2000/svg"
@@ -1160,7 +1160,7 @@
1160
1160
  <div class="flow-root">
1161
1161
  <a
1162
1162
  href="mailto:sales@thunderheadeng.com"
1163
- class="-m-3 flex items-center p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1163
+ class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1164
1164
  >
1165
1165
  <svg
1166
1166
  xmlns="http://www.w3.org/2000/svg"
@@ -1182,7 +1182,7 @@
1182
1182
  <div class="flow-root">
1183
1183
  <a
1184
1184
  href="mailto:support@thunderheadeng.com"
1185
- class="-m-3 flex items-center p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1185
+ class="-m-3 flex items-start p-3 text-base font-medium text-gray-900 hover:bg-gray-100"
1186
1186
  >
1187
1187
  <svg
1188
1188
  xmlns="http://www.w3.org/2000/svg"
@@ -4,17 +4,17 @@ import Video from './Video.svelte'
4
4
  export let data;
5
5
  </script>
6
6
 
7
- <section class="w-full mx-auto flex flex-col md:flex-row items-start justify-center">
7
+ <section class="w-full mx-auto flex flex-col items-center md:flex-row md:items-start justify-center">
8
8
  {#if data.v}
9
- <div class="block w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
9
+ <div class="block w-full max-w-xl mb-4 md:mb-0">
10
10
  <Video bind:data />
11
11
  </div>
12
12
  {:else if data.image}
13
- <div class="block w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
13
+ <div class="block w-full max-w-xl mb-4 md:mb-0">
14
14
  <figure>
15
- <a href={data.image}>
15
+ <a href="https://thunderheadeng-www.imgix.net{data.image}">
16
16
  <img class="w-full aspect-video object-cover border bg-black border-gray-200 shadow-md {data.imageClass ? data.imageClass : ''}"
17
- src={data.image} alt={data.name}
17
+ src="https://thunderheadeng-www.imgix.net{data.image}?w=576&ar=16:9&fit=crop&auto=compress&auto=format" alt={data.name}
18
18
  />
19
19
  </a>
20
20
  </figure>
@@ -3,27 +3,13 @@
3
3
  export let description
4
4
  export let image
5
5
  export let url
6
- export let host
7
-
8
- function imageURL(str)
9
- {
10
- var tarea = str;
11
- if (tarea.indexOf("http://") == 0 || tarea.indexOf("https://") == 0) {
12
- return true
13
- }
14
- return false
15
- }
16
6
  </script>
17
7
 
18
8
  <meta property="og:type" content="website">
19
- <meta property="og:url" content="{url}">
9
+ <meta property="og:url" content={url}>
20
10
  <meta name="og:title" content={title} >
21
11
  <meta name="og:description" content={description} >
22
- {#if imageURL(image)}
23
- <meta name="og:image" content="{image}" >
24
- {:else}
25
- <meta name="og:image" content="https://{host}/{image}" >
26
- {/if}
12
+ <meta name="og:image" content={image} >
27
13
  <meta name="twitter:card" content="summary_large_image">
28
14
  <meta name="twitter:site" content="@thunderheadeng">
29
15
  <meta name="twitter:creator" content="@thunderheadeng">
@@ -6,7 +6,6 @@ export default class MetaSocial extends SvelteComponentTyped<{
6
6
  description: any;
7
7
  image: any;
8
8
  url: any;
9
- host: any;
10
9
  }, {
11
10
  [evt: string]: CustomEvent<any>;
12
11
  }, {}> {
@@ -21,7 +20,6 @@ declare const __propDef: {
21
20
  description: any;
22
21
  image: any;
23
22
  url: any;
24
- host: any;
25
23
  };
26
24
  events: {
27
25
  [evt: string]: CustomEvent<any>;
@@ -41,9 +41,9 @@
41
41
  host = getContext('currentHost');
42
42
 
43
43
  if (images.length > 0) {
44
- featuredImage = images[0]
44
+ featuredImage = 'https://thunderheadeng-www.imgix.net'+images[0]+'?w=1200&h=627&fit=crop&auto=compress&auto=format'
45
45
  } else {
46
- featuredImage = "https://www.thunderheadeng.com/wp-content/uploads/2022/01/femtc-brno.jpg"
46
+ featuredImage = 'https://files.thunderheadeng.com/www/images/teci_icon_250.png'
47
47
  }
48
48
  </script>
49
49
 
@@ -51,7 +51,7 @@
51
51
  <title>{title} | Thunderhead Engineering</title>
52
52
  <meta name="description" content={summary}>
53
53
  {#if browser}
54
- <MetaSocial title={title} description={summary} image={featuredImage} {url} {host} />
54
+ <MetaSocial title={title} description={summary} image={featuredImage} {url} />
55
55
  {/if}
56
56
  </svelte:head>
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "svelte": true,
5
5
  "devDependencies": {
6
6
  "@jsdevtools/rehype-toc": "^3.0.2",