@rileybathurst/paddle 1.2.1 → 1.2.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.
package/package.json
CHANGED
package/src/PaddlePurchase.tsx
CHANGED
|
@@ -83,8 +83,8 @@ export const PaddlePurchase = ({ id, title, slug, excerpt, length, width, inflat
|
|
|
83
83
|
className="image-link"
|
|
84
84
|
>
|
|
85
85
|
<GatsbyImage
|
|
86
|
-
image={cutout
|
|
87
|
-
alt={cutout
|
|
86
|
+
image={cutout.localFile?.childImageSharp?.gatsbyImageData}
|
|
87
|
+
alt={cutout.alternativeText || `${title} by ${brandSlug}`}
|
|
88
88
|
className="cutout"
|
|
89
89
|
objectFit="contain"
|
|
90
90
|
// TODO: this has been causing some problems but keep an eye on it
|
|
@@ -18,19 +18,19 @@ export const PaddleTextureBackgrounds = ({ baseOne, baseTwo, baseThree, topOne,
|
|
|
18
18
|
baseThree
|
|
19
19
|
];
|
|
20
20
|
const baseRandom = Math.floor(Math.random() * baseTextures.length);
|
|
21
|
-
console.log(baseTextures[baseRandom]);
|
|
21
|
+
// console.log(baseTextures[baseRandom]);
|
|
22
22
|
|
|
23
23
|
const topTextures = [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
topOne,
|
|
25
|
+
topTwo,
|
|
26
|
+
topThree
|
|
27
27
|
];
|
|
28
28
|
const topRandom = Math.floor(Math.random() * topTextures.length);
|
|
29
29
|
// { topTextures[topRandom] }
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<>
|
|
33
|
-
|
|
33
|
+
<GatsbyImage
|
|
34
34
|
image={baseTextures[baseRandom].image.localFile.childImageSharp.gatsbyImageData}
|
|
35
35
|
alt="splash texture"
|
|
36
36
|
className="texture-slice"
|
|
@@ -41,7 +41,7 @@ export const PaddleTextureBackgrounds = ({ baseOne, baseTwo, baseThree, topOne,
|
|
|
41
41
|
alt="sand texture"
|
|
42
42
|
className="texture-slice crop"
|
|
43
43
|
objectFit="contain"
|
|
44
|
-
/>
|
|
44
|
+
/>
|
|
45
45
|
<svg viewBox="0 0 1200 630" xmlns="http://www.w3.org/2000/svg">
|
|
46
46
|
<title>Diagonal line decoration</title>
|
|
47
47
|
<line
|