@sensorario/sg-components 0.0.34 → 0.0.38

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/index.es.js CHANGED
@@ -31,21 +31,25 @@ var n = ({ copyright: n = "© 2026 My Company", href: r = "#", links: i = [] })
31
31
  href: "https://simonegentili.com",
32
32
  copyright: "© 2026 simonegentili.com",
33
33
  links: r
34
- }), a = ({ onNavigate: t }) => /* @__PURE__ */ e("header", {
34
+ }), a = ({ onNavigate: t, title: n = "Simone Gentili - senior web developer, tech author and chess enthusiast", homePageKey: r = "home" }) => /* @__PURE__ */ e("header", {
35
35
  className: "header",
36
36
  children: /* @__PURE__ */ e("div", {
37
37
  className: "header-container",
38
38
  children: /* @__PURE__ */ e("div", {
39
39
  className: "logo",
40
40
  onClick: () => {
41
- t?.("home");
41
+ t?.(r);
42
42
  },
43
43
  children: /* @__PURE__ */ e("h1", {
44
44
  className: "logo-text",
45
- children: "Simone Gentili - senior web developer, tech author and chess enthusiast"
45
+ children: n
46
46
  })
47
47
  })
48
48
  })
49
+ }), o = ({ onNavigate: t }) => /* @__PURE__ */ e(a, {
50
+ onNavigate: t,
51
+ title: "Simone Gentili - senior web developer, tech author and chess enthusiast",
52
+ homePageKey: "home"
49
53
  });
50
54
  //#endregion
51
- export { n as Footer, a as Header, i as SGFooter };
55
+ export { n as Footer, a as Header, i as SGFooter, o as SGHeader };
@@ -1,2 +1,2 @@
1
- .footer{background-color:var(--primary-bg);border-top:1px solid var(--primary-border);font-family:var(--font-family);color:#555;justify-content:space-between;align-items:center;width:100%;padding:16px 32px;font-size:14px;display:flex;position:fixed;bottom:0}.footer a{color:#1ea7fd;text-decoration:none}.footer a:hover{text-decoration:underline}:root{--unit:3px;--primary-bg:#f5f5f5;--primary-border:#ccc;--radius:calc(var(--unit) * 2);--primary-radius:var(--radius);--primary-font:var(--font-size);--primary-hover-bg:#e0e0e0;--modal-bg:#fff;--modal-overlay:#0000004d;--modal-title-color:#222;--input-bg:#fff;--input-border:#ccc;--input-radius:var(--radius);--input-font:1rem;--font-size:16px;--font-family:Arial, sans-serif;--font-size-h1:calc(var(--font-size) * 1.5)}.theme-dark{--primary-bg:#222;--primary-border:#444;--primary-font:1rem;--font-family:"Inter", Arial, sans-serif;--primary-hover-bg:#333;--modal-bg:#222;--modal-title-color:#fff;--input-bg:#333;--input-border:#555;--input-font:1rem}.logo-text{font-size:var(--font-size-h1);font-family:var(--font-family);margin:0;font-weight:400}.header{z-index:100;background-color:#fff;border-bottom:1px solid #e1e5e9;width:100%;position:sticky;top:0;box-shadow:0 2px 4px #0000001a}.header-container{justify-content:flex-start;align-items:center;max-width:1200px;margin:0 auto;padding:1rem;display:flex}.logo{cursor:pointer;color:#333;font-size:1.5rem;font-weight:700;transition:color .2s}.logo:hover{color:#007acc}.logo-full{display:inline}.logo-short{display:none}@media (width<=768px){.header-container{padding:.75rem 1rem}.logo{font-size:1.25rem}.logo-full{display:none}.logo-short{display:inline}}@media (width<=480px){.header-container{padding:.5rem .75rem}.logo{font-size:1.1rem}}
1
+ .footer{background-color:var(--primary-bg);border-top:1px solid var(--primary-border);font-family:var(--font-family);color:#555;justify-content:space-between;align-items:center;width:100%;padding:16px 32px;font-size:14px;display:flex;position:fixed;bottom:0}.footer a{color:#1ea7fd;text-decoration:none}.footer a:hover{text-decoration:underline}:root{--unit:3px;--primary-bg:#f5f5f5;--primary-border:#ccc;--radius:calc(var(--unit) * 2);--primary-radius:var(--radius);--primary-font:var(--font-size);--primary-hover-bg:#e0e0e0;--modal-bg:#fff;--modal-overlay:#0000004d;--modal-title-color:#222;--input-bg:#fff;--input-border:#ccc;--input-radius:var(--radius);--input-font:1rem;--font-size:16px;--font-family:Arial, sans-serif;--font-size-h1:calc(var(--font-size) * 1.5)}.theme-dark{--primary-bg:#222;--primary-border:#444;--primary-font:1rem;--font-family:"Inter", Arial, sans-serif;--primary-hover-bg:#333;--modal-bg:#222;--modal-title-color:#fff;--input-bg:#333;--input-border:#555;--input-font:1rem}.logo-text{font-size:var(--font-size-h1);font-family:var(--font-family);margin:0;font-weight:400}.header{z-index:100;background-color:#fff;border-bottom:1px solid #e1e5e9;width:100%;font-size:16px;position:sticky;top:0;box-shadow:0 2px 4px #0000001a}.header-container{justify-content:flex-start;align-items:center;max-width:1200px;margin:0 auto;padding:16px;display:flex}.logo{cursor:pointer;color:#333;font-size:24px;font-weight:700;transition:color .2s}.logo:hover{color:#007acc}.logo-full{display:inline}.logo-short{display:none}@media (width<=768px){.header-container{padding:12px 16px}.logo{font-size:20px}.logo-full{display:none}.logo-short{display:inline}}@media (width<=480px){.header-container{padding:8px 12px}.logo{font-size:18px}}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensorario/sg-components",
3
- "version": "0.0.34",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "scripts": {