telecop 0.1.4 → 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 +139 -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 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,47 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as b, Fragment as $ } from "react/jsx-runtime";
|
|
3
|
+
import { useState as C } from "react";
|
|
3
4
|
const I = ({
|
|
4
|
-
children:
|
|
5
|
-
variant:
|
|
6
|
-
size:
|
|
7
|
-
onClick:
|
|
5
|
+
children: d,
|
|
6
|
+
variant: o = "primary",
|
|
7
|
+
size: c = "md",
|
|
8
|
+
onClick: r,
|
|
8
9
|
disabled: t = !1,
|
|
9
|
-
className:
|
|
10
|
+
className: n = ""
|
|
10
11
|
}) => {
|
|
11
|
-
const
|
|
12
|
+
const i = "font-semibold rounded-lg transition-all duration-200 cursor-pointer", a = {
|
|
12
13
|
primary: "bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",
|
|
13
14
|
secondary: "bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",
|
|
14
15
|
danger: "bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"
|
|
15
|
-
},
|
|
16
|
+
}, l = {
|
|
16
17
|
sm: "px-3 py-1.5 text-sm",
|
|
17
18
|
md: "px-4 py-2 text-base",
|
|
18
19
|
lg: "px-6 py-3 text-lg"
|
|
19
|
-
},
|
|
20
|
+
}, h = t ? "opacity-50 cursor-not-allowed" : "";
|
|
20
21
|
return /* @__PURE__ */ e(
|
|
21
22
|
"button",
|
|
22
23
|
{
|
|
23
|
-
className: `${
|
|
24
|
-
onClick:
|
|
24
|
+
className: `${i} ${a[o]} ${l[c]} ${h} ${n}`,
|
|
25
|
+
onClick: r,
|
|
25
26
|
disabled: t,
|
|
26
|
-
children:
|
|
27
|
+
children: d
|
|
27
28
|
}
|
|
28
29
|
);
|
|
29
|
-
},
|
|
30
|
-
children:
|
|
31
|
-
variant:
|
|
32
|
-
size:
|
|
33
|
-
onClick:
|
|
30
|
+
}, m = ({
|
|
31
|
+
children: d,
|
|
32
|
+
variant: o = "blur",
|
|
33
|
+
size: c = "md",
|
|
34
|
+
onClick: r,
|
|
34
35
|
disabled: t = !1,
|
|
35
|
-
className:
|
|
36
|
+
className: n = ""
|
|
36
37
|
}) => {
|
|
37
|
-
const [
|
|
38
|
-
if (!t &&
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, 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();
|
|
43
44
|
}
|
|
44
|
-
},
|
|
45
|
+
}, h = `
|
|
45
46
|
relative overflow-hidden
|
|
46
47
|
backdrop-blur-xl
|
|
47
48
|
border border-white/30
|
|
@@ -51,7 +52,7 @@ const I = ({
|
|
|
51
52
|
cursor-pointer
|
|
52
53
|
shadow-xl
|
|
53
54
|
group
|
|
54
|
-
`,
|
|
55
|
+
`, x = {
|
|
55
56
|
sm: "px-5 py-2.5 text-sm",
|
|
56
57
|
md: "px-7 py-3.5 text-base",
|
|
57
58
|
lg: "px-9 py-4.5 text-lg"
|
|
@@ -81,21 +82,21 @@ const I = ({
|
|
|
81
82
|
hover:before:translate-x-[200%]
|
|
82
83
|
before:transition-transform before:duration-1000
|
|
83
84
|
`
|
|
84
|
-
},
|
|
85
|
-
return /* @__PURE__ */
|
|
85
|
+
}, u = t ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
|
|
86
|
+
return /* @__PURE__ */ b(
|
|
86
87
|
"button",
|
|
87
88
|
{
|
|
88
|
-
className: `${
|
|
89
|
-
onClick:
|
|
89
|
+
className: `${h} ${x[c]} ${w[o]} ${u} ${n}`,
|
|
90
|
+
onClick: l,
|
|
90
91
|
disabled: t,
|
|
91
92
|
children: [
|
|
92
|
-
|
|
93
|
+
o === "waves" && !t && /* @__PURE__ */ b($, { children: [
|
|
93
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" }),
|
|
94
95
|
/* @__PURE__ */ e("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
|
|
95
96
|
] }),
|
|
96
|
-
|
|
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" }),
|
|
97
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" }) }),
|
|
98
|
-
|
|
99
|
+
i.map((s) => /* @__PURE__ */ e(
|
|
99
100
|
"span",
|
|
100
101
|
{
|
|
101
102
|
className: "absolute rounded-full bg-white/30 pointer-events-none animate-ripple",
|
|
@@ -109,105 +110,114 @@ const I = ({
|
|
|
109
110
|
},
|
|
110
111
|
s.id
|
|
111
112
|
)),
|
|
112
|
-
/* @__PURE__ */ e("span", { className: "relative z-10 drop-shadow-lg", children:
|
|
113
|
+
/* @__PURE__ */ e("span", { className: "relative z-10 drop-shadow-lg", children: d })
|
|
113
114
|
]
|
|
114
115
|
}
|
|
115
116
|
);
|
|
116
|
-
},
|
|
117
|
-
name:
|
|
118
|
-
title:
|
|
119
|
-
description:
|
|
120
|
-
primaryButtonText:
|
|
121
|
-
|
|
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
|
-
/* @__PURE__ */ h(
|
|
168
|
-
"div",
|
|
169
|
-
{
|
|
170
|
-
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
171
|
-
style: {
|
|
172
|
-
animation: "fadeInUp 1.4s ease-out 0.6s backwards"
|
|
173
|
-
},
|
|
174
|
-
children: [
|
|
175
|
-
/* @__PURE__ */ e(
|
|
176
|
-
x,
|
|
177
|
-
{
|
|
178
|
-
variant: "waves",
|
|
179
|
-
size: "lg",
|
|
180
|
-
onClick: d,
|
|
181
|
-
children: o
|
|
182
|
-
}
|
|
183
|
-
),
|
|
184
|
-
/* @__PURE__ */ e(
|
|
185
|
-
x,
|
|
186
|
-
{
|
|
187
|
-
variant: "blur",
|
|
188
|
-
size: "lg",
|
|
189
|
-
onClick: r,
|
|
190
|
-
children: t
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
),
|
|
196
|
-
/* @__PURE__ */ e(
|
|
197
|
-
"div",
|
|
198
|
-
{
|
|
199
|
-
className: "mt-16 mx-auto w-32 h-1 rounded-full",
|
|
200
|
-
style: {
|
|
201
|
-
background: "linear-gradient(90deg, transparent, white, transparent)",
|
|
202
|
-
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
|
|
203
168
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
+
};
|
|
209
219
|
export {
|
|
210
220
|
I as Button,
|
|
211
|
-
|
|
212
|
-
|
|
221
|
+
m as GlassButton,
|
|
222
|
+
j as Home
|
|
213
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
|
}
|