telecop 0.1.5 → 0.1.6
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.js +3 -3
- package/dist/index.mjs +138 -129
- package/dist/templates/Home/Home.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),N=({children:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),N=({children:d,variant:o="primary",size:c="md",onClick:r,disabled:t=!1,className:n=""})=>{const i="font-semibold rounded-lg transition-all duration-200 cursor-pointer",s={primary:"bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",secondary:"bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",danger:"bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"},l={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg"},h=t?"opacity-50 cursor-not-allowed":"";return e.jsx("button",{className:`${i} ${s[o]} ${l[c]} ${h} ${n}`,onClick:r,disabled:t,children:d})},x=({children:d,variant:o="blur",size:c="md",onClick:r,disabled:t=!1,className:n=""})=>{const[i,s]=j.useState([]),l=a=>{if(!t&&r){const b=a.currentTarget.getBoundingClientRect(),g=a.clientX-b.left,f=a.clientY-b.top,w=Date.now();s([...i,{x:g,y:f,id:w}]),setTimeout(()=>{s(v=>v.filter(y=>y.id!==w))},800),r()}},h=`
|
|
2
2
|
relative overflow-hidden
|
|
3
3
|
backdrop-blur-xl
|
|
4
4
|
border border-white/30
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
cursor-pointer
|
|
9
9
|
shadow-xl
|
|
10
10
|
group
|
|
11
|
-
`,
|
|
11
|
+
`,p={sm:"px-5 py-2.5 text-sm",md:"px-7 py-3.5 text-base",lg:"px-9 py-4.5 text-lg"},m={blur:`
|
|
12
12
|
bg-white/5
|
|
13
13
|
hover:bg-white/15
|
|
14
14
|
hover:border-white/50
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
before:translate-x-[-200%]
|
|
32
32
|
hover:before:translate-x-[200%]
|
|
33
33
|
before:transition-transform before:duration-1000
|
|
34
|
-
`},
|
|
34
|
+
`},u=t?"opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl":"";return e.jsxs("button",{className:`${h} ${p[c]} ${m[o]} ${u} ${n}`,onClick:l,disabled:t,children:[o==="waves"&&!t&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700"}),e.jsx("span",{className:"absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse"})]}),o==="blur"&&!t&&e.jsx("span",{className:"absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.jsx("span",{className:"absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",children:e.jsx("span",{className:"absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer"})}),i.map(a=>e.jsx("span",{className:"absolute rounded-full bg-white/30 pointer-events-none animate-ripple",style:{left:a.x,top:a.y,width:"20px",height:"20px",transform:"translate(-50%, -50%)"}},a.id)),e.jsx("span",{className:"relative z-10 drop-shadow-lg",children:d})]})},$=({name:d,title:o,description:c="Welcome to my portfolio",primaryButtonText:r="Get Started",primaryButtonLink:t,primaryButtonOnClick:n,secondaryButtonText:i="Learn More",secondaryButtonLink:s,secondaryButtonOnClick:l,backgroundGradient:h="linear-gradient(135deg, #667eea 0%, #764ba2 100%)",className:p=""})=>{const m=()=>{t?window.location.href=t:n&&n()},u=()=>{s?window.location.href=s:l&&l()},a=t?e.jsx("a",{href:t,style:{textDecoration:"none"},children:e.jsx(x,{variant:"waves",size:"lg",children:r})}):e.jsx(x,{variant:"waves",size:"lg",onClick:n||m,children:r}),b=s?e.jsx("a",{href:s,style:{textDecoration:"none"},children:e.jsx(x,{variant:"blur",size:"lg",children:i})}):e.jsx(x,{variant:"blur",size:"lg",onClick:l||u,children:i});return e.jsx("div",{className:`min-h-screen flex items-center justify-center p-8 ${p}`,style:{background:h},children:e.jsxs("div",{className:"max-w-4xl w-full text-center space-y-8",children:[e.jsx("h1",{className:"text-6xl md:text-8xl font-bold text-white mb-4 animate-fade-in",style:{textShadow:"0 0 40px rgba(0,0,0,0.3)",animation:"fadeInUp 0.8s ease-out"},children:d}),e.jsx("h2",{className:"text-3xl md:text-5xl font-semibold text-white/90",style:{textShadow:"0 0 30px rgba(0,0,0,0.2)",animation:"fadeInUp 1s ease-out 0.2s backwards"},children:o}),e.jsx("p",{className:"text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",style:{textShadow:"0 0 20px rgba(0,0,0,0.2)",animation:"fadeInUp 1.2s ease-out 0.4s backwards"},children:c}),e.jsxs("div",{className:"flex flex-wrap gap-6 justify-center mt-12",style:{animation:"fadeInUp 1.4s ease-out 0.6s backwards"},children:[a,b]}),e.jsx("div",{className:"mt-16 mx-auto w-32 h-1 rounded-full",style:{background:"linear-gradient(90deg, transparent, white, transparent)",animation:"fadeIn 2s ease-out 1s backwards"}})]})})};exports.Button=N;exports.GlassButton=x;exports.Home=$;
|
package/dist/index.mjs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsx as e, jsxs as b, Fragment as $ } from "react/jsx-runtime";
|
|
3
|
+
import { useState as C } from "react";
|
|
4
4
|
const I = ({
|
|
5
|
-
children:
|
|
6
|
-
variant:
|
|
7
|
-
size:
|
|
8
|
-
onClick:
|
|
5
|
+
children: d,
|
|
6
|
+
variant: o = "primary",
|
|
7
|
+
size: c = "md",
|
|
8
|
+
onClick: r,
|
|
9
9
|
disabled: t = !1,
|
|
10
|
-
className:
|
|
10
|
+
className: n = ""
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const i = "font-semibold rounded-lg transition-all duration-200 cursor-pointer", a = {
|
|
13
13
|
primary: "bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",
|
|
14
14
|
secondary: "bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",
|
|
15
15
|
danger: "bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"
|
|
16
|
-
},
|
|
16
|
+
}, l = {
|
|
17
17
|
sm: "px-3 py-1.5 text-sm",
|
|
18
18
|
md: "px-4 py-2 text-base",
|
|
19
19
|
lg: "px-6 py-3 text-lg"
|
|
20
|
-
},
|
|
20
|
+
}, h = t ? "opacity-50 cursor-not-allowed" : "";
|
|
21
21
|
return /* @__PURE__ */ e(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
|
-
className: `${
|
|
25
|
-
onClick:
|
|
24
|
+
className: `${i} ${a[o]} ${l[c]} ${h} ${n}`,
|
|
25
|
+
onClick: r,
|
|
26
26
|
disabled: t,
|
|
27
|
-
children:
|
|
27
|
+
children: d
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
},
|
|
31
|
-
children:
|
|
32
|
-
variant:
|
|
33
|
-
size:
|
|
34
|
-
onClick:
|
|
30
|
+
}, m = ({
|
|
31
|
+
children: d,
|
|
32
|
+
variant: o = "blur",
|
|
33
|
+
size: c = "md",
|
|
34
|
+
onClick: r,
|
|
35
35
|
disabled: t = !1,
|
|
36
|
-
className:
|
|
36
|
+
className: n = ""
|
|
37
37
|
}) => {
|
|
38
|
-
const [
|
|
39
|
-
if (!t &&
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, 800),
|
|
38
|
+
const [i, a] = C([]), l = (s) => {
|
|
39
|
+
if (!t && r) {
|
|
40
|
+
const p = s.currentTarget.getBoundingClientRect(), f = s.clientX - p.left, v = s.clientY - p.top, g = Date.now();
|
|
41
|
+
a([...i, { x: f, y: v, id: g }]), setTimeout(() => {
|
|
42
|
+
a((y) => y.filter((N) => N.id !== g));
|
|
43
|
+
}, 800), r();
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, h = `
|
|
46
46
|
relative overflow-hidden
|
|
47
47
|
backdrop-blur-xl
|
|
48
48
|
border border-white/30
|
|
@@ -52,7 +52,7 @@ const I = ({
|
|
|
52
52
|
cursor-pointer
|
|
53
53
|
shadow-xl
|
|
54
54
|
group
|
|
55
|
-
`,
|
|
55
|
+
`, x = {
|
|
56
56
|
sm: "px-5 py-2.5 text-sm",
|
|
57
57
|
md: "px-7 py-3.5 text-base",
|
|
58
58
|
lg: "px-9 py-4.5 text-lg"
|
|
@@ -82,21 +82,21 @@ const I = ({
|
|
|
82
82
|
hover:before:translate-x-[200%]
|
|
83
83
|
before:transition-transform before:duration-1000
|
|
84
84
|
`
|
|
85
|
-
},
|
|
86
|
-
return /* @__PURE__ */
|
|
85
|
+
}, u = t ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
|
|
86
|
+
return /* @__PURE__ */ b(
|
|
87
87
|
"button",
|
|
88
88
|
{
|
|
89
|
-
className: `${
|
|
90
|
-
onClick:
|
|
89
|
+
className: `${h} ${x[c]} ${w[o]} ${u} ${n}`,
|
|
90
|
+
onClick: l,
|
|
91
91
|
disabled: t,
|
|
92
92
|
children: [
|
|
93
|
-
|
|
93
|
+
o === "waves" && !t && /* @__PURE__ */ b($, { children: [
|
|
94
94
|
/* @__PURE__ */ e("span", { className: "absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700" }),
|
|
95
95
|
/* @__PURE__ */ e("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
|
|
96
96
|
] }),
|
|
97
|
-
|
|
97
|
+
o === "blur" && !t && /* @__PURE__ */ e("span", { className: "absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500" }),
|
|
98
98
|
/* @__PURE__ */ e("span", { className: "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none", children: /* @__PURE__ */ e("span", { className: "absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer" }) }),
|
|
99
|
-
|
|
99
|
+
i.map((s) => /* @__PURE__ */ e(
|
|
100
100
|
"span",
|
|
101
101
|
{
|
|
102
102
|
className: "absolute rounded-full bg-white/30 pointer-events-none animate-ripple",
|
|
@@ -110,105 +110,114 @@ const I = ({
|
|
|
110
110
|
},
|
|
111
111
|
s.id
|
|
112
112
|
)),
|
|
113
|
-
/* @__PURE__ */ e("span", { className: "relative z-10 drop-shadow-lg", children:
|
|
113
|
+
/* @__PURE__ */ e("span", { className: "relative z-10 drop-shadow-lg", children: d })
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
},
|
|
118
|
-
name:
|
|
119
|
-
title:
|
|
120
|
-
description:
|
|
121
|
-
primaryButtonText:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/* @__PURE__ */ h(
|
|
169
|
-
"div",
|
|
170
|
-
{
|
|
171
|
-
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
172
|
-
style: {
|
|
173
|
-
animation: "fadeInUp 1.4s ease-out 0.6s backwards"
|
|
174
|
-
},
|
|
175
|
-
children: [
|
|
176
|
-
/* @__PURE__ */ e(
|
|
177
|
-
x,
|
|
178
|
-
{
|
|
179
|
-
variant: "waves",
|
|
180
|
-
size: "lg",
|
|
181
|
-
onClick: d,
|
|
182
|
-
children: o
|
|
183
|
-
}
|
|
184
|
-
),
|
|
185
|
-
/* @__PURE__ */ e(
|
|
186
|
-
x,
|
|
187
|
-
{
|
|
188
|
-
variant: "blur",
|
|
189
|
-
size: "lg",
|
|
190
|
-
onClick: r,
|
|
191
|
-
children: t
|
|
192
|
-
}
|
|
193
|
-
)
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
),
|
|
197
|
-
/* @__PURE__ */ e(
|
|
198
|
-
"div",
|
|
199
|
-
{
|
|
200
|
-
className: "mt-16 mx-auto w-32 h-1 rounded-full",
|
|
201
|
-
style: {
|
|
202
|
-
background: "linear-gradient(90deg, transparent, white, transparent)",
|
|
203
|
-
animation: "fadeIn 2s ease-out 1s backwards"
|
|
117
|
+
}, j = ({
|
|
118
|
+
name: d,
|
|
119
|
+
title: o,
|
|
120
|
+
description: c = "Welcome to my portfolio",
|
|
121
|
+
primaryButtonText: r = "Get Started",
|
|
122
|
+
primaryButtonLink: t,
|
|
123
|
+
primaryButtonOnClick: n,
|
|
124
|
+
secondaryButtonText: i = "Learn More",
|
|
125
|
+
secondaryButtonLink: a,
|
|
126
|
+
secondaryButtonOnClick: l,
|
|
127
|
+
backgroundGradient: h = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
128
|
+
className: x = ""
|
|
129
|
+
}) => {
|
|
130
|
+
const w = () => {
|
|
131
|
+
t ? window.location.href = t : n && n();
|
|
132
|
+
}, u = () => {
|
|
133
|
+
a ? window.location.href = a : l && l();
|
|
134
|
+
}, s = t ? /* @__PURE__ */ e("a", { href: t, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(m, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ e(
|
|
135
|
+
m,
|
|
136
|
+
{
|
|
137
|
+
variant: "waves",
|
|
138
|
+
size: "lg",
|
|
139
|
+
onClick: n || w,
|
|
140
|
+
children: r
|
|
141
|
+
}
|
|
142
|
+
), p = a ? /* @__PURE__ */ e("a", { href: a, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(m, { variant: "blur", size: "lg", children: i }) }) : /* @__PURE__ */ e(
|
|
143
|
+
m,
|
|
144
|
+
{
|
|
145
|
+
variant: "blur",
|
|
146
|
+
size: "lg",
|
|
147
|
+
onClick: l || u,
|
|
148
|
+
children: i
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
return /* @__PURE__ */ e(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
className: `min-h-screen flex items-center justify-center p-8 ${x}`,
|
|
155
|
+
style: {
|
|
156
|
+
background: h
|
|
157
|
+
},
|
|
158
|
+
children: /* @__PURE__ */ b("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
|
|
159
|
+
/* @__PURE__ */ e(
|
|
160
|
+
"h1",
|
|
161
|
+
{
|
|
162
|
+
className: "text-6xl md:text-8xl font-bold text-white mb-4 animate-fade-in",
|
|
163
|
+
style: {
|
|
164
|
+
textShadow: "0 0 40px rgba(0,0,0,0.3)",
|
|
165
|
+
animation: "fadeInUp 0.8s ease-out"
|
|
166
|
+
},
|
|
167
|
+
children: d
|
|
204
168
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ e(
|
|
171
|
+
"h2",
|
|
172
|
+
{
|
|
173
|
+
className: "text-3xl md:text-5xl font-semibold text-white/90",
|
|
174
|
+
style: {
|
|
175
|
+
textShadow: "0 0 30px rgba(0,0,0,0.2)",
|
|
176
|
+
animation: "fadeInUp 1s ease-out 0.2s backwards"
|
|
177
|
+
},
|
|
178
|
+
children: o
|
|
179
|
+
}
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ e(
|
|
182
|
+
"p",
|
|
183
|
+
{
|
|
184
|
+
className: "text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",
|
|
185
|
+
style: {
|
|
186
|
+
textShadow: "0 0 20px rgba(0,0,0,0.2)",
|
|
187
|
+
animation: "fadeInUp 1.2s ease-out 0.4s backwards"
|
|
188
|
+
},
|
|
189
|
+
children: c
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
/* @__PURE__ */ b(
|
|
193
|
+
"div",
|
|
194
|
+
{
|
|
195
|
+
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
196
|
+
style: {
|
|
197
|
+
animation: "fadeInUp 1.4s ease-out 0.6s backwards"
|
|
198
|
+
},
|
|
199
|
+
children: [
|
|
200
|
+
s,
|
|
201
|
+
p
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
),
|
|
205
|
+
/* @__PURE__ */ e(
|
|
206
|
+
"div",
|
|
207
|
+
{
|
|
208
|
+
className: "mt-16 mx-auto w-32 h-1 rounded-full",
|
|
209
|
+
style: {
|
|
210
|
+
background: "linear-gradient(90deg, transparent, white, transparent)",
|
|
211
|
+
animation: "fadeIn 2s ease-out 1s backwards"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
)
|
|
215
|
+
] })
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
};
|
|
210
219
|
export {
|
|
211
220
|
I as Button,
|
|
212
|
-
|
|
213
|
-
|
|
221
|
+
m as GlassButton,
|
|
222
|
+
j as Home
|
|
214
223
|
};
|
|
@@ -4,9 +4,11 @@ export interface HomeProps {
|
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
primaryButtonText?: string;
|
|
7
|
+
primaryButtonLink?: string;
|
|
8
|
+
primaryButtonOnClick?: () => void;
|
|
7
9
|
secondaryButtonText?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
secondaryButtonLink?: string;
|
|
11
|
+
secondaryButtonOnClick?: () => void;
|
|
10
12
|
backgroundGradient?: string;
|
|
11
13
|
className?: string;
|
|
12
14
|
}
|