@jjlmoya/utils-textiles 1.1.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.
Files changed (134) hide show
  1. package/package.json +60 -0
  2. package/src/category/i18n/en.ts +76 -0
  3. package/src/category/i18n/es.ts +76 -0
  4. package/src/category/i18n/fr.ts +73 -0
  5. package/src/category/index.ts +17 -0
  6. package/src/category/seo.astro +15 -0
  7. package/src/components/PreviewNavSidebar.astro +116 -0
  8. package/src/components/PreviewToolbar.astro +143 -0
  9. package/src/data.ts +11 -0
  10. package/src/env.d.ts +5 -0
  11. package/src/index.ts +32 -0
  12. package/src/layouts/PreviewLayout.astro +117 -0
  13. package/src/pages/[locale]/[slug].astro +146 -0
  14. package/src/pages/[locale].astro +253 -0
  15. package/src/pages/index.astro +4 -0
  16. package/src/tests/faq_count.test.ts +19 -0
  17. package/src/tests/locale_completeness.test.ts +42 -0
  18. package/src/tests/mocks/astro_mock.js +2 -0
  19. package/src/tests/no_h1_in_components.test.ts +48 -0
  20. package/src/tests/seo_length.test.ts +22 -0
  21. package/src/tests/title_separators.test.ts +40 -0
  22. package/src/tests/tool_validation.test.ts +17 -0
  23. package/src/tool/burnTest/bibliography.astro +34 -0
  24. package/src/tool/burnTest/component.astro +602 -0
  25. package/src/tool/burnTest/i18n/en.ts +225 -0
  26. package/src/tool/burnTest/i18n/es.ts +225 -0
  27. package/src/tool/burnTest/i18n/fr.ts +225 -0
  28. package/src/tool/burnTest/index.ts +34 -0
  29. package/src/tool/burnTest/logic.ts +3 -0
  30. package/src/tool/burnTest/seo.astro +40 -0
  31. package/src/tool/burnTest/ui.ts +36 -0
  32. package/src/tool/clothingSizeConverter/bibliography.astro +34 -0
  33. package/src/tool/clothingSizeConverter/component.astro +1226 -0
  34. package/src/tool/clothingSizeConverter/i18n/en.ts +356 -0
  35. package/src/tool/clothingSizeConverter/i18n/es.ts +356 -0
  36. package/src/tool/clothingSizeConverter/i18n/fr.ts +356 -0
  37. package/src/tool/clothingSizeConverter/index.ts +34 -0
  38. package/src/tool/clothingSizeConverter/logic.ts +30 -0
  39. package/src/tool/clothingSizeConverter/seo.astro +40 -0
  40. package/src/tool/clothingSizeConverter/ui.ts +70 -0
  41. package/src/tool/fabricProjectCalculator/bibliography.astro +19 -0
  42. package/src/tool/fabricProjectCalculator/component.astro +914 -0
  43. package/src/tool/fabricProjectCalculator/i18n/en.ts +250 -0
  44. package/src/tool/fabricProjectCalculator/i18n/es.ts +250 -0
  45. package/src/tool/fabricProjectCalculator/i18n/fr.ts +250 -0
  46. package/src/tool/fabricProjectCalculator/index.ts +34 -0
  47. package/src/tool/fabricProjectCalculator/logic.ts +89 -0
  48. package/src/tool/fabricProjectCalculator/seo.astro +40 -0
  49. package/src/tool/fabricProjectCalculator/ui.ts +57 -0
  50. package/src/tool/fabricTruth/bibliography.astro +40 -0
  51. package/src/tool/fabricTruth/component.astro +708 -0
  52. package/src/tool/fabricTruth/i18n/en.ts +282 -0
  53. package/src/tool/fabricTruth/i18n/es.ts +316 -0
  54. package/src/tool/fabricTruth/i18n/fr.ts +282 -0
  55. package/src/tool/fabricTruth/index.ts +34 -0
  56. package/src/tool/fabricTruth/logic.ts +91 -0
  57. package/src/tool/fabricTruth/seo.astro +40 -0
  58. package/src/tool/fabricTruth/ui.ts +28 -0
  59. package/src/tool/fiberPrep/bibliography.astro +33 -0
  60. package/src/tool/fiberPrep/component.astro +987 -0
  61. package/src/tool/fiberPrep/i18n/en.ts +225 -0
  62. package/src/tool/fiberPrep/i18n/es.ts +225 -0
  63. package/src/tool/fiberPrep/i18n/fr.ts +225 -0
  64. package/src/tool/fiberPrep/index.ts +34 -0
  65. package/src/tool/fiberPrep/logic.ts +36 -0
  66. package/src/tool/fiberPrep/seo.astro +40 -0
  67. package/src/tool/fiberPrep/ui.ts +38 -0
  68. package/src/tool/knittingGauge/bibliography.astro +14 -0
  69. package/src/tool/knittingGauge/component.astro +828 -0
  70. package/src/tool/knittingGauge/i18n/en.ts +234 -0
  71. package/src/tool/knittingGauge/i18n/es.ts +234 -0
  72. package/src/tool/knittingGauge/i18n/fr.ts +234 -0
  73. package/src/tool/knittingGauge/index.ts +34 -0
  74. package/src/tool/knittingGauge/logic.ts +28 -0
  75. package/src/tool/knittingGauge/seo.astro +40 -0
  76. package/src/tool/knittingGauge/ui.ts +41 -0
  77. package/src/tool/laundryGuide/bibliography.astro +33 -0
  78. package/src/tool/laundryGuide/component.astro +486 -0
  79. package/src/tool/laundryGuide/data-en.ts +166 -0
  80. package/src/tool/laundryGuide/data-es.ts +166 -0
  81. package/src/tool/laundryGuide/data-fr.ts +103 -0
  82. package/src/tool/laundryGuide/i18n/en.ts +275 -0
  83. package/src/tool/laundryGuide/i18n/es.ts +275 -0
  84. package/src/tool/laundryGuide/i18n/fr.ts +291 -0
  85. package/src/tool/laundryGuide/index.ts +29 -0
  86. package/src/tool/laundryGuide/logic.ts +19 -0
  87. package/src/tool/laundryGuide/seo.astro +40 -0
  88. package/src/tool/needleConverter/bibliography.astro +14 -0
  89. package/src/tool/needleConverter/component.astro +518 -0
  90. package/src/tool/needleConverter/i18n/en.ts +217 -0
  91. package/src/tool/needleConverter/i18n/es.ts +217 -0
  92. package/src/tool/needleConverter/i18n/fr.ts +217 -0
  93. package/src/tool/needleConverter/index.ts +34 -0
  94. package/src/tool/needleConverter/logic.ts +31 -0
  95. package/src/tool/needleConverter/seo.astro +15 -0
  96. package/src/tool/needleConverter/ui.ts +17 -0
  97. package/src/tool/sewingPatternScaler/bibliography.astro +14 -0
  98. package/src/tool/sewingPatternScaler/component.astro +550 -0
  99. package/src/tool/sewingPatternScaler/i18n/en.ts +196 -0
  100. package/src/tool/sewingPatternScaler/i18n/es.ts +231 -0
  101. package/src/tool/sewingPatternScaler/i18n/fr.ts +187 -0
  102. package/src/tool/sewingPatternScaler/index.ts +34 -0
  103. package/src/tool/sewingPatternScaler/logic.ts +35 -0
  104. package/src/tool/sewingPatternScaler/seo.astro +49 -0
  105. package/src/tool/sewingPatternScaler/ui.ts +29 -0
  106. package/src/tool/shoeSizeConverter/bibliography.astro +34 -0
  107. package/src/tool/shoeSizeConverter/component.astro +437 -0
  108. package/src/tool/shoeSizeConverter/i18n/en.ts +188 -0
  109. package/src/tool/shoeSizeConverter/i18n/es.ts +188 -0
  110. package/src/tool/shoeSizeConverter/i18n/fr.ts +188 -0
  111. package/src/tool/shoeSizeConverter/index.ts +34 -0
  112. package/src/tool/shoeSizeConverter/logic.ts +8 -0
  113. package/src/tool/shoeSizeConverter/seo.astro +40 -0
  114. package/src/tool/shoeSizeConverter/ui.ts +21 -0
  115. package/src/tool/stainChemistry/bibliography.astro +40 -0
  116. package/src/tool/stainChemistry/component.astro +717 -0
  117. package/src/tool/stainChemistry/i18n/en.ts +303 -0
  118. package/src/tool/stainChemistry/i18n/es.ts +300 -0
  119. package/src/tool/stainChemistry/i18n/fr.ts +310 -0
  120. package/src/tool/stainChemistry/index.ts +34 -0
  121. package/src/tool/stainChemistry/logic.ts +11 -0
  122. package/src/tool/stainChemistry/seo.astro +40 -0
  123. package/src/tool/stainChemistry/ui.ts +51 -0
  124. package/src/tool/yarnCalculator/bibliography.astro +19 -0
  125. package/src/tool/yarnCalculator/component.astro +792 -0
  126. package/src/tool/yarnCalculator/i18n/en.ts +310 -0
  127. package/src/tool/yarnCalculator/i18n/es.ts +310 -0
  128. package/src/tool/yarnCalculator/i18n/fr.ts +310 -0
  129. package/src/tool/yarnCalculator/index.ts +34 -0
  130. package/src/tool/yarnCalculator/logic.ts +84 -0
  131. package/src/tool/yarnCalculator/seo.astro +14 -0
  132. package/src/tool/yarnCalculator/ui.ts +42 -0
  133. package/src/tools.ts +16 -0
  134. package/src/types.ts +72 -0
