@bobbykim/mcl-footer 0.6.4 → 0.8.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/index.d.ts +0 -2
- package/dist/mcl-footer.js +166 -169
- package/dist/mcl-footer.umd.cjs +50 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ export declare const MclFooterA: __VLS_WithTemplateSlots<DefineComponent<__VLS_W
|
|
|
39
39
|
title: string;
|
|
40
40
|
titleSize?: HeadingSize | undefined;
|
|
41
41
|
titleColor?: ColorPalette | undefined;
|
|
42
|
-
copyText?: string | undefined;
|
|
43
42
|
logo: string;
|
|
44
43
|
logoAlt?: string | undefined;
|
|
45
44
|
logoAsLink?: boolean | undefined;
|
|
@@ -82,7 +81,6 @@ headlineColor: string;
|
|
|
82
81
|
title: string;
|
|
83
82
|
titleSize?: HeadingSize | undefined;
|
|
84
83
|
titleColor?: ColorPalette | undefined;
|
|
85
|
-
copyText?: string | undefined;
|
|
86
84
|
logo: string;
|
|
87
85
|
logoAlt?: string | undefined;
|
|
88
86
|
logoAsLink?: boolean | undefined;
|
package/dist/mcl-footer.js
CHANGED
|
@@ -1,126 +1,119 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.nav__decorator[data-v-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
];
|
|
54
|
-
function oe(i, c) {
|
|
55
|
-
return l(), s("svg", W, te);
|
|
56
|
-
}
|
|
57
|
-
const le = /* @__PURE__ */ C(U, [["render", oe]]), se = { class: "flex flex-wrap" }, ne = ["href", "aria-label"], re = /* @__PURE__ */ T({
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.nav__decorator[data-v-21dde3ea]:before{content:"";position:absolute;bottom:0;left:0;height:100%;width:0;transition:width .3s linear}.nav__text:focus+.nav__decorator[data-v-21dde3ea]:before,.nav__text:hover+.nav__decorator[data-v-21dde3ea]:before{width:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { defineComponent as b, computed as y, openBlock as a, createElementBlock as r, Fragment as v, renderList as x, createElementVNode as o, normalizeClass as d, useSlots as _, unref as w, createVNode as T, createCommentVNode as C, renderSlot as I } from "vue";
|
|
3
|
+
import i from "@bobbykim/manguito-theme";
|
|
4
|
+
const A = `<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
viewBox="0 0 448 512"
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
class="h-md w-md"
|
|
9
|
+
role="img"
|
|
10
|
+
aria-label="github social icon"
|
|
11
|
+
>
|
|
12
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
13
|
+
<path
|
|
14
|
+
d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>`, M = `<svg
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
viewBox="0 0 448 512"
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
class="h-md w-md"
|
|
21
|
+
role="img"
|
|
22
|
+
aria-label="instagram social icon"
|
|
23
|
+
>
|
|
24
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
25
|
+
<path
|
|
26
|
+
d="M224,202.66A53.34,53.34,0,1,0,277.36,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.41-30.41c-21-8.29-71-6.43-94.3-6.43s-73.25-1.93-94.31,6.43a54,54,0,0,0-30.41,30.41c-8.28,21-6.43,71.05-6.43,94.33S91,329.26,99.32,350.33a54,54,0,0,0,30.41,30.41c21,8.29,71,6.43,94.31,6.43s73.24,1.93,94.3-6.43a54,54,0,0,0,30.41-30.41c8.35-21,6.43-71.05,6.43-94.33S357.1,182.74,348.75,161.67ZM224,338a82,82,0,1,1,82-82A81.9,81.9,0,0,1,224,338Zm85.38-148.3a19.14,19.14,0,1,1,19.13-19.14A19.1,19.1,0,0,1,309.42,189.74ZM400,32H48A48,48,0,0,0,0,80V432a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V80A48,48,0,0,0,400,32ZM382.88,322c-1.29,25.63-7.14,48.34-25.85,67s-41.4,24.63-67,25.85c-26.41,1.49-105.59,1.49-132,0-25.63-1.29-48.26-7.15-67-25.85s-24.63-41.42-25.85-67c-1.49-26.42-1.49-105.61,0-132,1.29-25.63,7.07-48.34,25.85-67s41.47-24.56,67-25.78c26.41-1.49,105.59-1.49,132,0,25.63,1.29,48.33,7.15,67,25.85s24.63,41.42,25.85,67.05C384.37,216.44,384.37,295.56,382.88,322Z"
|
|
27
|
+
/>
|
|
28
|
+
</svg>`, H = `<svg
|
|
29
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
30
|
+
viewBox="0 0 448 512"
|
|
31
|
+
fill="currentColor"
|
|
32
|
+
class="h-md w-md"
|
|
33
|
+
role="img"
|
|
34
|
+
aria-label="linkedin social icon"
|
|
35
|
+
>
|
|
36
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
37
|
+
<path
|
|
38
|
+
d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"
|
|
39
|
+
/>
|
|
40
|
+
</svg>`, z = `<svg
|
|
41
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
42
|
+
viewBox="0 0 448 512"
|
|
43
|
+
fill="currentColor"
|
|
44
|
+
class="h-md w-md"
|
|
45
|
+
role="img"
|
|
46
|
+
aria-label="x/twitter social icon"
|
|
47
|
+
>
|
|
48
|
+
<!-- !Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc. -->
|
|
49
|
+
<path
|
|
50
|
+
d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm297.1 84L257.3 234.6 379.4 396H283.8L209 298.1 123.3 396H75.8l111-126.9L69.7 116h98l67.7 89.5L313.6 116h47.5zM323.3 367.6L153.4 142.9H125.1L296.9 367.6h26.3z"
|
|
51
|
+
/>
|
|
52
|
+
</svg>`, B = { class: "flex flex-wrap" }, O = ["href", "aria-label"], V = ["innerHTML"], F = /* @__PURE__ */ b({
|
|
58
53
|
__name: "SocialIcons",
|
|
59
54
|
props: {
|
|
60
55
|
iconColor: { default: "light-1" },
|
|
61
56
|
socialLinks: {}
|
|
62
57
|
},
|
|
63
|
-
setup(
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
setup(u) {
|
|
59
|
+
const t = u, c = y(() => {
|
|
60
|
+
var f, m, h, k;
|
|
61
|
+
const s = [];
|
|
62
|
+
return (f = t.socialLinks) != null && f.linkedin && s.push({
|
|
63
|
+
url: t.socialLinks.linkedin,
|
|
64
|
+
icon: H,
|
|
69
65
|
label: "linkedin social icon"
|
|
70
|
-
}), m &&
|
|
71
|
-
url:
|
|
72
|
-
icon:
|
|
66
|
+
}), (m = t.socialLinks) != null && m.github && s.push({
|
|
67
|
+
url: t.socialLinks.github,
|
|
68
|
+
icon: A,
|
|
73
69
|
label: "github social icon"
|
|
74
|
-
}), h &&
|
|
75
|
-
url:
|
|
76
|
-
icon:
|
|
70
|
+
}), (h = t.socialLinks) != null && h.instagram && s.push({
|
|
71
|
+
url: t.socialLinks.instagram,
|
|
72
|
+
icon: M,
|
|
77
73
|
label: "instagram social icon"
|
|
78
|
-
}),
|
|
79
|
-
url:
|
|
80
|
-
icon:
|
|
81
|
-
label: "twitter social icon"
|
|
82
|
-
}),
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
}), (k = t.socialLinks) != null && k.twitter && s.push({
|
|
75
|
+
url: t.socialLinks.twitter,
|
|
76
|
+
icon: z,
|
|
77
|
+
label: "x/twitter social icon"
|
|
78
|
+
}), s;
|
|
79
|
+
}), g = (s) => [
|
|
80
|
+
i("TEXTCOLOR", s),
|
|
81
|
+
i("RINGCOLOR", s)
|
|
86
82
|
].join(" ");
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(l(!0), s(w, null, b(u.value, (m, g) => (l(), s("li", {
|
|
91
|
-
key: g,
|
|
83
|
+
return (s, f) => (a(), r("ul", B, [
|
|
84
|
+
(a(!0), r(v, null, x(c.value, (m, h) => (a(), r("li", {
|
|
85
|
+
key: h,
|
|
92
86
|
class: "mr-xs last:mr-0"
|
|
93
87
|
}, [
|
|
94
88
|
o("a", {
|
|
95
89
|
href: m.url,
|
|
96
90
|
target: "_blank",
|
|
97
|
-
class: d(["inline-block outline-none focus:ring-2 hover:ring-2 hover:opacity-70 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear",
|
|
98
|
-
"aria-label": m.label
|
|
91
|
+
class: d(["inline-block outline-none focus:ring-2 hover:ring-2 hover:opacity-70 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear", g(s.iconColor)]),
|
|
92
|
+
"aria-label": m.label,
|
|
93
|
+
role: "button"
|
|
99
94
|
}, [
|
|
100
|
-
(
|
|
101
|
-
|
|
95
|
+
o("div", {
|
|
96
|
+
innerHTML: m.icon
|
|
97
|
+
}, null, 8, V)
|
|
98
|
+
], 10, O)
|
|
102
99
|
]))), 128))
|
|
103
100
|
]));
|
|
104
101
|
}
|
|
105
|
-
}),
|
|
102
|
+
}), R = { class: "container px-xs md:px-lg lg:px-xl" }, j = { class: "h-lg md:h-xl align-middle mb-xs" }, S = ["href", "target"], E = ["src", "alt"], $ = {
|
|
106
103
|
key: 0,
|
|
107
104
|
class: "mb-xs flex items-center justify-end md:justify-center"
|
|
108
|
-
},
|
|
109
|
-
key: 0,
|
|
110
|
-
class: "text-xs text-white align-middle mb-2"
|
|
111
|
-
}, _e = { class: "px-xs md:px-0" }, pe = { class: "text-sm flex flex-col md:flex-row items-center sm:items-start sm:flex-row text-center sm:text-left gap-xs justify-between md:justify-around grow md:basis-1/2" }, ke = { class: "flex flex-wrap md:flex-col justify-center items-center gap-2xs" }, Ce = ["href", "target", "onClick", "innerHTML"], ye = {
|
|
105
|
+
}, G = { class: "flex flex-wrap md:justify-between items-center md:items-start gap-6 md:gap-8" }, Z = { class: "grid gap-2 justify-items-center basis-full md:basis-1/3" }, D = ["innerHTML"], N = { class: "px-xs md:px-0" }, X = { class: "text-sm flex flex-col md:flex-row items-center sm:items-start sm:flex-row text-center sm:text-left gap-xs justify-between md:justify-around grow md:basis-1/2" }, P = { class: "flex flex-wrap md:flex-col justify-center items-center gap-2xs" }, Y = ["href", "target", "onClick", "innerHTML"], q = {
|
|
112
106
|
key: 0,
|
|
113
107
|
class: "flex flex-wrap md:flex-col justify-center items-center gap-2xs"
|
|
114
|
-
},
|
|
108
|
+
}, J = ["href", "target", "onClick", "innerHTML"], K = /* @__PURE__ */ b({
|
|
115
109
|
__name: "MclFooterA",
|
|
116
110
|
props: {
|
|
117
111
|
title: {},
|
|
118
112
|
titleSize: { default: "md" },
|
|
119
113
|
titleColor: { default: "light-1" },
|
|
120
|
-
copyText: {},
|
|
121
114
|
logo: {},
|
|
122
115
|
logoAlt: {},
|
|
123
|
-
logoAsLink: { type: Boolean, default: !
|
|
116
|
+
logoAsLink: { type: Boolean, default: !1 },
|
|
124
117
|
logoLink: {},
|
|
125
118
|
logoLinkTarget: { default: "_self" },
|
|
126
119
|
displaySocialIcons: { type: Boolean, default: !0 },
|
|
@@ -128,7 +121,7 @@ const le = /* @__PURE__ */ C(U, [["render", oe]]), se = { class: "flex flex-wrap
|
|
|
128
121
|
socialLinks: {},
|
|
129
122
|
menuItems: {},
|
|
130
123
|
secondaryMenuItems: {},
|
|
131
|
-
menuItemAsLink: { type: Boolean, default: !
|
|
124
|
+
menuItemAsLink: { type: Boolean, default: !1 },
|
|
132
125
|
menuTextSize: { default: "md" },
|
|
133
126
|
menuTextColor: { default: "light-1" },
|
|
134
127
|
menuTextBold: { type: Boolean, default: !1 },
|
|
@@ -139,116 +132,120 @@ const le = /* @__PURE__ */ C(U, [["render", oe]]), se = { class: "flex flex-wrap
|
|
|
139
132
|
headlineColor: { default: "light-1" }
|
|
140
133
|
},
|
|
141
134
|
emits: ["logo-click", "menu-click"],
|
|
142
|
-
setup(
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}, m = (
|
|
158
|
-
const {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
135
|
+
setup(u, { emit: t }) {
|
|
136
|
+
const c = u;
|
|
137
|
+
_();
|
|
138
|
+
const g = t, s = y(() => {
|
|
139
|
+
const { bgColor: e, borderTopColor: l } = c;
|
|
140
|
+
return [
|
|
141
|
+
i("BGCOLOR", e),
|
|
142
|
+
i("BORDER", l)
|
|
143
|
+
].join(" ");
|
|
144
|
+
}), f = y(() => {
|
|
145
|
+
const { titleSize: e, titleColor: l } = c;
|
|
146
|
+
return [
|
|
147
|
+
i("H2", e),
|
|
148
|
+
i("TEXTCOLOR", l)
|
|
149
|
+
].join(" ");
|
|
150
|
+
}), m = y(() => {
|
|
151
|
+
const { menuTextSize: e, menuTextColor: l, menuTextBold: n } = c;
|
|
152
|
+
return [
|
|
153
|
+
i("BODYTEXT", e),
|
|
154
|
+
i("TEXTCOLOR", l)
|
|
155
|
+
].join(" ");
|
|
156
|
+
}), h = (e) => {
|
|
157
|
+
const { logoAsLink: l, logoLink: n, logoLinkTarget: p } = c;
|
|
158
|
+
!l && e.preventDefault(), g("logo-click", e, n, p);
|
|
159
|
+
}, k = (e, l) => {
|
|
160
|
+
const { menuItemAsLink: n } = c;
|
|
161
|
+
!n && e.preventDefault(), g("menu-click", e, l);
|
|
163
162
|
};
|
|
164
|
-
return (e,
|
|
165
|
-
class: d(["border-t-2 py-6 sm:py-8 md:py-12",
|
|
163
|
+
return (e, l) => (a(), r("footer", {
|
|
164
|
+
class: d(["border-t-2 py-6 sm:py-8 md:py-12", s.value])
|
|
166
165
|
}, [
|
|
167
|
-
o("div",
|
|
166
|
+
o("div", R, [
|
|
168
167
|
o("div", {
|
|
169
|
-
class: d(["flex flex-col md:flex-row flex-wrap justify-between mb-xs md:mb-md px-xs md:px-md border-b-2",
|
|
168
|
+
class: d(["flex flex-col md:flex-row flex-wrap justify-between mb-xs md:mb-md px-xs md:px-md border-b-2", w(i)("BORDER", e.headlineColor)])
|
|
170
169
|
}, [
|
|
171
|
-
o("div",
|
|
170
|
+
o("div", j, [
|
|
172
171
|
o("a", {
|
|
173
172
|
href: e.logoLink,
|
|
174
173
|
target: e.logoLinkTarget,
|
|
175
|
-
class: d(["h-full inline-block outline-none focus:ring-2 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear",
|
|
176
|
-
onClick:
|
|
174
|
+
class: d(["h-full inline-block outline-none focus:ring-2 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear", w(i)("RINGCOLOR", e.titleColor)]),
|
|
175
|
+
onClick: l[0] || (l[0] = (n) => h(n))
|
|
177
176
|
}, [
|
|
178
177
|
o("img", {
|
|
179
178
|
class: "inline-block h-full",
|
|
180
179
|
src: e.logo,
|
|
181
180
|
alt: e.logoAlt
|
|
182
|
-
}, null, 8,
|
|
183
|
-
], 10,
|
|
181
|
+
}, null, 8, E)
|
|
182
|
+
], 10, S)
|
|
184
183
|
]),
|
|
185
|
-
e.displaySocialIcons ? (
|
|
186
|
-
|
|
184
|
+
e.displaySocialIcons ? (a(), r("div", $, [
|
|
185
|
+
T(F, {
|
|
187
186
|
"social-links": e.socialLinks,
|
|
188
187
|
"icon-color": e.socialIconColor
|
|
189
188
|
}, null, 8, ["social-links", "icon-color"])
|
|
190
|
-
])) :
|
|
189
|
+
])) : C("", !0)
|
|
191
190
|
], 2),
|
|
192
|
-
o("div",
|
|
193
|
-
o("div",
|
|
191
|
+
o("div", G, [
|
|
192
|
+
o("div", Z, [
|
|
194
193
|
o("h2", {
|
|
195
|
-
class: d(["inline-block align-middle tracking-wider",
|
|
194
|
+
class: d(["inline-block align-middle tracking-wider", f.value]),
|
|
196
195
|
innerHTML: e.title
|
|
197
|
-
}, null, 10,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
O(e.$slots, "default", {}, void 0, !0)
|
|
196
|
+
}, null, 10, D),
|
|
197
|
+
o("div", N, [
|
|
198
|
+
I(e.$slots, "default", {}, void 0, !0)
|
|
201
199
|
])
|
|
202
200
|
]),
|
|
203
|
-
o("nav",
|
|
204
|
-
o("ul",
|
|
205
|
-
(
|
|
206
|
-
key: `first-nav-${
|
|
201
|
+
o("nav", X, [
|
|
202
|
+
o("ul", P, [
|
|
203
|
+
(a(!0), r(v, null, x(e.menuItems, (n, p) => (a(), r("li", {
|
|
204
|
+
key: `first-nav-${p}`,
|
|
207
205
|
class: "inline-block"
|
|
208
206
|
}, [
|
|
209
207
|
o("a", {
|
|
210
|
-
href:
|
|
211
|
-
target:
|
|
212
|
-
class: d([
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
innerHTML: t.title
|
|
218
|
-
}, null, 10, Ce),
|
|
219
|
-
e.displayHighlight ? (l(), s("div", {
|
|
208
|
+
href: n.url,
|
|
209
|
+
target: n.target ? n.target : "_self",
|
|
210
|
+
class: d(["tracking-wide outline-none nav__text", m.value]),
|
|
211
|
+
onClick: (L) => k(L, n),
|
|
212
|
+
innerHTML: n.title
|
|
213
|
+
}, null, 10, Y),
|
|
214
|
+
e.displayHighlight ? (a(), r("div", {
|
|
220
215
|
key: 0,
|
|
221
|
-
class: d(["relative top-3xs h-3xs nav__decorator",
|
|
222
|
-
}, null, 2)) :
|
|
216
|
+
class: d(["relative top-3xs h-3xs nav__decorator", w(i)("BEFOREBG", e.highlightColor)])
|
|
217
|
+
}, null, 2)) : C("", !0)
|
|
223
218
|
]))), 128))
|
|
224
219
|
]),
|
|
225
|
-
e.secondaryMenuItems ? (
|
|
226
|
-
(
|
|
227
|
-
key: `second-nav-${
|
|
220
|
+
e.secondaryMenuItems ? (a(), r("ul", q, [
|
|
221
|
+
(a(!0), r(v, null, x(e.secondaryMenuItems, (n, p) => (a(), r("li", {
|
|
222
|
+
key: `second-nav-${p}`,
|
|
228
223
|
class: "inline-block"
|
|
229
224
|
}, [
|
|
230
225
|
o("a", {
|
|
231
|
-
href:
|
|
232
|
-
target:
|
|
233
|
-
class: d([
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
innerHTML: t.title
|
|
239
|
-
}, null, 10, xe),
|
|
240
|
-
e.displayHighlight ? (l(), s("div", {
|
|
226
|
+
href: n.url,
|
|
227
|
+
target: n.target ? n.target : "_self",
|
|
228
|
+
class: d(["tracking-wide outline-none nav__text", m.value]),
|
|
229
|
+
onClick: (L) => k(L, n),
|
|
230
|
+
innerHTML: n.title
|
|
231
|
+
}, null, 10, J),
|
|
232
|
+
e.displayHighlight ? (a(), r("div", {
|
|
241
233
|
key: 0,
|
|
242
|
-
class: d(["relative top-3xs h-3xs nav__decorator",
|
|
243
|
-
}, null, 2)) :
|
|
234
|
+
class: d(["relative top-3xs h-3xs nav__decorator", w(i)("BEFOREBG", e.highlightColor)])
|
|
235
|
+
}, null, 2)) : C("", !0)
|
|
244
236
|
]))), 128))
|
|
245
|
-
])) :
|
|
237
|
+
])) : C("", !0)
|
|
246
238
|
])
|
|
247
239
|
])
|
|
248
240
|
])
|
|
249
241
|
], 2));
|
|
250
242
|
}
|
|
251
|
-
}),
|
|
243
|
+
}), Q = (u, t) => {
|
|
244
|
+
const c = u.__vccOpts || u;
|
|
245
|
+
for (const [g, s] of t)
|
|
246
|
+
c[g] = s;
|
|
247
|
+
return c;
|
|
248
|
+
}, ee = /* @__PURE__ */ Q(K, [["__scopeId", "data-v-21dde3ea"]]);
|
|
252
249
|
export {
|
|
253
|
-
|
|
250
|
+
ee as MclFooterA
|
|
254
251
|
};
|
package/dist/mcl-footer.umd.cjs
CHANGED
|
@@ -1,2 +1,50 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.nav__decorator[data-v-
|
|
2
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@bobbykim/manguito-theme")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.MclFooter={},i.Vue,i.ManguitoTheme))})(this,function(i,e,l){"use strict";const g=(s,r)=>{const a=s.__vccOpts||s;for(const[p,k]of r)a[p]=k;return a},u={},B={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",class:"h-md w-md",role:"img"},y=[e.createElementVNode("path",{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"},null,-1)];function C(s,r){return e.openBlock(),e.createElementBlock("svg",B,y)}const w=g(u,[["render",C]]),x={},E={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",class:"h-md w-md",role:"img"},b=[e.createElementVNode("path",{d:"M224,202.66A53.34,53.34,0,1,0,277.36,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.41-30.41c-21-8.29-71-6.43-94.3-6.43s-73.25-1.93-94.31,6.43a54,54,0,0,0-30.41,30.41c-8.28,21-6.43,71.05-6.43,94.33S91,329.26,99.32,350.33a54,54,0,0,0,30.41,30.41c21,8.29,71,6.43,94.31,6.43s73.24,1.93,94.3-6.43a54,54,0,0,0,30.41-30.41c8.35-21,6.43-71.05,6.43-94.33S357.1,182.74,348.75,161.67ZM224,338a82,82,0,1,1,82-82A81.9,81.9,0,0,1,224,338Zm85.38-148.3a19.14,19.14,0,1,1,19.13-19.14A19.1,19.1,0,0,1,309.42,189.74ZM400,32H48A48,48,0,0,0,0,80V432a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V80A48,48,0,0,0,400,32ZM382.88,322c-1.29,25.63-7.14,48.34-25.85,67s-41.4,24.63-67,25.85c-26.41,1.49-105.59,1.49-132,0-25.63-1.29-48.26-7.15-67-25.85s-24.63-41.42-25.85-67c-1.49-26.42-1.49-105.61,0-132,1.29-25.63,7.07-48.34,25.85-67s41.47-24.56,67-25.78c26.41-1.49,105.59-1.49,132,0,25.63,1.29,48.33,7.15,67,25.85s24.63,41.42,25.85,67.05C384.37,216.44,384.37,295.56,382.88,322Z"},null,-1)];function T(s,r){return e.openBlock(),e.createElementBlock("svg",E,b)}const V=g(x,[["render",T]]),L={},z={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",class:"h-md w-md",role:"img"},$=[e.createElementVNode("path",{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},null,-1)];function M(s,r){return e.openBlock(),e.createElementBlock("svg",z,$)}const N=g(L,[["render",M]]),I={},A={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",class:"h-md w-md",role:"img"},O=[e.createElementVNode("path",{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"},null,-1)];function R(s,r){return e.openBlock(),e.createElementBlock("svg",A,O)}const H=g(I,[["render",R]]),S={class:"flex flex-wrap"},j=["href","aria-label"],F=e.defineComponent({__name:"SocialIcons",props:{iconColor:{default:"light-1"},socialLinks:{}},setup(s){const r=s,a=e.ref([]),p=()=>{const{linkedin:c,instagram:f,github:d,twitter:h}=r.socialLinks,o=[];c&&o.push({url:c,icon:e.markRaw(N),label:"linkedin social icon"}),d&&o.push({url:d,icon:e.markRaw(w),label:"github social icon"}),f&&o.push({url:f,icon:e.markRaw(V),label:"instagram social icon"}),h&&o.push({url:h,icon:e.markRaw(H),label:"twitter social icon"}),a.value=o},k=c=>[l("TEXTCOLOR",c),l("RINGCOLOR",c)].join(" ");return e.onMounted(()=>{p()}),(c,f)=>(e.openBlock(),e.createElementBlock("ul",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(d,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:"mr-xs last:mr-0"},[e.createElementVNode("a",{href:d.url,target:"_blank",class:e.normalizeClass(["inline-block outline-none focus:ring-2 hover:ring-2 hover:opacity-70 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear",k(c.iconColor)]),"aria-label":d.label},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))],10,j)]))),128))]))}}),D={class:"container px-xs md:px-lg lg:px-xl"},G={class:"h-lg md:h-xl align-middle mb-xs"},Z=["href","target"],X=["src","alt"],q={key:0,class:"mb-xs flex items-center justify-end md:justify-center"},Y={class:"flex flex-wrap md:justify-between items-center md:items-start gap-6 md:gap-8"},P={class:"grid gap-2 justify-items-center basis-full md:basis-1/3"},J=["innerHTML"],K={key:0,class:"text-xs text-white align-middle mb-2"},Q={class:"px-xs md:px-0"},U={class:"text-sm flex flex-col md:flex-row items-center sm:items-start sm:flex-row text-center sm:text-left gap-xs justify-between md:justify-around grow md:basis-1/2"},W={class:"flex flex-wrap md:flex-col justify-center items-center gap-2xs"},v=["href","target","onClick","innerHTML"],ee={key:0,class:"flex flex-wrap md:flex-col justify-center items-center gap-2xs"},oe=["href","target","onClick","innerHTML"],te=g(e.defineComponent({__name:"MclFooterA",props:{title:{},titleSize:{default:"md"},titleColor:{default:"light-1"},copyText:{},logo:{},logoAlt:{},logoAsLink:{type:Boolean,default:!0},logoLink:{},logoLinkTarget:{default:"_self"},displaySocialIcons:{type:Boolean,default:!0},socialIconColor:{default:"light-1"},socialLinks:{},menuItems:{},secondaryMenuItems:{},menuItemAsLink:{type:Boolean,default:!0},menuTextSize:{default:"md"},menuTextColor:{default:"light-1"},menuTextBold:{type:Boolean,default:!1},displayHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},bgColor:{default:"dark-3"},borderTopColor:{default:"primary"},headlineColor:{default:"light-1"}},emits:["logo-click","menu-click"],setup(s,{emit:r}){const a=s;e.useSlots();const p=r,k=(o,n)=>[l("BGCOLOR",o),l("BORDER",n)].join(" "),c=(o,n)=>[l("H2",o),l("TEXTCOLOR",n)].join(" "),f=(o,n,t)=>{const m=[l("BODYTEXT",o),l("TEXTCOLOR",n)];return t&&m.push("font-bold"),m.join(" ")},d=o=>{const{logoAsLink:n,logoLink:t,logoLinkTarget:m}=a;!n&&o.preventDefault(),p("logo-click",o,t,m)},h=(o,n)=>{const{menuItemAsLink:t}=a;!t&&o.preventDefault(),p("menu-click",o,n)};return(o,n)=>(e.openBlock(),e.createElementBlock("footer",{class:e.normalizeClass(["border-t-2 py-6 sm:py-8 md:py-12",k(o.bgColor,o.borderTopColor)])},[e.createElementVNode("div",D,[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col md:flex-row flex-wrap justify-between mb-xs md:mb-md px-xs md:px-md border-b-2",e.unref(l)("BORDER",o.headlineColor)])},[e.createElementVNode("div",G,[e.createElementVNode("a",{href:o.logoLink,target:o.logoLinkTarget,class:e.normalizeClass(["h-full inline-block outline-none focus:ring-2 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear",e.unref(l)("RINGCOLOR",o.titleColor)]),onClick:n[0]||(n[0]=t=>d(t))},[e.createElementVNode("img",{class:"inline-block h-full",src:o.logo,alt:o.logoAlt},null,8,X)],10,Z)]),o.displaySocialIcons?(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(F,{"social-links":o.socialLinks,"icon-color":o.socialIconColor},null,8,["social-links","icon-color"])])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Y,[e.createElementVNode("div",P,[e.createElementVNode("h2",{class:e.normalizeClass(["inline-block align-middle tracking-wider",c(o.titleSize,o.titleColor)]),innerHTML:o.title},null,10,J),o.copyText?(e.openBlock(),e.createElementBlock("small",K," © "+e.toDisplayString(o.copyText+" "+new Date().getFullYear()),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Q,[e.renderSlot(o.$slots,"default",{},void 0,!0)])]),e.createElementVNode("nav",U,[e.createElementVNode("ul",W,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuItems,(t,m)=>(e.openBlock(),e.createElementBlock("li",{key:`first-nav-${m}`,class:"inline-block"},[e.createElementVNode("a",{href:t.url,target:t.target?t.target:"_self",class:e.normalizeClass(["tracking-wide outline-none nav__text",f(o.menuTextSize,o.menuTextColor,o.menuTextBold)]),onClick:_=>h(_,t),innerHTML:t.title},null,10,v),o.displayHighlight?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["relative top-3xs h-3xs nav__decorator",e.unref(l)("BEFOREBG",o.highlightColor)])},null,2)):e.createCommentVNode("",!0)]))),128))]),o.secondaryMenuItems?(e.openBlock(),e.createElementBlock("ul",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.secondaryMenuItems,(t,m)=>(e.openBlock(),e.createElementBlock("li",{key:`second-nav-${m}`,class:"inline-block"},[e.createElementVNode("a",{href:t.url,target:t.target?t.target:"_self",class:e.normalizeClass(["tracking-wide outline-none nav__text",f(o.menuTextSize,o.menuTextColor,o.menuTextBold)]),onClick:_=>h(_,t),innerHTML:t.title},null,10,oe),o.displayHighlight?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["relative top-3xs h-3xs nav__decorator",e.unref(l)("BEFOREBG",o.highlightColor)])},null,2)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])])])],2))}}),[["__scopeId","data-v-962994fc"]]);i.MclFooterA=te,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.nav__decorator[data-v-21dde3ea]:before{content:"";position:absolute;bottom:0;left:0;height:100%;width:0;transition:width .3s linear}.nav__text:focus+.nav__decorator[data-v-21dde3ea]:before,.nav__text:hover+.nav__decorator[data-v-21dde3ea]:before{width:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@bobbykim/manguito-theme")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.MclFooter={},a.Vue,a.ManguitoTheme))})(this,function(a,e,l){"use strict";const u=`<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
viewBox="0 0 448 512"
|
|
5
|
+
fill="currentColor"
|
|
6
|
+
class="h-md w-md"
|
|
7
|
+
role="img"
|
|
8
|
+
aria-label="github social icon"
|
|
9
|
+
>
|
|
10
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
11
|
+
<path
|
|
12
|
+
d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"
|
|
13
|
+
/>
|
|
14
|
+
</svg>`,w=`<svg
|
|
15
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
+
viewBox="0 0 448 512"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
class="h-md w-md"
|
|
19
|
+
role="img"
|
|
20
|
+
aria-label="instagram social icon"
|
|
21
|
+
>
|
|
22
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
23
|
+
<path
|
|
24
|
+
d="M224,202.66A53.34,53.34,0,1,0,277.36,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.41-30.41c-21-8.29-71-6.43-94.3-6.43s-73.25-1.93-94.31,6.43a54,54,0,0,0-30.41,30.41c-8.28,21-6.43,71.05-6.43,94.33S91,329.26,99.32,350.33a54,54,0,0,0,30.41,30.41c21,8.29,71,6.43,94.31,6.43s73.24,1.93,94.3-6.43a54,54,0,0,0,30.41-30.41c8.35-21,6.43-71.05,6.43-94.33S357.1,182.74,348.75,161.67ZM224,338a82,82,0,1,1,82-82A81.9,81.9,0,0,1,224,338Zm85.38-148.3a19.14,19.14,0,1,1,19.13-19.14A19.1,19.1,0,0,1,309.42,189.74ZM400,32H48A48,48,0,0,0,0,80V432a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V80A48,48,0,0,0,400,32ZM382.88,322c-1.29,25.63-7.14,48.34-25.85,67s-41.4,24.63-67,25.85c-26.41,1.49-105.59,1.49-132,0-25.63-1.29-48.26-7.15-67-25.85s-24.63-41.42-25.85-67c-1.49-26.42-1.49-105.61,0-132,1.29-25.63,7.07-48.34,25.85-67s41.47-24.56,67-25.78c26.41-1.49,105.59-1.49,132,0,25.63,1.29,48.33,7.15,67,25.85s24.63,41.42,25.85,67.05C384.37,216.44,384.37,295.56,382.88,322Z"
|
|
25
|
+
/>
|
|
26
|
+
</svg>`,y=`<svg
|
|
27
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
+
viewBox="0 0 448 512"
|
|
29
|
+
fill="currentColor"
|
|
30
|
+
class="h-md w-md"
|
|
31
|
+
role="img"
|
|
32
|
+
aria-label="linkedin social icon"
|
|
33
|
+
>
|
|
34
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
35
|
+
<path
|
|
36
|
+
d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"
|
|
37
|
+
/>
|
|
38
|
+
</svg>`,C=`<svg
|
|
39
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
+
viewBox="0 0 448 512"
|
|
41
|
+
fill="currentColor"
|
|
42
|
+
class="h-md w-md"
|
|
43
|
+
role="img"
|
|
44
|
+
aria-label="x/twitter social icon"
|
|
45
|
+
>
|
|
46
|
+
<!-- !Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc. -->
|
|
47
|
+
<path
|
|
48
|
+
d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm297.1 84L257.3 234.6 379.4 396H283.8L209 298.1 123.3 396H75.8l111-126.9L69.7 116h98l67.7 89.5L313.6 116h47.5zM323.3 367.6L153.4 142.9H125.1L296.9 367.6h26.3z"
|
|
49
|
+
/>
|
|
50
|
+
</svg>`,L={class:"flex flex-wrap"},b=["href","aria-label"],x=["innerHTML"],_=e.defineComponent({__name:"SocialIcons",props:{iconColor:{default:"light-1"},socialLinks:{}},setup(m){const s=m,c=e.computed(()=>{var f,r,h,g;const t=[];return(f=s.socialLinks)!=null&&f.linkedin&&t.push({url:s.socialLinks.linkedin,icon:y,label:"linkedin social icon"}),(r=s.socialLinks)!=null&&r.github&&t.push({url:s.socialLinks.github,icon:u,label:"github social icon"}),(h=s.socialLinks)!=null&&h.instagram&&t.push({url:s.socialLinks.instagram,icon:w,label:"instagram social icon"}),(g=s.socialLinks)!=null&&g.twitter&&t.push({url:s.socialLinks.twitter,icon:C,label:"x/twitter social icon"}),t}),d=t=>[l("TEXTCOLOR",t),l("RINGCOLOR",t)].join(" ");return(t,f)=>(e.openBlock(),e.createElementBlock("ul",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(r,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:"mr-xs last:mr-0"},[e.createElementVNode("a",{href:r.url,target:"_blank",class:e.normalizeClass(["inline-block outline-none focus:ring-2 hover:ring-2 hover:opacity-70 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear",d(t.iconColor)]),"aria-label":r.label,role:"button"},[e.createElementVNode("div",{innerHTML:r.icon},null,8,x)],10,b)]))),128))]))}}),B={class:"container px-xs md:px-lg lg:px-xl"},E={class:"h-lg md:h-xl align-middle mb-xs"},V=["href","target"],T=["src","alt"],z={key:0,class:"mb-xs flex items-center justify-end md:justify-center"},M={class:"flex flex-wrap md:justify-between items-center md:items-start gap-6 md:gap-8"},I={class:"grid gap-2 justify-items-center basis-full md:basis-1/3"},A=["innerHTML"],H={class:"px-xs md:px-0"},N={class:"text-sm flex flex-col md:flex-row items-center sm:items-start sm:flex-row text-center sm:text-left gap-xs justify-between md:justify-around grow md:basis-1/2"},O={class:"flex flex-wrap md:flex-col justify-center items-center gap-2xs"},F=["href","target","onClick","innerHTML"],j={key:0,class:"flex flex-wrap md:flex-col justify-center items-center gap-2xs"},S=["href","target","onClick","innerHTML"],R=((m,s)=>{const c=m.__vccOpts||m;for(const[d,t]of s)c[d]=t;return c})(e.defineComponent({__name:"MclFooterA",props:{title:{},titleSize:{default:"md"},titleColor:{default:"light-1"},logo:{},logoAlt:{},logoAsLink:{type:Boolean,default:!1},logoLink:{},logoLinkTarget:{default:"_self"},displaySocialIcons:{type:Boolean,default:!0},socialIconColor:{default:"light-1"},socialLinks:{},menuItems:{},secondaryMenuItems:{},menuItemAsLink:{type:Boolean,default:!1},menuTextSize:{default:"md"},menuTextColor:{default:"light-1"},menuTextBold:{type:Boolean,default:!1},displayHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},bgColor:{default:"dark-3"},borderTopColor:{default:"primary"},headlineColor:{default:"light-1"}},emits:["logo-click","menu-click"],setup(m,{emit:s}){const c=m;e.useSlots();const d=s,t=e.computed(()=>{const{bgColor:o,borderTopColor:i}=c;return[l("BGCOLOR",o),l("BORDER",i)].join(" ")}),f=e.computed(()=>{const{titleSize:o,titleColor:i}=c;return[l("H2",o),l("TEXTCOLOR",i)].join(" ")}),r=e.computed(()=>{const{menuTextSize:o,menuTextColor:i,menuTextBold:n}=c;return[l("BODYTEXT",o),l("TEXTCOLOR",i)].join(" ")}),h=o=>{const{logoAsLink:i,logoLink:n,logoLinkTarget:p}=c;!i&&o.preventDefault(),d("logo-click",o,n,p)},g=(o,i)=>{const{menuItemAsLink:n}=c;!n&&o.preventDefault(),d("menu-click",o,i)};return(o,i)=>(e.openBlock(),e.createElementBlock("footer",{class:e.normalizeClass(["border-t-2 py-6 sm:py-8 md:py-12",t.value])},[e.createElementVNode("div",B,[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-col md:flex-row flex-wrap justify-between mb-xs md:mb-md px-xs md:px-md border-b-2",e.unref(l)("BORDER",o.headlineColor)])},[e.createElementVNode("div",E,[e.createElementVNode("a",{href:o.logoLink,target:o.logoLinkTarget,class:e.normalizeClass(["h-full inline-block outline-none focus:ring-2 ring-offset-2 ring-offset-transparent rounded-md transition-all duration-300 ease-linear",e.unref(l)("RINGCOLOR",o.titleColor)]),onClick:i[0]||(i[0]=n=>h(n))},[e.createElementVNode("img",{class:"inline-block h-full",src:o.logo,alt:o.logoAlt},null,8,T)],10,V)]),o.displaySocialIcons?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(_,{"social-links":o.socialLinks,"icon-color":o.socialIconColor},null,8,["social-links","icon-color"])])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",M,[e.createElementVNode("div",I,[e.createElementVNode("h2",{class:e.normalizeClass(["inline-block align-middle tracking-wider",f.value]),innerHTML:o.title},null,10,A),e.createElementVNode("div",H,[e.renderSlot(o.$slots,"default",{},void 0,!0)])]),e.createElementVNode("nav",N,[e.createElementVNode("ul",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuItems,(n,p)=>(e.openBlock(),e.createElementBlock("li",{key:`first-nav-${p}`,class:"inline-block"},[e.createElementVNode("a",{href:n.url,target:n.target?n.target:"_self",class:e.normalizeClass(["tracking-wide outline-none nav__text",r.value]),onClick:k=>g(k,n),innerHTML:n.title},null,10,F),o.displayHighlight?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["relative top-3xs h-3xs nav__decorator",e.unref(l)("BEFOREBG",o.highlightColor)])},null,2)):e.createCommentVNode("",!0)]))),128))]),o.secondaryMenuItems?(e.openBlock(),e.createElementBlock("ul",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.secondaryMenuItems,(n,p)=>(e.openBlock(),e.createElementBlock("li",{key:`second-nav-${p}`,class:"inline-block"},[e.createElementVNode("a",{href:n.url,target:n.target?n.target:"_self",class:e.normalizeClass(["tracking-wide outline-none nav__text",r.value]),onClick:k=>g(k,n),innerHTML:n.title},null,10,S),o.displayHighlight?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["relative top-3xs h-3xs nav__decorator",e.unref(l)("BEFOREBG",o.highlightColor)])},null,2)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])])])],2))}}),[["__scopeId","data-v-21dde3ea"]]);a.MclFooterA=R,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/mcl-footer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "a footer components built based on Manguito theme",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"vite-plugin-dts": "^3.8.3",
|
|
46
46
|
"vue-tsc": "^1.8.25"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "78cff50dbc852b676bc0cf2d4c75714686eb6d2f"
|
|
49
49
|
}
|