@sensorario/sg-components 0.0.33 → 0.0.37
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 +21 -2
- package/dist/sg-components.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
//#region src/
|
|
2
|
+
//#region src/components/Footer/Footer.tsx
|
|
3
3
|
var n = ({ copyright: n = "© 2026 My Company", href: r = "#", links: i = [] }) => /* @__PURE__ */ t("footer", {
|
|
4
4
|
className: "footer",
|
|
5
5
|
children: [/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e("a", {
|
|
@@ -31,6 +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, title: n = "Simone Gentili - senior web developer, tech author and chess enthusiast", homePageKey: r = "home" }) => /* @__PURE__ */ e("header", {
|
|
35
|
+
className: "header",
|
|
36
|
+
children: /* @__PURE__ */ e("div", {
|
|
37
|
+
className: "header-container",
|
|
38
|
+
children: /* @__PURE__ */ e("div", {
|
|
39
|
+
className: "logo",
|
|
40
|
+
onClick: () => {
|
|
41
|
+
t?.(r);
|
|
42
|
+
},
|
|
43
|
+
children: /* @__PURE__ */ e("h1", {
|
|
44
|
+
className: "logo-text",
|
|
45
|
+
children: n
|
|
46
|
+
})
|
|
47
|
+
})
|
|
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"
|
|
34
53
|
});
|
|
35
54
|
//#endregion
|
|
36
|
-
export { n as Footer, i as SGFooter };
|
|
55
|
+
export { n as Footer, a as Header, i as SGFooter, o as SGHeader };
|
package/dist/sg-components.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.footer{
|
|
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}}
|
|
2
2
|
/*$vite$:1*/
|