@jjlmoya/utils-home 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 (77) hide show
  1. package/package.json +62 -0
  2. package/src/category/i18n/en.ts +24 -0
  3. package/src/category/i18n/es.ts +24 -0
  4. package/src/category/i18n/fr.ts +24 -0
  5. package/src/category/index.ts +12 -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 +26 -0
  12. package/src/layouts/PreviewLayout.astro +117 -0
  13. package/src/pages/[locale]/[slug].astro +146 -0
  14. package/src/pages/[locale].astro +251 -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/tool_validation.test.ts +17 -0
  22. package/src/tool/dewPointCalculator/bibliography.astro +14 -0
  23. package/src/tool/dewPointCalculator/component.astro +443 -0
  24. package/src/tool/dewPointCalculator/i18n/en.ts +183 -0
  25. package/src/tool/dewPointCalculator/i18n/es.ts +183 -0
  26. package/src/tool/dewPointCalculator/i18n/fr.ts +183 -0
  27. package/src/tool/dewPointCalculator/index.ts +34 -0
  28. package/src/tool/dewPointCalculator/logic.ts +16 -0
  29. package/src/tool/dewPointCalculator/seo.astro +14 -0
  30. package/src/tool/dewPointCalculator/ui.ts +13 -0
  31. package/src/tool/ledSavingCalculator/bibliography.astro +14 -0
  32. package/src/tool/ledSavingCalculator/component.astro +520 -0
  33. package/src/tool/ledSavingCalculator/i18n/en.ts +217 -0
  34. package/src/tool/ledSavingCalculator/i18n/es.ts +217 -0
  35. package/src/tool/ledSavingCalculator/i18n/fr.ts +217 -0
  36. package/src/tool/ledSavingCalculator/index.ts +34 -0
  37. package/src/tool/ledSavingCalculator/logic.ts +31 -0
  38. package/src/tool/ledSavingCalculator/seo.astro +14 -0
  39. package/src/tool/ledSavingCalculator/ui.ts +32 -0
  40. package/src/tool/projectorCalculator/bibliography.astro +14 -0
  41. package/src/tool/projectorCalculator/component.astro +569 -0
  42. package/src/tool/projectorCalculator/i18n/en.ts +181 -0
  43. package/src/tool/projectorCalculator/i18n/es.ts +181 -0
  44. package/src/tool/projectorCalculator/i18n/fr.ts +181 -0
  45. package/src/tool/projectorCalculator/index.ts +34 -0
  46. package/src/tool/projectorCalculator/logic.ts +21 -0
  47. package/src/tool/projectorCalculator/seo.astro +14 -0
  48. package/src/tool/projectorCalculator/ui.ts +16 -0
  49. package/src/tool/qrGenerator/bibliography.astro +14 -0
  50. package/src/tool/qrGenerator/component.astro +499 -0
  51. package/src/tool/qrGenerator/i18n/en.ts +233 -0
  52. package/src/tool/qrGenerator/i18n/es.ts +233 -0
  53. package/src/tool/qrGenerator/i18n/fr.ts +233 -0
  54. package/src/tool/qrGenerator/index.ts +34 -0
  55. package/src/tool/qrGenerator/logic.ts +27 -0
  56. package/src/tool/qrGenerator/seo.astro +14 -0
  57. package/src/tool/qrGenerator/ui.ts +23 -0
  58. package/src/tool/solarCalculator/bibliography.astro +14 -0
  59. package/src/tool/solarCalculator/component.astro +532 -0
  60. package/src/tool/solarCalculator/i18n/en.ts +176 -0
  61. package/src/tool/solarCalculator/i18n/es.ts +176 -0
  62. package/src/tool/solarCalculator/i18n/fr.ts +176 -0
  63. package/src/tool/solarCalculator/index.ts +34 -0
  64. package/src/tool/solarCalculator/logic.ts +31 -0
  65. package/src/tool/solarCalculator/seo.astro +14 -0
  66. package/src/tool/solarCalculator/ui.ts +11 -0
  67. package/src/tool/tariffComparator/bibliography.astro +14 -0
  68. package/src/tool/tariffComparator/component.astro +595 -0
  69. package/src/tool/tariffComparator/i18n/en.ts +192 -0
  70. package/src/tool/tariffComparator/i18n/es.ts +192 -0
  71. package/src/tool/tariffComparator/i18n/fr.ts +192 -0
  72. package/src/tool/tariffComparator/index.ts +34 -0
  73. package/src/tool/tariffComparator/logic.ts +47 -0
  74. package/src/tool/tariffComparator/seo.astro +14 -0
  75. package/src/tool/tariffComparator/ui.ts +25 -0
  76. package/src/tools.ts +9 -0
  77. package/src/types.ts +72 -0