@@ -0,0 +1,282 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { FabricTruthUI } from '../ui';
4
+
5
+ const slug = 'fabric-truthfulness';
6
+ const title = 'Fabric Truthfulness: Textile Quality Analysis';
7
+ const description = 'Discover the real quality of your garments by analyzing their composition. Is it real cotton or expensive plastic? Scientific fiber analysis.';
8
+
9
+ const faqData = [
10
+ {
11
+ question: 'What is "Greenwashing" in fashion?',
12
+ answer: 'It\'s a marketing technique where brands use terms like "Eco-Friendly" or "Sustainable" without real proof. Analyzing the actual composition of fibers is the only way to verify if a garment is truly natural or synthetic.',
13
+ },
14
+ {
15
+ question: 'Why is polyester usually lower quality than cotton?',
16
+ answer: 'Polyester is plastic (PET). While durable, it doesn\'t breathe, promotes odor from bacteria, and sheds microplastics with every wash. Natural fibers like cotton or linen offer better thermal regulation.',
17
+ },
18
+ {
19
+ question: 'Is it bad if my clothes have elastane?',
20
+ answer: 'In small amounts (1-5%), elastane (Lycra) provides comfort and fit. However, it greatly complicates garment recycling by mixing plastic with natural fibers, which usually indicates a "fast fashion" garment.',
21
+ },
22
+ {
23
+ question: 'How to spot a high-quality garment by its label?',
24
+ answer: 'Look for single-material compositions (100% Cotton, 100% Wool). Complex blends are usually used to cut production costs and hide synthetic fibers under attractive brand names.',
25
+ },
26
+ ];
27
+
28
+ const howToData = [
29
+ {
30
+ name: 'Locate the internal label',
31
+ text: 'Find the white composition label that\'s usually on the inside seam or neck of your garment.',
32
+ },
33
+ {
34
+ name: 'Identify the components',
35
+ text: 'Read the percentages of each fiber (e.g., 70% Cotton, 30% Polyester).',
36
+ },
37
+ {
38
+ name: 'Enter the data in the analyzer',
39
+ text: 'Type the proportions of the fibers in our tool to get a technical quality score.',
40
+ },
41
+ {
42
+ name: 'Interpret the diagnosis',
43
+ text: 'Review the generated report to understand if your garment is breathable, durable, or if it requires special care due to its synthetic composition.',
44
+ },
45
+ ];
46
+
47
+ const faqSchema: WithContext<FAQPage> = {
48
+ '@context': 'https://schema.org',
49
+ '@type': 'FAQPage',
50
+ mainEntity: faqData.map((item) => ({
51
+ '@type': 'Question',
52
+ name: item.question,
53
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
54
+ })),
55
+ };
56
+
57
+ const howToSchema: WithContext<HowTo> = {
58
+ '@context': 'https://schema.org',
59
+ '@type': 'HowTo',
60
+ name: title,
61
+ description: description,
62
+ step: howToData.map((step) => ({
63
+ '@type': 'HowToStep',
64
+ name: step.name,
65
+ text: step.text,
66
+ })),
67
+ };
68
+
69
+ const appSchema: WithContext<SoftwareApplication> = {
70
+ '@context': 'https://schema.org',
71
+ '@type': 'SoftwareApplication',
72
+ name: title,
73
+ description: description,
74
+ applicationCategory: 'UtilityApplication',
75
+ operatingSystem: 'All',
76
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
77
+ inLanguage: 'en',
78
+ };
79
+
80
+ export const content: ToolLocaleContent<FabricTruthUI> = {
81
+ slug,
82
+ title,
83
+ description,
84
+ ui: {
85
+ toolTitle: 'Fabric Truthfulness',
86
+ addFiber: 'Add Fiber',
87
+ total: 'Total',
88
+ composition: 'Composition Analysis',
89
+ description: 'Add the percentages as they appear on your garment label to discover the truth about its quality.',
90
+ verdict: 'Verdict',
91
+ breathability: 'Breathability',
92
+ durability: 'Durability',
93
+ warmth: 'Warmth',
94
+ careWarning: 'Special Care Warning',
95
+ specialCareWarning: 'STANDARD WASHING: Always follow the instructions on the physical label.',
96
+ validationError: 'The composition must add up to exactly 100% to see the verdict',
97
+ actualTotal: 'Actual',
98
+ missingLabel: 'missing',
99
+ disclaimer: 'Breathability, durability, and warmth data are estimates based on industry averages for each fiber type.',
100
+ careWarnings: {
101
+ delicate: 'VERY DELICATE: Hand wash in cold water. Do not use dryer. Avoid wringing.',
102
+ wool: 'WOOL / NOBLE HAIR: Wash in cold water with special program. Dry flat to prevent deformation. Do not use dryer.',
103
+ linen: 'LINEN: Tends to wrinkle greatly. Iron slightly damp for best results.',
104
+ semisynthetic: 'SEMI-SYNTHETICS: Weakens when wet. Handle with care and do not spin hard.',
105
+ standard: 'STANDARD WASHING: Always follow the instructions on the physical label.',
106
+ },
107
+ fiberData: {
108
+ cotton: {
109
+ name: 'Cotton',
110
+ family: 'natural',
111
+ breathability: 9,
112
+ durability: 7,
113
+ warmth: 4,
114
+ isNoble: false,
115
+ },
116
+ linen: {
117
+ name: 'Linen',
118
+ family: 'natural',
119
+ breathability: 10,
120
+ durability: 9,
121
+ warmth: 2,
122
+ isNoble: true,
123
+ },
124
+ wool: {
125
+ name: 'Wool / Merino',
126
+ family: 'natural',
127
+ breathability: 8,
128
+ durability: 6,
129
+ warmth: 10,
130
+ isNoble: true,
131
+ },
132
+ silk: {
133
+ name: 'Silk',
134
+ family: 'natural',
135
+ breathability: 7,
136
+ durability: 5,
137
+ warmth: 6,
138
+ isNoble: true,
139
+ },
140
+ cashmere: {
141
+ name: 'Cashmere',
142
+ family: 'natural',
143
+ breathability: 9,
144
+ durability: 5,
145
+ warmth: 10,
146
+ isNoble: true,
147
+ },
148
+ mohair: {
149
+ name: 'Mohair',
150
+ family: 'natural',
151
+ breathability: 8,
152
+ durability: 9,
153
+ warmth: 9,
154
+ isNoble: true,
155
+ },
156
+ angora: {
157
+ name: 'Angora',
158
+ family: 'natural',
159
+ breathability: 8,
160
+ durability: 4,
161
+ warmth: 10,
162
+ isNoble: true,
163
+ },
164
+ alpaca: {
165
+ name: 'Alpaca',
166
+ family: 'natural',
167
+ breathability: 9,
168
+ durability: 8,
169
+ warmth: 10,
170
+ isNoble: true,
171
+ },
172
+ polyester: {
173
+ name: 'Polyester',
174
+ family: 'synthetic',
175
+ breathability: 2,
176
+ durability: 10,
177
+ warmth: 5,
178
+ isNoble: false,
179
+ },
180
+ viscose: {
181
+ name: 'Viscose / Rayon',
182
+ family: 'artificial',
183
+ breathability: 8,
184
+ durability: 4,
185
+ warmth: 3,
186
+ isNoble: false,
187
+ },
188
+ nylon: {
189
+ name: 'Nylon (Polyamide)',
190
+ family: 'synthetic',
191
+ breathability: 3,
192
+ durability: 10,
193
+ warmth: 4,
194
+ isNoble: false,
195
+ },
196
+ acrylic: {
197
+ name: 'Acrylic',
198
+ family: 'synthetic',
199
+ breathability: 4,
200
+ durability: 6,
201
+ warmth: 8,
202
+ isNoble: false,
203
+ },
204
+ },
205
+ verdicts: {
206
+ plasticy: {
207
+ label: 'Expensive Plastic',
208
+ description: 'Most of this garment is petroleum. Be prepared to sweat and see pilling quickly.',
209
+ },
210
+ hook: {
211
+ label: 'Marketing Hook',
212
+ description: 'That small percentage of noble fiber is only there for the label. You won\'t notice its benefits.',
213
+ },
214
+ fragile: {
215
+ label: 'Soft but Fragile',
216
+ description: 'Very pleasant to the touch, but be careful when washing: tends to deform and shrink easily.',
217
+ },
218
+ natural: {
219
+ label: 'Natural Quality',
220
+ description: 'Breathable and durable garment. Ideal for sensitive skin and prolonged use.',
221
+ },
222
+ technical: {
223
+ label: 'Technical / Ultra-Synthetic',
224
+ description: 'Unless it\'s specific sports clothing, you\'re paying for pure plastic.',
225
+ },
226
+ luxury: {
227
+ label: 'Real Luxury',
228
+ description: 'An investment in comfort and durability. Treat it with the respect it deserves.',
229
+ },
230
+ balanced: {
231
+ label: 'Balanced Blend',
232
+ description: 'A functional combination, probably seeking to balance cost and durability.',
233
+ },
234
+ },
235
+ },
236
+ seo: [
237
+ { type: 'title', text: 'The Truth Behind the Label: A Master Guide to Textile Composition', level: 2 },
238
+ { type: 'paragraph', html: 'Ever wondered why that branded shirt makes you sweat so much, or why that "wool" sweater is unbearably itchy? The answer isn\'t in the design, but in the chemistry of its fibers.' },
239
+ { type: 'paragraph', html: 'In a world dominated by <strong>Fast Fashion</strong>, the quality of fabrics has taken a back seat to ephemeral aesthetics. However, understanding textile composition is the only way to make a smart, durable, and skin-respecting purchase. Our <strong>Fabric Truthfulness</strong> tool analyzes official percentages to reveal whether you\'re facing a quality garment or just a block of processed plastic.' },
240
+ { type: 'title', text: 'Our Methodology', level: 2 },
241
+ { type: 'paragraph', html: 'We use a weighted algorithm based on three fundamental pillars drawn from European and North American industrial standards:' },
242
+ { type: 'list', items: ['<strong>Breathability:</strong> The fiber\'s ability to allow water vapor and air to pass through.', '<strong>Durability:</strong> Resistance to abrasion, traction, and pilling formation.', '<strong>Thermal Efficiency:</strong> Capacity for heat retention or mechanical coolness.'] },
243
+ { type: 'tip', title: 'Important', html: 'The law requires that all garments sold in the EU and US list their components in decreasing order of percentage. If a garment has no label or the label is illegible, be wary: it probably doesn\'t meet minimum textile safety standards.' },
244
+ { type: 'title', text: 'Common "Deceptions" in Retail', level: 2 },
245
+ { type: 'paragraph', html: 'There are sophisticated marketing techniques designed to elevate the perceived value of a mediocre garment. Here\'s how to spot them:' },
246
+ { type: 'card', title: 'The Noble Fiber Hook', icon: 'mdi:alert', html: 'You\'ll see labels saying "WITH CASHMERE" or "WITH SILK" in large letters. Looking at the composition, you discover 3% silk and 97% polyester. That 3% adds no softness, shine, or warmth; it\'s just there so the brand can raise the price by 20%.' },
247
+ { type: 'card', title: 'The "Eco-Friendly Viscose" Myth', icon: 'mdi:leaf', html: 'Although viscose comes from cellulose (wood), its current manufacturing process is often highly polluting, and the final result is a fiber that weakens drastically when wet. Unless it\'s Lyocell or Tencel, its durability is limited.' },
248
+ { type: 'title', text: 'In-Depth Analysis by Categories', level: 2 },
249
+ { type: 'title', text: '1. Natural Fibers (Proudly Organic)', level: 3 },
250
+ { type: 'paragraph', html: 'These are the gold standard. Long-staple Cotton (like Pima or Egyptian) offers eternal softness. Linen is scientifically the best fiber for heat due to its molecular structure that repels heat and absorbs moisture. Wool and Hemp are natural antibacterials; they don\'t need frequent washing because they don\'t retain odors.' },
251
+ { type: 'title', text: '2. Semi-Synthetic Fibers (The Hybrid)', level: 3 },
252
+ { type: 'paragraph', html: 'Here we find Viscose, Rayon, and Modal. They feel like silk but cost like cotton. They\'re excellent for garments with lots of drape, but they\'re "thirsty": they absorb lots of water and take a long time to dry, which can promote mold growth if not cared for. Lyocell (Tencel) is the premium and sustainable version of this group, with a closed production cycle and greater resistance.' },
253
+ { type: 'title', text: '3. Synthetic Fibers (Spun Plastics)', level: 3 },
254
+ { type: 'paragraph', html: 'Polyester is the king of the market. It\'s cheap, doesn\'t wrinkle, and is eternal (literally, it will take 200 years to decompose). The problem is that it doesn\'t breathe. It creates a humid microclimate between the fabric and your skin, the ideal breeding ground for bacteria. Acrylic is the cheap imitation of wool: it warms, but generates lots of static electricity and fills with pills in two washes.' },
255
+ { type: 'title', text: 'Textile Survival Tips', level: 2 },
256
+ { type: 'paragraph', html: 'Even the best garment in the world can be ruined in a single improper wash. Here are the golden rules:' },
257
+ { type: 'tip', title: 'Cold Water is Your Friend', html: '90% of garments don\'t need more than 30°C. Heat degrades elastic fibers and shrinks natural ones.' },
258
+ { type: 'tip', title: 'Less is More (Detergent)', html: 'Excess soap leaves residue that attracts dirt and makes clothes feel stiff.' },
259
+ { type: 'tip', title: 'Dryer: The Subtle Enemy', html: 'The lint you see in the dryer filter is pieces of your clothes that have come off due to friction and heat.' },
260
+ { type: 'tip', title: 'Inside-Out Washing', html: 'Protects color and embroidery from rubbing against the drum and other garments.' },
261
+ { type: 'paragraph', html: '"Buy less, choose better, and make it last." — This calculator is your first step towards a conscious and high-quality wardrobe.' },
262
+ ],
263
+ faqTitle: 'Frequently Asked Questions',
264
+ faq: faqData,
265
+ bibliographyTitle: 'Bibliography',
266
+ bibliography: [
267
+ {
268
+ name: 'FTC - Textile Labeling Guide',
269
+ url: 'https://www.ftc.gov/business-guidance/resources/textile-fiber-products-guides',
270
+ },
271
+ {
272
+ name: 'European Commission - Textile Regulation',
273
+ url: 'https://ec.europa.eu/growth/tools-databases/nando/',
274
+ },
275
+ {
276
+ name: 'ISO 3758:2012 - Textile Care Symbols',
277
+ url: 'https://www.iso.org/standard/60465.html',
278
+ },
279
+ ],
280
+ howTo: howToData,
281
+ schemas: [faqSchema, howToSchema, appSchema],
282
+ };
@@ -0,0 +1,316 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { FabricTruthUI } from '../ui';
4
+
5
+ const slug = 'veracidad-textil';
6
+ const title = 'Veracidad Textil: Análisis de Calidad de Fibras';
7
+ const description = 'Descubre la calidad real de tus prendas analizando su composición. ¿Es algodón real o plástico caro? Análisis científico de fibras.';
8
+
9
+ const faqData = [
10
+ {
11
+ question: '¿Qué es el "Greenwashing" en la moda?',
12
+ answer: 'Es una técnica de marketing donde las marcas usan términos como "Ecológico" o "Sostenible" sin pruebas reales. Analizar la composición real de las fibras es la única forma de verificar si una prenda es realmente natural o sintética.',
13
+ },
14
+ {
15
+ question: '¿Por qué el poliéster suele ser de menor calidad que el algodón?',
16
+ answer: 'El poliéster es un plástico (PET). Aunque es duradero, no transpira, favorece el mal olor por bacterias y genera microplásticos en cada lavado. Las fibras naturales como el algodón o el lino ofrecen mejor regulación térmica.',
17
+ },
18
+ {
19
+ question: '¿Es malo que mi ropa tenga elastano?',
20
+ answer: 'En pequeñas cantidades (1-5%), el elastano (Lycra) aporta comodidad y ajuste. Sin embargo, dificulta enormemente el reciclaje de la prenda al mezclar plástico con fibras naturales, lo que suele indicar una prenda de "fast fashion".',
21
+ },
22
+ {
23
+ question: '¿Cómo detectar una prenda de alta calidad por su etiqueta?',
24
+ answer: 'Busca composiciones monomateriales (100% Algodón, 100% Lana). Las mezclas complejas suelen usarse para abaratar costes de producción y ocultan fibras sintéticas bajo nombres comerciales atractivos.',
25
+ },
26
+ ];
27
+
28
+ const howToData = [
29
+ {
30
+ name: 'Localizar la etiqueta interna',
31
+ text: 'Busca la etiqueta blanca de composición que suele estar en el lateral interior o en el cuello de tu prenda.',
32
+ },
33
+ {
34
+ name: 'Identificar los componentes',
35
+ text: 'Lee los porcentajes de cada fibra (ej. 70% Algodón, 30% Poliéster).',
36
+ },
37
+ {
38
+ name: 'Introducir los datos en el analizador',
39
+ text: 'Escribe las proporciones de las fibras en nuestra herramienta para obtener una puntuación técnica de calidad.',
40
+ },
41
+ {
42
+ name: 'Interpretar el diagnóstico',
43
+ text: 'Revisa el informe generado para entender si tu prenda es transpirable, duradera o si requiere cuidados especiales por su composición sintética.',
44
+ },
45
+ ];
46
+
47
+ const faqSchema: WithContext<FAQPage> = {
48
+ '@context': 'https://schema.org',
49
+ '@type': 'FAQPage',
50
+ mainEntity: faqData.map((item) => ({
51
+ '@type': 'Question',
52
+ name: item.question,
53
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
54
+ })),
55
+ };
56
+
57
+ const howToSchema: WithContext<HowTo> = {
58
+ '@context': 'https://schema.org',
59
+ '@type': 'HowTo',
60
+ name: title,
61
+ description: description,
62
+ step: howToData.map((step) => ({
63
+ '@type': 'HowToStep',
64
+ name: step.name,
65
+ text: step.text,
66
+ })),
67
+ };
68
+
69
+ const appSchema: WithContext<SoftwareApplication> = {
70
+ '@context': 'https://schema.org',
71
+ '@type': 'SoftwareApplication',
72
+ name: title,
73
+ description: description,
74
+ applicationCategory: 'UtilityApplication',
75
+ operatingSystem: 'All',
76
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
77
+ inLanguage: 'es',
78
+ };
79
+
80
+ export const content: ToolLocaleContent<FabricTruthUI> = {
81
+ slug,
82
+ title,
83
+ description,
84
+ ui: {
85
+ toolTitle: 'Veracidad Textil',
86
+ addFiber: 'Añadir Fibra',
87
+ total: 'Total',
88
+ composition: 'Análisis de Composición',
89
+ description: 'Añade los porcentajes tal cual aparecen en la etiqueta de tu prenda para descubrir la verdad sobre su calidad.',
90
+ verdict: 'Veredicto',
91
+ breathability: 'Transpirabilidad',
92
+ durability: 'Durabilidad',
93
+ warmth: 'Calidez',
94
+ careWarning: 'Aviso de Cuidados Especiales',
95
+ specialCareWarning: 'LAVADO ESTÁNDAR: Sigue siempre las instrucciones de la etiqueta física.',
96
+ validationError: 'La composición debe sumar exactamente 100% para ver el veredicto',
97
+ actualTotal: 'Actual',
98
+ missingLabel: 'faltan',
99
+ disclaimer: 'Los datos de transpirabilidad, durabilidad y calidez son estimaciones basadas en promedios de la industria para cada tipo de fibra.',
100
+ careWarnings: {
101
+ delicate: 'MUY DELICADO: Lavar a mano en frío. No usar secadora. Evitar escurrir con fuerza.',
102
+ wool: 'LANAS / PELO NOBLE: Lavar en frío con programa especial. Secar en plano para evitar deformaciones. No usar secadora.',
103
+ linen: 'LINO: Tiende a arrugarse mucho. Planchar ligeramente húmedo para mejores resultados.',
104
+ semisynthetic: 'SEMISINTÉTICOS: Se debilita en mojado. Tratar con cuidado y no centrifugar fuerte.',
105
+ standard: 'LAVADO ESTÁNDAR: Sigue siempre las instrucciones de la etiqueta física.',
106
+ },
107
+ fiberData: {
108
+ cotton: {
109
+ name: 'Algodón',
110
+ family: 'natural',
111
+ breathability: 9,
112
+ durability: 7,
113
+ warmth: 4,
114
+ isNoble: false,
115
+ },
116
+ linen: {
117
+ name: 'Lino',
118
+ family: 'natural',
119
+ breathability: 10,
120
+ durability: 9,
121
+ warmth: 2,
122
+ isNoble: true,
123
+ },
124
+ wool: {
125
+ name: 'Lana / Merino',
126
+ family: 'natural',
127
+ breathability: 8,
128
+ durability: 6,
129
+ warmth: 10,
130
+ isNoble: true,
131
+ },
132
+ silk: {
133
+ name: 'Seda',
134
+ family: 'natural',
135
+ breathability: 7,
136
+ durability: 5,
137
+ warmth: 6,
138
+ isNoble: true,
139
+ },
140
+ cashmere: {
141
+ name: 'Cashmere',
142
+ family: 'natural',
143
+ breathability: 9,
144
+ durability: 5,
145
+ warmth: 10,
146
+ isNoble: true,
147
+ },
148
+ mohair: {
149
+ name: 'Mohair',
150
+ family: 'natural',
151
+ breathability: 8,
152
+ durability: 9,
153
+ warmth: 9,
154
+ isNoble: true,
155
+ },
156
+ angora: {
157
+ name: 'Angora',
158
+ family: 'natural',
159
+ breathability: 8,
160
+ durability: 4,
161
+ warmth: 10,
162
+ isNoble: true,
163
+ },
164
+ alpaca: {
165
+ name: 'Alpaca',
166
+ family: 'natural',
167
+ breathability: 9,
168
+ durability: 8,
169
+ warmth: 10,
170
+ isNoble: true,
171
+ },
172
+ polyester: {
173
+ name: 'Poliéster',
174
+ family: 'synthetic',
175
+ breathability: 2,
176
+ durability: 10,
177
+ warmth: 5,
178
+ isNoble: false,
179
+ },
180
+ viscose: {
181
+ name: 'Viscosa / Rayón',
182
+ family: 'artificial',
183
+ breathability: 8,
184
+ durability: 4,
185
+ warmth: 3,
186
+ isNoble: false,
187
+ },
188
+ nylon: {
189
+ name: 'Nailon (Poliamida)',
190
+ family: 'synthetic',
191
+ breathability: 3,
192
+ durability: 10,
193
+ warmth: 4,
194
+ isNoble: false,
195
+ },
196
+ acrylic: {
197
+ name: 'Acrílico',
198
+ family: 'synthetic',
199
+ breathability: 4,
200
+ durability: 6,
201
+ warmth: 8,
202
+ isNoble: false,
203
+ },
204
+ },
205
+ verdicts: {
206
+ plasticy: {
207
+ label: 'Plástico Caro',
208
+ description: 'La mayoría de esta prenda es petróleo. Prepárate para sudar y que aparezcan bolitas rápido.',
209
+ },
210
+ hook: {
211
+ label: 'Gancho de Marketing',
212
+ description: 'Ese pequeño porcentaje de fibra noble está ahí solo para ponerlo en la etiqueta. No notarás sus beneficios.',
213
+ },
214
+ fragile: {
215
+ label: 'Suave pero Frágil',
216
+ description: 'Muy agradable al tacto, pero cuidado al lavarla: tiende a deformarse y encoger con facilidad.',
217
+ },
218
+ natural: {
219
+ label: 'Calidad Natural',
220
+ description: 'Prenda transpirable y duradera. Ideal para pieles sensibles y uso prolongado.',
221
+ },
222
+ technical: {
223
+ label: 'Prenda Técnica / Ultra-Sintética',
224
+ description: 'A menos que sea ropa de deporte específica, estás pagando por plástico puro.',
225
+ },
226
+ luxury: {
227
+ label: 'Lujo Real',
228
+ description: 'Una inversión en comodidad y durabilidad. Trátala con el respeto que merece.',
229
+ },
230
+ balanced: {
231
+ label: 'Mezcla Equilibrada',
232
+ description: 'Una combinación funcional, probablemente busca balancear coste y durabilidad.',
233
+ },
234
+ },
235
+ },
236
+ seo: [
237
+ { type: 'title', text: 'La Verdad Detrás de la Etiqueta: Guía Maestra de Composición Textil', level: 2 },
238
+ { type: 'paragraph', html: '¿Alguna vez te has preguntado por qué esa camiseta de marca te hace sudar tanto, o por qué ese jersey "de lana" pica insoportablemente? La respuesta no está en el diseño, sino en la química de sus fibras.' },
239
+ { type: 'paragraph', html: 'En un mundo dominado por el <strong>Fast Fashion</strong>, la calidad de las telas ha pasado a un segundo plano frente a la estética efímera. Sin embargo, entender la composición textil es la única forma de realizar una compra inteligente, duradera y respetuosa con tu piel. Nuestra herramienta de <strong>Veracidad Textil</strong> analiza los porcentajes oficiales para revelarte si estás ante una prenda de calidad o un simple bloque de plástico procesado.' },
240
+ { type: 'title', text: 'Nuestra Metodología', level: 2 },
241
+ { type: 'paragraph', html: 'Utilizamos un algoritmo ponderado basado en tres pilares fundamentales extraídos de estándares industriales europeos y norteamericanos:' },
242
+ { type: 'list', items: ['<strong>Transpirabilidad:</strong> Capacidad de la fibra para permitir el paso del vapor de agua y aire.', '<strong>Durabilidad:</strong> Resistencia a la abrasión, tracción y formación de <strong>pilling</strong> (bolitas).', '<strong>Eficiencia Térmica:</strong> Capacidad de retención de calor o frescura mecánica.'] },
243
+ { type: 'tip', title: 'Importante', html: 'La ley exige que todas las prendas vendidas en la UE y EE.UU. listen sus componentes en orden decreciente de porcentaje. Si una prenda no tiene etiqueta o esta es ilegible, desconfía: es probable que no cumpla con los estándares mínimos de seguridad textil.' },
244
+ { type: 'title', text: 'Los "Engaños" Comunes en el Retail', level: 2 },
245
+ { type: 'paragraph', html: 'Existen técnicas de marketing muy refinadas diseñadas para elevar el valor percibido de una prenda mediocre. Aquí te enseñamos a detectarlas:' },
246
+ { type: 'card', title: 'El Gancho de la Fibra Noble', icon: 'mdi:alert', html: 'Verás etiquetas que dicen "CON CACHEMIRA" o "CON SEDA" en letras grandes. Al mirar la composición, descubres un 3% de seda y un 97% de poliéster. Ese 3% no aporta suavidad, ni brillo, ni calidez; solo sirve para que la marca pueda subir el precio un 20%.' },
247
+ { type: 'card', title: 'El Mito de la "Viscosa Ecológica"', icon: 'mdi:leaf', html: 'Aunque la viscosa proviene de la celulosa (madera), su proceso de fabricación actual suele ser altamente contaminante y el resultado final es una fibra que se debilita drásticamente al mojarse. A menos que sea <strong>Lyocell</strong> o <strong>Tencel</strong>, su durabilidad es limitada.' },
248
+ { type: 'title', text: 'Análisis Profundo por Categorías', level: 2 },
249
+ { type: 'title', text: '1. Fibras Naturales (Orgullosamente Orgánicas)', level: 3 },
250
+ { type: 'paragraph', html: 'Son el estándar de oro. El <strong>Algodón</strong> de fibra larga (como el Pima o Egipcio) ofrece una suavidad eterna. El <strong>Lino</strong> es, científicamente, la mejor fibra para el calor debido a su estructura molecular que repele el calor y absorbe la humedad. La <strong>Lana</strong> y el <strong>Hemp</strong> (Cáñamo) son antibacterianos naturales; no necesitan lavarse con tanta frecuencia porque no retienen olores.' },
251
+ { type: 'title', text: '2. Fibras Semi-Sintéticas (El Híbrido)', level: 3 },
252
+ { type: 'paragraph', html: 'Aquí encontramos la <strong>Viscosa</strong>, el <strong>Rayón</strong> y el <strong>Modal</strong>. Se sienten como seda pero cuestan como algodón. Son excelentes para prendas con mucha caída, pero son "sedientas": absorben mucha agua y tardan en secar, lo que puede favorecer la aparición de moho si no se cuidan. El <strong>Lyocell (Tencel)</strong> es la versión premium y sostenible de este grupo, con un ciclo de producción cerrado y mayor resistencia.' },
253
+ { type: 'title', text: '3. Fibras Sintéticas (Plásticos Hilados)', level: 3 },
254
+ { type: 'paragraph', html: 'El <strong>Poliéster</strong> es el rey del mercado. Es barato, no se arruga y es eterno (literalmente, tardará 200 años en descomponerse). El problema es que no respira. Crea un microclima húmedo entre la tela y tu piel, el caldo de cultivo ideal para bacterias. El <strong>Acrílico</strong> es la imitación barata de la lana: calienta, pero genera mucha electricidad estática y se llena de bolitas en dos lavados.' },
255
+ { type: 'title', text: 'Consejos de Supervivencia Textil', level: 2 },
256
+ { type: 'paragraph', html: 'Incluso la mejor prenda del mundo puede arruinarse en un solo lavado inadecuado. Aquí tienes las reglas de oro universales:' },
257
+ { type: 'tip', title: 'Agua Fría es tu Amiga', html: 'El 90% de las prendas no necesitan más de 30°C. El calor degrada las fibras elásticas y encoge las naturales.' },
258
+ { type: 'tip', title: 'Menos es Más (Detergente)', html: 'El exceso de jabón deja residuos que atraen suciedad y hacen que la ropa se sienta rígida.' },
259
+ { type: 'tip', title: 'Secadora: El Enemigo Sutil', html: 'La pelusa que ves en el filtro de la secadora son trozos de tu ropa que se han desprendido por la fricción y el calor.' },
260
+ { type: 'tip', title: 'Lavado del Revés', html: 'Protege el color y los bordados del roce con el tambor y otras prendas.' },
261
+ { type: 'paragraph', html: '"Comprar menos, elegir mejor y hacerlo durar." — Esta calculadora es tu primer paso hacia un armario consciente y de alta calidad.' },
262
+ ],
263
+ faqTitle: 'Preguntas Frecuentes',
264
+ faq: [
265
+ {
266
+ question: '¿Qué es el "Greenwashing" en la moda?',
267
+ answer: 'Es una técnica de marketing donde las marcas usan términos como "Ecológico" o "Sostenible" sin pruebas reales. Analizar la composición real de las fibras es la única forma de verificar si una prenda es realmente natural o sintética.',
268
+ },
269
+ {
270
+ question: '¿Por qué el poliéster suele ser de menor calidad que el algodón?',
271
+ answer: 'El poliéster es un plástico (PET). Aunque es duradero, no transpira, favorece el mal olor por bacterias y genera microplásticos en cada lavado. Las fibras naturales como el algodón o el lino ofrecen mejor regulación térmica.',
272
+ },
273
+ {
274
+ question: '¿Es malo que mi ropa tenga elastano?',
275
+ answer: 'En pequeñas cantidades (1-5%), el elastano (Lycra) aporta comodidad y ajuste. Sin embargo, dificulta enormemente el reciclaje de la prenda al mezclar plástico con fibras naturales, lo que suele indicar una prenda de "fast fashion".',
276
+ },
277
+ {
278
+ question: '¿Cómo detectar una prenda de alta calidad por su etiqueta?',
279
+ answer: 'Busca composiciones monomateriales (100% Algodón, 100% Lana). Las mezclas complejas suelen usarse para abaratar costes de producción y ocultan fibras sintéticas bajo nombres comerciales atractivos.',
280
+ },
281
+ ],
282
+ bibliographyTitle: 'Bibliografía',
283
+ bibliography: [
284
+ {
285
+ name: 'FTC - Guía de Etiquetado Textil',
286
+ url: 'https://www.ftc.gov/business-guidance/resources/textile-fiber-products-guides',
287
+ },
288
+ {
289
+ name: 'Comisión Europea - Regulación Textil',
290
+ url: 'https://ec.europa.eu/growth/tools-databases/nando/',
291
+ },
292
+ {
293
+ name: 'ISO 3758:2012 - Símbolos de Cuidado Textil',
294
+ url: 'https://www.iso.org/standard/60465.html',
295
+ },
296
+ ],
297
+ howTo: [
298
+ {
299
+ name: 'Localizar la etiqueta interna',
300
+ text: 'Busca la etiqueta blanca de composición que suele estar en el lateral interior o en el cuello de tu prenda.',
301
+ },
302
+ {
303
+ name: 'Identificar los componentes',
304
+ text: 'Lee los porcentajes de cada fibra (ej. 70% Algodón, 30% Poliéster).',
305
+ },
306
+ {
307
+ name: 'Introducir los datos en el analizador',
308
+ text: 'Escribe las proporciones de las fibras en nuestra herramienta para obtener una puntuación técnica de calidad.',
309
+ },
310
+ {
311
+ name: 'Interpretar el diagnóstico',
312
+ text: 'Revisa el informe generado para entender si tu prenda es transpirable, duradera o si requiere cuidados especiales por su composición sintética.',
313
+ },
314
+ ],
315
+ schemas: [faqSchema, howToSchema, appSchema],
316
+ };