sfc-utils 1.4.176 → 1.4.177
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/components/sharebuttons.mjs +29 -10
- package/package.json +1 -1
|
@@ -33,6 +33,28 @@ const ShareButtons = ({ meta, urlAdd }) => {
|
|
|
33
33
|
<div className={shareStyles.wrapper} id="sharebutton-box">
|
|
34
34
|
{!hideSocial && (
|
|
35
35
|
<>
|
|
36
|
+
{/* Facebook */}
|
|
37
|
+
<a
|
|
38
|
+
href={`https://www.facebook.com/sharer/sharer.php?u=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%2F${urlAdd}`}
|
|
39
|
+
className={shareStyles.link}
|
|
40
|
+
onClick={facebookClick}
|
|
41
|
+
>
|
|
42
|
+
<svg
|
|
43
|
+
className={shareStyles.svg}
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
focusable="false"
|
|
46
|
+
data-prefix="fab"
|
|
47
|
+
data-icon="facebook"
|
|
48
|
+
role="img"
|
|
49
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
50
|
+
viewBox="0 0 320 512"
|
|
51
|
+
>
|
|
52
|
+
<path
|
|
53
|
+
fill="currentColor"
|
|
54
|
+
d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"
|
|
55
|
+
></path>
|
|
56
|
+
</svg>
|
|
57
|
+
</a>
|
|
36
58
|
{/* Twitter */}
|
|
37
59
|
<a
|
|
38
60
|
href={`https://x.com/intent/post?url=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%2F${urlAdd}&text=${meta.PROJECT.TWITTER_TEXT}`}
|
|
@@ -69,26 +91,23 @@ const ShareButtons = ({ meta, urlAdd }) => {
|
|
|
69
91
|
/>
|
|
70
92
|
</svg>
|
|
71
93
|
</a>
|
|
72
|
-
{/*
|
|
94
|
+
{/* Bluesky */}
|
|
73
95
|
<a
|
|
74
|
-
href={`https://
|
|
96
|
+
href={`https://bsky.app/intent/compose?text=${meta.PROJECT.TWITTER_TEXT}&url=${meta.MAIN_DOMAIN}%2F${subfolder}${meta.PROJECT.SLUG}%${urlAdd}`}
|
|
75
97
|
className={shareStyles.link}
|
|
76
|
-
onClick={facebookClick}
|
|
77
98
|
>
|
|
78
99
|
<svg
|
|
79
100
|
className={shareStyles.svg}
|
|
101
|
+
data-icon="bluesky"
|
|
102
|
+
role="img"
|
|
80
103
|
aria-hidden="true"
|
|
81
104
|
focusable="false"
|
|
82
|
-
data-prefix="fab"
|
|
83
|
-
data-icon="facebook"
|
|
84
|
-
role="img"
|
|
85
105
|
xmlns="http://www.w3.org/2000/svg"
|
|
86
|
-
viewBox="0 0
|
|
106
|
+
viewBox="0 0 512 512"
|
|
87
107
|
>
|
|
88
108
|
<path
|
|
89
|
-
|
|
90
|
-
d="
|
|
91
|
-
></path>
|
|
109
|
+
data-name="Bluesky Logo"
|
|
110
|
+
fill="currentColor" d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"/>
|
|
92
111
|
</svg>
|
|
93
112
|
</a>
|
|
94
113
|
</>
|