@@ -0,0 +1,217 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { LedSavingCalculatorUI } from '../ui';
4
+
5
+ const slug = 'led-saving-calculator';
6
+ const title = 'LED Saving Calculator';
7
+ const description =
8
+ 'Calculate how much money and kWh you save by switching your traditional bulbs to LED. Discover your exact annual and monthly savings plus CO2 reduction.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'How much does an LED bulb really save?',
13
+ answer:
14
+ 'An LED bulb saves between 80% and 90% of energy compared to an incandescent. For example, switching from 60W to 9W reduces energy use for that fixture to almost nothing while maintaining the same brightness.',
15
+ },
16
+ {
17
+ question: 'How quickly does the LED switch pay for itself?',
18
+ answer:
19
+ 'Given the low current cost of LEDs and their significant savings, the investment typically pays back in less than 4 months of normal use. The more hours the lights are on, the faster the payback.',
20
+ },
21
+ {
22
+ question: 'What if I install a higher-wattage LED?',
23
+ answer:
24
+ 'LEDs generate very little heat, so you can install bulbs with higher lumens in fixtures that were previously limited by the heat from incandescents, as long as you respect the electrical limits of the socket.',
25
+ },
26
+ {
27
+ question: 'Do LEDs really last as long as the box says?',
28
+ answer:
29
+ 'A quality LED lasts between 15,000 and 50,000 hours. At average home use of 4 hours per day, that means a bulb can last over 15 years without burning out.',
30
+ },
31
+ {
32
+ question: 'Can I use LEDs with a dimmer switch?',
33
+ answer:
34
+ 'Only if the bulb clearly states it is dimmable. Standard LEDs do not work well with older dimmer switches and may flicker or buzz.',
35
+ },
36
+ {
37
+ question: 'Do I need to replace the whole fixture?',
38
+ answer:
39
+ 'In 99% of cases, no. You simply replace the bulb with an LED using the same base (E27, E14, GU10, etc.). Only in some modern integrated LED panels is the light source fixed.',
40
+ },
41
+ {
42
+ question: 'Will my 12V halogen transformers still work?',
43
+ answer:
44
+ 'For MR16 spotlights, older transformers sometimes cannot detect the very low load of LEDs and cause flickering. The safest option is to replace the transformer with one designed for LEDs, or switch to a GU10 socket.',
45
+ },
46
+ ];
47
+
48
+ const howToData = [
49
+ {
50
+ name: 'Count your light fixtures',
51
+ text: 'Check how many incandescent or halogen bulbs you have at home and note their wattage.',
52
+ },
53
+ {
54
+ name: 'Select the equivalent LED',
55
+ text: 'Choose your current bulb type in the calculator. The equivalent LED wattage is assigned automatically.',
56
+ },
57
+ {
58
+ name: 'Set your daily usage',
59
+ text: 'Indicate how many hours per day the lights are switched on on average.',
60
+ },
61
+ ];
62
+
63
+ const faqSchema: WithContext<FAQPage> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'FAQPage',
66
+ mainEntity: faqData.map((item) => ({
67
+ '@type': 'Question',
68
+ name: item.question,
69
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
70
+ })),
71
+ };
72
+
73
+ const howToSchema: WithContext<HowTo> = {
74
+ '@context': 'https://schema.org',
75
+ '@type': 'HowTo',
76
+ name: title,
77
+ description,
78
+ step: howToData.map((step) => ({
79
+ '@type': 'HowToStep',
80
+ name: step.name,
81
+ text: step.text,
82
+ })),
83
+ };
84
+
85
+ const appSchema: WithContext<SoftwareApplication> = {
86
+ '@context': 'https://schema.org',
87
+ '@type': 'SoftwareApplication',
88
+ name: title,
89
+ description,
90
+ applicationCategory: 'UtilityApplication',
91
+ operatingSystem: 'All',
92
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
93
+ inLanguage: 'en',
94
+ };
95
+
96
+ export const content: ToolLocaleContent<LedSavingCalculatorUI> = {
97
+ slug,
98
+ title,
99
+ description,
100
+ faqTitle: 'Frequently Asked Questions',
101
+ faq: faqData,
102
+ bibliographyTitle: 'Bibliography',
103
+ bibliography: [
104
+ {
105
+ name: 'Energy Efficient Lighting Guide — IDAE (Spain)',
106
+ url: 'https://www.idae.es/publicaciones/guia-tecnica-de-eficiencia-energetica-en-iluminacion-oficinas',
107
+ },
108
+ {
109
+ name: 'Energy Labelling of Lamps — European Union',
110
+ url: 'https://www.boe.es/buscar/doc.php?id=DOUE-L-2019-81875',
111
+ },
112
+ {
113
+ name: 'Electricity Consumption Calculator — OCU',
114
+ url: 'https://www.ocu.org/vivienda-y-energia/gas-luz/calculadora/consumo-stand-by',
115
+ },
116
+ ],
117
+ howTo: howToData,
118
+ schemas: [faqSchema, howToSchema, appSchema],
119
+ seo: [
120
+ {
121
+ type: 'title',
122
+ text: 'LED Savings Guide: How to Cut Your Electricity Bill',
123
+ level: 2,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: 'Switching from traditional lighting to <strong>LED (Light Emitting Diode)</strong> technology is one of the home investments with the fastest and most visible return. Every watt we remove from our base consumption translates directly into savings at the end of the month. A 9W LED bulb delivers the same brightness as a 60W incandescent at <strong>85% less energy consumption</strong>.',
128
+ },
129
+ {
130
+ type: 'stats',
131
+ items: [
132
+ { value: '85–90%', label: 'Energy Saving', icon: 'mdi:lightning-bolt' },
133
+ { value: '25,000h', label: 'LED Lifespan', icon: 'mdi:clock-outline' },
134
+ { value: '< 4 months', label: 'Payback Period', icon: 'mdi:calendar-check' },
135
+ ],
136
+ columns: 3,
137
+ },
138
+ {
139
+ type: 'comparative',
140
+ items: [
141
+ {
142
+ title: 'Incandescent Lighting',
143
+ description: '20th-century technology based on heating a tungsten filament. 95% of energy is wasted as heat.',
144
+ icon: 'mdi:lightbulb-outline',
145
+ points: ['95% of energy wasted as heat', 'Lifespan: 1,000 hours', 'Very high running cost'],
146
+ },
147
+ {
148
+ title: 'Modern LED Technology',
149
+ description: "Today's energy efficiency standard for the home. Instant full brightness from the very first second.",
150
+ icon: 'mdi:led-outline',
151
+ points: ['85–90% direct saving', 'Lifespan: 25,000–50,000 hours', 'Minimal heat emission'],
152
+ },
153
+ ],
154
+ columns: 2,
155
+ },
156
+ {
157
+ type: 'title',
158
+ text: 'The Physics Behind the Savings',
159
+ level: 3,
160
+ },
161
+ {
162
+ type: 'paragraph',
163
+ html: 'An incandescent bulb works by heating a tungsten filament. <strong>95% of the energy</strong> is wasted as heat and only 5% becomes visible light. LEDs, on the other hand, convert electricity directly into light through semiconductors with vastly superior efficiency. <strong>Look at lumens, not watts:</strong> an old 60W bulb produces around 800 lm; today you can get those same 800 lm from a LED using just 8–9W.',
164
+ },
165
+ {
166
+ type: 'diagnostic',
167
+ variant: 'info',
168
+ title: 'Quick Equivalence Reference',
169
+ icon: 'mdi:table',
170
+ badge: 'Reference',
171
+ html: '<ul style="margin:0;padding-left:1.2em"><li><strong>40W incandescent</strong> → LED 5–6W (450 lm)</li><li><strong>60W incandescent</strong> → LED 8–10W (800 lm)</li><li><strong>100W incandescent</strong> → LED 13–15W (1500 lm)</li><li><strong>50W halogen (spotlight)</strong> → LED 6–7W (450–500 lm)</li></ul>',
172
+ },
173
+ {
174
+ type: 'summary',
175
+ title: 'LED Benefits Beyond Money',
176
+ items: [
177
+ 'Extreme lifespan: a quality LED can last over 15 years at 4h/day.',
178
+ 'Instant full brightness with no warm-up time or flickering.',
179
+ 'No heat emission: reduces air-conditioning load in summer.',
180
+ 'No mercury or toxic gases, easier to recycle than fluorescent tubes.',
181
+ 'Compatible with most existing sockets (E27, E14, GU10).',
182
+ ],
183
+ },
184
+ ],
185
+ ui: {
186
+ sectionTitle: 'Home Configuration',
187
+ labelBulbs: 'How many bulbs do you want to replace?',
188
+ unitBulbs: 'units',
189
+ labelType: 'What bulbs do you currently have?',
190
+ labelHours: 'How many hours a day are they on?',
191
+ labelPrice: 'Electricity price',
192
+ unitPrice: '€/kWh',
193
+ resultBadge: 'Real saving calculation',
194
+ labelAnnual: 'You will save per year',
195
+ labelMonthly: 'Monthly',
196
+ labelEfficiency: 'Efficiency',
197
+ labelCo2: 'CO₂ footprint reduction',
198
+ unitLess: '% less',
199
+ currencySign: '$',
200
+ btnInc60Title: 'Incandescent',
201
+ btnInc60Sub: 'Classic (60W)',
202
+ btnInc40Title: 'Incandescent',
203
+ btnInc40Sub: 'Small (40W)',
204
+ btnInc100Title: 'Incandescent',
205
+ btnInc100Sub: 'Large (100W)',
206
+ btnHalo50Title: 'Halogen',
207
+ btnHalo50Sub: 'Spotlight (50W)',
208
+ usageNever: 'Almost never',
209
+ usageLow: 'Light use',
210
+ usageNormal: 'Normal use',
211
+ usageModerate: 'Moderate use',
212
+ usageHeavy: 'Heavy use',
213
+ usagePro: 'Professional use',
214
+ usageVeryHeavy: 'Very heavy use',
215
+ usageAlways: 'Always on',
216
+ },
217
+ };
@@ -0,0 +1,217 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { LedSavingCalculatorUI } from '../ui';
4
+
5
+ const slug = 'calculadora-ahorro-led';
6
+ const title = 'Calculadora de Ahorro LED';
7
+ const description =
8
+ 'Calcula cuánto dinero y kWh ahorras al cambiar tus bombillas tradicionales por LED. Descubre tu ahorro anual exacto, mensual y reducción de CO2.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: '¿Cuánto ahorra realmente una bombilla LED?',
13
+ answer:
14
+ 'Una bombilla LED ahorra entre un 80% y un 90% de energía comparada con una incandescente. Por ejemplo, pasar de 60W a 9W reduce el gasto de luz en esa lámpara casi al mínimo manteniendo el mismo brillo.',
15
+ },
16
+ {
17
+ question: '¿En cuánto tiempo se amortiza el cambio a LED?',
18
+ answer:
19
+ 'Debido al bajo coste actual de los LED y su gran ahorro, la inversión suele recuperarse en menos de 4 meses de uso normal. Si las luces están encendidas muchas horas, la amortización es incluso más rápida.',
20
+ },
21
+ {
22
+ question: '¿Qué pasa si pongo una bombilla LED de más vatios?',
23
+ answer:
24
+ 'Los LED generan muy poco calor, por lo que puedes poner bombillas de más lúmenes en lámparas que antes estaban limitadas por el calor de las incandescentes, siempre respetando los límites eléctricos del casquillo.',
25
+ },
26
+ {
27
+ question: '¿Duran realmente lo que dicen las cajas?',
28
+ answer:
29
+ 'Un LED de calidad dura entre 15.000 y 50.000 horas. En un uso doméstico medio de 4h al día, esto significa que una bombilla puede durar más de 15 años sin fundirse.',
30
+ },
31
+ {
32
+ question: '¿Puedo usar LED en lámparas con regulador (Dimmer)?',
33
+ answer:
34
+ 'Solo si la bombilla especifica claramente que es Dimmable o regulable. Los LED estándar no funcionan bien con los reguladores antiguos y pueden parpadear o zumbar.',
35
+ },
36
+ {
37
+ question: '¿Hay que cambiar toda la lámpara?',
38
+ answer:
39
+ 'En el 99% de los casos, no. Solo tienes que sustituir la bombilla por una LED con el mismo casquillo (E27, E14, GU10, etc.). Solo en algunos paneles LED modernos integrados la fuente de luz está fija.',
40
+ },
41
+ {
42
+ question: '¿Sirven mis transformadores de halógenos de 12V?',
43
+ answer:
44
+ 'En el caso de los focos MR16, a veces el transformador antiguo no detecta la carga tan baja de los LED y provoca parpadeo. Lo más recomendable es sustituirlo por uno específico para LED o cambiar a GU10.',
45
+ },
46
+ ];
47
+
48
+ const howToData = [
49
+ {
50
+ name: 'Cuenta tus puntos de luz',
51
+ text: 'Revisa cuántas bombillas incandescentes o halógenas tienes en casa y anota su potencia en vatios.',
52
+ },
53
+ {
54
+ name: 'Elige el LED equivalente',
55
+ text: 'Selecciona el tipo de bombilla actual en la calculadora. Los valores LED equivalentes se asignan automáticamente.',
56
+ },
57
+ {
58
+ name: 'Ajusta las horas de uso',
59
+ text: 'Indica cuántas horas al día están encendidas las bombillas de media.',
60
+ },
61
+ ];
62
+
63
+ const faqSchema: WithContext<FAQPage> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'FAQPage',
66
+ mainEntity: faqData.map((item) => ({
67
+ '@type': 'Question',
68
+ name: item.question,
69
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
70
+ })),
71
+ };
72
+
73
+ const howToSchema: WithContext<HowTo> = {
74
+ '@context': 'https://schema.org',
75
+ '@type': 'HowTo',
76
+ name: title,
77
+ description,
78
+ step: howToData.map((step) => ({
79
+ '@type': 'HowToStep',
80
+ name: step.name,
81
+ text: step.text,
82
+ })),
83
+ };
84
+
85
+ const appSchema: WithContext<SoftwareApplication> = {
86
+ '@context': 'https://schema.org',
87
+ '@type': 'SoftwareApplication',
88
+ name: title,
89
+ description,
90
+ applicationCategory: 'UtilityApplication',
91
+ operatingSystem: 'All',
92
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
93
+ inLanguage: 'es',
94
+ };
95
+
96
+ export const content: ToolLocaleContent<LedSavingCalculatorUI> = {
97
+ slug,
98
+ title,
99
+ description,
100
+ faqTitle: 'Preguntas Frecuentes',
101
+ faq: faqData,
102
+ bibliographyTitle: 'Bibliografía',
103
+ bibliography: [
104
+ {
105
+ name: 'Guía de Iluminación Eficiente — IDAE (España)',
106
+ url: 'https://www.idae.es/publicaciones/guia-tecnica-de-eficiencia-energetica-en-iluminacion-oficinas',
107
+ },
108
+ {
109
+ name: 'Etiquetado Energético de Lámparas — Unión Europea',
110
+ url: 'https://www.boe.es/buscar/doc.php?id=DOUE-L-2019-81875',
111
+ },
112
+ {
113
+ name: 'Calculadora de Consumo Eléctrico — OCU',
114
+ url: 'https://www.ocu.org/vivienda-y-energia/gas-luz/calculadora/consumo-stand-by',
115
+ },
116
+ ],
117
+ howTo: howToData,
118
+ schemas: [faqSchema, howToSchema, appSchema],
119
+ seo: [
120
+ {
121
+ type: 'title',
122
+ text: 'Guía de Ahorro con LED: Cómo Recortar tu Factura de la Luz',
123
+ level: 2,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: 'El cambio de la iluminación tradicional a la tecnología <strong>LED (Light Emitting Diode)</strong> es una de las inversiones domésticas con el retorno más rápido y evidente. Cada vatio que restamos de nuestro consumo base se traduce directamente en un alivio para el bolsillo a final de mes. Una bombilla LED de 9W ofrece el mismo brillo que una incandescente de 60W con un <strong>85% menos de consumo</strong>.',
128
+ },
129
+ {
130
+ type: 'stats',
131
+ items: [
132
+ { value: '85–90%', label: 'Ahorro Energético', icon: 'mdi:lightning-bolt' },
133
+ { value: '25.000h', label: 'Vida Útil LED', icon: 'mdi:clock-outline' },
134
+ { value: '< 4 meses', label: 'Amortización', icon: 'mdi:calendar-check' },
135
+ ],
136
+ columns: 3,
137
+ },
138
+ {
139
+ type: 'comparative',
140
+ items: [
141
+ {
142
+ title: 'Iluminación Incandescente',
143
+ description: 'La tecnología del siglo XX basada en el calentamiento de un filamento. El 95% de la energía se desperdicia en forma de calor.',
144
+ icon: 'mdi:lightbulb-outline',
145
+ points: ['95% de energía desperdiciada en calor', 'Vida útil: 1.000 horas', 'Coste operativo muy alto'],
146
+ },
147
+ {
148
+ title: 'Tecnología LED Moderna',
149
+ description: 'El estándar actual de eficiencia energética para el hogar. Encendido instantáneo al 100% de brillo desde el primer segundo.',
150
+ icon: 'mdi:led-outline',
151
+ points: ['85–90% de ahorro directo', 'Vida útil: 25.000–50.000 horas', 'Mínima emisión de calor'],
152
+ },
153
+ ],
154
+ columns: 2,
155
+ },
156
+ {
157
+ type: 'title',
158
+ text: 'La Física Detrás del Ahorro',
159
+ level: 3,
160
+ },
161
+ {
162
+ type: 'paragraph',
163
+ html: 'Una bombilla incandescente funciona calentando un filamento de tungsteno. El <strong>95% de la energía</strong> se desperdicia en calor y solo un 5% se convierte en luz. Los LED, en cambio, convierten directamente la electricidad en luz mediante semiconductores, con una eficiencia radicalmente superior. <strong>No mires los vatios, mira los lúmenes:</strong> una vieja bombilla de 60W ofrece unos 800 lm; hoy puedes conseguir esos mismos 800 lm con un LED de solo 8–9W.',
164
+ },
165
+ {
166
+ type: 'diagnostic',
167
+ variant: 'info',
168
+ title: 'Tabla de Equivalencias Rápidas',
169
+ icon: 'mdi:table',
170
+ badge: 'Referencia',
171
+ html: '<ul style="margin:0;padding-left:1.2em"><li><strong>40W incandescente</strong> → LED 5–6W (450 lm)</li><li><strong>60W incandescente</strong> → LED 8–10W (800 lm)</li><li><strong>100W incandescente</strong> → LED 13–15W (1500 lm)</li><li><strong>50W halógena (foco)</strong> → LED 6–7W (450–500 lm)</li></ul>',
172
+ },
173
+ {
174
+ type: 'summary',
175
+ title: 'Ventajas del LED Más Allá del Dinero',
176
+ items: [
177
+ 'Vida útil extrema: un LED de calidad puede durar más de 15 años a 4h/día.',
178
+ 'Encendido instantáneo al 100%, sin tiempos de espera ni parpadeos.',
179
+ 'Sin emisión de calor: reduce la carga del aire acondicionado en verano.',
180
+ 'Sin mercurio ni gases tóxicos, más fácil de reciclar que los tubos fluorescentes.',
181
+ 'Compatible con la mayoría de casquillos existentes (E27, E14, GU10).',
182
+ ],
183
+ },
184
+ ],
185
+ ui: {
186
+ sectionTitle: 'Configuración del Hogar',
187
+ labelBulbs: '¿Cuántas bombillas quieres cambiar?',
188
+ unitBulbs: 'unidades',
189
+ labelType: '¿Qué bombillas tienes ahora?',
190
+ labelHours: '¿Cuántas horas al día están encendidas?',
191
+ labelPrice: 'Precio de la electricidad',
192
+ unitPrice: '€/kWh',
193
+ resultBadge: 'Cálculo de ahorro real',
194
+ labelAnnual: 'Ahorrarás al año',
195
+ labelMonthly: 'Mensual',
196
+ labelEfficiency: 'Eficiencia',
197
+ labelCo2: 'Reducción de huella CO₂',
198
+ unitLess: '% menos',
199
+ currencySign: '€',
200
+ btnInc60Title: 'Incandescente',
201
+ btnInc60Sub: 'Clásica (60W)',
202
+ btnInc40Title: 'Incandescente',
203
+ btnInc40Sub: 'Pequeña (40W)',
204
+ btnInc100Title: 'Incandescente',
205
+ btnInc100Sub: 'Grande (100W)',
206
+ btnHalo50Title: 'Halógena',
207
+ btnHalo50Sub: 'Focos (50W)',
208
+ usageNever: 'Casi nunca',
209
+ usageLow: 'Poco uso',
210
+ usageNormal: 'Uso normal',
211
+ usageModerate: 'Uso moderado',
212
+ usageHeavy: 'Uso intenso',
213
+ usagePro: 'Uso profesional',
214
+ usageVeryHeavy: 'Muy intenso',
215
+ usageAlways: 'Siempre encendida',
216
+ },
217
+ };
@@ -0,0 +1,217 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { LedSavingCalculatorUI } from '../ui';
4
+
5
+ const slug = 'calculateur-economies-led';
6
+ const title = "Calculateur d'Économies LED";
7
+ const description =
8
+ "Calculez combien d'argent et de kWh vous économisez en remplaçant vos ampoules traditionnelles par des LED. Découvrez vos économies annuelles exactes, mensuelles et la réduction de CO2.";
9
+
10
+ const faqData = [
11
+ {
12
+ question: "Combien économise vraiment une ampoule LED ?",
13
+ answer:
14
+ "Une ampoule LED économise entre 80% et 90% d'énergie par rapport à une incandescente. Par exemple, passer de 60W à 9W réduit la consommation de ce point lumineux presque au minimum tout en conservant le même éclat.",
15
+ },
16
+ {
17
+ question: "En combien de temps le passage aux LED est-il rentabilisé ?",
18
+ answer:
19
+ "Grâce au faible coût actuel des LED et à leurs économies substantielles, l'investissement est généralement récupéré en moins de 4 mois d'utilisation normale. Plus les lumières sont allumées longtemps, plus le retour sur investissement est rapide.",
20
+ },
21
+ {
22
+ question: "Que se passe-t-il si j'installe une LED de plus haute puissance ?",
23
+ answer:
24
+ "Les LED génèrent très peu de chaleur, vous pouvez donc installer des ampoules offrant plus de lumens dans des luminaires précédemment limités par la chaleur des incandescentes, dans la limite des contraintes électriques de la douille.",
25
+ },
26
+ {
27
+ question: "Les LED durent-elles vraiment ce que l'emballage indique ?",
28
+ answer:
29
+ "Une LED de qualité dure entre 15 000 et 50 000 heures. Avec une utilisation domestique moyenne de 4h par jour, cela signifie qu'une ampoule peut durer plus de 15 ans sans griller.",
30
+ },
31
+ {
32
+ question: "Puis-je utiliser des LED avec un variateur d'intensité ?",
33
+ answer:
34
+ "Uniquement si l'ampoule indique clairement qu'elle est compatible variateur (Dimmable). Les LED standard ne fonctionnent pas bien avec les anciens variateurs et peuvent scintiller ou émettre un bourdonnement.",
35
+ },
36
+ {
37
+ question: "Faut-il changer tout le luminaire ?",
38
+ answer:
39
+ "Dans 99% des cas, non. Il suffit de remplacer l'ampoule par une LED avec le même culot (E27, E14, GU10, etc.). Seuls certains panneaux LED modernes intégrés ont la source lumineuse fixe.",
40
+ },
41
+ {
42
+ question: "Mes transformateurs halogènes 12V fonctionneront-ils ?",
43
+ answer:
44
+ "Pour les spots MR16, les anciens transformateurs ne détectent parfois pas la charge très faible des LED et provoquent des scintillements. Il est préférable de remplacer le transformateur par un modèle spécifique LED ou de passer à une douille GU10.",
45
+ },
46
+ ];
47
+
48
+ const howToData = [
49
+ {
50
+ name: "Comptez vos points lumineux",
51
+ text: "Vérifiez combien d'ampoules incandescentes ou halogènes vous avez chez vous et notez leur puissance en watts.",
52
+ },
53
+ {
54
+ name: "Sélectionnez le LED équivalent",
55
+ text: "Choisissez votre type d'ampoule actuel dans la calculatrice. La puissance LED équivalente est assignée automatiquement.",
56
+ },
57
+ {
58
+ name: "Indiquez votre utilisation quotidienne",
59
+ text: "Précisez combien d'heures par jour les lumières sont allumées en moyenne.",
60
+ },
61
+ ];
62
+
63
+ const faqSchema: WithContext<FAQPage> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'FAQPage',
66
+ mainEntity: faqData.map((item) => ({
67
+ '@type': 'Question',
68
+ name: item.question,
69
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
70
+ })),
71
+ };
72
+
73
+ const howToSchema: WithContext<HowTo> = {
74
+ '@context': 'https://schema.org',
75
+ '@type': 'HowTo',
76
+ name: title,
77
+ description,
78
+ step: howToData.map((step) => ({
79
+ '@type': 'HowToStep',
80
+ name: step.name,
81
+ text: step.text,
82
+ })),
83
+ };
84
+
85
+ const appSchema: WithContext<SoftwareApplication> = {
86
+ '@context': 'https://schema.org',
87
+ '@type': 'SoftwareApplication',
88
+ name: title,
89
+ description,
90
+ applicationCategory: 'UtilityApplication',
91
+ operatingSystem: 'All',
92
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
93
+ inLanguage: 'fr',
94
+ };
95
+
96
+ export const content: ToolLocaleContent<LedSavingCalculatorUI> = {
97
+ slug,
98
+ title,
99
+ description,
100
+ faqTitle: 'Questions Fréquentes',
101
+ faq: faqData,
102
+ bibliographyTitle: 'Bibliographie',
103
+ bibliography: [
104
+ {
105
+ name: "Guide d'Éclairage Efficace — IDAE (Espagne)",
106
+ url: 'https://www.idae.es/publicaciones/guia-tecnica-de-eficiencia-energetica-en-iluminacion-oficinas',
107
+ },
108
+ {
109
+ name: 'Étiquetage Énergétique des Lampes — Union Européenne',
110
+ url: 'https://www.boe.es/buscar/doc.php?id=DOUE-L-2019-81875',
111
+ },
112
+ {
113
+ name: "Calculateur de Consommation Électrique — OCU",
114
+ url: 'https://www.ocu.org/vivienda-y-energia/gas-luz/calculadora/consumo-stand-by',
115
+ },
116
+ ],
117
+ howTo: howToData,
118
+ schemas: [faqSchema, howToSchema, appSchema],
119
+ seo: [
120
+ {
121
+ type: 'title',
122
+ text: "Guide d'Économies LED : Comment Réduire Votre Facture d'Électricité",
123
+ level: 2,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: "Le passage de l'éclairage traditionnel à la technologie <strong>LED (Light Emitting Diode)</strong> est l'un des investissements domestiques avec le retour le plus rapide et le plus visible. Chaque watt que nous retirons de notre consommation de base se traduit directement par des économies en fin de mois. Une ampoule LED de 9W offre le même éclat qu'une incandescente de 60W avec <strong>85% de consommation en moins</strong>.",
128
+ },
129
+ {
130
+ type: 'stats',
131
+ items: [
132
+ { value: '85–90%', label: "Économie d'Énergie", icon: 'mdi:lightning-bolt' },
133
+ { value: '25 000h', label: 'Durée de Vie LED', icon: 'mdi:clock-outline' },
134
+ { value: '< 4 mois', label: 'Amortissement', icon: 'mdi:calendar-check' },
135
+ ],
136
+ columns: 3,
137
+ },
138
+ {
139
+ type: 'comparative',
140
+ items: [
141
+ {
142
+ title: 'Éclairage Incandescent',
143
+ description: "La technologie du XXe siècle basée sur le chauffage d'un filament de tungstène. 95% de l'énergie est gaspillée sous forme de chaleur.",
144
+ icon: 'mdi:lightbulb-outline',
145
+ points: ["95% d'énergie gaspillée en chaleur", 'Durée de vie : 1 000 heures', 'Coût de fonctionnement très élevé'],
146
+ },
147
+ {
148
+ title: 'Technologie LED Moderne',
149
+ description: "Le standard actuel d'efficacité énergétique pour le domicile. Éclairage instantané à 100% dès la première seconde.",
150
+ icon: 'mdi:led-outline',
151
+ points: ['85–90% d\'économie directe', 'Durée de vie : 25 000–50 000 heures', 'Émission de chaleur minimale'],
152
+ },
153
+ ],
154
+ columns: 2,
155
+ },
156
+ {
157
+ type: 'title',
158
+ text: "La Physique Derrière les Économies",
159
+ level: 3,
160
+ },
161
+ {
162
+ type: 'paragraph',
163
+ html: "Une ampoule incandescente fonctionne en chauffant un filament de tungstène. <strong>95% de l'énergie</strong> est gaspillée en chaleur et seulement 5% devient de la lumière visible. Les LED, en revanche, convertissent directement l'électricité en lumière via des semi-conducteurs avec une efficacité bien supérieure. <strong>Regardez les lumens, pas les watts :</strong> une vieille ampoule de 60W produit environ 800 lm ; aujourd'hui vous pouvez obtenir ces mêmes 800 lm avec une LED de seulement 8–9W.",
164
+ },
165
+ {
166
+ type: 'diagnostic',
167
+ variant: 'info',
168
+ title: 'Tableau des Équivalences Rapides',
169
+ icon: 'mdi:table',
170
+ badge: 'Référence',
171
+ html: '<ul style="margin:0;padding-left:1.2em"><li><strong>40W incandescente</strong> → LED 5–6W (450 lm)</li><li><strong>60W incandescente</strong> → LED 8–10W (800 lm)</li><li><strong>100W incandescente</strong> → LED 13–15W (1500 lm)</li><li><strong>50W halogène (spot)</strong> → LED 6–7W (450–500 lm)</li></ul>',
172
+ },
173
+ {
174
+ type: 'summary',
175
+ title: 'Avantages du LED Au-delà de l\'Argent',
176
+ items: [
177
+ "Durée de vie extrême : une LED de qualité peut durer plus de 15 ans à 4h/jour.",
178
+ "Éclairage instantané à 100%, sans temps de chauffe ni scintillements.",
179
+ "Pas d'émission de chaleur : réduit la charge de climatisation en été.",
180
+ "Sans mercure ni gaz toxiques, plus facile à recycler que les tubes fluorescents.",
181
+ "Compatible avec la plupart des douilles existantes (E27, E14, GU10).",
182
+ ],
183
+ },
184
+ ],
185
+ ui: {
186
+ sectionTitle: 'Configuration du Logement',
187
+ labelBulbs: 'Combien d\'ampoules souhaitez-vous remplacer ?',
188
+ unitBulbs: 'unités',
189
+ labelType: 'Quelles ampoules avez-vous actuellement ?',
190
+ labelHours: 'Combien d\'heures par jour sont-elles allumées ?',
191
+ labelPrice: "Prix de l'électricité",
192
+ unitPrice: '€/kWh',
193
+ resultBadge: 'Calcul d\'économie réelle',
194
+ labelAnnual: 'Vous économiserez par an',
195
+ labelMonthly: 'Mensuel',
196
+ labelEfficiency: 'Efficacité',
197
+ labelCo2: 'Réduction d\'empreinte CO₂',
198
+ unitLess: '% de moins',
199
+ currencySign: '€',
200
+ btnInc60Title: 'Incandescente',
201
+ btnInc60Sub: 'Classique (60W)',
202
+ btnInc40Title: 'Incandescente',
203
+ btnInc40Sub: 'Petite (40W)',
204
+ btnInc100Title: 'Incandescente',
205
+ btnInc100Sub: 'Grande (100W)',
206
+ btnHalo50Title: 'Halogène',
207
+ btnHalo50Sub: 'Spot (50W)',
208
+ usageNever: 'Presque jamais',
209
+ usageLow: 'Peu utilisée',
210
+ usageNormal: 'Utilisation normale',
211
+ usageModerate: 'Utilisation modérée',
212
+ usageHeavy: 'Utilisation intensive',
213
+ usagePro: 'Utilisation professionnelle',
214
+ usageVeryHeavy: 'Très intensive',
215
+ usageAlways: 'Toujours allumée',
216
+ },
217
+ };