@jjlmoya/utils-tools 1.9.0 → 1.11.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/package.json +5 -3
- package/scripts/postinstall.mjs +27 -0
- package/src/tool/date-diff-calculator/component.astro +0 -200
- package/src/tool/date-diff-calculator/date-difference-calculator.css +198 -0
- package/src/tool/drive-direct-link/component.astro +0 -173
- package/src/tool/drive-direct-link/google-drive-direct-download-link.css +171 -0
- package/src/tool/email-list-cleaner/component.astro +0 -204
- package/src/tool/email-list-cleaner/email-list-cleaner.css +202 -0
- package/src/tool/env-badge-spain/component.astro +0 -156
- package/src/tool/env-badge-spain/components/BadgeForm.astro +0 -151
- package/src/tool/env-badge-spain/components/BadgeResult.astro +0 -101
- package/src/tool/env-badge-spain/environmental-badge-simulator-spain.css +405 -0
- package/src/tool/morse-beacon/component.astro +0 -298
- package/src/tool/morse-beacon/morse-beacon.css +296 -0
- package/src/tool/password-generator/component.astro +0 -88
- package/src/tool/password-generator/components/Config.astro +0 -170
- package/src/tool/password-generator/components/Display.astro +0 -117
- package/src/tool/password-generator/components/Strength.astro +0 -52
- package/src/tool/password-generator/password-generator.css +424 -0
- package/src/tool/routes/component.astro +0 -254
- package/src/tool/routes/optimal-routes.css +252 -0
- package/src/tool/rule-of-three/component.astro +0 -249
- package/src/tool/rule-of-three/rule-of-three.css +247 -0
- package/src/tool/seo-content-optimizer/component.astro +0 -278
- package/src/tool/seo-content-optimizer/seo-content-optimizer.css +276 -0
- package/src/tool/speed-reader/component.astro +0 -400
- package/src/tool/speed-reader/speed-reader.css +398 -0
- package/src/tool/text-pixel-calculator/component.astro +0 -96
- package/src/tool/text-pixel-calculator/components/Editor.astro +0 -145
- package/src/tool/text-pixel-calculator/components/Preview.astro +0 -115
- package/src/tool/text-pixel-calculator/components/Stats.astro +0 -62
- package/src/tool/text-pixel-calculator/text-pixel-width-calculator.css +407 -0
- package/src/tool/whatsapp-link/component.astro +0 -264
- package/src/tool/whatsapp-link/whatsapp-link-generator.css +262 -0
|
@@ -18,162 +18,6 @@ const t = (ui ?? {}) as EnvBadgeSpainUI;
|
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
|
-
<style>
|
|
22
|
-
.deb-root {
|
|
23
|
-
--deb-bg: #f8fafc;
|
|
24
|
-
--deb-card-bg: #fff;
|
|
25
|
-
--deb-card-border: #e2e8f0;
|
|
26
|
-
--deb-text-main: #1e293b;
|
|
27
|
-
--deb-text-muted: #64748b;
|
|
28
|
-
--deb-text-sub: #475569;
|
|
29
|
-
--deb-label-border: #e2e8f0;
|
|
30
|
-
--deb-option-bg: #f1f5f9;
|
|
31
|
-
--deb-option-border: #e2e8f0;
|
|
32
|
-
--deb-option-hover: #e2e8f0;
|
|
33
|
-
--deb-result-bg: #fff;
|
|
34
|
-
|
|
35
|
-
width: 100%;
|
|
36
|
-
max-width: 720px;
|
|
37
|
-
margin: 0 auto;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:global(.theme-dark) .deb-root {
|
|
41
|
-
--deb-bg: #0f172a;
|
|
42
|
-
--deb-card-bg: #1e293b;
|
|
43
|
-
--deb-card-border: rgba(255, 255, 255, 0.08);
|
|
44
|
-
--deb-text-main: #f8fafc;
|
|
45
|
-
--deb-text-muted: #94a3b8;
|
|
46
|
-
--deb-text-sub: #cbd5e1;
|
|
47
|
-
--deb-label-border: rgba(255, 255, 255, 0.1);
|
|
48
|
-
--deb-option-bg: rgba(15, 23, 42, 0.5);
|
|
49
|
-
--deb-option-border: rgba(255, 255, 255, 0.1);
|
|
50
|
-
--deb-option-hover: rgba(255, 255, 255, 0.05);
|
|
51
|
-
--deb-result-bg: rgba(15, 23, 42, 0.3);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.deb-main-container {
|
|
55
|
-
background: var(--deb-card-bg);
|
|
56
|
-
border: 1px solid var(--deb-card-border);
|
|
57
|
-
border-radius: 2rem;
|
|
58
|
-
padding: 2.5rem;
|
|
59
|
-
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media (max-width: 640px) {
|
|
63
|
-
.deb-main-container {
|
|
64
|
-
padding: 1.5rem;
|
|
65
|
-
border-radius: 1.5rem;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:global(.deb-badge-display h3) {
|
|
70
|
-
font-size: 1.5rem;
|
|
71
|
-
margin: 0;
|
|
72
|
-
color: var(--deb-text-main);
|
|
73
|
-
font-weight: 800;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:global(.deb-replica) {
|
|
77
|
-
width: 200px;
|
|
78
|
-
height: 200px;
|
|
79
|
-
border-radius: 50%;
|
|
80
|
-
border: 6px solid #111;
|
|
81
|
-
position: relative;
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
background: #fff;
|
|
88
|
-
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:global(.deb-replica)::after {
|
|
92
|
-
content: "DGT";
|
|
93
|
-
position: absolute;
|
|
94
|
-
top: 25px;
|
|
95
|
-
right: 35px;
|
|
96
|
-
font-size: 1.125rem;
|
|
97
|
-
font-weight: 900;
|
|
98
|
-
color: #000;
|
|
99
|
-
opacity: 0.6;
|
|
100
|
-
letter-spacing: -1px;
|
|
101
|
-
z-index: 10;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:global(.deb-big-letter) {
|
|
105
|
-
font-size: 7rem;
|
|
106
|
-
font-weight: 900;
|
|
107
|
-
line-height: 1;
|
|
108
|
-
z-index: 2;
|
|
109
|
-
margin-top: 15px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:global(.deb-sub-text) {
|
|
113
|
-
font-size: 1rem;
|
|
114
|
-
font-weight: 800;
|
|
115
|
-
text-transform: uppercase;
|
|
116
|
-
z-index: 2;
|
|
117
|
-
margin-top: -5px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
:global(.deb-replica-0) {
|
|
121
|
-
background: #005aa3;
|
|
122
|
-
color: #fff;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:global(.deb-replica-0)::after {
|
|
126
|
-
color: #fff;
|
|
127
|
-
opacity: 0.9;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
:global(.deb-replica-eco) {
|
|
131
|
-
background: linear-gradient(90deg, #00a455 50%, #005aa3 50%);
|
|
132
|
-
color: #fff;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:global(.deb-replica-eco)::after {
|
|
136
|
-
color: #fff;
|
|
137
|
-
opacity: 0.9;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
:global(.deb-replica-eco) :global(.deb-big-letter) {
|
|
141
|
-
font-size: 5rem;
|
|
142
|
-
margin-top: 25px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
:global(.deb-replica-c) {
|
|
146
|
-
background: #00a455;
|
|
147
|
-
color: #000;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
:global(.deb-replica-c) :global(.deb-sub-text) { display: none; }
|
|
151
|
-
|
|
152
|
-
:global(.deb-replica-b) {
|
|
153
|
-
background: #ffdf00;
|
|
154
|
-
color: #000;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:global(.deb-replica-b) :global(.deb-sub-text) { display: none; }
|
|
158
|
-
|
|
159
|
-
:global(.deb-replica-a) {
|
|
160
|
-
width: 200px;
|
|
161
|
-
height: 120px;
|
|
162
|
-
border-radius: 1rem;
|
|
163
|
-
border: 6px solid #dc2626;
|
|
164
|
-
background: #fff;
|
|
165
|
-
color: #dc2626;
|
|
166
|
-
display: flex;
|
|
167
|
-
flex-direction: column;
|
|
168
|
-
justify-content: center;
|
|
169
|
-
align-items: center;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:global(.deb-replica-a) :global(.deb-big-letter) {
|
|
173
|
-
font-size: 4rem;
|
|
174
|
-
margin-top: 0;
|
|
175
|
-
}
|
|
176
|
-
</style>
|
|
177
21
|
|
|
178
22
|
<script>
|
|
179
23
|
import type { EnvBadgeSpainUI } from './ui';
|
|
@@ -90,154 +90,3 @@ const { t } = Astro.props;
|
|
|
90
90
|
</button>
|
|
91
91
|
</form>
|
|
92
92
|
|
|
93
|
-
<style>
|
|
94
|
-
.deb-form {
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
gap: 2rem;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.deb-group {
|
|
101
|
-
display: flex;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
gap: 1rem;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.deb-step-label {
|
|
107
|
-
font-size: 0.875rem;
|
|
108
|
-
font-weight: 800;
|
|
109
|
-
color: var(--deb-text-muted);
|
|
110
|
-
text-transform: uppercase;
|
|
111
|
-
letter-spacing: 0.1em;
|
|
112
|
-
display: flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
gap: 0.5rem;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.deb-step-label::after {
|
|
118
|
-
content: "";
|
|
119
|
-
flex: 1;
|
|
120
|
-
height: 1px;
|
|
121
|
-
background: var(--deb-label-border);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.deb-grid {
|
|
125
|
-
display: grid;
|
|
126
|
-
gap: 0.75rem;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.deb-grid-3 { grid-template-columns: repeat(3, 1fr); }
|
|
130
|
-
.deb-grid-4 { grid-template-columns: repeat(4, 1fr); }
|
|
131
|
-
|
|
132
|
-
.deb-option {
|
|
133
|
-
border-radius: 1rem;
|
|
134
|
-
padding: 1rem 0.5rem;
|
|
135
|
-
display: flex;
|
|
136
|
-
flex-direction: column;
|
|
137
|
-
align-items: center;
|
|
138
|
-
gap: 0.75rem;
|
|
139
|
-
background: var(--deb-option-bg);
|
|
140
|
-
border: 2px solid var(--deb-option-border);
|
|
141
|
-
cursor: pointer;
|
|
142
|
-
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
143
|
-
color: var(--deb-text-main);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.deb-icon {
|
|
147
|
-
width: 2.25rem;
|
|
148
|
-
height: 2.25rem;
|
|
149
|
-
stroke: currentcolor;
|
|
150
|
-
opacity: 0.7;
|
|
151
|
-
transition: transform 0.2s;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.deb-option span {
|
|
155
|
-
font-size: 0.8125rem;
|
|
156
|
-
font-weight: 700;
|
|
157
|
-
line-height: 1.2;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.deb-option:hover {
|
|
161
|
-
transform: translateY(-2px);
|
|
162
|
-
background: var(--deb-option-hover);
|
|
163
|
-
border-color: var(--deb-accent);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.deb-option:hover .deb-icon {
|
|
167
|
-
transform: scale(1.1);
|
|
168
|
-
opacity: 1;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
:global(.deb-selected).deb-option {
|
|
172
|
-
background: var(--deb-accent-bg);
|
|
173
|
-
border-color: var(--deb-accent);
|
|
174
|
-
color: #fff;
|
|
175
|
-
box-shadow: 0 8px 16px -4px var(--deb-accent-shadow);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
:global(.deb-selected) .deb-icon { opacity: 1; }
|
|
179
|
-
|
|
180
|
-
.deb-vehicle {
|
|
181
|
-
--deb-accent: #0ea5e9;
|
|
182
|
-
--deb-accent-bg: #0ea5e9;
|
|
183
|
-
--deb-accent-shadow: rgba(14, 165, 233, 0.4);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.deb-fuel {
|
|
187
|
-
--deb-accent: #10b981;
|
|
188
|
-
--deb-accent-bg: #10b981;
|
|
189
|
-
--deb-accent-shadow: rgba(16, 185, 129, 0.4);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.deb-year {
|
|
193
|
-
--deb-accent: #8b5cf6;
|
|
194
|
-
--deb-accent-bg: #8b5cf6;
|
|
195
|
-
--deb-accent-shadow: rgba(139, 92, 246, 0.4);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.deb-error {
|
|
199
|
-
color: #ef4444;
|
|
200
|
-
font-size: 0.75rem;
|
|
201
|
-
font-weight: 700;
|
|
202
|
-
opacity: 0;
|
|
203
|
-
transition: opacity 0.2s;
|
|
204
|
-
margin-top: -0.5rem;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.deb-help {
|
|
208
|
-
font-size: 0.75rem;
|
|
209
|
-
color: var(--deb-text-muted);
|
|
210
|
-
line-height: 1.5;
|
|
211
|
-
font-style: italic;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.deb-submit {
|
|
215
|
-
width: 100%;
|
|
216
|
-
padding: 1.25rem;
|
|
217
|
-
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
|
218
|
-
color: #fff;
|
|
219
|
-
border: none;
|
|
220
|
-
border-radius: 1.25rem;
|
|
221
|
-
font-weight: 800;
|
|
222
|
-
font-size: 1.125rem;
|
|
223
|
-
cursor: pointer;
|
|
224
|
-
transition: all 0.3s ease;
|
|
225
|
-
text-transform: uppercase;
|
|
226
|
-
letter-spacing: 0.05em;
|
|
227
|
-
display: flex;
|
|
228
|
-
justify-content: center;
|
|
229
|
-
align-items: center;
|
|
230
|
-
gap: 0.75rem;
|
|
231
|
-
box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.deb-submit:hover {
|
|
235
|
-
transform: translateY(-2px);
|
|
236
|
-
box-shadow: 0 20px 25px -5px rgba(217, 119, 6, 0.4);
|
|
237
|
-
filter: brightness(1.1);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
@media (max-width: 480px) {
|
|
241
|
-
.deb-grid-3, .deb-grid-4 { grid-template-columns: repeat(2, 1fr); }
|
|
242
|
-
}
|
|
243
|
-
</style>
|
|
@@ -48,104 +48,3 @@ const { t } = Astro.props;
|
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
|
-
<style>
|
|
52
|
-
.deb-result {
|
|
53
|
-
display: none;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
animation: deb-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.deb-result-card {
|
|
59
|
-
background: var(--deb-result-bg);
|
|
60
|
-
border-radius: 1.5rem;
|
|
61
|
-
padding: 2.5rem;
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
align-items: center;
|
|
65
|
-
text-align: center;
|
|
66
|
-
border: 1px solid var(--deb-card-border);
|
|
67
|
-
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.deb-result-title {
|
|
71
|
-
font-size: 1.25rem;
|
|
72
|
-
font-weight: 800;
|
|
73
|
-
color: var(--deb-text-muted);
|
|
74
|
-
text-transform: uppercase;
|
|
75
|
-
letter-spacing: 0.1em;
|
|
76
|
-
margin-bottom: 2rem;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.deb-badge-container {
|
|
80
|
-
margin-bottom: 2rem;
|
|
81
|
-
filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.deb-result-info {
|
|
85
|
-
display: flex;
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
gap: 1.5rem;
|
|
88
|
-
max-width: 640px;
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.deb-result-desc {
|
|
93
|
-
font-size: 1.125rem;
|
|
94
|
-
font-weight: 600;
|
|
95
|
-
line-height: 1.6;
|
|
96
|
-
color: var(--deb-text-main);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.deb-warning-box {
|
|
100
|
-
display: flex;
|
|
101
|
-
gap: 1rem;
|
|
102
|
-
padding: 1rem;
|
|
103
|
-
background: rgba(245, 158, 11, 0.08);
|
|
104
|
-
border-radius: 1rem;
|
|
105
|
-
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
106
|
-
text-align: left;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.deb-result-warn {
|
|
110
|
-
font-size: 0.8125rem;
|
|
111
|
-
color: #b45309;
|
|
112
|
-
font-weight: 500;
|
|
113
|
-
line-height: 1.5;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:global(.theme-dark) .deb-result-warn {
|
|
117
|
-
color: #fbbf24;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.deb-reset-btn {
|
|
121
|
-
margin-top: 2.5rem;
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
gap: 0.75rem;
|
|
125
|
-
padding: 0.875rem 2rem;
|
|
126
|
-
background: var(--deb-option-bg);
|
|
127
|
-
border: 1px solid var(--deb-option-border);
|
|
128
|
-
border-radius: 100px;
|
|
129
|
-
color: var(--deb-text-main);
|
|
130
|
-
font-weight: 700;
|
|
131
|
-
cursor: pointer;
|
|
132
|
-
transition: all 0.2s;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.deb-reset-btn:hover {
|
|
136
|
-
background: var(--deb-option-hover);
|
|
137
|
-
transform: scale(1.05);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@keyframes deb-slide-up {
|
|
141
|
-
from {
|
|
142
|
-
opacity: 0;
|
|
143
|
-
transform: translateY(20px);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
to {
|
|
147
|
-
opacity: 1;
|
|
148
|
-
transform: translateY(0);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
</style>
|