tecitheme 0.15.3 → 0.15.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { conditionalTransition, getColorStyles, makeIdString, triggerWhenVisible } from "../utils";
|
|
2
|
+
import { conditionalTransition, getColorStyles, getTeciImageURL, makeIdString, triggerWhenVisible } from "../utils";
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
4
|
import { fly, fade } from "svelte/transition";
|
|
5
5
|
import Button from "./Button.svelte";
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
in:conditionalTransition={{ fn: fade, condition: animate, delay: 200, duration: 1250, easing:cubicInOut, x: textPosition == "left" ? '100%' : '-100%'}}
|
|
124
124
|
out:conditionalTransition={{fn: fade, condition: animate, delay: 200, duration: 1250, easing:cubicInOut, x: textPosition == "left" ? '100%' : '-100%'}}
|
|
125
125
|
>
|
|
126
|
-
<img
|
|
126
|
+
<img class="w-full shadow-xl ring-1 ring-black/5 lg:absolute {textPosition == "left" ? "lg:left-0" : "right-0"} lg:h-full lg:w-auto lg:max-w-none" src={getTeciImageURL(image.url, image.site ? image.site : "www")} alt={image.alt}>
|
|
127
127
|
</div>
|
|
128
128
|
{:else if animate}
|
|
129
129
|
<div
|
package/dist/utils.js
CHANGED
|
@@ -457,7 +457,7 @@ export function makeIdString(text) {
|
|
|
457
457
|
* @param {*} site ('www' or 'support') TECi image folder to pull from
|
|
458
458
|
*/
|
|
459
459
|
export function getTeciImageURL(imageSrc, site = "www") {
|
|
460
|
-
return imageSrc.startsWith("http") ? imageSrc : `https://files.thunderheadeng.com/${site}/images/${imageSrc}
|
|
460
|
+
return imageSrc.startsWith("http") ? imageSrc : `https://files.thunderheadeng.com/${site}/images/${imageSrc}`
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
/**
|