@jjlmoya/utils-nature 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.
- package/package.json +60 -0
- package/src/category/i18n/en.ts +110 -0
- package/src/category/i18n/es.ts +127 -0
- package/src/category/i18n/fr.ts +110 -0
- package/src/category/index.ts +14 -0
- package/src/category/seo.astro +15 -0
- package/src/components/PreviewNavSidebar.astro +116 -0
- package/src/components/PreviewToolbar.astro +143 -0
- package/src/data.ts +11 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +30 -0
- package/src/layouts/PreviewLayout.astro +117 -0
- package/src/pages/[locale]/[slug].astro +146 -0
- package/src/pages/[locale].astro +251 -0
- package/src/pages/index.astro +4 -0
- package/src/tests/faq_count.test.ts +19 -0
- package/src/tests/locale_completeness.test.ts +42 -0
- package/src/tests/mocks/astro_mock.js +2 -0
- package/src/tests/no_h1_in_components.test.ts +48 -0
- package/src/tests/schemas_fulfillment.test.ts +23 -0
- package/src/tests/seo_length.test.ts +22 -0
- package/src/tests/title_quality.test.ts +55 -0
- package/src/tests/tool_validation.test.ts +17 -0
- package/src/tool/cricketThermometer/bibliography.astro +14 -0
- package/src/tool/cricketThermometer/component.astro +549 -0
- package/src/tool/cricketThermometer/i18n/en.ts +181 -0
- package/src/tool/cricketThermometer/i18n/es.ts +181 -0
- package/src/tool/cricketThermometer/i18n/fr.ts +181 -0
- package/src/tool/cricketThermometer/index.ts +34 -0
- package/src/tool/cricketThermometer/logic.ts +6 -0
- package/src/tool/cricketThermometer/seo.astro +15 -0
- package/src/tool/cricketThermometer/ui.ts +11 -0
- package/src/tool/digitalCarbon/bibliography.astro +9 -0
- package/src/tool/digitalCarbon/component.astro +582 -0
- package/src/tool/digitalCarbon/i18n/en.ts +235 -0
- package/src/tool/digitalCarbon/i18n/es.ts +235 -0
- package/src/tool/digitalCarbon/i18n/fr.ts +235 -0
- package/src/tool/digitalCarbon/index.ts +33 -0
- package/src/tool/digitalCarbon/logic.ts +107 -0
- package/src/tool/digitalCarbon/seo.astro +14 -0
- package/src/tool/digitalCarbon/ui.ts +38 -0
- package/src/tool/rainHarvester/bibliography.astro +9 -0
- package/src/tool/rainHarvester/component.astro +559 -0
- package/src/tool/rainHarvester/i18n/en.ts +185 -0
- package/src/tool/rainHarvester/i18n/es.ts +185 -0
- package/src/tool/rainHarvester/i18n/fr.ts +185 -0
- package/src/tool/rainHarvester/index.ts +33 -0
- package/src/tool/rainHarvester/logic.ts +12 -0
- package/src/tool/rainHarvester/seo.astro +14 -0
- package/src/tool/rainHarvester/ui.ts +23 -0
- package/src/tool/seedCalculator/bibliography.astro +8 -0
- package/src/tool/seedCalculator/component.astro +812 -0
- package/src/tool/seedCalculator/i18n/en.ts +213 -0
- package/src/tool/seedCalculator/i18n/es.ts +213 -0
- package/src/tool/seedCalculator/i18n/fr.ts +213 -0
- package/src/tool/seedCalculator/index.ts +34 -0
- package/src/tool/seedCalculator/logic.ts +19 -0
- package/src/tool/seedCalculator/seo.astro +9 -0
- package/src/tool/seedCalculator/ui.ts +39 -0
- package/src/tools.ts +12 -0
- package/src/types.ts +72 -0
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jjlmoya/utils-nature",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./src/index.ts",
|
|
6
|
+
"types": "./src/index.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.ts",
|
|
9
|
+
"./data": "./src/data.ts"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"src"
|
|
13
|
+
],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "astro dev",
|
|
19
|
+
"start": "astro dev",
|
|
20
|
+
"build": "astro build",
|
|
21
|
+
"preview": "astro preview",
|
|
22
|
+
"astro": "astro",
|
|
23
|
+
"lint": "eslint src/ --max-warnings 0 && stylelint \"src/**/*.{css,astro}\"",
|
|
24
|
+
"check": "astro check",
|
|
25
|
+
"type-check": "astro check",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"preversion": "npm run lint && npm run test",
|
|
28
|
+
"postversion": "git push && git push --tags",
|
|
29
|
+
"patch": "npm version patch",
|
|
30
|
+
"minor": "npm version minor",
|
|
31
|
+
"major": "npm version major"
|
|
32
|
+
},
|
|
33
|
+
"lint-staged": {
|
|
34
|
+
"*.{ts,tsx,astro}": [
|
|
35
|
+
"eslint --fix"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@iconify-json/mdi": "^1.2.3",
|
|
40
|
+
"@jjlmoya/utils-shared": "1.2.0",
|
|
41
|
+
"astro": "^6.1.2",
|
|
42
|
+
"astro-icon": "^1.1.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@astrojs/check": "^0.9.8",
|
|
46
|
+
"eslint": "^9.39.4",
|
|
47
|
+
"eslint-plugin-astro": "^1.6.0",
|
|
48
|
+
"eslint-plugin-no-comments": "^1.1.10",
|
|
49
|
+
"husky": "^9.1.7",
|
|
50
|
+
"lint-staged": "^16.4.0",
|
|
51
|
+
"postcss-html": "^1.8.1",
|
|
52
|
+
"schema-dts": "^1.1.2",
|
|
53
|
+
"stylelint": "^17.6.0",
|
|
54
|
+
"stylelint-config-standard": "^40.0.0",
|
|
55
|
+
"stylelint-declaration-strict-value": "^1.11.1",
|
|
56
|
+
"typescript": "^5.4.0",
|
|
57
|
+
"typescript-eslint": "^8.58.0",
|
|
58
|
+
"vitest": "^4.1.2"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { CategoryLocaleContent } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const content: CategoryLocaleContent = {
|
|
4
|
+
slug: 'nature',
|
|
5
|
+
title: 'Nature & Agriculture Tools',
|
|
6
|
+
description:
|
|
7
|
+
'Optimize your relationship with the environment with free online tools. Seeding calculators, rainwater harvesting, cricket thermometer and digital carbon footprint estimators.',
|
|
8
|
+
seo: [
|
|
9
|
+
{
|
|
10
|
+
type: 'title',
|
|
11
|
+
text: 'Biological Engineering and Sustainability: Data for the Planet',
|
|
12
|
+
level: 2,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'paragraph',
|
|
16
|
+
html: 'The connection with nature in 2026 is mediated by a deeper technical understanding of our resources. In this section, we offer <strong>free online tools</strong> designed to optimize agricultural production at small and large scale, manage vital water resources and measure our invisible impact on the global ecosystem. <strong>Precision agriculture</strong> and sustainability are not just concepts, but actions based on exact calculations.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
type: 'paragraph',
|
|
20
|
+
html: 'From calibrating seeding machinery to calculating the environmental impact of your internet browsing, our utilities transform biological and physical variables into actionable data for a greener future.',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'title',
|
|
24
|
+
text: 'Precision Agriculture: Seeding Calibration and Cultivation',
|
|
25
|
+
level: 2,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'paragraph',
|
|
29
|
+
html: 'Efficiency in the field starts with the exact distribution of seeds. Our <strong>seed calculator</strong> allows mechanical and pneumatic seeders to be calibrated, converting the desired population per hectare into the exact spacing between seeds. Understanding the germination ratio and planting density is fundamental to maximizing crop yield and reducing input waste.',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'title',
|
|
33
|
+
text: 'Water Resource Management: Rainwater Harvesting',
|
|
34
|
+
level: 2,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'paragraph',
|
|
38
|
+
html: 'Water is a finite resource. The <strong>rain harvester</strong> calculates how many liters of water you can collect annually based on your roof surface area and your area\'s rainfall history. This tool is vital for sizing storage tanks and implementing supplementary irrigation systems for urban gardens and rural farms.',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'title',
|
|
42
|
+
text: 'Natural Curiosities and Dolbear\'s Law',
|
|
43
|
+
level: 2,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'paragraph',
|
|
47
|
+
html: 'Nature follows fascinating mathematical laws. Did you know that crickets act as biological thermometers? Based on <strong>Dolbear\'s Law</strong>, our calculator translates the frequency of cricket chirps into degrees Celsius with surprising accuracy, demonstrating the interconnection between animal physiology and environmental thermodynamics.',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'title',
|
|
51
|
+
text: 'Digital Sustainability: Web Carbon Footprint',
|
|
52
|
+
level: 2,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: 'paragraph',
|
|
56
|
+
html: 'The internet is not immaterial; it has an energy cost. Our <strong>digital carbon footprint</strong> calculator analyzes the data weight of a website and estimates the CO2 emissions generated per visit, considering server consumption and the distribution network. It is an essential tool for conscious developers and brands seeking to implement sustainable design.',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: 'list',
|
|
60
|
+
items: [
|
|
61
|
+
'<strong>Resource Optimization:</strong> Reduce water and seed consumption through data-driven agricultural planning.',
|
|
62
|
+
'<strong>Environmental Awareness:</strong> Visualize the hidden impact of your digital activities on the global environment.',
|
|
63
|
+
'<strong>Biodiversity and Science:</strong> Tools that promote observation and understanding of wildlife rhythms.',
|
|
64
|
+
'<strong>Self-sufficiency:</strong> Size collection and cultivation infrastructure for a more resilient off-grid life.',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'tip',
|
|
69
|
+
title: 'Water Sustainability Tip',
|
|
70
|
+
html: '<p><strong>Irrigation Strategy:</strong> Use collected water during the first hours of the morning or the last hours of the afternoon. You will reduce evaporation by 30%, allowing a smaller amount of water to have a much greater impact on the development of your plants.</p>',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: 'title',
|
|
74
|
+
text: 'Crop Rotation and Biodiversity: The Millennial Agricultural Science',
|
|
75
|
+
level: 2,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: 'paragraph',
|
|
79
|
+
html: 'Crop rotation is not medieval tradition; it is plant physiology. Different crops consume different soil nutrients and generate different bacterial compositions in the rhizosphere. Wheat depletes nitrogen; alfalfa fixes it. Corn demands a lot of potassium; oats leave it available. Smart rotation (wheat-alfalfa-corn-legumes) restores natural fertility without costly synthetic fertilizers.',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 'title',
|
|
83
|
+
text: 'Soil and Nutrient Conservation: Pedological Analysis',
|
|
84
|
+
level: 2,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'paragraph',
|
|
88
|
+
html: 'Soil is alive. It contains trillions of microbes, fungi and organisms that create structure and fertility. Erosion from excessive plowing destroys this structure; compacted soil does not absorb water; low organic matter reduces water retention capacity. Soil analysis (pH, nutrients, organic matter, texture) is the diagnosis before any intervention.',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: 'title',
|
|
92
|
+
text: 'The Future of Regenerative Agriculture 2026',
|
|
93
|
+
level: 2,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: 'paragraph',
|
|
97
|
+
html: 'The trend of 2026 is the <strong>Internet of Natural Things (IoNT)</strong>. Humidity sensors, monitoring drones and environmental management software are democratizing regenerative agriculture. These tools give you the ability to manage your environment not as a resource to exploit, but as an ecosystem to nurture and protect through technical intelligence.',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'stats',
|
|
101
|
+
columns: 2,
|
|
102
|
+
items: [
|
|
103
|
+
{ label: 'Seeding', value: 'Precision', icon: 'mdi:sprout' },
|
|
104
|
+
{ label: 'Water', value: 'Capacity', icon: 'mdi:water' },
|
|
105
|
+
{ label: 'Carbon', value: 'Net Zero', icon: 'mdi:leaf' },
|
|
106
|
+
{ label: 'Wildlife', value: 'Bio-rhythms', icon: 'mdi:bug' },
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { CategoryLocaleContent } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const content: CategoryLocaleContent = {
|
|
4
|
+
slug: 'naturaleza',
|
|
5
|
+
title: 'Herramientas y Calculadoras de Naturaleza y Agricultura',
|
|
6
|
+
description:
|
|
7
|
+
'Optimiza tu relación con el entorno con herramientas gratuitas online. Calculadoras de siembra, recolección de agua de lluvia, termómetro de grillos y estimadores de huella de carbono digital.',
|
|
8
|
+
seo: [
|
|
9
|
+
{
|
|
10
|
+
type: 'title',
|
|
11
|
+
text: 'Ingeniería Biológica y Sostenibilidad: Datos para el Planeta',
|
|
12
|
+
level: 2,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'paragraph',
|
|
16
|
+
html: 'La conexión con la naturaleza en 2026 está mediada por una comprensión técnica más profunda de nuestros recursos. En esta sección, ofrecemos <strong>herramientas gratuitas online</strong> diseñadas para optimizar la producción agrícola a pequeña y gran escala, gestionar recursos hídricos vitales y medir nuestro impacto invisible en el ecosistema global. La <strong>agricultura de precisión</strong> y la sostenibilidad no son solo conceptos, sino acciones basadas en cálculos exactos.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
type: 'paragraph',
|
|
20
|
+
html: 'Desde la calibración de maquinaria de siembra hasta el cálculo del impacto ambiental de tu navegación por internet, nuestras utilidades transforman variables biológicas y físicas en datos accionables para un futuro más verde.',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'title',
|
|
24
|
+
text: 'Agricultura de Precisión: Calibración de Siembra y Cultivo',
|
|
25
|
+
level: 2,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'paragraph',
|
|
29
|
+
html: 'La eficiencia en el campo empieza por la distribución exacta de las semillas. Nuestra <strong>calculadora de siembra</strong> permite calibrar sembradoras mecánicas y neumáticas, convirtiendo la población deseada por hectárea en el espaciado exacto entre semillas. Entender el ratio de germinación y la densidad de plantación es fundamental para maximizar el rendimiento de la cosecha y reducir el desperdicio de insumos.',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'title',
|
|
33
|
+
text: 'Gestión de Recursos Hídricos: Recolección de Lluvia',
|
|
34
|
+
level: 2,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'paragraph',
|
|
38
|
+
html: 'El agua es un recurso finito. El <strong>cosechador de lluvia</strong> calcula cuántos litros de agua puedes recolectar anualmente basándote en la superficie de tu tejado y el histórico de precipitaciones de tu zona. Esta herramienta es vital para dimensionar tanques de almacenamiento e implementar sistemas de riego suplementarios para huertos urbanos y fincas rurales.',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'title',
|
|
42
|
+
text: 'Curiosidades Naturales y Ley de Dolbear',
|
|
43
|
+
level: 2,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'paragraph',
|
|
47
|
+
html: 'La naturaleza sigue leyes matemáticas fascinantes. ¿Sabías que los grillos actúan como termómetros biológicos? Basada en la <strong>Ley de Dolbear</strong>, nuestra calculadora traduce la frecuencia de los chirridos de los grillos a grados centígrados con una precisión sorprendente, demostrando la interconexión entre la fisiología animal y la termodinámica ambiental.',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'title',
|
|
51
|
+
text: 'Sostenibilidad Digital: Huella de Carbono Web',
|
|
52
|
+
level: 2,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: 'paragraph',
|
|
56
|
+
html: 'Internet no es inmaterial; tiene un coste energético. Nuestra calculadora de <strong>huella de carbono digital</strong> analiza el peso en datos de un sitio web y estima las emisiones de CO2 generadas por cada visita, considerando el consumo de los servidores y la red de distribución. Es una herramienta esencial para desarrolladores y marcas conscientes que buscan implementar el diseño sostenible.',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: 'list',
|
|
60
|
+
items: [
|
|
61
|
+
'<strong>Optimización de Recursos:</strong> Reduce el consumo de agua y semillas mediante una planificación agrícola basada en datos.',
|
|
62
|
+
'<strong>Conciencia Ambiental:</strong> Visualiza el impacto oculto de tus actividades digitales en el medio ambiente global.',
|
|
63
|
+
'<strong>Biodiversidad y Ciencia:</strong> Herramientas que fomentan la observación y comprensión de los ritmos de la vida silvestre.',
|
|
64
|
+
'<strong>Autosuficiencia:</strong> Dimensiona infraestructuras de recolección y cultivo para una vida más resiliente fuera de la red.',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'tip',
|
|
69
|
+
title: 'Tip de Sostenibilidad Hídrica',
|
|
70
|
+
html: '<p><strong>Estrategia de Riego:</strong> Utiliza el agua recolectada durante las primeras horas de la mañana o las últimas de la tarde. Reducirás la evaporación en un 30%, permitiendo que una menor cantidad de agua tenga un impacto mucho mayor en el desarrollo de tus plantas.</p>',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: 'title',
|
|
74
|
+
text: 'Rotación de Cultivos y Biodiversidad: La Ciencia Agrícola Milenaria',
|
|
75
|
+
level: 2,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: 'paragraph',
|
|
79
|
+
html: 'La rotación de cultivos no es tradición medieval; es fisiología de plantas. Diferentes cultivos consumen diferentes nutrientes del suelo y generan diferentes composiciones de bacterias en la rizosfera. El trigo agota nitrógeno; la alfalfa lo fija. El maíz demanda mucho potasio; la avena lo deja disponible. Una rotación inteligente (trigo-alfalfa-maíz-legumbres) restaura fertilidad natural sin fertilizantes sintéticos costosos.',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 'paragraph',
|
|
83
|
+
html: 'La biodiversidad de insectos beneficiosos sigue la biodiversidad de plantas. Un campo monolítico de maíz es un desierto para depredadores de plagas. El mismo campo con franjas de flores silvestres, setos y legumbres cultiva una población robusta de mariquitas, avispas parasitoides y arañas que controlan plagas naturalmente. Esto es "control biológico integrado" y reduce necesidad de pesticidas en un 50-80%.',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: 'title',
|
|
87
|
+
text: 'Conservación de Suelo y Nutrientes: Análisis Edafológico',
|
|
88
|
+
level: 2,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: 'paragraph',
|
|
92
|
+
html: 'El suelo es vivo. Contiene billones de microbios, hongos y organismos que crean la estructura y fertilidad. La erosión por arado excesivo destruye esta estructura; el suelo compactado no absorbe agua; la materia orgánica baja reduce capacidad de retención hídrica. El análisis de suelo (pH, nutrientes, materia orgánica, textura) es el diagnóstico antes de cualquier intervención.',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: 'paragraph',
|
|
96
|
+
html: 'Enfoques como "agricultura de conservación" (mínima labranza, cobertura de residuos) restauran estructura del suelo en 3-5 años. El costo inicial es bajo; el retorno es alto. Suelo sano produce más con menos insumos externos.',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: 'title',
|
|
100
|
+
text: 'Impacto Climático Local: Microbotánica y Efecto Isla de Calor',
|
|
101
|
+
level: 2,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: 'paragraph',
|
|
105
|
+
html: 'El cambio climático no es abstracto; se manifiesta localmente. Plantaciones masivas de árboles pueden reducir temperatura local en 5-8°C comparado con urbanización desértica. Los árboles producen evapotranspiración (liberan humedad) que enfría el ambiente. Entender microclimatología local permite diseñar fincas y huertos resilientes al cambio climático.',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: 'title',
|
|
109
|
+
text: 'El futuro de la agricultura regenerativa 2026',
|
|
110
|
+
level: 2,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: 'paragraph',
|
|
114
|
+
html: 'La tendencia de 2026 es el <strong>Internet de las Cosas Naturales (IoNT)</strong>. Sensores de humedad, drones de monitorización y software de gestión ambiental están democratizando la agricultura regenerativa. Estas herramientas te dan la capacidad de gestionar tu entorno no como un recurso a explotar, sino como un ecosistema a nutrir y proteger mediante la inteligencia técnica.',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: 'stats',
|
|
118
|
+
columns: 2,
|
|
119
|
+
items: [
|
|
120
|
+
{ label: 'Siembra', value: 'Precisión', icon: 'mdi:sprout' },
|
|
121
|
+
{ label: 'Agua', value: 'Capacidad', icon: 'mdi:water' },
|
|
122
|
+
{ label: 'Carbono', value: 'Net Zero', icon: 'mdi:leaf' },
|
|
123
|
+
{ label: 'Fauna', value: 'Bio-ritmos', icon: 'mdi:bug' },
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { CategoryLocaleContent } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const content: CategoryLocaleContent = {
|
|
4
|
+
slug: 'nature',
|
|
5
|
+
title: 'Outils Nature et Agriculture',
|
|
6
|
+
description:
|
|
7
|
+
'Optimisez votre relation avec l\'environnement avec des outils gratuits en ligne. Calculateurs de semis, récupération d\'eau de pluie, thermomètre à grillons et estimateurs d\'empreinte carbone numérique.',
|
|
8
|
+
seo: [
|
|
9
|
+
{
|
|
10
|
+
type: 'title',
|
|
11
|
+
text: 'Ingénierie Biologique et Durabilité : Données pour la Planète',
|
|
12
|
+
level: 2,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'paragraph',
|
|
16
|
+
html: 'La connexion avec la nature en 2026 est médiatisée par une compréhension technique plus profonde de nos ressources. Dans cette section, nous proposons des <strong>outils gratuits en ligne</strong> conçus pour optimiser la production agricole à petite et grande échelle, gérer les ressources vitales en eau et mesurer notre impact invisible sur l\'écosystème mondial. L\'<strong>agriculture de précision</strong> et la durabilité ne sont pas seulement des concepts, mais des actions basées sur des calculs exacts.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
type: 'paragraph',
|
|
20
|
+
html: 'De l\'étalonnage des machines de semis au calcul de l\'impact environnemental de votre navigation sur internet, nos utilitaires transforment des variables biologiques et physiques en données exploitables pour un avenir plus vert.',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'title',
|
|
24
|
+
text: 'Agriculture de Précision : Étalonnage des Semis et Culture',
|
|
25
|
+
level: 2,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'paragraph',
|
|
29
|
+
html: 'L\'efficacité dans les champs commence par la distribution exacte des graines. Notre <strong>calculateur de semis</strong> permet d\'étalonner les semoirs mécaniques et pneumatiques, en convertissant la population souhaitée par hectare en l\'espacement exact entre les graines. Comprendre le taux de germination et la densité de plantation est fondamental pour maximiser le rendement des récoltes et réduire le gaspillage des intrants.',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'title',
|
|
33
|
+
text: 'Gestion des Ressources en Eau : Récupération d\'Eau de Pluie',
|
|
34
|
+
level: 2,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'paragraph',
|
|
38
|
+
html: 'L\'eau est une ressource finie. Le <strong>récupérateur d\'eau de pluie</strong> calcule combien de litres d\'eau vous pouvez collecter annuellement en fonction de la surface de votre toit et de l\'historique des précipitations de votre région. Cet outil est vital pour dimensionner les réservoirs de stockage et mettre en œuvre des systèmes d\'irrigation supplémentaires pour les jardins urbains et les exploitations rurales.',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'title',
|
|
42
|
+
text: 'Curiosités Naturelles et Loi de Dolbear',
|
|
43
|
+
level: 2,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'paragraph',
|
|
47
|
+
html: 'La nature suit des lois mathématiques fascinantes. Saviez-vous que les grillons agissent comme des thermomètres biologiques ? Basée sur la <strong>Loi de Dolbear</strong>, notre calculatrice traduit la fréquence des stridulations des grillons en degrés Celsius avec une précision surprenante, démontrant l\'interconnexion entre la physiologie animale et la thermodynamique environnementale.',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'title',
|
|
51
|
+
text: 'Durabilité Numérique : Empreinte Carbone Web',
|
|
52
|
+
level: 2,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: 'paragraph',
|
|
56
|
+
html: 'Internet n\'est pas immatériel ; il a un coût énergétique. Notre calculateur d\'<strong>empreinte carbone numérique</strong> analyse le poids en données d\'un site web et estime les émissions de CO2 générées par chaque visite, en tenant compte de la consommation des serveurs et du réseau de distribution. C\'est un outil essentiel pour les développeurs et les marques conscientes qui cherchent à mettre en œuvre un design durable.',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: 'list',
|
|
60
|
+
items: [
|
|
61
|
+
'<strong>Optimisation des Ressources :</strong> Réduisez la consommation d\'eau et de graines grâce à une planification agricole basée sur les données.',
|
|
62
|
+
'<strong>Conscience Environnementale :</strong> Visualisez l\'impact caché de vos activités numériques sur l\'environnement mondial.',
|
|
63
|
+
'<strong>Biodiversité et Science :</strong> Des outils qui favorisent l\'observation et la compréhension des rythmes de la vie sauvage.',
|
|
64
|
+
'<strong>Autosuffisance :</strong> Dimensionnez les infrastructures de collecte et de culture pour une vie plus résiliente hors réseau.',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'tip',
|
|
69
|
+
title: 'Conseil de Durabilité Hydrique',
|
|
70
|
+
html: '<p><strong>Stratégie d\'Irrigation :</strong> Utilisez l\'eau collectée pendant les premières heures du matin ou les dernières heures de l\'après-midi. Vous réduirez l\'évaporation de 30 %, permettant à une plus petite quantité d\'eau d\'avoir un impact beaucoup plus important sur le développement de vos plantes.</p>',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: 'title',
|
|
74
|
+
text: 'Rotation des Cultures et Biodiversité : La Science Agricole Millénaire',
|
|
75
|
+
level: 2,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: 'paragraph',
|
|
79
|
+
html: 'La rotation des cultures n\'est pas une tradition médiévale ; c\'est de la physiologie végétale. Différentes cultures consomment différents nutriments du sol et génèrent différentes compositions bactériennes dans la rhizosphère. Le blé épuise l\'azote ; la luzerne le fixe. Le maïs demande beaucoup de potassium ; l\'avoine le laisse disponible. Une rotation intelligente restaure la fertilité naturelle sans engrais synthétiques coûteux.',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 'title',
|
|
83
|
+
text: 'Conservation du Sol et des Nutriments : Analyse Pédologique',
|
|
84
|
+
level: 2,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'paragraph',
|
|
88
|
+
html: 'Le sol est vivant. Il contient des billions de microbes, champignons et organismes qui créent la structure et la fertilité. L\'érosion due à un labour excessif détruit cette structure ; le sol compacté n\'absorbe pas l\'eau ; la faible matière organique réduit la capacité de rétention d\'eau. L\'analyse du sol (pH, nutriments, matière organique, texture) est le diagnostic avant toute intervention.',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: 'title',
|
|
92
|
+
text: 'L\'Avenir de l\'Agriculture Régénérative 2026',
|
|
93
|
+
level: 2,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: 'paragraph',
|
|
97
|
+
html: 'La tendance de 2026 est l\'<strong>Internet des Choses Naturelles (IoNT)</strong>. Les capteurs d\'humidité, les drones de surveillance et les logiciels de gestion environnementale démocratisent l\'agriculture régénérative. Ces outils vous donnent la capacité de gérer votre environnement non pas comme une ressource à exploiter, mais comme un écosystème à nourrir et à protéger grâce à l\'intelligence technique.',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'stats',
|
|
101
|
+
columns: 2,
|
|
102
|
+
items: [
|
|
103
|
+
{ label: 'Semis', value: 'Précision', icon: 'mdi:sprout' },
|
|
104
|
+
{ label: 'Eau', value: 'Capacité', icon: 'mdi:water' },
|
|
105
|
+
{ label: 'Carbone', value: 'Net Zéro', icon: 'mdi:leaf' },
|
|
106
|
+
{ label: 'Faune', value: 'Bio-rythmes', icon: 'mdi:bug' },
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NatureCategoryEntry } from '../types';
|
|
2
|
+
import { cricketThermometer } from '../tool/cricketThermometer/index';
|
|
3
|
+
import { seedCalculator } from '../tool/seedCalculator/index';
|
|
4
|
+
|
|
5
|
+
export const natureCategory: NatureCategoryEntry = {
|
|
6
|
+
icon: 'mdi:leaf',
|
|
7
|
+
tools: [cricketThermometer, seedCalculator],
|
|
8
|
+
i18n: {
|
|
9
|
+
es: () => import('./i18n/es').then((m) => m.content),
|
|
10
|
+
en: () => import('./i18n/en').then((m) => m.content),
|
|
11
|
+
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { SEORenderer } from '@jjlmoya/utils-shared';
|
|
3
|
+
import { natureCategory } from './index';
|
|
4
|
+
import type { KnownLocale } from '../types';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
locale?: KnownLocale;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const { locale = 'es' } = Astro.props;
|
|
11
|
+
const content = await natureCategory.i18n[locale]?.();
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
{content && <SEORenderer content={{ locale, sections: content.seo }} />}
|
|
15
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
interface NavItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
href: string;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Props {
|
|
10
|
+
categoryTitle: string;
|
|
11
|
+
tools?: NavItem[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { categoryTitle, tools = [] } = Astro.props;
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<nav class="preview-nav-sidebar">
|
|
18
|
+
<div class="sidebar-header">
|
|
19
|
+
<h3>{categoryTitle}</h3>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<ul class="tools-list">
|
|
23
|
+
{tools.map((tool) => (
|
|
24
|
+
<li>
|
|
25
|
+
<a
|
|
26
|
+
href={tool.href}
|
|
27
|
+
class:list={['tool-link', { active: tool.isActive }]}
|
|
28
|
+
>
|
|
29
|
+
<span class="tool-title">{tool.title}</span>
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
))}
|
|
33
|
+
</ul>
|
|
34
|
+
</nav>
|
|
35
|
+
|
|
36
|
+
<style>
|
|
37
|
+
.preview-nav-sidebar {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
height: 100%;
|
|
41
|
+
background: var(--bg-surface, #0f172a);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sidebar-header {
|
|
45
|
+
padding: 2rem 1.5rem 1.5rem;
|
|
46
|
+
border-bottom: 1px solid var(--border-color, #1e293b);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sidebar-header h3 {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-size: 0.75rem;
|
|
52
|
+
font-weight: 900;
|
|
53
|
+
text-transform: uppercase;
|
|
54
|
+
letter-spacing: 0.1em;
|
|
55
|
+
color: var(--text-muted, #94a3b8);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tools-list {
|
|
59
|
+
list-style: none;
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding: 0.5rem 0;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 0.25rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tools-list li {
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tool-link {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
padding: 0.75rem 1.5rem;
|
|
75
|
+
color: var(--text-muted, #94a3b8);
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
font-size: 0.9375rem;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
80
|
+
border-left: 3px solid transparent;
|
|
81
|
+
position: relative;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tool-link:hover {
|
|
85
|
+
color: var(--text-base, #f1f5f9);
|
|
86
|
+
background: rgba(255, 255, 255, 0.08);
|
|
87
|
+
padding-left: 1.75rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tool-link.active {
|
|
91
|
+
color: var(--accent, #f43f5e);
|
|
92
|
+
background: rgba(244, 63, 94, 0.15);
|
|
93
|
+
border-left-color: var(--accent, #f43f5e);
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.tool-link.active::before {
|
|
98
|
+
content: '';
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: 0;
|
|
101
|
+
top: 50%;
|
|
102
|
+
transform: translateY(-50%);
|
|
103
|
+
width: 3px;
|
|
104
|
+
height: 24px;
|
|
105
|
+
background: var(--accent, #f43f5e);
|
|
106
|
+
border-radius: 0 2px 2px 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.tool-title {
|
|
110
|
+
display: block;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
</style>
|
|
116
|
+
|