@leadertechie/personal-site-kit 0.1.0-alpha.20 → 0.1.0-alpha.21

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.
@@ -2049,10 +2049,18 @@ const bannerStyles = css`
2049
2049
  margin-right: auto;
2050
2050
  }
2051
2051
 
2052
+ .logo-link {
2053
+ display: inline-flex;
2054
+ align-items: center;
2055
+ text-decoration: none;
2056
+ cursor: pointer;
2057
+ }
2058
+
2052
2059
  .logo {
2053
2060
  height: 50px;
2054
2061
  margin-right: 1rem;
2055
2062
  width: auto;
2063
+ cursor: pointer;
2056
2064
  }
2057
2065
 
2058
2066
  /* Logo dark mode - invert colors for better contrast */
@@ -2155,7 +2163,11 @@ const _MyBanner = class _MyBanner extends (_a$3 = LitElement) {
2155
2163
  return html`
2156
2164
  <header class="banner banner-component">
2157
2165
  <div class="header-content">
2158
- ${this.logo ? html`<img src="${this.logo}" alt="Logo" class="logo" />` : ""}
2166
+ ${this.logo ? html`
2167
+ <a href="/" data-route="home" class="logo-link">
2168
+ <img src="${this.logo}" alt="Logo" class="logo" />
2169
+ </a>
2170
+ ` : ""}
2159
2171
  <h1>${this.header}</h1>
2160
2172
  </div>
2161
2173
  <div class="nav-and-theme">
@@ -208,7 +208,10 @@ class Router {
208
208
  }
209
209
  setupEventListeners() {
210
210
  document.body.addEventListener("click", (event) => {
211
- const target = event.target.closest("a[data-route]");
211
+ const path = event.composedPath();
212
+ const target = path.find(
213
+ (el) => el instanceof HTMLElement && (el.matches("a[data-route]") || el.closest("a[data-route]"))
214
+ );
212
215
  if (target) {
213
216
  event.preventDefault();
214
217
  const route = target.getAttribute("href");
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { A, B, M, R, W, c, a, g, b, d, h, e, r, s, v } from "./chunks/website-api-CFRUPu0X.js";
2
2
  import { WebsitePrerender } from "./prerender.js";
3
- import { A as A2, a as a2, b as b2, c as c2, d as d2, e as e2, f, g as g2, h as h2, i, B as B2, F, M as M2, j, S, k } from "./chunks/index-DrnbjP2Q.js";
3
+ import { A as A2, a as a2, b as b2, c as c2, d as d2, e as e2, f, g as g2, h as h2, i, B as B2, F, M as M2, j, S, k } from "./chunks/index-DsRjL9Uy.js";
4
4
  import { S as S2, g as g3, i as i2, r as r2 } from "./chunks/site-store-CGV9c2DI.js";
5
- import { R as R2, T, W as W2, b as b3, c as c3, g as g4, r as r3 } from "./chunks/template-DVy2k_na.js";
5
+ import { R as R2, T, W as W2, b as b3, c as c3, g as g4, r as r3 } from "./chunks/template-Lmx7Dxoc.js";
6
6
  export {
7
7
  A as AUTH_KV,
8
8
  A2 as AdminAboutMeSection,
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/shared/router.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAAa,MAAM;IAML,OAAO,CAAC,EAAE;IALtB,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,UAAU,CAA4B;gBAE1B,EAAE,EAAE,SAAS;IAejC,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,KAAK,SAAS,GAEpB;IAED,OAAO,KAAK,SAAS,GAEpB;IAED,OAAO,KAAK,WAAW,GAatB;IAEM,IAAI,CAAC,YAAY,GAAE,MAAc;IAWxC,OAAO,CAAC,mBAAmB;IAmCd,QAAQ,CAAC,IAAI,EAAE,MAAM;IA6BlC,OAAO,CAAC,WAAW;IAgCnB;;;OAGG;IACH,OAAO,CAAC,WAAW;YAIL,cAAc;IAmC5B,OAAO,CAAC,iBAAiB;YASX,qBAAqB;YAkBrB,uBAAuB;YAoBvB,eAAe;CAiB9B"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/shared/router.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAAa,MAAM;IAML,OAAO,CAAC,EAAE;IALtB,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,UAAU,CAA4B;gBAE1B,EAAE,EAAE,SAAS;IAejC,OAAO,KAAK,MAAM,GAEjB;IAED,OAAO,KAAK,SAAS,GAEpB;IAED,OAAO,KAAK,SAAS,GAEpB;IAED,OAAO,KAAK,WAAW,GAatB;IAEM,IAAI,CAAC,YAAY,GAAE,MAAc;IAWxC,OAAO,CAAC,mBAAmB;IAsCd,QAAQ,CAAC,IAAI,EAAE,MAAM;IA6BlC,OAAO,CAAC,WAAW;IAgCnB;;;OAGG;IACH,OAAO,CAAC,WAAW;YAIL,cAAc;IAmC5B,OAAO,CAAC,iBAAiB;YASX,qBAAqB;YAkBrB,uBAAuB;YAoBvB,eAAe;CAiB9B"}
package/dist/shared.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { S, g, i, r } from "./chunks/site-store-CGV9c2DI.js";
2
- import { R, T, W, b, c, g as g2, r as r2 } from "./chunks/template-DVy2k_na.js";
2
+ import { R, T, W, b, c, g as g2, r as r2 } from "./chunks/template-Lmx7Dxoc.js";
3
3
  export {
4
4
  R as Router,
5
5
  S as SiteStore,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,qBACa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,0BAAgB;IAE7B,MAAM,CAAC,UAAU;;;;;;;MAGf;IAEM,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;;IAQrB,MAAM;CAcP"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,qBACa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,0BAAgB;IAE7B,MAAM,CAAC,UAAU;;;;;;;MAGf;IAEM,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;;IAQrB,MAAM;CAkBP"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/ui/banner/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBA4FxB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/ui/banner/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,yBAoGxB,CAAC"}
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, a, b, c, d, e, f, g, h, i, B, F, M, j, S, k } from "./chunks/index-DrnbjP2Q.js";
1
+ import { A, a, b, c, d, e, f, g, h, i, B, F, M, j, S, k } from "./chunks/index-DsRjL9Uy.js";
2
2
  export {
3
3
  A as AdminAboutMeSection,
4
4
  a as AdminBlogsSection,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadertechie/personal-site-kit",
3
- "version": "0.1.0-alpha.20",
3
+ "version": "0.1.0-alpha.21",
4
4
  "type": "module",
5
5
  "description": "A high-performance personal website engine for Cloudflare Workers and R2",
6
6
  "repository": {