@jjlmoya/utils-developer 1.11.0 → 1.13.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 +7 -4
- package/scripts/postinstall.mjs +27 -0
- package/src/entries.ts +74 -0
- package/src/tool/aspectRatio/aspect-ratio-calculator.css +276 -0
- package/src/tool/aspectRatio/component.astro +0 -278
- package/src/tool/aspectRatio/entry.ts +30 -0
- package/src/tool/aspectRatio/index.ts +2 -32
- package/src/tool/calculadoraTiempoDatos/component.astro +0 -524
- package/src/tool/calculadoraTiempoDatos/data-time-calculator-web-speed-impact.css +522 -0
- package/src/tool/calculadoraTiempoDatos/entry.ts +29 -0
- package/src/tool/calculadoraTiempoDatos/index.ts +2 -31
- package/src/tool/colorConverter/color-converter-rgb-hex-hsl.css +262 -0
- package/src/tool/colorConverter/component.astro +0 -264
- package/src/tool/colorConverter/entry.ts +29 -0
- package/src/tool/colorConverter/index.ts +2 -31
- package/src/tool/conversorExcelCsvHtml/component.astro +0 -360
- package/src/tool/conversorExcelCsvHtml/entry.ts +29 -0
- package/src/tool/conversorExcelCsvHtml/excel-csv-html-table-converter.css +358 -0
- package/src/tool/conversorExcelCsvHtml/index.ts +2 -31
- package/src/tool/cronGenerator/component.astro +0 -317
- package/src/tool/cronGenerator/cron.css +315 -0
- package/src/tool/cronGenerator/entry.ts +30 -0
- package/src/tool/cronGenerator/index.ts +2 -32
- package/src/tool/cssSpecificityCalculator/component.astro +0 -205
- package/src/tool/cssSpecificityCalculator/css-specificity-calculator.css +203 -0
- package/src/tool/cssSpecificityCalculator/entry.ts +30 -0
- package/src/tool/cssSpecificityCalculator/index.ts +2 -32
- package/src/tool/cssToInlineConverter/component.astro +0 -150
- package/src/tool/cssToInlineConverter/css-to-inline-converter.css +148 -0
- package/src/tool/cssToInlineConverter/entry.ts +30 -0
- package/src/tool/cssToInlineConverter/index.ts +2 -32
- package/src/tool/duplicateCssRemover/component.astro +0 -197
- package/src/tool/duplicateCssRemover/duplicate-css-remover.css +195 -0
- package/src/tool/duplicateCssRemover/entry.ts +30 -0
- package/src/tool/duplicateCssRemover/index.ts +2 -32
- package/src/tool/generadorSecurityTxt/component.astro +0 -231
- package/src/tool/generadorSecurityTxt/entry.ts +29 -0
- package/src/tool/generadorSecurityTxt/index.ts +2 -31
- package/src/tool/generadorSecurityTxt/security-txt-generator-rfc-9116.css +229 -0
- package/src/tool/hashGenerator/component.astro +0 -229
- package/src/tool/hashGenerator/entry.ts +29 -0
- package/src/tool/hashGenerator/hash-generator.css +227 -0
- package/src/tool/hashGenerator/index.ts +2 -31
- package/src/tool/inspectorCertificadosSsl/component.astro +0 -261
- package/src/tool/inspectorCertificadosSsl/entry.ts +45 -0
- package/src/tool/inspectorCertificadosSsl/index.ts +2 -47
- package/src/tool/inspectorCertificadosSsl/ssl-tls-certificate-inspector.css +259 -0
- package/src/tool/jsonFormatter/component.astro +0 -346
- package/src/tool/jsonFormatter/entry.ts +30 -0
- package/src/tool/jsonFormatter/index.ts +2 -32
- package/src/tool/jsonFormatter/json-formatter.css +344 -0
- package/src/tool/keycode/component.astro +0 -298
- package/src/tool/keycode/entry.ts +30 -0
- package/src/tool/keycode/index.ts +2 -32
- package/src/tool/keycode/keycode.css +296 -0
- package/src/tool/llmCostCalculator/component.astro +0 -253
- package/src/tool/llmCostCalculator/entry.ts +46 -0
- package/src/tool/llmCostCalculator/index.ts +2 -48
- package/src/tool/llmCostCalculator/llm-cost-calculator.css +251 -0
- package/src/tool/mobileMockupGenerator/component.astro +0 -906
- package/src/tool/mobileMockupGenerator/entry.ts +45 -0
- package/src/tool/mobileMockupGenerator/index.ts +2 -47
- package/src/tool/mobileMockupGenerator/mobile-mockup-generator.css +904 -0
- package/src/tool/musicalTypography/component.astro +0 -291
- package/src/tool/musicalTypography/entry.ts +29 -0
- package/src/tool/musicalTypography/index.ts +2 -31
- package/src/tool/musicalTypography/musical-typography.css +289 -0
- package/src/tool/placeholderGenerator/component.astro +0 -255
- package/src/tool/placeholderGenerator/entry.ts +46 -0
- package/src/tool/placeholderGenerator/index.ts +2 -48
- package/src/tool/placeholderGenerator/placeholder-image-generator.css +253 -0
- package/src/tool/promptLibrary/component.astro +0 -689
- package/src/tool/promptLibrary/entry.ts +45 -0
- package/src/tool/promptLibrary/index.ts +2 -47
- package/src/tool/promptLibrary/prompt-library.css +687 -0
- package/src/tool/readabilityCalculator/component.astro +0 -322
- package/src/tool/readabilityCalculator/entry.ts +45 -0
- package/src/tool/readabilityCalculator/index.ts +2 -47
- package/src/tool/readabilityCalculator/visual-readability-calculator-wcag-apca.css +320 -0
- package/src/tool/svgSanitizer/component.astro +0 -289
- package/src/tool/svgSanitizer/entry.ts +45 -0
- package/src/tool/svgSanitizer/index.ts +2 -47
- package/src/tool/svgSanitizer/svg-sanitizer.css +287 -0
- package/src/tool/svgToCss/component.astro +0 -196
- package/src/tool/svgToCss/entry.ts +30 -0
- package/src/tool/svgToCss/index.ts +2 -32
- package/src/tool/svgToCss/svg-to-css-converter.css +194 -0
- package/src/tool/urlCleaner/component.astro +0 -282
- package/src/tool/urlCleaner/entry.ts +45 -0
- package/src/tool/urlCleaner/index.ts +2 -47
- package/src/tool/urlCleaner/url-tracking-cleaner.css +280 -0
- package/src/tool/urlEncoderDecoder/component.astro +0 -168
- package/src/tool/urlEncoderDecoder/entry.ts +30 -0
- package/src/tool/urlEncoderDecoder/index.ts +2 -32
- package/src/tool/urlEncoderDecoder/url-encoder-decoder.css +166 -0
- package/src/tool/utmGenerator/component.astro +0 -156
- package/src/tool/utmGenerator/entry.ts +29 -0
- package/src/tool/utmGenerator/index.ts +2 -31
- package/src/tool/utmGenerator/utm-generator.css +154 -0
- package/src/tools.ts +1 -1
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
.cc-root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.cc-container {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: 1fr;
|
|
8
|
+
gap: 2rem;
|
|
9
|
+
max-width: 1000px;
|
|
10
|
+
margin: 0 auto;
|
|
11
|
+
padding: 1rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (min-width: 1024px) {
|
|
15
|
+
.cc-container {
|
|
16
|
+
grid-template-columns: 1.2fr 0.8fr;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cc-card {
|
|
21
|
+
background: rgba(255, 255, 255, 0.7);
|
|
22
|
+
backdrop-filter: blur(12px);
|
|
23
|
+
-webkit-backdrop-filter: blur(12px);
|
|
24
|
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
25
|
+
border-radius: 1.5rem;
|
|
26
|
+
padding: 2rem;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 1.5rem;
|
|
30
|
+
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:global(.theme-dark) .cc-card {
|
|
34
|
+
background: rgba(30, 41, 59, 0.7);
|
|
35
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
36
|
+
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cc-input-grid {
|
|
40
|
+
display: grid;
|
|
41
|
+
grid-template-columns: 1fr;
|
|
42
|
+
gap: 1.5rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cc-input-group {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
gap: 0.75rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cc-label-row {
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.cc-label {
|
|
58
|
+
font-size: 0.875rem;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
color: rgb(100, 116, 139);
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
letter-spacing: 0.05em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:global(.theme-dark) .cc-label {
|
|
66
|
+
color: rgb(148, 163, 184);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cc-text-input {
|
|
70
|
+
width: 100%;
|
|
71
|
+
background: rgba(248, 250, 252, 0.8);
|
|
72
|
+
border: 1px solid rgb(203, 213, 225);
|
|
73
|
+
border-radius: 0.75rem;
|
|
74
|
+
color: rgb(30, 41, 59);
|
|
75
|
+
padding: 0.75rem 1rem;
|
|
76
|
+
font-size: 1.125rem;
|
|
77
|
+
outline: none;
|
|
78
|
+
transition: all 0.2s ease;
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:global(.theme-dark) .cc-text-input {
|
|
83
|
+
background: rgba(15, 23, 42, 0.5);
|
|
84
|
+
border-color: rgb(51, 65, 85);
|
|
85
|
+
color: rgb(241, 245, 249);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.cc-text-input:focus {
|
|
89
|
+
border-color: rgb(99, 102, 241);
|
|
90
|
+
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cc-copy-badge {
|
|
94
|
+
background: rgb(241, 245, 249);
|
|
95
|
+
border: 1px solid rgb(226, 232, 240);
|
|
96
|
+
color: rgb(100, 116, 139);
|
|
97
|
+
padding: 0.25rem 0.75rem;
|
|
98
|
+
border-radius: 2rem;
|
|
99
|
+
font-size: 0.75rem;
|
|
100
|
+
font-weight: 700;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 0.375rem;
|
|
105
|
+
transition: all 0.2s ease;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:global(.theme-dark) .cc-copy-badge {
|
|
109
|
+
background: rgba(255, 255, 255, 0.05);
|
|
110
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
111
|
+
color: rgb(148, 163, 184);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cc-copy-badge:hover {
|
|
115
|
+
background: rgb(238, 242, 255);
|
|
116
|
+
border-color: rgb(99, 102, 241);
|
|
117
|
+
color: rgb(79, 70, 229);
|
|
118
|
+
transform: translateY(-1px);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:global(.theme-dark) .cc-copy-badge:hover {
|
|
122
|
+
background: rgba(99, 102, 241, 0.1);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.cc-copy-badge.cc-copied,
|
|
126
|
+
.cc-copy-badge.cc-copied:hover {
|
|
127
|
+
background: rgb(240, 253, 244);
|
|
128
|
+
border-color: rgb(34, 197, 94);
|
|
129
|
+
color: rgb(22, 163, 74);
|
|
130
|
+
transform: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:global(.theme-dark) .cc-copy-badge.cc-copied,
|
|
134
|
+
:global(.theme-dark) .cc-copy-badge.cc-copied:hover {
|
|
135
|
+
background: rgba(34, 197, 94, 0.1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.cc-sliders {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: 1.25rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.cc-slider-group {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
gap: 0.5rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.cc-slider-header {
|
|
151
|
+
display: flex;
|
|
152
|
+
justify-content: space-between;
|
|
153
|
+
font-size: 0.75rem;
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
color: rgb(148, 163, 184);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.cc-range {
|
|
159
|
+
-webkit-appearance: none;
|
|
160
|
+
appearance: none;
|
|
161
|
+
width: 100%;
|
|
162
|
+
height: 6px;
|
|
163
|
+
background: rgb(226, 232, 240);
|
|
164
|
+
border-radius: 3px;
|
|
165
|
+
outline: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:global(.theme-dark) .cc-range {
|
|
169
|
+
background: rgb(51, 65, 85);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.cc-range::-webkit-slider-thumb {
|
|
173
|
+
-webkit-appearance: none;
|
|
174
|
+
appearance: none;
|
|
175
|
+
width: 18px;
|
|
176
|
+
height: 18px;
|
|
177
|
+
background: rgb(99, 102, 241);
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
transition: transform 0.1s ease;
|
|
181
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.cc-range:active::-webkit-slider-thumb {
|
|
185
|
+
transform: scale(1.2);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.cc-preview-section {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
gap: 1rem;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.cc-main-preview {
|
|
195
|
+
width: 100%;
|
|
196
|
+
aspect-ratio: 16/9;
|
|
197
|
+
border-radius: 1.25rem;
|
|
198
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
199
|
+
position: relative;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
transition: background-color 0.2s ease;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:global(.theme-dark) .cc-main-preview {
|
|
206
|
+
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.cc-info-overlay {
|
|
210
|
+
position: absolute;
|
|
211
|
+
bottom: 0;
|
|
212
|
+
left: 0;
|
|
213
|
+
right: 0;
|
|
214
|
+
background: rgba(0, 0, 0, 0.3);
|
|
215
|
+
backdrop-filter: blur(8px);
|
|
216
|
+
padding: 1rem;
|
|
217
|
+
color: rgb(255, 255, 255);
|
|
218
|
+
font-weight: 700;
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
align-items: center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.cc-harmony-section {
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-direction: column;
|
|
227
|
+
gap: 1rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.cc-harmony-grid {
|
|
231
|
+
display: grid;
|
|
232
|
+
grid-template-columns: repeat(5, 1fr);
|
|
233
|
+
gap: 0.75rem;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.cc-harmony-item {
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
gap: 0.5rem;
|
|
240
|
+
align-items: center;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.cc-harmony-color {
|
|
244
|
+
width: 100%;
|
|
245
|
+
aspect-ratio: 1;
|
|
246
|
+
border-radius: 0.75rem;
|
|
247
|
+
cursor: pointer;
|
|
248
|
+
transition: transform 0.2s ease;
|
|
249
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.cc-harmony-color:hover {
|
|
253
|
+
transform: scale(1.08);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.cc-harmony-label {
|
|
257
|
+
font-size: 0.6rem;
|
|
258
|
+
font-weight: 700;
|
|
259
|
+
color: rgb(148, 163, 184);
|
|
260
|
+
text-transform: uppercase;
|
|
261
|
+
text-align: center;
|
|
262
|
+
}
|
|
@@ -112,270 +112,6 @@ const t = (ui ?? {}) as ColorConverterUI;
|
|
|
112
112
|
</div>
|
|
113
113
|
</div>
|
|
114
114
|
|
|
115
|
-
<style>
|
|
116
|
-
.cc-root {
|
|
117
|
-
width: 100%;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.cc-container {
|
|
121
|
-
display: grid;
|
|
122
|
-
grid-template-columns: 1fr;
|
|
123
|
-
gap: 2rem;
|
|
124
|
-
max-width: 1000px;
|
|
125
|
-
margin: 0 auto;
|
|
126
|
-
padding: 1rem;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media (min-width: 1024px) {
|
|
130
|
-
.cc-container {
|
|
131
|
-
grid-template-columns: 1.2fr 0.8fr;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.cc-card {
|
|
136
|
-
background: rgba(255, 255, 255, 0.7);
|
|
137
|
-
backdrop-filter: blur(12px);
|
|
138
|
-
-webkit-backdrop-filter: blur(12px);
|
|
139
|
-
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
140
|
-
border-radius: 1.5rem;
|
|
141
|
-
padding: 2rem;
|
|
142
|
-
display: flex;
|
|
143
|
-
flex-direction: column;
|
|
144
|
-
gap: 1.5rem;
|
|
145
|
-
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
:global(.theme-dark) .cc-card {
|
|
149
|
-
background: rgba(30, 41, 59, 0.7);
|
|
150
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
151
|
-
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.cc-input-grid {
|
|
155
|
-
display: grid;
|
|
156
|
-
grid-template-columns: 1fr;
|
|
157
|
-
gap: 1.5rem;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.cc-input-group {
|
|
161
|
-
display: flex;
|
|
162
|
-
flex-direction: column;
|
|
163
|
-
gap: 0.75rem;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.cc-label-row {
|
|
167
|
-
display: flex;
|
|
168
|
-
justify-content: space-between;
|
|
169
|
-
align-items: center;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.cc-label {
|
|
173
|
-
font-size: 0.875rem;
|
|
174
|
-
font-weight: 700;
|
|
175
|
-
color: rgb(100, 116, 139);
|
|
176
|
-
text-transform: uppercase;
|
|
177
|
-
letter-spacing: 0.05em;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:global(.theme-dark) .cc-label {
|
|
181
|
-
color: rgb(148, 163, 184);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.cc-text-input {
|
|
185
|
-
width: 100%;
|
|
186
|
-
background: rgba(248, 250, 252, 0.8);
|
|
187
|
-
border: 1px solid rgb(203, 213, 225);
|
|
188
|
-
border-radius: 0.75rem;
|
|
189
|
-
color: rgb(30, 41, 59);
|
|
190
|
-
padding: 0.75rem 1rem;
|
|
191
|
-
font-size: 1.125rem;
|
|
192
|
-
outline: none;
|
|
193
|
-
transition: all 0.2s ease;
|
|
194
|
-
box-sizing: border-box;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
:global(.theme-dark) .cc-text-input {
|
|
198
|
-
background: rgba(15, 23, 42, 0.5);
|
|
199
|
-
border-color: rgb(51, 65, 85);
|
|
200
|
-
color: rgb(241, 245, 249);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.cc-text-input:focus {
|
|
204
|
-
border-color: rgb(99, 102, 241);
|
|
205
|
-
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.cc-copy-badge {
|
|
209
|
-
background: rgb(241, 245, 249);
|
|
210
|
-
border: 1px solid rgb(226, 232, 240);
|
|
211
|
-
color: rgb(100, 116, 139);
|
|
212
|
-
padding: 0.25rem 0.75rem;
|
|
213
|
-
border-radius: 2rem;
|
|
214
|
-
font-size: 0.75rem;
|
|
215
|
-
font-weight: 700;
|
|
216
|
-
cursor: pointer;
|
|
217
|
-
display: flex;
|
|
218
|
-
align-items: center;
|
|
219
|
-
gap: 0.375rem;
|
|
220
|
-
transition: all 0.2s ease;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:global(.theme-dark) .cc-copy-badge {
|
|
224
|
-
background: rgba(255, 255, 255, 0.05);
|
|
225
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
226
|
-
color: rgb(148, 163, 184);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.cc-copy-badge:hover {
|
|
230
|
-
background: rgb(238, 242, 255);
|
|
231
|
-
border-color: rgb(99, 102, 241);
|
|
232
|
-
color: rgb(79, 70, 229);
|
|
233
|
-
transform: translateY(-1px);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
:global(.theme-dark) .cc-copy-badge:hover {
|
|
237
|
-
background: rgba(99, 102, 241, 0.1);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.cc-copy-badge.cc-copied,
|
|
241
|
-
.cc-copy-badge.cc-copied:hover {
|
|
242
|
-
background: rgb(240, 253, 244);
|
|
243
|
-
border-color: rgb(34, 197, 94);
|
|
244
|
-
color: rgb(22, 163, 74);
|
|
245
|
-
transform: none;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
:global(.theme-dark) .cc-copy-badge.cc-copied,
|
|
249
|
-
:global(.theme-dark) .cc-copy-badge.cc-copied:hover {
|
|
250
|
-
background: rgba(34, 197, 94, 0.1);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.cc-sliders {
|
|
254
|
-
display: flex;
|
|
255
|
-
flex-direction: column;
|
|
256
|
-
gap: 1.25rem;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.cc-slider-group {
|
|
260
|
-
display: flex;
|
|
261
|
-
flex-direction: column;
|
|
262
|
-
gap: 0.5rem;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.cc-slider-header {
|
|
266
|
-
display: flex;
|
|
267
|
-
justify-content: space-between;
|
|
268
|
-
font-size: 0.75rem;
|
|
269
|
-
font-weight: 600;
|
|
270
|
-
color: rgb(148, 163, 184);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.cc-range {
|
|
274
|
-
-webkit-appearance: none;
|
|
275
|
-
appearance: none;
|
|
276
|
-
width: 100%;
|
|
277
|
-
height: 6px;
|
|
278
|
-
background: rgb(226, 232, 240);
|
|
279
|
-
border-radius: 3px;
|
|
280
|
-
outline: none;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
:global(.theme-dark) .cc-range {
|
|
284
|
-
background: rgb(51, 65, 85);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.cc-range::-webkit-slider-thumb {
|
|
288
|
-
-webkit-appearance: none;
|
|
289
|
-
appearance: none;
|
|
290
|
-
width: 18px;
|
|
291
|
-
height: 18px;
|
|
292
|
-
background: rgb(99, 102, 241);
|
|
293
|
-
border-radius: 50%;
|
|
294
|
-
cursor: pointer;
|
|
295
|
-
transition: transform 0.1s ease;
|
|
296
|
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.cc-range:active::-webkit-slider-thumb {
|
|
300
|
-
transform: scale(1.2);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.cc-preview-section {
|
|
304
|
-
display: flex;
|
|
305
|
-
flex-direction: column;
|
|
306
|
-
gap: 1rem;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.cc-main-preview {
|
|
310
|
-
width: 100%;
|
|
311
|
-
aspect-ratio: 16/9;
|
|
312
|
-
border-radius: 1.25rem;
|
|
313
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
314
|
-
position: relative;
|
|
315
|
-
overflow: hidden;
|
|
316
|
-
transition: background-color 0.2s ease;
|
|
317
|
-
cursor: pointer;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
:global(.theme-dark) .cc-main-preview {
|
|
321
|
-
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.cc-info-overlay {
|
|
325
|
-
position: absolute;
|
|
326
|
-
bottom: 0;
|
|
327
|
-
left: 0;
|
|
328
|
-
right: 0;
|
|
329
|
-
background: rgba(0, 0, 0, 0.3);
|
|
330
|
-
backdrop-filter: blur(8px);
|
|
331
|
-
padding: 1rem;
|
|
332
|
-
color: rgb(255, 255, 255);
|
|
333
|
-
font-weight: 700;
|
|
334
|
-
display: flex;
|
|
335
|
-
justify-content: space-between;
|
|
336
|
-
align-items: center;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.cc-harmony-section {
|
|
340
|
-
display: flex;
|
|
341
|
-
flex-direction: column;
|
|
342
|
-
gap: 1rem;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.cc-harmony-grid {
|
|
346
|
-
display: grid;
|
|
347
|
-
grid-template-columns: repeat(5, 1fr);
|
|
348
|
-
gap: 0.75rem;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.cc-harmony-item {
|
|
352
|
-
display: flex;
|
|
353
|
-
flex-direction: column;
|
|
354
|
-
gap: 0.5rem;
|
|
355
|
-
align-items: center;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.cc-harmony-color {
|
|
359
|
-
width: 100%;
|
|
360
|
-
aspect-ratio: 1;
|
|
361
|
-
border-radius: 0.75rem;
|
|
362
|
-
cursor: pointer;
|
|
363
|
-
transition: transform 0.2s ease;
|
|
364
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.cc-harmony-color:hover {
|
|
368
|
-
transform: scale(1.08);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.cc-harmony-label {
|
|
372
|
-
font-size: 0.6rem;
|
|
373
|
-
font-weight: 700;
|
|
374
|
-
color: rgb(148, 163, 184);
|
|
375
|
-
text-transform: uppercase;
|
|
376
|
-
text-align: center;
|
|
377
|
-
}
|
|
378
|
-
</style>
|
|
379
115
|
|
|
380
116
|
<script>
|
|
381
117
|
import type { ColorConverterUI } from './ui';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DeveloperToolEntry, ToolLocaleContent } from '../../types';
|
|
2
|
+
import type { ColorConverterUI } from './ui';
|
|
3
|
+
|
|
4
|
+
export type ColorConverterLocaleContent = ToolLocaleContent<ColorConverterUI>;
|
|
5
|
+
|
|
6
|
+
export const colorConverter: DeveloperToolEntry<ColorConverterUI> = {
|
|
7
|
+
id: 'color-converter',
|
|
8
|
+
icons: {
|
|
9
|
+
bg: 'mdi:palette',
|
|
10
|
+
fg: 'mdi:eyedropper',
|
|
11
|
+
},
|
|
12
|
+
i18n: {
|
|
13
|
+
de: async () => (await import('./i18n/de')).content,
|
|
14
|
+
en: async () => (await import('./i18n/en')).content,
|
|
15
|
+
es: async () => (await import('./i18n/es')).content,
|
|
16
|
+
fr: async () => (await import('./i18n/fr')).content,
|
|
17
|
+
id: async () => (await import('./i18n/id')).content,
|
|
18
|
+
it: async () => (await import('./i18n/it')).content,
|
|
19
|
+
ja: async () => (await import('./i18n/ja')).content,
|
|
20
|
+
ko: async () => (await import('./i18n/ko')).content,
|
|
21
|
+
nl: async () => (await import('./i18n/nl')).content,
|
|
22
|
+
pl: async () => (await import('./i18n/pl')).content,
|
|
23
|
+
pt: async () => (await import('./i18n/pt')).content,
|
|
24
|
+
ru: async () => (await import('./i18n/ru')).content,
|
|
25
|
+
sv: async () => (await import('./i18n/sv')).content,
|
|
26
|
+
tr: async () => (await import('./i18n/tr')).content,
|
|
27
|
+
zh: async () => (await import('./i18n/zh')).content,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type ColorConverterLocaleContent = ToolLocaleContent<ColorConverterUI>;
|
|
5
|
-
|
|
6
|
-
export const colorConverter: DeveloperToolEntry<ColorConverterUI> = {
|
|
7
|
-
id: 'color-converter',
|
|
8
|
-
icons: {
|
|
9
|
-
bg: 'mdi:palette',
|
|
10
|
-
fg: 'mdi:eyedropper',
|
|
11
|
-
},
|
|
12
|
-
i18n: {
|
|
13
|
-
de: async () => (await import('./i18n/de')).content,
|
|
14
|
-
en: async () => (await import('./i18n/en')).content,
|
|
15
|
-
es: async () => (await import('./i18n/es')).content,
|
|
16
|
-
fr: async () => (await import('./i18n/fr')).content,
|
|
17
|
-
id: async () => (await import('./i18n/id')).content,
|
|
18
|
-
it: async () => (await import('./i18n/it')).content,
|
|
19
|
-
ja: async () => (await import('./i18n/ja')).content,
|
|
20
|
-
ko: async () => (await import('./i18n/ko')).content,
|
|
21
|
-
nl: async () => (await import('./i18n/nl')).content,
|
|
22
|
-
pl: async () => (await import('./i18n/pl')).content,
|
|
23
|
-
pt: async () => (await import('./i18n/pt')).content,
|
|
24
|
-
ru: async () => (await import('./i18n/ru')).content,
|
|
25
|
-
sv: async () => (await import('./i18n/sv')).content,
|
|
26
|
-
tr: async () => (await import('./i18n/tr')).content,
|
|
27
|
-
zh: async () => (await import('./i18n/zh')).content,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { colorConverter } from './entry';
|
|
2
|
+
export * from './entry';
|
|
32
3
|
export const COLOR_CONVERTER_TOOL: ToolDefinition = {
|
|
33
4
|
entry: colorConverter,
|
|
34
5
|
Component: () => import('./component.astro'),
|