@sonordev/site-kit 1.5.5 → 2.0.0
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/dist/AnalyticsProvider-J7UMCBCJ.mjs +4 -0
- package/dist/{AnalyticsProvider-BBLU4U2T.mjs.map → AnalyticsProvider-J7UMCBCJ.mjs.map} +1 -1
- package/dist/AnalyticsProvider-PPDJIGWY.js +25 -0
- package/dist/{AnalyticsProvider-EMDIAAWR.js.map → AnalyticsProvider-PPDJIGWY.js.map} +1 -1
- package/dist/EngageWidget-IDBEBGQR.js +13 -0
- package/dist/{EngageWidget-UHWXXCAX.js.map → EngageWidget-IDBEBGQR.js.map} +1 -1
- package/dist/EngageWidget-SRRI4W7U.mjs +4 -0
- package/dist/{EngageWidget-CVZMTSB6.mjs.map → EngageWidget-SRRI4W7U.mjs.map} +1 -1
- package/dist/SignalBridge-D6W6OLVG.mjs +4 -0
- package/dist/{SignalBridge-WGHMEILW.mjs.map → SignalBridge-D6W6OLVG.mjs.map} +1 -1
- package/dist/SignalBridge-THATXU2R.js +33 -0
- package/dist/{SignalBridge-6UYUZ2CN.js.map → SignalBridge-THATXU2R.js.map} +1 -1
- package/dist/analytics/index.js +9 -9
- package/dist/analytics/index.mjs +2 -2
- package/dist/blog/index.js +75 -75
- package/dist/blog/index.js.map +1 -1
- package/dist/blog/index.mjs +75 -75
- package/dist/blog/index.mjs.map +1 -1
- package/dist/blog/server.js +2 -2
- package/dist/blog/server.js.map +1 -1
- package/dist/blog/server.mjs +2 -2
- package/dist/blog/server.mjs.map +1 -1
- package/dist/brand.css +87 -0
- package/dist/{chunk-ZU6YPEAF.mjs → chunk-2OJCYWSQ.mjs} +85 -73
- package/dist/chunk-2OJCYWSQ.mjs.map +1 -0
- package/dist/{chunk-PM2KQ6YK.mjs → chunk-3CXAWGUP.mjs} +3 -3
- package/dist/{chunk-PM2KQ6YK.mjs.map → chunk-3CXAWGUP.mjs.map} +1 -1
- package/dist/{chunk-36Y7OWES.mjs → chunk-3YQCPLGP.mjs} +4 -4
- package/dist/chunk-3YQCPLGP.mjs.map +1 -0
- package/dist/{chunk-XWWBUC2I.js → chunk-6ZGM7S5O.js} +77 -61
- package/dist/chunk-6ZGM7S5O.js.map +1 -0
- package/dist/{chunk-XFOL6JDF.mjs → chunk-7LAOWIWE.mjs} +4 -4
- package/dist/chunk-7LAOWIWE.mjs.map +1 -0
- package/dist/{chunk-YBTYDBWY.js → chunk-7M3FNAS5.js} +6 -8
- package/dist/chunk-7M3FNAS5.js.map +1 -0
- package/dist/{chunk-4QHHFCAA.mjs → chunk-AOIG5PVY.mjs} +6 -8
- package/dist/chunk-AOIG5PVY.mjs.map +1 -0
- package/dist/{chunk-VZMDH3R4.mjs → chunk-B22WSN4L.mjs} +4 -4
- package/dist/chunk-B22WSN4L.mjs.map +1 -0
- package/dist/{chunk-ELDJDBQL.js → chunk-BVUOATPG.js} +7 -7
- package/dist/chunk-BVUOATPG.js.map +1 -0
- package/dist/{chunk-N24BPFF6.mjs → chunk-CU6OGBKK.mjs} +6 -6
- package/dist/chunk-CU6OGBKK.mjs.map +1 -0
- package/dist/{chunk-NRNK7LXK.mjs → chunk-DWI5ZKPM.mjs} +4 -4
- package/dist/chunk-DWI5ZKPM.mjs.map +1 -0
- package/dist/{chunk-KRPFLF62.mjs → chunk-F5NXD7VQ.mjs} +10 -12
- package/dist/{chunk-KRPFLF62.mjs.map → chunk-F5NXD7VQ.mjs.map} +1 -1
- package/dist/{chunk-PTTDKFL7.js → chunk-FCXQECM7.js} +6 -6
- package/dist/chunk-FCXQECM7.js.map +1 -0
- package/dist/{chunk-DY4K6X3A.js → chunk-GCPPXUAI.js} +6 -6
- package/dist/chunk-GCPPXUAI.js.map +1 -0
- package/dist/{chunk-KJN2C6YE.js → chunk-I34XL5VJ.js} +5 -5
- package/dist/chunk-I34XL5VJ.js.map +1 -0
- package/dist/{chunk-G6VGUAK2.js → chunk-IFVMZFNT.js} +4 -4
- package/dist/chunk-IFVMZFNT.js.map +1 -0
- package/dist/{chunk-FMB2RZDH.mjs → chunk-J4U3IEXL.mjs} +6 -6
- package/dist/chunk-J4U3IEXL.mjs.map +1 -0
- package/dist/{chunk-EUNL6GAL.js → chunk-JP5WGL75.js} +4 -4
- package/dist/chunk-JP5WGL75.js.map +1 -0
- package/dist/{chunk-MG23BS36.js → chunk-L3UB4B74.js} +5 -5
- package/dist/chunk-L3UB4B74.js.map +1 -0
- package/dist/{chunk-FVCQBTNK.mjs → chunk-MSRLAD7F.mjs} +77 -61
- package/dist/chunk-MSRLAD7F.mjs.map +1 -0
- package/dist/{chunk-M5FLRLHI.mjs → chunk-OM6R7CDP.mjs} +3 -3
- package/dist/chunk-OM6R7CDP.mjs.map +1 -0
- package/dist/{chunk-4X5TFGKD.mjs → chunk-P3POHQWW.mjs} +422 -426
- package/dist/chunk-P3POHQWW.mjs.map +1 -0
- package/dist/{chunk-GJD4CFHN.js → chunk-RLNG67S5.js} +7 -7
- package/dist/chunk-RLNG67S5.js.map +1 -0
- package/dist/{chunk-FTSXKDP3.js → chunk-RO6DHV6S.js} +10 -12
- package/dist/{chunk-FTSXKDP3.js.map → chunk-RO6DHV6S.js.map} +1 -1
- package/dist/{chunk-WW7UM7XY.js → chunk-TZAD7CZD.js} +424 -428
- package/dist/chunk-TZAD7CZD.js.map +1 -0
- package/dist/{chunk-TXZNP76P.js → chunk-UD5447TC.js} +13 -15
- package/dist/chunk-UD5447TC.js.map +1 -0
- package/dist/{chunk-TC6TOW2T.js → chunk-UJ757WGI.js} +4 -4
- package/dist/{chunk-TC6TOW2T.js.map → chunk-UJ757WGI.js.map} +1 -1
- package/dist/{chunk-C3A5HXHX.mjs → chunk-V6V6OXS2.mjs} +5 -5
- package/dist/chunk-V6V6OXS2.mjs.map +1 -0
- package/dist/{chunk-X4J33XQD.js → chunk-W6K7MQCC.js} +6 -6
- package/dist/chunk-W6K7MQCC.js.map +1 -0
- package/dist/{chunk-FI2ME55T.mjs → chunk-W7RZ3OTA.mjs} +7 -7
- package/dist/chunk-W7RZ3OTA.mjs.map +1 -0
- package/dist/{chunk-IJ2LWZID.js → chunk-WETCVFIK.js} +85 -73
- package/dist/chunk-WETCVFIK.js.map +1 -0
- package/dist/{chunk-VNAJQKYG.mjs → chunk-WN2PUL6B.mjs} +13 -15
- package/dist/chunk-WN2PUL6B.mjs.map +1 -0
- package/dist/cli/index.js +19339 -3461
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +19331 -3452
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cms/index.d.mts +1 -1
- package/dist/cms/index.d.ts +1 -1
- package/dist/cms/index.js +3 -3
- package/dist/cms/index.js.map +1 -1
- package/dist/cms/index.mjs +2 -2
- package/dist/cms/index.mjs.map +1 -1
- package/dist/cms/server.js +4 -4
- package/dist/cms/server.mjs +1 -1
- package/dist/commerce/index.js +47 -47
- package/dist/commerce/index.mjs +3 -3
- package/dist/engage/index.js +6 -6
- package/dist/engage/index.js.map +1 -1
- package/dist/engage/index.mjs +3 -3
- package/dist/engage/index.mjs.map +1 -1
- package/dist/forms/index.js +379 -84
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +375 -65
- package/dist/forms/index.mjs.map +1 -1
- package/dist/forms/styles.css +312 -0
- package/dist/images/index.js +11 -11
- package/dist/images/index.mjs +2 -2
- package/dist/images/server.js +4 -4
- package/dist/images/server.mjs +1 -1
- package/dist/index.d.mts +4 -131
- package/dist/index.d.ts +4 -131
- package/dist/index.js +85 -1373
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1294
- package/dist/index.mjs.map +1 -1
- package/dist/layout/client.js +2 -2
- package/dist/layout/client.mjs +1 -1
- package/dist/layout/index.js +21 -11
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +17 -7
- package/dist/layout/index.mjs.map +1 -1
- package/dist/llms/index.d.mts +3 -3
- package/dist/llms/index.d.ts +3 -3
- package/dist/llms/index.js +12 -12
- package/dist/llms/index.js.map +1 -1
- package/dist/llms/index.mjs +2 -2
- package/dist/llms/index.mjs.map +1 -1
- package/dist/manifest/index.js +4 -4
- package/dist/manifest/index.js.map +1 -1
- package/dist/manifest/index.mjs +3 -3
- package/dist/manifest/index.mjs.map +1 -1
- package/dist/middleware/index.js +3 -3
- package/dist/middleware/index.mjs +2 -2
- package/dist/redirects/index.js +6 -6
- package/dist/redirects/index.mjs +2 -2
- package/dist/robots/index.js +3 -3
- package/dist/robots/index.js.map +1 -1
- package/dist/robots/index.mjs +2 -2
- package/dist/robots/index.mjs.map +1 -1
- package/dist/{routing-DZYzyDHw.d.ts → routing-DQ_Et-OP.d.mts} +4 -4
- package/dist/{routing-B5XS-6_W.d.mts → routing-IYiJNIIX.d.ts} +4 -4
- package/dist/seo/index.d.mts +3 -5
- package/dist/seo/index.d.ts +3 -5
- package/dist/seo/index.js +77 -76
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +41 -40
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo/register-sitemap-cli.js +3 -3
- package/dist/seo/register-sitemap-cli.js.map +1 -1
- package/dist/seo/register-sitemap-cli.mjs +3 -3
- package/dist/seo/register-sitemap-cli.mjs.map +1 -1
- package/dist/seo/server.d.mts +3 -3
- package/dist/seo/server.d.ts +3 -3
- package/dist/seo/server.js +7 -7
- package/dist/seo/server.js.map +1 -1
- package/dist/seo/server.mjs +5 -5
- package/dist/seo/server.mjs.map +1 -1
- package/dist/{server-api-XGKRGUMG.js → server-api-36R24YWN.js} +21 -21
- package/dist/{server-api-XGKRGUMG.js.map → server-api-36R24YWN.js.map} +1 -1
- package/dist/{server-api-COVFLFZ2.mjs → server-api-UIZU4JM3.mjs} +3 -3
- package/dist/{server-api-COVFLFZ2.mjs.map → server-api-UIZU4JM3.mjs.map} +1 -1
- package/dist/setup/index.d.mts +2 -5
- package/dist/setup/index.d.ts +2 -5
- package/dist/setup/index.js +0 -31
- package/dist/setup/index.mjs +1 -4
- package/dist/site-config/index.js +3 -3
- package/dist/site-config/index.mjs +1 -1
- package/dist/sitemap/index.js +10 -9
- package/dist/sitemap/index.js.map +1 -1
- package/dist/sitemap/index.mjs +8 -7
- package/dist/sitemap/index.mjs.map +1 -1
- package/dist/sync/index.js +13 -13
- package/dist/sync/index.mjs +1 -1
- package/dist/{types-KZP_VWZp.d.mts → types-CGkyylOa.d.mts} +2 -2
- package/dist/{types-KZP_VWZp.d.ts → types-CGkyylOa.d.ts} +2 -2
- package/package.json +4 -12
- package/dist/AnalyticsProvider-BBLU4U2T.mjs +0 -4
- package/dist/AnalyticsProvider-EMDIAAWR.js +0 -25
- package/dist/EngageWidget-CVZMTSB6.mjs +0 -4
- package/dist/EngageWidget-UHWXXCAX.js +0 -13
- package/dist/SetupWizard-Cki06kB0.d.mts +0 -12
- package/dist/SetupWizard-Cki06kB0.d.ts +0 -12
- package/dist/SignalBridge-6UYUZ2CN.js +0 -33
- package/dist/SignalBridge-WGHMEILW.mjs +0 -4
- package/dist/chunk-36Y7OWES.mjs.map +0 -1
- package/dist/chunk-373TK6TZ.js +0 -321
- package/dist/chunk-373TK6TZ.js.map +0 -1
- package/dist/chunk-4MOJJSNA.js +0 -14867
- package/dist/chunk-4MOJJSNA.js.map +0 -1
- package/dist/chunk-4QHHFCAA.mjs.map +0 -1
- package/dist/chunk-4X5TFGKD.mjs.map +0 -1
- package/dist/chunk-5YDPPOUU.mjs +0 -810
- package/dist/chunk-5YDPPOUU.mjs.map +0 -1
- package/dist/chunk-7FKPJQVS.mjs +0 -289
- package/dist/chunk-7FKPJQVS.mjs.map +0 -1
- package/dist/chunk-C3A5HXHX.mjs.map +0 -1
- package/dist/chunk-DY4K6X3A.js.map +0 -1
- package/dist/chunk-ELDJDBQL.js.map +0 -1
- package/dist/chunk-EUNL6GAL.js.map +0 -1
- package/dist/chunk-FI2ME55T.mjs.map +0 -1
- package/dist/chunk-FMB2RZDH.mjs.map +0 -1
- package/dist/chunk-FVCQBTNK.mjs.map +0 -1
- package/dist/chunk-G6VGUAK2.js.map +0 -1
- package/dist/chunk-GJD4CFHN.js.map +0 -1
- package/dist/chunk-GVXZWXQ7.js +0 -814
- package/dist/chunk-GVXZWXQ7.js.map +0 -1
- package/dist/chunk-HF2FWDBJ.mjs +0 -968
- package/dist/chunk-HF2FWDBJ.mjs.map +0 -1
- package/dist/chunk-IFAW7JFO.js +0 -1429
- package/dist/chunk-IFAW7JFO.js.map +0 -1
- package/dist/chunk-IJ2LWZID.js.map +0 -1
- package/dist/chunk-IKIJEKU3.mjs +0 -1427
- package/dist/chunk-IKIJEKU3.mjs.map +0 -1
- package/dist/chunk-JFTGG6HK.mjs +0 -14848
- package/dist/chunk-JFTGG6HK.mjs.map +0 -1
- package/dist/chunk-JM3ZR6LB.js +0 -981
- package/dist/chunk-JM3ZR6LB.js.map +0 -1
- package/dist/chunk-KJN2C6YE.js.map +0 -1
- package/dist/chunk-M5FLRLHI.mjs.map +0 -1
- package/dist/chunk-MCGLYYAR.mjs +0 -341
- package/dist/chunk-MCGLYYAR.mjs.map +0 -1
- package/dist/chunk-MG23BS36.js.map +0 -1
- package/dist/chunk-N24BPFF6.mjs.map +0 -1
- package/dist/chunk-NRNK7LXK.mjs.map +0 -1
- package/dist/chunk-PTTDKFL7.js.map +0 -1
- package/dist/chunk-S7FRYNSU.mjs +0 -315
- package/dist/chunk-S7FRYNSU.mjs.map +0 -1
- package/dist/chunk-SLB5V4RT.js +0 -302
- package/dist/chunk-SLB5V4RT.js.map +0 -1
- package/dist/chunk-TXZNP76P.js.map +0 -1
- package/dist/chunk-VNAJQKYG.mjs.map +0 -1
- package/dist/chunk-VZMDH3R4.mjs.map +0 -1
- package/dist/chunk-WW7UM7XY.js.map +0 -1
- package/dist/chunk-X4J33XQD.js.map +0 -1
- package/dist/chunk-XFOL6JDF.mjs.map +0 -1
- package/dist/chunk-XWWBUC2I.js.map +0 -1
- package/dist/chunk-YBTYDBWY.js.map +0 -1
- package/dist/chunk-ZQO6FZZB.js +0 -343
- package/dist/chunk-ZQO6FZZB.js.map +0 -1
- package/dist/chunk-ZU6YPEAF.mjs.map +0 -1
- package/dist/generators-DOFWGRXS.js +0 -37
- package/dist/generators-DOFWGRXS.js.map +0 -1
- package/dist/generators-R62APO62.mjs +0 -4
- package/dist/generators-R62APO62.mjs.map +0 -1
- package/dist/migrator-3WQB3KQ2.mjs +0 -4
- package/dist/migrator-3WQB3KQ2.mjs.map +0 -1
- package/dist/migrator-HFVQYK5R.js +0 -37
- package/dist/migrator-HFVQYK5R.js.map +0 -1
- package/dist/scanner-AF7YUCFG.mjs +0 -4
- package/dist/scanner-AF7YUCFG.mjs.map +0 -1
- package/dist/scanner-DBD5K6F7.js +0 -53
- package/dist/scanner-DBD5K6F7.js.map +0 -1
- package/dist/setup/client.d.mts +0 -60
- package/dist/setup/client.d.ts +0 -60
- package/dist/setup/client.js +0 -31
- package/dist/setup/client.js.map +0 -1
- package/dist/setup/client.mjs +0 -6
- package/dist/setup/client.mjs.map +0 -1
- package/dist/setup/server.d.mts +0 -14
- package/dist/setup/server.d.ts +0 -14
- package/dist/setup/server.js +0 -13
- package/dist/setup/server.js.map +0 -1
- package/dist/setup/server.mjs +0 -4
- package/dist/setup/server.mjs.map +0 -1
package/dist/blog/index.mjs
CHANGED
|
@@ -56,8 +56,8 @@ function slugify(text) {
|
|
|
56
56
|
return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
57
57
|
}
|
|
58
58
|
async function BlogPost({
|
|
59
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
60
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
59
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
60
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
61
61
|
slug,
|
|
62
62
|
showToc = true,
|
|
63
63
|
showRelated = true,
|
|
@@ -83,7 +83,7 @@ async function BlogPost({
|
|
|
83
83
|
style: inlineStyle({ textAlign: "center", padding: 60 }, "notFound"),
|
|
84
84
|
children: [
|
|
85
85
|
/* @__PURE__ */ jsx("h1", { style: inlineStyle({ fontSize: 24, marginBottom: 16 }, "notFound"), children: "Post Not Found" }),
|
|
86
|
-
/* @__PURE__ */ jsx("p", { style: inlineStyle({ color: "
|
|
86
|
+
/* @__PURE__ */ jsx("p", { style: inlineStyle({ color: "var(--sk-text-secondary)" }, "notFound"), children: "The blog post you're looking for doesn't exist or has been removed." }),
|
|
87
87
|
/* @__PURE__ */ jsx(
|
|
88
88
|
"a",
|
|
89
89
|
{
|
|
@@ -92,8 +92,8 @@ async function BlogPost({
|
|
|
92
92
|
display: "inline-block",
|
|
93
93
|
marginTop: 24,
|
|
94
94
|
padding: "12px 24px",
|
|
95
|
-
backgroundColor: "
|
|
96
|
-
color: "
|
|
95
|
+
backgroundColor: "var(--sk-primary)",
|
|
96
|
+
color: "var(--sk-bg)",
|
|
97
97
|
borderRadius: 8,
|
|
98
98
|
textDecoration: "none"
|
|
99
99
|
}, "notFound"),
|
|
@@ -126,14 +126,14 @@ async function BlogPost({
|
|
|
126
126
|
"nav",
|
|
127
127
|
{
|
|
128
128
|
className: styles.breadcrumb,
|
|
129
|
-
style: inlineStyle({ marginBottom: 16, fontSize: 14, color: "
|
|
129
|
+
style: inlineStyle({ marginBottom: 16, fontSize: 14, color: "var(--sk-text-secondary)" }, "breadcrumb"),
|
|
130
130
|
children: [
|
|
131
131
|
/* @__PURE__ */ jsx(
|
|
132
132
|
"a",
|
|
133
133
|
{
|
|
134
134
|
href: basePath,
|
|
135
135
|
className: styles.breadcrumbLink,
|
|
136
|
-
style: inlineStyle({ color: "
|
|
136
|
+
style: inlineStyle({ color: "var(--sk-primary)", textDecoration: "none" }, "breadcrumbLink"),
|
|
137
137
|
children: "Blog"
|
|
138
138
|
}
|
|
139
139
|
),
|
|
@@ -144,7 +144,7 @@ async function BlogPost({
|
|
|
144
144
|
{
|
|
145
145
|
href: `${basePath}?category=${post.category}`,
|
|
146
146
|
className: styles.breadcrumbLink,
|
|
147
|
-
style: inlineStyle({ color: "
|
|
147
|
+
style: inlineStyle({ color: "var(--sk-primary)", textDecoration: "none" }, "breadcrumbLink"),
|
|
148
148
|
children: typeof post.category === "string" ? post.category : post.category?.name || "Uncategorized"
|
|
149
149
|
}
|
|
150
150
|
)
|
|
@@ -164,7 +164,7 @@ async function BlogPost({
|
|
|
164
164
|
"p",
|
|
165
165
|
{
|
|
166
166
|
className: styles.subtitle,
|
|
167
|
-
style: inlineStyle({ fontSize: 20, color: "
|
|
167
|
+
style: inlineStyle({ fontSize: 20, color: "var(--sk-text-secondary)", marginBottom: 16 }, "subtitle"),
|
|
168
168
|
children: post.subtitle
|
|
169
169
|
}
|
|
170
170
|
),
|
|
@@ -178,7 +178,7 @@ async function BlogPost({
|
|
|
178
178
|
"span",
|
|
179
179
|
{
|
|
180
180
|
className: styles.metaItem,
|
|
181
|
-
style: inlineStyle({ fontSize: 14, color: "
|
|
181
|
+
style: inlineStyle({ fontSize: 14, color: "var(--sk-text-primary)" }, "metaItem"),
|
|
182
182
|
children: [
|
|
183
183
|
"By ",
|
|
184
184
|
typeof post.author === "string" ? post.author : post.author.name
|
|
@@ -189,7 +189,7 @@ async function BlogPost({
|
|
|
189
189
|
"span",
|
|
190
190
|
{
|
|
191
191
|
className: styles.metaItem,
|
|
192
|
-
style: inlineStyle({ fontSize: 14, color: "
|
|
192
|
+
style: inlineStyle({ fontSize: 14, color: "var(--sk-text-secondary)" }, "metaItem"),
|
|
193
193
|
children: date
|
|
194
194
|
}
|
|
195
195
|
),
|
|
@@ -197,7 +197,7 @@ async function BlogPost({
|
|
|
197
197
|
"span",
|
|
198
198
|
{
|
|
199
199
|
className: styles.metaItem,
|
|
200
|
-
style: inlineStyle({ fontSize: 14, color: "
|
|
200
|
+
style: inlineStyle({ fontSize: 14, color: "var(--sk-text-tertiary)" }, "metaItem"),
|
|
201
201
|
children: [
|
|
202
202
|
post.reading_time_minutes,
|
|
203
203
|
" min read"
|
|
@@ -248,7 +248,7 @@ async function BlogPost({
|
|
|
248
248
|
style: inlineStyle({
|
|
249
249
|
fontSize: 17,
|
|
250
250
|
lineHeight: 1.8,
|
|
251
|
-
color: "
|
|
251
|
+
color: "var(--sk-text-primary)"
|
|
252
252
|
}, "content"),
|
|
253
253
|
dangerouslySetInnerHTML: { __html: content }
|
|
254
254
|
}
|
|
@@ -262,7 +262,7 @@ async function BlogPost({
|
|
|
262
262
|
top: 100,
|
|
263
263
|
alignSelf: "start",
|
|
264
264
|
padding: 20,
|
|
265
|
-
backgroundColor: "
|
|
265
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
266
266
|
borderRadius: 12
|
|
267
267
|
}, "tocSidebar"),
|
|
268
268
|
children: [
|
|
@@ -276,7 +276,7 @@ async function BlogPost({
|
|
|
276
276
|
fontWeight: 600,
|
|
277
277
|
textTransform: "uppercase",
|
|
278
278
|
letterSpacing: "0.05em",
|
|
279
|
-
color: "
|
|
279
|
+
color: "var(--sk-text-secondary)"
|
|
280
280
|
}, "tocTitle"),
|
|
281
281
|
children: "On This Page"
|
|
282
282
|
}
|
|
@@ -301,7 +301,7 @@ async function BlogPost({
|
|
|
301
301
|
className: styles.tocLink,
|
|
302
302
|
style: inlineStyle({
|
|
303
303
|
fontSize: 14,
|
|
304
|
-
color: "
|
|
304
|
+
color: "var(--sk-text-secondary)",
|
|
305
305
|
textDecoration: "none"
|
|
306
306
|
}, "tocLink"),
|
|
307
307
|
children: item.text
|
|
@@ -332,10 +332,10 @@ async function BlogPost({
|
|
|
332
332
|
className: styles.tag,
|
|
333
333
|
style: inlineStyle({
|
|
334
334
|
padding: "4px 12px",
|
|
335
|
-
backgroundColor: "
|
|
335
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
336
336
|
borderRadius: 9999,
|
|
337
337
|
fontSize: 13,
|
|
338
|
-
color: "
|
|
338
|
+
color: "var(--sk-text-primary)",
|
|
339
339
|
textDecoration: "none"
|
|
340
340
|
}, "tag"),
|
|
341
341
|
children: [
|
|
@@ -368,7 +368,7 @@ async function BlogPost({
|
|
|
368
368
|
className: styles.faqItem,
|
|
369
369
|
style: inlineStyle({
|
|
370
370
|
padding: 16,
|
|
371
|
-
backgroundColor: "
|
|
371
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
372
372
|
borderRadius: 8
|
|
373
373
|
}, "faqItem"),
|
|
374
374
|
children: [
|
|
@@ -388,7 +388,7 @@ async function BlogPost({
|
|
|
388
388
|
"p",
|
|
389
389
|
{
|
|
390
390
|
className: styles.faqAnswer,
|
|
391
|
-
style: inlineStyle({ marginTop: 12, color: "
|
|
391
|
+
style: inlineStyle({ marginTop: 12, color: "var(--sk-text-secondary)" }, "faqAnswer"),
|
|
392
392
|
children: faq.answer
|
|
393
393
|
}
|
|
394
394
|
)
|
|
@@ -428,7 +428,7 @@ async function BlogPost({
|
|
|
428
428
|
{
|
|
429
429
|
className: styles.relatedCard,
|
|
430
430
|
style: inlineStyle({
|
|
431
|
-
backgroundColor: "
|
|
431
|
+
backgroundColor: "var(--sk-bg)",
|
|
432
432
|
borderRadius: 12,
|
|
433
433
|
overflow: "hidden",
|
|
434
434
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
@@ -451,7 +451,7 @@ async function BlogPost({
|
|
|
451
451
|
children: relatedPost.title
|
|
452
452
|
}
|
|
453
453
|
) }),
|
|
454
|
-
relatedPost.excerpt && /* @__PURE__ */ jsxs("p", { style: inlineStyle({ fontSize: 14, color: "
|
|
454
|
+
relatedPost.excerpt && /* @__PURE__ */ jsxs("p", { style: inlineStyle({ fontSize: 14, color: "var(--sk-text-secondary)", margin: 0 }, "relatedCard"), children: [
|
|
455
455
|
relatedPost.excerpt.slice(0, 100),
|
|
456
456
|
"..."
|
|
457
457
|
] })
|
|
@@ -499,7 +499,7 @@ function AuthorSection({
|
|
|
499
499
|
style: unstyled || className ? void 0 : {
|
|
500
500
|
marginTop: 48,
|
|
501
501
|
padding: 24,
|
|
502
|
-
backgroundColor: "
|
|
502
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
503
503
|
borderRadius: 12,
|
|
504
504
|
display: "flex",
|
|
505
505
|
gap: 20,
|
|
@@ -521,8 +521,8 @@ function AuthorSection({
|
|
|
521
521
|
),
|
|
522
522
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
523
523
|
/* @__PURE__ */ jsx("h3", { style: unstyled || className ? void 0 : { margin: "0 0 4px", fontSize: 18, fontWeight: 600 }, children: author.name }),
|
|
524
|
-
"title" in author && author.title && /* @__PURE__ */ jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 4px", fontSize: 14, color: "
|
|
525
|
-
author.bio && /* @__PURE__ */ jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 12px", color: "
|
|
524
|
+
"title" in author && author.title && /* @__PURE__ */ jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 4px", fontSize: 14, color: "var(--sk-text-secondary)" }, children: author.title }),
|
|
525
|
+
author.bio && /* @__PURE__ */ jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 12px", color: "var(--sk-text-secondary)", fontSize: 14 }, children: author.bio }),
|
|
526
526
|
author.social_links && /* @__PURE__ */ jsxs("div", { style: unstyled || className ? void 0 : { display: "flex", gap: 16 }, children: [
|
|
527
527
|
author.social_links.twitter && /* @__PURE__ */ jsx(
|
|
528
528
|
"a",
|
|
@@ -530,7 +530,7 @@ function AuthorSection({
|
|
|
530
530
|
href: `https://twitter.com/${author.social_links.twitter}`,
|
|
531
531
|
target: "_blank",
|
|
532
532
|
rel: "noopener noreferrer",
|
|
533
|
-
style: unstyled || className ? void 0 : { color: "
|
|
533
|
+
style: unstyled || className ? void 0 : { color: "var(--sk-primary)", fontSize: 14 },
|
|
534
534
|
children: "Twitter"
|
|
535
535
|
}
|
|
536
536
|
),
|
|
@@ -540,7 +540,7 @@ function AuthorSection({
|
|
|
540
540
|
href: author.social_links.linkedin,
|
|
541
541
|
target: "_blank",
|
|
542
542
|
rel: "noopener noreferrer",
|
|
543
|
-
style: unstyled || className ? void 0 : { color: "
|
|
543
|
+
style: unstyled || className ? void 0 : { color: "var(--sk-primary)", fontSize: 14 },
|
|
544
544
|
children: "LinkedIn"
|
|
545
545
|
}
|
|
546
546
|
)
|
|
@@ -551,7 +551,7 @@ function AuthorSection({
|
|
|
551
551
|
href: url,
|
|
552
552
|
target: "_blank",
|
|
553
553
|
rel: "noopener noreferrer",
|
|
554
|
-
style: { color: "
|
|
554
|
+
style: { color: "var(--sk-primary)", fontSize: 14 },
|
|
555
555
|
children: "Profile"
|
|
556
556
|
},
|
|
557
557
|
i
|
|
@@ -650,8 +650,8 @@ async function fetchCategories(apiUrl, apiKey) {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
async function BlogList({
|
|
653
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
654
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
653
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
654
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
655
655
|
category,
|
|
656
656
|
tag,
|
|
657
657
|
author,
|
|
@@ -701,7 +701,7 @@ async function BlogList({
|
|
|
701
701
|
{
|
|
702
702
|
className: `${styles.container || ""} ${styles.emptyState || ""} ${className || ""}`.trim() || void 0,
|
|
703
703
|
style: inlineStyle({ textAlign: "center", padding: 40 }, "emptyState"),
|
|
704
|
-
children: /* @__PURE__ */ jsx("p", { style: inlineStyle({ color: "
|
|
704
|
+
children: /* @__PURE__ */ jsx("p", { style: inlineStyle({ color: "var(--sk-text-secondary)" }, "emptyState"), children: "No posts found." })
|
|
705
705
|
}
|
|
706
706
|
);
|
|
707
707
|
}
|
|
@@ -722,8 +722,8 @@ async function BlogList({
|
|
|
722
722
|
borderRadius: 9999,
|
|
723
723
|
fontSize: 14,
|
|
724
724
|
textDecoration: "none",
|
|
725
|
-
backgroundColor: !category ? "
|
|
726
|
-
color: !category ? "
|
|
725
|
+
backgroundColor: !category ? "var(--sk-primary)" : "var(--sk-bg-elevated)",
|
|
726
|
+
color: !category ? "var(--sk-bg)" : "var(--sk-text-primary)"
|
|
727
727
|
}, "categoryLink"),
|
|
728
728
|
children: "All"
|
|
729
729
|
}
|
|
@@ -738,8 +738,8 @@ async function BlogList({
|
|
|
738
738
|
borderRadius: 9999,
|
|
739
739
|
fontSize: 14,
|
|
740
740
|
textDecoration: "none",
|
|
741
|
-
backgroundColor: category === cat.slug ? "
|
|
742
|
-
color: category === cat.slug ? "
|
|
741
|
+
backgroundColor: category === cat.slug ? "var(--sk-primary)" : "var(--sk-bg-elevated)",
|
|
742
|
+
color: category === cat.slug ? "var(--sk-bg)" : "var(--sk-text-primary)"
|
|
743
743
|
}, "categoryLink"),
|
|
744
744
|
children: [
|
|
745
745
|
cat.name,
|
|
@@ -791,7 +791,7 @@ async function BlogList({
|
|
|
791
791
|
"span",
|
|
792
792
|
{
|
|
793
793
|
className: styles.paginationInfo,
|
|
794
|
-
style: inlineStyle({ padding: "8px 16px", color: "
|
|
794
|
+
style: inlineStyle({ padding: "8px 16px", color: "var(--sk-text-secondary)" }, "paginationInfo"),
|
|
795
795
|
children: [
|
|
796
796
|
"Page ",
|
|
797
797
|
pagination.page,
|
|
@@ -826,7 +826,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
826
826
|
{
|
|
827
827
|
className: styles.card,
|
|
828
828
|
style: inlineStyle({
|
|
829
|
-
backgroundColor: "
|
|
829
|
+
backgroundColor: "var(--sk-bg)",
|
|
830
830
|
borderRadius: 12,
|
|
831
831
|
overflow: "hidden",
|
|
832
832
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)",
|
|
@@ -867,8 +867,8 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
867
867
|
borderRadius: 4,
|
|
868
868
|
fontSize: 12,
|
|
869
869
|
fontWeight: 500,
|
|
870
|
-
backgroundColor: "
|
|
871
|
-
color: "
|
|
870
|
+
backgroundColor: "rgba(var(--sk-primary-rgb), 0.1)",
|
|
871
|
+
color: "var(--sk-primary)",
|
|
872
872
|
textTransform: "uppercase"
|
|
873
873
|
}, "cardCategory"),
|
|
874
874
|
children: typeof post.category === "string" ? post.category : post.category?.name || "Uncategorized"
|
|
@@ -878,7 +878,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
878
878
|
"span",
|
|
879
879
|
{
|
|
880
880
|
className: styles.cardDate,
|
|
881
|
-
style: inlineStyle({ fontSize: 13, color: "
|
|
881
|
+
style: inlineStyle({ fontSize: 13, color: "var(--sk-text-secondary)" }, "cardDate"),
|
|
882
882
|
children: date
|
|
883
883
|
}
|
|
884
884
|
)
|
|
@@ -908,7 +908,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
908
908
|
style: inlineStyle({
|
|
909
909
|
margin: "0 0 16px",
|
|
910
910
|
fontSize: 14,
|
|
911
|
-
color: "
|
|
911
|
+
color: "var(--sk-text-secondary)",
|
|
912
912
|
lineHeight: 1.6,
|
|
913
913
|
display: "-webkit-box",
|
|
914
914
|
WebkitLineClamp: 3,
|
|
@@ -928,7 +928,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
928
928
|
"span",
|
|
929
929
|
{
|
|
930
930
|
className: styles.cardAuthor,
|
|
931
|
-
style: inlineStyle({ fontSize: 13, color: "
|
|
931
|
+
style: inlineStyle({ fontSize: 13, color: "var(--sk-text-secondary)" }, "cardAuthor"),
|
|
932
932
|
children: [
|
|
933
933
|
"By ",
|
|
934
934
|
typeof post.author === "string" ? post.author : post.author.name
|
|
@@ -939,7 +939,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
939
939
|
"span",
|
|
940
940
|
{
|
|
941
941
|
className: styles.cardReadingTime,
|
|
942
|
-
style: inlineStyle({ fontSize: 13, color: "
|
|
942
|
+
style: inlineStyle({ fontSize: 13, color: "var(--sk-text-tertiary)" }, "cardReadingTime"),
|
|
943
943
|
children: [
|
|
944
944
|
post.reading_time_minutes,
|
|
945
945
|
" min read"
|
|
@@ -965,8 +965,8 @@ function buildPaginationUrl(basePath, page, category) {
|
|
|
965
965
|
var paginationLinkStyle = {
|
|
966
966
|
padding: "8px 16px",
|
|
967
967
|
borderRadius: 8,
|
|
968
|
-
backgroundColor: "
|
|
969
|
-
color: "
|
|
968
|
+
backgroundColor: "var(--sk-primary)",
|
|
969
|
+
color: "var(--sk-bg)",
|
|
970
970
|
textDecoration: "none",
|
|
971
971
|
fontSize: 14,
|
|
972
972
|
fontWeight: 500
|
|
@@ -1014,8 +1014,8 @@ async function fetchTags(apiUrl, apiKey) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
async function BlogSidebar({
|
|
1017
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
1018
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
1017
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
1018
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
1019
1019
|
showCategories = true,
|
|
1020
1020
|
showRecentPosts = true,
|
|
1021
1021
|
recentPostsCount = 5,
|
|
@@ -1062,7 +1062,7 @@ function SearchWidget({ basePath }) {
|
|
|
1062
1062
|
style: {
|
|
1063
1063
|
width: "100%",
|
|
1064
1064
|
padding: "10px 12px",
|
|
1065
|
-
border: "1px solid
|
|
1065
|
+
border: "1px solid var(--sk-border)",
|
|
1066
1066
|
borderRadius: 8,
|
|
1067
1067
|
fontSize: 14
|
|
1068
1068
|
}
|
|
@@ -1085,7 +1085,7 @@ function CategoriesWidget({
|
|
|
1085
1085
|
style: {
|
|
1086
1086
|
...categoryLinkStyle,
|
|
1087
1087
|
fontWeight: !currentCategory ? 600 : 400,
|
|
1088
|
-
color: !currentCategory ? "
|
|
1088
|
+
color: !currentCategory ? "var(--sk-primary)" : "var(--sk-text-primary)"
|
|
1089
1089
|
},
|
|
1090
1090
|
children: "All Posts"
|
|
1091
1091
|
}
|
|
@@ -1097,11 +1097,11 @@ function CategoriesWidget({
|
|
|
1097
1097
|
style: {
|
|
1098
1098
|
...categoryLinkStyle,
|
|
1099
1099
|
fontWeight: currentCategory === cat.slug ? 600 : 400,
|
|
1100
|
-
color: currentCategory === cat.slug ? "
|
|
1100
|
+
color: currentCategory === cat.slug ? "var(--sk-primary)" : "var(--sk-text-primary)"
|
|
1101
1101
|
},
|
|
1102
1102
|
children: [
|
|
1103
1103
|
cat.name,
|
|
1104
|
-
/* @__PURE__ */ jsxs("span", { style: { color: "
|
|
1104
|
+
/* @__PURE__ */ jsxs("span", { style: { color: "var(--sk-text-tertiary)", marginLeft: 8 }, children: [
|
|
1105
1105
|
"(",
|
|
1106
1106
|
cat.post_count,
|
|
1107
1107
|
")"
|
|
@@ -1129,7 +1129,7 @@ function RecentPostsWidget({
|
|
|
1129
1129
|
style: {
|
|
1130
1130
|
marginBottom: 16,
|
|
1131
1131
|
paddingBottom: 16,
|
|
1132
|
-
borderBottom: "1px solid
|
|
1132
|
+
borderBottom: "1px solid var(--sk-border)"
|
|
1133
1133
|
},
|
|
1134
1134
|
children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12 }, children: [
|
|
1135
1135
|
post.featured_image && /* @__PURE__ */ jsx("a", { href: `${basePath}/${post.slug}`, children: /* @__PURE__ */ jsx(
|
|
@@ -1154,7 +1154,7 @@ function RecentPostsWidget({
|
|
|
1154
1154
|
style: {
|
|
1155
1155
|
fontSize: 14,
|
|
1156
1156
|
fontWeight: 500,
|
|
1157
|
-
color: "
|
|
1157
|
+
color: "var(--sk-text-primary)",
|
|
1158
1158
|
textDecoration: "none",
|
|
1159
1159
|
display: "-webkit-box",
|
|
1160
1160
|
WebkitLineClamp: 2,
|
|
@@ -1164,7 +1164,7 @@ function RecentPostsWidget({
|
|
|
1164
1164
|
children: post.title
|
|
1165
1165
|
}
|
|
1166
1166
|
),
|
|
1167
|
-
date && /* @__PURE__ */ jsx("span", { style: { fontSize: 12, color: "
|
|
1167
|
+
date && /* @__PURE__ */ jsx("span", { style: { fontSize: 12, color: "var(--sk-text-tertiary)", display: "block", marginTop: 4 }, children: date })
|
|
1168
1168
|
] })
|
|
1169
1169
|
] })
|
|
1170
1170
|
},
|
|
@@ -1185,10 +1185,10 @@ function TagsWidget({
|
|
|
1185
1185
|
href: `${basePath}?tag=${tag.slug}`,
|
|
1186
1186
|
style: {
|
|
1187
1187
|
padding: "4px 10px",
|
|
1188
|
-
backgroundColor: "
|
|
1188
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
1189
1189
|
borderRadius: 9999,
|
|
1190
1190
|
fontSize: 12,
|
|
1191
|
-
color: "
|
|
1191
|
+
color: "var(--sk-text-primary)",
|
|
1192
1192
|
textDecoration: "none",
|
|
1193
1193
|
transition: "background-color 0.2s"
|
|
1194
1194
|
},
|
|
@@ -1203,9 +1203,9 @@ function NewsletterWidget({
|
|
|
1203
1203
|
description = "Get the latest posts delivered straight to your inbox.",
|
|
1204
1204
|
buttonText = "Subscribe"
|
|
1205
1205
|
}) {
|
|
1206
|
-
return /* @__PURE__ */ jsxs("div", { style: { ...widgetStyle, backgroundColor: "
|
|
1207
|
-
/* @__PURE__ */ jsx("h4", { style: { ...widgetTitleStyle, color: "
|
|
1208
|
-
/* @__PURE__ */ jsx("p", { style: { fontSize: 14, color: "
|
|
1206
|
+
return /* @__PURE__ */ jsxs("div", { style: { ...widgetStyle, backgroundColor: "rgba(var(--sk-primary-rgb), 0.1)" }, children: [
|
|
1207
|
+
/* @__PURE__ */ jsx("h4", { style: { ...widgetTitleStyle, color: "var(--sk-primary)" }, children: title }),
|
|
1208
|
+
/* @__PURE__ */ jsx("p", { style: { fontSize: 14, color: "var(--sk-text-secondary)", marginBottom: 16 }, children: description }),
|
|
1209
1209
|
/* @__PURE__ */ jsxs(
|
|
1210
1210
|
"form",
|
|
1211
1211
|
{
|
|
@@ -1224,7 +1224,7 @@ function NewsletterWidget({
|
|
|
1224
1224
|
style: {
|
|
1225
1225
|
flex: 1,
|
|
1226
1226
|
padding: "10px 12px",
|
|
1227
|
-
border: "1px solid
|
|
1227
|
+
border: "1px solid var(--sk-border)",
|
|
1228
1228
|
borderRadius: 8,
|
|
1229
1229
|
fontSize: 14
|
|
1230
1230
|
}
|
|
@@ -1236,8 +1236,8 @@ function NewsletterWidget({
|
|
|
1236
1236
|
type: "submit",
|
|
1237
1237
|
style: {
|
|
1238
1238
|
padding: "10px 16px",
|
|
1239
|
-
backgroundColor: "
|
|
1240
|
-
color: "
|
|
1239
|
+
backgroundColor: "var(--sk-primary)",
|
|
1240
|
+
color: "var(--sk-bg)",
|
|
1241
1241
|
border: "none",
|
|
1242
1242
|
borderRadius: 8,
|
|
1243
1243
|
fontSize: 14,
|
|
@@ -1254,14 +1254,14 @@ function NewsletterWidget({
|
|
|
1254
1254
|
}
|
|
1255
1255
|
var widgetStyle = {
|
|
1256
1256
|
padding: 20,
|
|
1257
|
-
backgroundColor: "
|
|
1257
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
1258
1258
|
borderRadius: 12
|
|
1259
1259
|
};
|
|
1260
1260
|
var widgetTitleStyle = {
|
|
1261
1261
|
margin: "0 0 16px",
|
|
1262
1262
|
fontSize: 16,
|
|
1263
1263
|
fontWeight: 600,
|
|
1264
|
-
color: "
|
|
1264
|
+
color: "var(--sk-text-primary)"
|
|
1265
1265
|
};
|
|
1266
1266
|
var categoryLinkStyle = {
|
|
1267
1267
|
display: "flex",
|
|
@@ -1270,8 +1270,8 @@ var categoryLinkStyle = {
|
|
|
1270
1270
|
textDecoration: "none"
|
|
1271
1271
|
};
|
|
1272
1272
|
async function BlogLayout({
|
|
1273
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
1274
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
1273
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
1274
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
1275
1275
|
layout = "sidebar-right",
|
|
1276
1276
|
showSidebar = true,
|
|
1277
1277
|
sidebarProps = {},
|
|
@@ -1289,11 +1289,11 @@ async function BlogLayout({
|
|
|
1289
1289
|
{
|
|
1290
1290
|
style: {
|
|
1291
1291
|
padding: "60px 20px",
|
|
1292
|
-
backgroundColor: hero.backgroundColor || "
|
|
1292
|
+
backgroundColor: hero.backgroundColor || "var(--sk-primary)",
|
|
1293
1293
|
backgroundImage: hero.backgroundImage ? `url(${hero.backgroundImage})` : void 0,
|
|
1294
1294
|
backgroundSize: "cover",
|
|
1295
1295
|
backgroundPosition: "center",
|
|
1296
|
-
color: "
|
|
1296
|
+
color: "var(--sk-bg)",
|
|
1297
1297
|
textAlign: "center"
|
|
1298
1298
|
},
|
|
1299
1299
|
children: /* @__PURE__ */ jsxs("div", { style: { maxWidth, margin: "0 auto" }, children: [
|
|
@@ -1384,7 +1384,7 @@ async function CategoryPage({
|
|
|
1384
1384
|
const categoryHero = hero || {
|
|
1385
1385
|
title: categoryName || category,
|
|
1386
1386
|
subtitle: `Browse all posts in ${categoryName || category}`,
|
|
1387
|
-
backgroundColor: "
|
|
1387
|
+
backgroundColor: "var(--sk-primary)"
|
|
1388
1388
|
};
|
|
1389
1389
|
return /* @__PURE__ */ jsx(BlogLayout, { ...layoutProps, hero: categoryHero, currentCategory: category, children: listComponent });
|
|
1390
1390
|
}
|
|
@@ -1405,7 +1405,7 @@ function AuthorCard({ author, showBio = true, showSocial = true, className }) {
|
|
|
1405
1405
|
),
|
|
1406
1406
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
1407
1407
|
/* @__PURE__ */ jsx("h4", { style: { margin: 0 }, children: author.name }),
|
|
1408
|
-
showBio && author.bio && /* @__PURE__ */ jsx("p", { style: { margin: "4px 0", color: "
|
|
1408
|
+
showBio && author.bio && /* @__PURE__ */ jsx("p", { style: { margin: "4px 0", color: "var(--sk-text-secondary)", fontSize: 14 }, children: author.bio }),
|
|
1409
1409
|
showSocial && author.social_links && /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: 12, marginTop: 8 }, children: [
|
|
1410
1410
|
author.social_links.twitter && /* @__PURE__ */ jsx("a", { href: `https://twitter.com/${author.social_links.twitter}`, target: "_blank", rel: "noopener noreferrer", children: "Twitter" }),
|
|
1411
1411
|
author.social_links.linkedin && /* @__PURE__ */ jsx("a", { href: author.social_links.linkedin, target: "_blank", rel: "noopener noreferrer", children: "LinkedIn" }),
|
|
@@ -1439,8 +1439,8 @@ async function fetchRelatedPosts2(apiUrl, apiKey, currentPostId, limit) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
1441
|
async function RelatedPosts({
|
|
1442
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
1443
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
1442
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
1443
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
1444
1444
|
currentPostId,
|
|
1445
1445
|
limit = 3,
|
|
1446
1446
|
className,
|
|
@@ -1455,7 +1455,7 @@ async function RelatedPosts({
|
|
|
1455
1455
|
return /* @__PURE__ */ jsxs("section", { className, children: [
|
|
1456
1456
|
/* @__PURE__ */ jsx("h3", { style: { marginBottom: 16 }, children: "Related Posts" }),
|
|
1457
1457
|
/* @__PURE__ */ jsx("div", { style: { display: "grid", gap: 16 }, children: posts.map(
|
|
1458
|
-
(post) => renderItem ? renderItem(post) : /* @__PURE__ */ jsxs("article", { style: { borderBottom: "1px solid
|
|
1458
|
+
(post) => renderItem ? renderItem(post) : /* @__PURE__ */ jsxs("article", { style: { borderBottom: "1px solid var(--sk-border)", paddingBottom: 16 }, children: [
|
|
1459
1459
|
post.featured_image && /* @__PURE__ */ jsx(
|
|
1460
1460
|
"img",
|
|
1461
1461
|
{
|
|
@@ -1471,7 +1471,7 @@ async function RelatedPosts({
|
|
|
1471
1471
|
}
|
|
1472
1472
|
),
|
|
1473
1473
|
/* @__PURE__ */ jsx("a", { href: `/blog/${post.slug}`, style: { textDecoration: "none" }, children: /* @__PURE__ */ jsx("h4", { style: { margin: 0, color: "inherit" }, children: post.title }) }),
|
|
1474
|
-
post.excerpt && /* @__PURE__ */ jsx("p", { style: { margin: "4px 0 0", fontSize: 14, color: "
|
|
1474
|
+
post.excerpt && /* @__PURE__ */ jsx("p", { style: { margin: "4px 0 0", fontSize: 14, color: "var(--sk-text-secondary)" }, children: post.excerpt })
|
|
1475
1475
|
] }, post.id)
|
|
1476
1476
|
) })
|
|
1477
1477
|
] });
|
|
@@ -1544,7 +1544,7 @@ function TableOfContents({
|
|
|
1544
1544
|
all: "unset",
|
|
1545
1545
|
cursor: "pointer",
|
|
1546
1546
|
fontSize: 14,
|
|
1547
|
-
color: activeId === item.id ? "
|
|
1547
|
+
color: activeId === item.id ? "var(--sk-primary-hover)" : "var(--sk-text-secondary)",
|
|
1548
1548
|
fontWeight: activeId === item.id ? 500 : 400,
|
|
1549
1549
|
transition: "color 0.2s"
|
|
1550
1550
|
},
|