soames-gatsby-theme 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.
package/README.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://www.gatsbyjs.com">
|
|
3
|
+
<img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
<h1 align="center">
|
|
7
|
+
Soames Gatsby Theme
|
|
8
|
+
</h1>
|
|
2
9
|
|
|
3
10
|
[](https://www.npmjs.com/package/soames-gatsby-theme)
|
|
4
11
|
[](./LICENSE)
|
|
@@ -6,7 +6,9 @@ const HeroHeader = ({ title, subhead, backgroundImage, backgroundImageTitle, ove
|
|
|
6
6
|
backgroundImage = "https://picsum.photos/1080/720";
|
|
7
7
|
}
|
|
8
8
|
else {
|
|
9
|
-
if (backgroundImageTitle?.includes("
|
|
9
|
+
if (backgroundImageTitle?.includes("_02o_"))
|
|
10
|
+
overlayOpacity = 0.2;
|
|
11
|
+
else if (backgroundImageTitle?.includes("_03o_"))
|
|
10
12
|
overlayOpacity = 0.3;
|
|
11
13
|
else if (backgroundImageTitle?.includes("_04o_"))
|
|
12
14
|
overlayOpacity = 0.4;
|
package/package.json
CHANGED
|
@@ -18,7 +18,8 @@ const HeroHeader = ({
|
|
|
18
18
|
if (!backgroundImage) {
|
|
19
19
|
backgroundImage = "https://picsum.photos/1080/720";
|
|
20
20
|
} else {
|
|
21
|
-
if (backgroundImageTitle?.includes("
|
|
21
|
+
if (backgroundImageTitle?.includes("_02o_")) overlayOpacity = 0.2;
|
|
22
|
+
else if (backgroundImageTitle?.includes("_03o_")) overlayOpacity = 0.3;
|
|
22
23
|
else if (backgroundImageTitle?.includes("_04o_")) overlayOpacity = 0.4;
|
|
23
24
|
else if (backgroundImageTitle?.includes("_05o_")) overlayOpacity = 0.5;
|
|
24
25
|
else if (backgroundImageTitle?.includes("_06o_")) overlayOpacity = 0.6;
|