@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.js
CHANGED
|
@@ -62,8 +62,8 @@ function slugify(text) {
|
|
|
62
62
|
return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
63
63
|
}
|
|
64
64
|
async function BlogPost({
|
|
65
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
66
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
65
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
66
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
67
67
|
slug,
|
|
68
68
|
showToc = true,
|
|
69
69
|
showRelated = true,
|
|
@@ -89,7 +89,7 @@ async function BlogPost({
|
|
|
89
89
|
style: inlineStyle({ textAlign: "center", padding: 60 }, "notFound"),
|
|
90
90
|
children: [
|
|
91
91
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { style: inlineStyle({ fontSize: 24, marginBottom: 16 }, "notFound"), children: "Post Not Found" }),
|
|
92
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: inlineStyle({ color: "
|
|
92
|
+
/* @__PURE__ */ jsxRuntime.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." }),
|
|
93
93
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
94
94
|
"a",
|
|
95
95
|
{
|
|
@@ -98,8 +98,8 @@ async function BlogPost({
|
|
|
98
98
|
display: "inline-block",
|
|
99
99
|
marginTop: 24,
|
|
100
100
|
padding: "12px 24px",
|
|
101
|
-
backgroundColor: "
|
|
102
|
-
color: "
|
|
101
|
+
backgroundColor: "var(--sk-primary)",
|
|
102
|
+
color: "var(--sk-bg)",
|
|
103
103
|
borderRadius: 8,
|
|
104
104
|
textDecoration: "none"
|
|
105
105
|
}, "notFound"),
|
|
@@ -132,14 +132,14 @@ async function BlogPost({
|
|
|
132
132
|
"nav",
|
|
133
133
|
{
|
|
134
134
|
className: styles.breadcrumb,
|
|
135
|
-
style: inlineStyle({ marginBottom: 16, fontSize: 14, color: "
|
|
135
|
+
style: inlineStyle({ marginBottom: 16, fontSize: 14, color: "var(--sk-text-secondary)" }, "breadcrumb"),
|
|
136
136
|
children: [
|
|
137
137
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
138
138
|
"a",
|
|
139
139
|
{
|
|
140
140
|
href: basePath,
|
|
141
141
|
className: styles.breadcrumbLink,
|
|
142
|
-
style: inlineStyle({ color: "
|
|
142
|
+
style: inlineStyle({ color: "var(--sk-primary)", textDecoration: "none" }, "breadcrumbLink"),
|
|
143
143
|
children: "Blog"
|
|
144
144
|
}
|
|
145
145
|
),
|
|
@@ -150,7 +150,7 @@ async function BlogPost({
|
|
|
150
150
|
{
|
|
151
151
|
href: `${basePath}?category=${post.category}`,
|
|
152
152
|
className: styles.breadcrumbLink,
|
|
153
|
-
style: inlineStyle({ color: "
|
|
153
|
+
style: inlineStyle({ color: "var(--sk-primary)", textDecoration: "none" }, "breadcrumbLink"),
|
|
154
154
|
children: typeof post.category === "string" ? post.category : post.category?.name || "Uncategorized"
|
|
155
155
|
}
|
|
156
156
|
)
|
|
@@ -170,7 +170,7 @@ async function BlogPost({
|
|
|
170
170
|
"p",
|
|
171
171
|
{
|
|
172
172
|
className: styles.subtitle,
|
|
173
|
-
style: inlineStyle({ fontSize: 20, color: "
|
|
173
|
+
style: inlineStyle({ fontSize: 20, color: "var(--sk-text-secondary)", marginBottom: 16 }, "subtitle"),
|
|
174
174
|
children: post.subtitle
|
|
175
175
|
}
|
|
176
176
|
),
|
|
@@ -184,7 +184,7 @@ async function BlogPost({
|
|
|
184
184
|
"span",
|
|
185
185
|
{
|
|
186
186
|
className: styles.metaItem,
|
|
187
|
-
style: inlineStyle({ fontSize: 14, color: "
|
|
187
|
+
style: inlineStyle({ fontSize: 14, color: "var(--sk-text-primary)" }, "metaItem"),
|
|
188
188
|
children: [
|
|
189
189
|
"By ",
|
|
190
190
|
typeof post.author === "string" ? post.author : post.author.name
|
|
@@ -195,7 +195,7 @@ async function BlogPost({
|
|
|
195
195
|
"span",
|
|
196
196
|
{
|
|
197
197
|
className: styles.metaItem,
|
|
198
|
-
style: inlineStyle({ fontSize: 14, color: "
|
|
198
|
+
style: inlineStyle({ fontSize: 14, color: "var(--sk-text-secondary)" }, "metaItem"),
|
|
199
199
|
children: date
|
|
200
200
|
}
|
|
201
201
|
),
|
|
@@ -203,7 +203,7 @@ async function BlogPost({
|
|
|
203
203
|
"span",
|
|
204
204
|
{
|
|
205
205
|
className: styles.metaItem,
|
|
206
|
-
style: inlineStyle({ fontSize: 14, color: "
|
|
206
|
+
style: inlineStyle({ fontSize: 14, color: "var(--sk-text-tertiary)" }, "metaItem"),
|
|
207
207
|
children: [
|
|
208
208
|
post.reading_time_minutes,
|
|
209
209
|
" min read"
|
|
@@ -254,7 +254,7 @@ async function BlogPost({
|
|
|
254
254
|
style: inlineStyle({
|
|
255
255
|
fontSize: 17,
|
|
256
256
|
lineHeight: 1.8,
|
|
257
|
-
color: "
|
|
257
|
+
color: "var(--sk-text-primary)"
|
|
258
258
|
}, "content"),
|
|
259
259
|
dangerouslySetInnerHTML: { __html: content }
|
|
260
260
|
}
|
|
@@ -268,7 +268,7 @@ async function BlogPost({
|
|
|
268
268
|
top: 100,
|
|
269
269
|
alignSelf: "start",
|
|
270
270
|
padding: 20,
|
|
271
|
-
backgroundColor: "
|
|
271
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
272
272
|
borderRadius: 12
|
|
273
273
|
}, "tocSidebar"),
|
|
274
274
|
children: [
|
|
@@ -282,7 +282,7 @@ async function BlogPost({
|
|
|
282
282
|
fontWeight: 600,
|
|
283
283
|
textTransform: "uppercase",
|
|
284
284
|
letterSpacing: "0.05em",
|
|
285
|
-
color: "
|
|
285
|
+
color: "var(--sk-text-secondary)"
|
|
286
286
|
}, "tocTitle"),
|
|
287
287
|
children: "On This Page"
|
|
288
288
|
}
|
|
@@ -307,7 +307,7 @@ async function BlogPost({
|
|
|
307
307
|
className: styles.tocLink,
|
|
308
308
|
style: inlineStyle({
|
|
309
309
|
fontSize: 14,
|
|
310
|
-
color: "
|
|
310
|
+
color: "var(--sk-text-secondary)",
|
|
311
311
|
textDecoration: "none"
|
|
312
312
|
}, "tocLink"),
|
|
313
313
|
children: item.text
|
|
@@ -338,10 +338,10 @@ async function BlogPost({
|
|
|
338
338
|
className: styles.tag,
|
|
339
339
|
style: inlineStyle({
|
|
340
340
|
padding: "4px 12px",
|
|
341
|
-
backgroundColor: "
|
|
341
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
342
342
|
borderRadius: 9999,
|
|
343
343
|
fontSize: 13,
|
|
344
|
-
color: "
|
|
344
|
+
color: "var(--sk-text-primary)",
|
|
345
345
|
textDecoration: "none"
|
|
346
346
|
}, "tag"),
|
|
347
347
|
children: [
|
|
@@ -374,7 +374,7 @@ async function BlogPost({
|
|
|
374
374
|
className: styles.faqItem,
|
|
375
375
|
style: inlineStyle({
|
|
376
376
|
padding: 16,
|
|
377
|
-
backgroundColor: "
|
|
377
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
378
378
|
borderRadius: 8
|
|
379
379
|
}, "faqItem"),
|
|
380
380
|
children: [
|
|
@@ -394,7 +394,7 @@ async function BlogPost({
|
|
|
394
394
|
"p",
|
|
395
395
|
{
|
|
396
396
|
className: styles.faqAnswer,
|
|
397
|
-
style: inlineStyle({ marginTop: 12, color: "
|
|
397
|
+
style: inlineStyle({ marginTop: 12, color: "var(--sk-text-secondary)" }, "faqAnswer"),
|
|
398
398
|
children: faq.answer
|
|
399
399
|
}
|
|
400
400
|
)
|
|
@@ -434,7 +434,7 @@ async function BlogPost({
|
|
|
434
434
|
{
|
|
435
435
|
className: styles.relatedCard,
|
|
436
436
|
style: inlineStyle({
|
|
437
|
-
backgroundColor: "
|
|
437
|
+
backgroundColor: "var(--sk-bg)",
|
|
438
438
|
borderRadius: 12,
|
|
439
439
|
overflow: "hidden",
|
|
440
440
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
@@ -457,7 +457,7 @@ async function BlogPost({
|
|
|
457
457
|
children: relatedPost.title
|
|
458
458
|
}
|
|
459
459
|
) }),
|
|
460
|
-
relatedPost.excerpt && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: inlineStyle({ fontSize: 14, color: "
|
|
460
|
+
relatedPost.excerpt && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: inlineStyle({ fontSize: 14, color: "var(--sk-text-secondary)", margin: 0 }, "relatedCard"), children: [
|
|
461
461
|
relatedPost.excerpt.slice(0, 100),
|
|
462
462
|
"..."
|
|
463
463
|
] })
|
|
@@ -505,7 +505,7 @@ function AuthorSection({
|
|
|
505
505
|
style: unstyled || className ? void 0 : {
|
|
506
506
|
marginTop: 48,
|
|
507
507
|
padding: 24,
|
|
508
|
-
backgroundColor: "
|
|
508
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
509
509
|
borderRadius: 12,
|
|
510
510
|
display: "flex",
|
|
511
511
|
gap: 20,
|
|
@@ -527,8 +527,8 @@ function AuthorSection({
|
|
|
527
527
|
),
|
|
528
528
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
529
529
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: unstyled || className ? void 0 : { margin: "0 0 4px", fontSize: 18, fontWeight: 600 }, children: author.name }),
|
|
530
|
-
"title" in author && author.title && /* @__PURE__ */ jsxRuntime.jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 4px", fontSize: 14, color: "
|
|
531
|
-
author.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 12px", color: "
|
|
530
|
+
"title" in author && author.title && /* @__PURE__ */ jsxRuntime.jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 4px", fontSize: 14, color: "var(--sk-text-secondary)" }, children: author.title }),
|
|
531
|
+
author.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { style: unstyled || className ? void 0 : { margin: "0 0 12px", color: "var(--sk-text-secondary)", fontSize: 14 }, children: author.bio }),
|
|
532
532
|
author.social_links && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: unstyled || className ? void 0 : { display: "flex", gap: 16 }, children: [
|
|
533
533
|
author.social_links.twitter && /* @__PURE__ */ jsxRuntime.jsx(
|
|
534
534
|
"a",
|
|
@@ -536,7 +536,7 @@ function AuthorSection({
|
|
|
536
536
|
href: `https://twitter.com/${author.social_links.twitter}`,
|
|
537
537
|
target: "_blank",
|
|
538
538
|
rel: "noopener noreferrer",
|
|
539
|
-
style: unstyled || className ? void 0 : { color: "
|
|
539
|
+
style: unstyled || className ? void 0 : { color: "var(--sk-primary)", fontSize: 14 },
|
|
540
540
|
children: "Twitter"
|
|
541
541
|
}
|
|
542
542
|
),
|
|
@@ -546,7 +546,7 @@ function AuthorSection({
|
|
|
546
546
|
href: author.social_links.linkedin,
|
|
547
547
|
target: "_blank",
|
|
548
548
|
rel: "noopener noreferrer",
|
|
549
|
-
style: unstyled || className ? void 0 : { color: "
|
|
549
|
+
style: unstyled || className ? void 0 : { color: "var(--sk-primary)", fontSize: 14 },
|
|
550
550
|
children: "LinkedIn"
|
|
551
551
|
}
|
|
552
552
|
)
|
|
@@ -557,7 +557,7 @@ function AuthorSection({
|
|
|
557
557
|
href: url,
|
|
558
558
|
target: "_blank",
|
|
559
559
|
rel: "noopener noreferrer",
|
|
560
|
-
style: { color: "
|
|
560
|
+
style: { color: "var(--sk-primary)", fontSize: 14 },
|
|
561
561
|
children: "Profile"
|
|
562
562
|
},
|
|
563
563
|
i
|
|
@@ -656,8 +656,8 @@ async function fetchCategories(apiUrl, apiKey) {
|
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
658
|
async function BlogList({
|
|
659
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
660
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
659
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
660
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
661
661
|
category,
|
|
662
662
|
tag,
|
|
663
663
|
author,
|
|
@@ -707,7 +707,7 @@ async function BlogList({
|
|
|
707
707
|
{
|
|
708
708
|
className: `${styles.container || ""} ${styles.emptyState || ""} ${className || ""}`.trim() || void 0,
|
|
709
709
|
style: inlineStyle({ textAlign: "center", padding: 40 }, "emptyState"),
|
|
710
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: inlineStyle({ color: "
|
|
710
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: inlineStyle({ color: "var(--sk-text-secondary)" }, "emptyState"), children: "No posts found." })
|
|
711
711
|
}
|
|
712
712
|
);
|
|
713
713
|
}
|
|
@@ -728,8 +728,8 @@ async function BlogList({
|
|
|
728
728
|
borderRadius: 9999,
|
|
729
729
|
fontSize: 14,
|
|
730
730
|
textDecoration: "none",
|
|
731
|
-
backgroundColor: !category ? "
|
|
732
|
-
color: !category ? "
|
|
731
|
+
backgroundColor: !category ? "var(--sk-primary)" : "var(--sk-bg-elevated)",
|
|
732
|
+
color: !category ? "var(--sk-bg)" : "var(--sk-text-primary)"
|
|
733
733
|
}, "categoryLink"),
|
|
734
734
|
children: "All"
|
|
735
735
|
}
|
|
@@ -744,8 +744,8 @@ async function BlogList({
|
|
|
744
744
|
borderRadius: 9999,
|
|
745
745
|
fontSize: 14,
|
|
746
746
|
textDecoration: "none",
|
|
747
|
-
backgroundColor: category === cat.slug ? "
|
|
748
|
-
color: category === cat.slug ? "
|
|
747
|
+
backgroundColor: category === cat.slug ? "var(--sk-primary)" : "var(--sk-bg-elevated)",
|
|
748
|
+
color: category === cat.slug ? "var(--sk-bg)" : "var(--sk-text-primary)"
|
|
749
749
|
}, "categoryLink"),
|
|
750
750
|
children: [
|
|
751
751
|
cat.name,
|
|
@@ -797,7 +797,7 @@ async function BlogList({
|
|
|
797
797
|
"span",
|
|
798
798
|
{
|
|
799
799
|
className: styles.paginationInfo,
|
|
800
|
-
style: inlineStyle({ padding: "8px 16px", color: "
|
|
800
|
+
style: inlineStyle({ padding: "8px 16px", color: "var(--sk-text-secondary)" }, "paginationInfo"),
|
|
801
801
|
children: [
|
|
802
802
|
"Page ",
|
|
803
803
|
pagination.page,
|
|
@@ -832,7 +832,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
832
832
|
{
|
|
833
833
|
className: styles.card,
|
|
834
834
|
style: inlineStyle({
|
|
835
|
-
backgroundColor: "
|
|
835
|
+
backgroundColor: "var(--sk-bg)",
|
|
836
836
|
borderRadius: 12,
|
|
837
837
|
overflow: "hidden",
|
|
838
838
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)",
|
|
@@ -873,8 +873,8 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
873
873
|
borderRadius: 4,
|
|
874
874
|
fontSize: 12,
|
|
875
875
|
fontWeight: 500,
|
|
876
|
-
backgroundColor: "
|
|
877
|
-
color: "
|
|
876
|
+
backgroundColor: "rgba(var(--sk-primary-rgb), 0.1)",
|
|
877
|
+
color: "var(--sk-primary)",
|
|
878
878
|
textTransform: "uppercase"
|
|
879
879
|
}, "cardCategory"),
|
|
880
880
|
children: typeof post.category === "string" ? post.category : post.category?.name || "Uncategorized"
|
|
@@ -884,7 +884,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
884
884
|
"span",
|
|
885
885
|
{
|
|
886
886
|
className: styles.cardDate,
|
|
887
|
-
style: inlineStyle({ fontSize: 13, color: "
|
|
887
|
+
style: inlineStyle({ fontSize: 13, color: "var(--sk-text-secondary)" }, "cardDate"),
|
|
888
888
|
children: date
|
|
889
889
|
}
|
|
890
890
|
)
|
|
@@ -914,7 +914,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
914
914
|
style: inlineStyle({
|
|
915
915
|
margin: "0 0 16px",
|
|
916
916
|
fontSize: 14,
|
|
917
|
-
color: "
|
|
917
|
+
color: "var(--sk-text-secondary)",
|
|
918
918
|
lineHeight: 1.6,
|
|
919
919
|
display: "-webkit-box",
|
|
920
920
|
WebkitLineClamp: 3,
|
|
@@ -934,7 +934,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
934
934
|
"span",
|
|
935
935
|
{
|
|
936
936
|
className: styles.cardAuthor,
|
|
937
|
-
style: inlineStyle({ fontSize: 13, color: "
|
|
937
|
+
style: inlineStyle({ fontSize: 13, color: "var(--sk-text-secondary)" }, "cardAuthor"),
|
|
938
938
|
children: [
|
|
939
939
|
"By ",
|
|
940
940
|
typeof post.author === "string" ? post.author : post.author.name
|
|
@@ -945,7 +945,7 @@ function BlogPostCard({ post, basePath, styles = {}, unstyled = false }) {
|
|
|
945
945
|
"span",
|
|
946
946
|
{
|
|
947
947
|
className: styles.cardReadingTime,
|
|
948
|
-
style: inlineStyle({ fontSize: 13, color: "
|
|
948
|
+
style: inlineStyle({ fontSize: 13, color: "var(--sk-text-tertiary)" }, "cardReadingTime"),
|
|
949
949
|
children: [
|
|
950
950
|
post.reading_time_minutes,
|
|
951
951
|
" min read"
|
|
@@ -971,8 +971,8 @@ function buildPaginationUrl(basePath, page, category) {
|
|
|
971
971
|
var paginationLinkStyle = {
|
|
972
972
|
padding: "8px 16px",
|
|
973
973
|
borderRadius: 8,
|
|
974
|
-
backgroundColor: "
|
|
975
|
-
color: "
|
|
974
|
+
backgroundColor: "var(--sk-primary)",
|
|
975
|
+
color: "var(--sk-bg)",
|
|
976
976
|
textDecoration: "none",
|
|
977
977
|
fontSize: 14,
|
|
978
978
|
fontWeight: 500
|
|
@@ -1020,8 +1020,8 @@ async function fetchTags(apiUrl, apiKey) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
async function BlogSidebar({
|
|
1023
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
1024
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
1023
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
1024
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
1025
1025
|
showCategories = true,
|
|
1026
1026
|
showRecentPosts = true,
|
|
1027
1027
|
recentPostsCount = 5,
|
|
@@ -1068,7 +1068,7 @@ function SearchWidget({ basePath }) {
|
|
|
1068
1068
|
style: {
|
|
1069
1069
|
width: "100%",
|
|
1070
1070
|
padding: "10px 12px",
|
|
1071
|
-
border: "1px solid
|
|
1071
|
+
border: "1px solid var(--sk-border)",
|
|
1072
1072
|
borderRadius: 8,
|
|
1073
1073
|
fontSize: 14
|
|
1074
1074
|
}
|
|
@@ -1091,7 +1091,7 @@ function CategoriesWidget({
|
|
|
1091
1091
|
style: {
|
|
1092
1092
|
...categoryLinkStyle,
|
|
1093
1093
|
fontWeight: !currentCategory ? 600 : 400,
|
|
1094
|
-
color: !currentCategory ? "
|
|
1094
|
+
color: !currentCategory ? "var(--sk-primary)" : "var(--sk-text-primary)"
|
|
1095
1095
|
},
|
|
1096
1096
|
children: "All Posts"
|
|
1097
1097
|
}
|
|
@@ -1103,11 +1103,11 @@ function CategoriesWidget({
|
|
|
1103
1103
|
style: {
|
|
1104
1104
|
...categoryLinkStyle,
|
|
1105
1105
|
fontWeight: currentCategory === cat.slug ? 600 : 400,
|
|
1106
|
-
color: currentCategory === cat.slug ? "
|
|
1106
|
+
color: currentCategory === cat.slug ? "var(--sk-primary)" : "var(--sk-text-primary)"
|
|
1107
1107
|
},
|
|
1108
1108
|
children: [
|
|
1109
1109
|
cat.name,
|
|
1110
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { color: "
|
|
1110
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { color: "var(--sk-text-tertiary)", marginLeft: 8 }, children: [
|
|
1111
1111
|
"(",
|
|
1112
1112
|
cat.post_count,
|
|
1113
1113
|
")"
|
|
@@ -1135,7 +1135,7 @@ function RecentPostsWidget({
|
|
|
1135
1135
|
style: {
|
|
1136
1136
|
marginBottom: 16,
|
|
1137
1137
|
paddingBottom: 16,
|
|
1138
|
-
borderBottom: "1px solid
|
|
1138
|
+
borderBottom: "1px solid var(--sk-border)"
|
|
1139
1139
|
},
|
|
1140
1140
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: 12 }, children: [
|
|
1141
1141
|
post.featured_image && /* @__PURE__ */ jsxRuntime.jsx("a", { href: `${basePath}/${post.slug}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1160,7 +1160,7 @@ function RecentPostsWidget({
|
|
|
1160
1160
|
style: {
|
|
1161
1161
|
fontSize: 14,
|
|
1162
1162
|
fontWeight: 500,
|
|
1163
|
-
color: "
|
|
1163
|
+
color: "var(--sk-text-primary)",
|
|
1164
1164
|
textDecoration: "none",
|
|
1165
1165
|
display: "-webkit-box",
|
|
1166
1166
|
WebkitLineClamp: 2,
|
|
@@ -1170,7 +1170,7 @@ function RecentPostsWidget({
|
|
|
1170
1170
|
children: post.title
|
|
1171
1171
|
}
|
|
1172
1172
|
),
|
|
1173
|
-
date && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: 12, color: "
|
|
1173
|
+
date && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: 12, color: "var(--sk-text-tertiary)", display: "block", marginTop: 4 }, children: date })
|
|
1174
1174
|
] })
|
|
1175
1175
|
] })
|
|
1176
1176
|
},
|
|
@@ -1191,10 +1191,10 @@ function TagsWidget({
|
|
|
1191
1191
|
href: `${basePath}?tag=${tag.slug}`,
|
|
1192
1192
|
style: {
|
|
1193
1193
|
padding: "4px 10px",
|
|
1194
|
-
backgroundColor: "
|
|
1194
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
1195
1195
|
borderRadius: 9999,
|
|
1196
1196
|
fontSize: 12,
|
|
1197
|
-
color: "
|
|
1197
|
+
color: "var(--sk-text-primary)",
|
|
1198
1198
|
textDecoration: "none",
|
|
1199
1199
|
transition: "background-color 0.2s"
|
|
1200
1200
|
},
|
|
@@ -1209,9 +1209,9 @@ function NewsletterWidget({
|
|
|
1209
1209
|
description = "Get the latest posts delivered straight to your inbox.",
|
|
1210
1210
|
buttonText = "Subscribe"
|
|
1211
1211
|
}) {
|
|
1212
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { ...widgetStyle, backgroundColor: "
|
|
1213
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { style: { ...widgetTitleStyle, color: "
|
|
1214
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: 14, color: "
|
|
1212
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { ...widgetStyle, backgroundColor: "rgba(var(--sk-primary-rgb), 0.1)" }, children: [
|
|
1213
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { style: { ...widgetTitleStyle, color: "var(--sk-primary)" }, children: title }),
|
|
1214
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: 14, color: "var(--sk-text-secondary)", marginBottom: 16 }, children: description }),
|
|
1215
1215
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1216
1216
|
"form",
|
|
1217
1217
|
{
|
|
@@ -1230,7 +1230,7 @@ function NewsletterWidget({
|
|
|
1230
1230
|
style: {
|
|
1231
1231
|
flex: 1,
|
|
1232
1232
|
padding: "10px 12px",
|
|
1233
|
-
border: "1px solid
|
|
1233
|
+
border: "1px solid var(--sk-border)",
|
|
1234
1234
|
borderRadius: 8,
|
|
1235
1235
|
fontSize: 14
|
|
1236
1236
|
}
|
|
@@ -1242,8 +1242,8 @@ function NewsletterWidget({
|
|
|
1242
1242
|
type: "submit",
|
|
1243
1243
|
style: {
|
|
1244
1244
|
padding: "10px 16px",
|
|
1245
|
-
backgroundColor: "
|
|
1246
|
-
color: "
|
|
1245
|
+
backgroundColor: "var(--sk-primary)",
|
|
1246
|
+
color: "var(--sk-bg)",
|
|
1247
1247
|
border: "none",
|
|
1248
1248
|
borderRadius: 8,
|
|
1249
1249
|
fontSize: 14,
|
|
@@ -1260,14 +1260,14 @@ function NewsletterWidget({
|
|
|
1260
1260
|
}
|
|
1261
1261
|
var widgetStyle = {
|
|
1262
1262
|
padding: 20,
|
|
1263
|
-
backgroundColor: "
|
|
1263
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
1264
1264
|
borderRadius: 12
|
|
1265
1265
|
};
|
|
1266
1266
|
var widgetTitleStyle = {
|
|
1267
1267
|
margin: "0 0 16px",
|
|
1268
1268
|
fontSize: 16,
|
|
1269
1269
|
fontWeight: 600,
|
|
1270
|
-
color: "
|
|
1270
|
+
color: "var(--sk-text-primary)"
|
|
1271
1271
|
};
|
|
1272
1272
|
var categoryLinkStyle = {
|
|
1273
1273
|
display: "flex",
|
|
@@ -1276,8 +1276,8 @@ var categoryLinkStyle = {
|
|
|
1276
1276
|
textDecoration: "none"
|
|
1277
1277
|
};
|
|
1278
1278
|
async function BlogLayout({
|
|
1279
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
1280
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
1279
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
1280
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
1281
1281
|
layout = "sidebar-right",
|
|
1282
1282
|
showSidebar = true,
|
|
1283
1283
|
sidebarProps = {},
|
|
@@ -1295,11 +1295,11 @@ async function BlogLayout({
|
|
|
1295
1295
|
{
|
|
1296
1296
|
style: {
|
|
1297
1297
|
padding: "60px 20px",
|
|
1298
|
-
backgroundColor: hero.backgroundColor || "
|
|
1298
|
+
backgroundColor: hero.backgroundColor || "var(--sk-primary)",
|
|
1299
1299
|
backgroundImage: hero.backgroundImage ? `url(${hero.backgroundImage})` : void 0,
|
|
1300
1300
|
backgroundSize: "cover",
|
|
1301
1301
|
backgroundPosition: "center",
|
|
1302
|
-
color: "
|
|
1302
|
+
color: "var(--sk-bg)",
|
|
1303
1303
|
textAlign: "center"
|
|
1304
1304
|
},
|
|
1305
1305
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { maxWidth, margin: "0 auto" }, children: [
|
|
@@ -1390,7 +1390,7 @@ async function CategoryPage({
|
|
|
1390
1390
|
const categoryHero = hero || {
|
|
1391
1391
|
title: categoryName || category,
|
|
1392
1392
|
subtitle: `Browse all posts in ${categoryName || category}`,
|
|
1393
|
-
backgroundColor: "
|
|
1393
|
+
backgroundColor: "var(--sk-primary)"
|
|
1394
1394
|
};
|
|
1395
1395
|
return /* @__PURE__ */ jsxRuntime.jsx(BlogLayout, { ...layoutProps, hero: categoryHero, currentCategory: category, children: listComponent });
|
|
1396
1396
|
}
|
|
@@ -1411,7 +1411,7 @@ function AuthorCard({ author, showBio = true, showSocial = true, className }) {
|
|
|
1411
1411
|
),
|
|
1412
1412
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1413
1413
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { style: { margin: 0 }, children: author.name }),
|
|
1414
|
-
showBio && author.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "4px 0", color: "
|
|
1414
|
+
showBio && author.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "4px 0", color: "var(--sk-text-secondary)", fontSize: 14 }, children: author.bio }),
|
|
1415
1415
|
showSocial && author.social_links && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: 12, marginTop: 8 }, children: [
|
|
1416
1416
|
author.social_links.twitter && /* @__PURE__ */ jsxRuntime.jsx("a", { href: `https://twitter.com/${author.social_links.twitter}`, target: "_blank", rel: "noopener noreferrer", children: "Twitter" }),
|
|
1417
1417
|
author.social_links.linkedin && /* @__PURE__ */ jsxRuntime.jsx("a", { href: author.social_links.linkedin, target: "_blank", rel: "noopener noreferrer", children: "LinkedIn" }),
|
|
@@ -1445,8 +1445,8 @@ async function fetchRelatedPosts2(apiUrl, apiKey, currentPostId, limit) {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
async function RelatedPosts({
|
|
1448
|
-
apiUrl = process.env.SONOR_API_URL ||
|
|
1449
|
-
apiKey = process.env.SONOR_API_KEY ||
|
|
1448
|
+
apiUrl = process.env.SONOR_API_URL || "https://api.sonor.io",
|
|
1449
|
+
apiKey = process.env.SONOR_API_KEY || "",
|
|
1450
1450
|
currentPostId,
|
|
1451
1451
|
limit = 3,
|
|
1452
1452
|
className,
|
|
@@ -1461,7 +1461,7 @@ async function RelatedPosts({
|
|
|
1461
1461
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className, children: [
|
|
1462
1462
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { marginBottom: 16 }, children: "Related Posts" }),
|
|
1463
1463
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "grid", gap: 16 }, children: posts.map(
|
|
1464
|
-
(post) => renderItem ? renderItem(post) : /* @__PURE__ */ jsxRuntime.jsxs("article", { style: { borderBottom: "1px solid
|
|
1464
|
+
(post) => renderItem ? renderItem(post) : /* @__PURE__ */ jsxRuntime.jsxs("article", { style: { borderBottom: "1px solid var(--sk-border)", paddingBottom: 16 }, children: [
|
|
1465
1465
|
post.featured_image && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1466
1466
|
"img",
|
|
1467
1467
|
{
|
|
@@ -1477,7 +1477,7 @@ async function RelatedPosts({
|
|
|
1477
1477
|
}
|
|
1478
1478
|
),
|
|
1479
1479
|
/* @__PURE__ */ jsxRuntime.jsx("a", { href: `/blog/${post.slug}`, style: { textDecoration: "none" }, children: /* @__PURE__ */ jsxRuntime.jsx("h4", { style: { margin: 0, color: "inherit" }, children: post.title }) }),
|
|
1480
|
-
post.excerpt && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "4px 0 0", fontSize: 14, color: "
|
|
1480
|
+
post.excerpt && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "4px 0 0", fontSize: 14, color: "var(--sk-text-secondary)" }, children: post.excerpt })
|
|
1481
1481
|
] }, post.id)
|
|
1482
1482
|
) })
|
|
1483
1483
|
] });
|
|
@@ -1550,7 +1550,7 @@ function TableOfContents({
|
|
|
1550
1550
|
all: "unset",
|
|
1551
1551
|
cursor: "pointer",
|
|
1552
1552
|
fontSize: 14,
|
|
1553
|
-
color: activeId === item.id ? "
|
|
1553
|
+
color: activeId === item.id ? "var(--sk-primary-hover)" : "var(--sk-text-secondary)",
|
|
1554
1554
|
fontWeight: activeId === item.id ? 500 : 400,
|
|
1555
1555
|
transition: "color 0.2s"
|
|
1556
1556
|
},
|