@jjlmoya/utils-health 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 +60 -0
- package/src/category/i18n/es.ts +60 -0
- package/src/category/i18n/fr.ts +60 -0
- package/src/category/index.ts +22 -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 +28 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +36 -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/binauralTuner/bibliography.astro +14 -0
- package/src/tool/binauralTuner/component.astro +687 -0
- package/src/tool/binauralTuner/i18n/en.ts +187 -0
- package/src/tool/binauralTuner/i18n/es.ts +187 -0
- package/src/tool/binauralTuner/i18n/fr.ts +187 -0
- package/src/tool/binauralTuner/index.ts +27 -0
- package/src/tool/binauralTuner/seo.astro +14 -0
- package/src/tool/binauralTuner/ui.ts +18 -0
- package/src/tool/bloodUnitConverter/bibliography.astro +14 -0
- package/src/tool/bloodUnitConverter/component.astro +915 -0
- package/src/tool/bloodUnitConverter/i18n/en.ts +227 -0
- package/src/tool/bloodUnitConverter/i18n/es.ts +250 -0
- package/src/tool/bloodUnitConverter/i18n/fr.ts +218 -0
- package/src/tool/bloodUnitConverter/index.ts +27 -0
- package/src/tool/bloodUnitConverter/seo.astro +14 -0
- package/src/tool/bloodUnitConverter/ui.ts +38 -0
- package/src/tool/bmiCalculator/bibliography.astro +14 -0
- package/src/tool/bmiCalculator/component.astro +415 -0
- package/src/tool/bmiCalculator/i18n/en.ts +217 -0
- package/src/tool/bmiCalculator/i18n/es.ts +221 -0
- package/src/tool/bmiCalculator/i18n/fr.ts +217 -0
- package/src/tool/bmiCalculator/index.ts +27 -0
- package/src/tool/bmiCalculator/seo.astro +14 -0
- package/src/tool/bmiCalculator/ui.ts +21 -0
- package/src/tool/breathingVisualizer/bibliography.astro +14 -0
- package/src/tool/breathingVisualizer/component.astro +636 -0
- package/src/tool/breathingVisualizer/i18n/en.ts +206 -0
- package/src/tool/breathingVisualizer/i18n/es.ts +206 -0
- package/src/tool/breathingVisualizer/i18n/fr.ts +206 -0
- package/src/tool/breathingVisualizer/index.ts +27 -0
- package/src/tool/breathingVisualizer/seo.astro +14 -0
- package/src/tool/breathingVisualizer/ui.ts +31 -0
- package/src/tool/caffeineTracker/bibliography.astro +14 -0
- package/src/tool/caffeineTracker/component.astro +1210 -0
- package/src/tool/caffeineTracker/i18n/en.ts +198 -0
- package/src/tool/caffeineTracker/i18n/es.ts +198 -0
- package/src/tool/caffeineTracker/i18n/fr.ts +198 -0
- package/src/tool/caffeineTracker/index.ts +27 -0
- package/src/tool/caffeineTracker/logic.ts +31 -0
- package/src/tool/caffeineTracker/seo.astro +14 -0
- package/src/tool/caffeineTracker/ui.ts +36 -0
- package/src/tool/daltonismSimulator/bibliography.astro +14 -0
- package/src/tool/daltonismSimulator/component.astro +383 -0
- package/src/tool/daltonismSimulator/i18n/en.ts +188 -0
- package/src/tool/daltonismSimulator/i18n/es.ts +218 -0
- package/src/tool/daltonismSimulator/i18n/fr.ts +168 -0
- package/src/tool/daltonismSimulator/index.ts +27 -0
- package/src/tool/daltonismSimulator/seo.astro +14 -0
- package/src/tool/daltonismSimulator/ui.ts +20 -0
- package/src/tool/digestionStopwatch/bibliography.astro +14 -0
- package/src/tool/digestionStopwatch/component.astro +627 -0
- package/src/tool/digestionStopwatch/i18n/en.ts +173 -0
- package/src/tool/digestionStopwatch/i18n/es.ts +173 -0
- package/src/tool/digestionStopwatch/i18n/fr.ts +173 -0
- package/src/tool/digestionStopwatch/index.ts +27 -0
- package/src/tool/digestionStopwatch/logic.ts +63 -0
- package/src/tool/digestionStopwatch/seo.astro +14 -0
- package/src/tool/digestionStopwatch/ui.ts +20 -0
- package/src/tool/epworthSleepinessScale/bibliography.astro +14 -0
- package/src/tool/epworthSleepinessScale/component.astro +528 -0
- package/src/tool/epworthSleepinessScale/i18n/en.ts +217 -0
- package/src/tool/epworthSleepinessScale/i18n/es.ts +217 -0
- package/src/tool/epworthSleepinessScale/i18n/fr.ts +217 -0
- package/src/tool/epworthSleepinessScale/index.ts +27 -0
- package/src/tool/epworthSleepinessScale/seo.astro +14 -0
- package/src/tool/epworthSleepinessScale/ui.ts +27 -0
- package/src/tool/hydrationCalculator/bibliography.astro +14 -0
- package/src/tool/hydrationCalculator/component.astro +694 -0
- package/src/tool/hydrationCalculator/i18n/en.ts +217 -0
- package/src/tool/hydrationCalculator/i18n/es.ts +222 -0
- package/src/tool/hydrationCalculator/i18n/fr.ts +199 -0
- package/src/tool/hydrationCalculator/index.ts +27 -0
- package/src/tool/hydrationCalculator/seo.astro +14 -0
- package/src/tool/hydrationCalculator/ui.ts +28 -0
- package/src/tool/pelliRobsonTest/bibliography.astro +14 -0
- package/src/tool/pelliRobsonTest/component.astro +653 -0
- package/src/tool/pelliRobsonTest/i18n/en.ts +205 -0
- package/src/tool/pelliRobsonTest/i18n/es.ts +205 -0
- package/src/tool/pelliRobsonTest/i18n/fr.ts +205 -0
- package/src/tool/pelliRobsonTest/index.ts +27 -0
- package/src/tool/pelliRobsonTest/seo.astro +14 -0
- package/src/tool/pelliRobsonTest/ui.ts +21 -0
- package/src/tool/peripheralVisionTrainer/bibliography.astro +14 -0
- package/src/tool/peripheralVisionTrainer/component.astro +678 -0
- package/src/tool/peripheralVisionTrainer/i18n/en.ts +224 -0
- package/src/tool/peripheralVisionTrainer/i18n/es.ts +224 -0
- package/src/tool/peripheralVisionTrainer/i18n/fr.ts +211 -0
- package/src/tool/peripheralVisionTrainer/index.ts +27 -0
- package/src/tool/peripheralVisionTrainer/seo.astro +14 -0
- package/src/tool/peripheralVisionTrainer/ui.ts +26 -0
- package/src/tool/readingDistanceCalculator/bibliography.astro +14 -0
- package/src/tool/readingDistanceCalculator/component.astro +588 -0
- package/src/tool/readingDistanceCalculator/i18n/en.ts +202 -0
- package/src/tool/readingDistanceCalculator/i18n/es.ts +215 -0
- package/src/tool/readingDistanceCalculator/i18n/fr.ts +193 -0
- package/src/tool/readingDistanceCalculator/index.ts +31 -0
- package/src/tool/readingDistanceCalculator/seo.astro +14 -0
- package/src/tool/readingDistanceCalculator/ui.ts +18 -0
- package/src/tool/screenDecompressionTime/bibliography.astro +14 -0
- package/src/tool/screenDecompressionTime/component.astro +671 -0
- package/src/tool/screenDecompressionTime/i18n/en.ts +225 -0
- package/src/tool/screenDecompressionTime/i18n/es.ts +247 -0
- package/src/tool/screenDecompressionTime/i18n/fr.ts +225 -0
- package/src/tool/screenDecompressionTime/index.ts +27 -0
- package/src/tool/screenDecompressionTime/seo.astro +14 -0
- package/src/tool/screenDecompressionTime/ui.ts +32 -0
- package/src/tool/tinnitusReliever/bibliography.astro +14 -0
- package/src/tool/tinnitusReliever/component.astro +581 -0
- package/src/tool/tinnitusReliever/i18n/en.ts +161 -0
- package/src/tool/tinnitusReliever/i18n/es.ts +161 -0
- package/src/tool/tinnitusReliever/i18n/fr.ts +161 -0
- package/src/tool/tinnitusReliever/index.ts +27 -0
- package/src/tool/tinnitusReliever/seo.astro +14 -0
- package/src/tool/tinnitusReliever/ui.ts +9 -0
- package/src/tool/ubeCalculator/bibliography.astro +14 -0
- package/src/tool/ubeCalculator/component.astro +683 -0
- package/src/tool/ubeCalculator/i18n/en.ts +200 -0
- package/src/tool/ubeCalculator/i18n/es.ts +200 -0
- package/src/tool/ubeCalculator/i18n/fr.ts +196 -0
- package/src/tool/ubeCalculator/index.ts +27 -0
- package/src/tool/ubeCalculator/seo.astro +14 -0
- package/src/tool/ubeCalculator/ui.ts +26 -0
- package/src/tool/waterPurifier/bibliography.astro +14 -0
- package/src/tool/waterPurifier/component.astro +628 -0
- package/src/tool/waterPurifier/i18n/en.ts +167 -0
- package/src/tool/waterPurifier/i18n/es.ts +167 -0
- package/src/tool/waterPurifier/i18n/fr.ts +167 -0
- package/src/tool/waterPurifier/index.ts +27 -0
- package/src/tool/waterPurifier/seo.astro +14 -0
- package/src/tool/waterPurifier/ui.ts +18 -0
- package/src/tools.ts +19 -0
- package/src/types.ts +72 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { WithContext, SoftwareApplication, FAQPage, HowToThing } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { CaffeineTrackerUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'caffeine-tracker';
|
|
6
|
+
const title = 'Caffeine Metabolism Tracker: Sleep Simulator';
|
|
7
|
+
const description =
|
|
8
|
+
'Calculate how much caffeine remains in your system based on your metabolism. Decay visualizer to avoid insomnia and improve your rest.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'What is caffeine half-life?',
|
|
13
|
+
answer:
|
|
14
|
+
'It is the time it takes your body to eliminate 50% of the caffeine consumed. In a healthy adult, the half-life ranges between 5 and 6 hours, though it can vary drastically based on genetics and habits.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'Why does coffee affect me more in the afternoon?',
|
|
18
|
+
answer:
|
|
19
|
+
'Caffeine blocks adenosine receptors (the tiredness molecule). If you consume coffee in the afternoon, adenosine accumulates but cannot act. When caffeine is metabolized, all that adenosine hits at once, causing the "crash".',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'How does smoking affect coffee metabolism?',
|
|
23
|
+
answer:
|
|
24
|
+
'Smoking accelerates the CYP1A2 enzyme responsible for processing caffeine. That is why smokers tend to metabolize coffee up to 50% faster than non-smokers.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'Is it safe to consume caffeine during pregnancy?',
|
|
28
|
+
answer:
|
|
29
|
+
'During pregnancy, the half-life of caffeine can increase to 15 hours due to metabolic changes. It is recommended to limit consumption to less than 200mg daily and always under medical supervision.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Log your intake',
|
|
36
|
+
text: 'Enter the amount of caffeine (in mg) and the time you consumed it.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Adjust your metabolism',
|
|
40
|
+
text: 'Configure whether you are a smoker or have a slow/fast metabolism for greater accuracy.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Visualize the decay',
|
|
44
|
+
text: 'Watch the chart to see how much caffeine will remain in your blood at bedtime.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Optimize your rest',
|
|
48
|
+
text: 'Use the data to decide if you can have another cup or if it is better to stop to ensure quality sleep.',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowToThing> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step, i) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
position: i + 1,
|
|
70
|
+
name: step.name,
|
|
71
|
+
text: step.text,
|
|
72
|
+
})),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
76
|
+
'@context': 'https://schema.org',
|
|
77
|
+
'@type': 'SoftwareApplication',
|
|
78
|
+
name: title,
|
|
79
|
+
description,
|
|
80
|
+
applicationCategory: 'HealthApplication',
|
|
81
|
+
operatingSystem: 'Web',
|
|
82
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const content: ToolLocaleContent<CaffeineTrackerUI> = {
|
|
86
|
+
slug,
|
|
87
|
+
title,
|
|
88
|
+
description,
|
|
89
|
+
faqTitle: 'Frequently asked questions about caffeine and sleep',
|
|
90
|
+
faq: faqData,
|
|
91
|
+
bibliographyTitle: 'Metabolism Science and Pharmacokinetics',
|
|
92
|
+
bibliography: [
|
|
93
|
+
{
|
|
94
|
+
name: 'Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (Journal of Clinical Sleep Medicine)',
|
|
95
|
+
url: 'https://jcsm.aasm.org/doi/10.5664/jcsm.3170',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Effect of smoking on caffeine elimination (Clinical Pharmacology & Therapeutics)',
|
|
99
|
+
url: 'https://pubmed.ncbi.nlm.nih.gov/2482799/',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Caffeine metabolism during pregnancy (British Journal of Clinical Pharmacology)',
|
|
103
|
+
url: 'https://www.bmj.com/content/313/7069/1358.short',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Common genetic variation in the CYP1A2 gene and caffeine metabolism (JAMA)',
|
|
107
|
+
url: 'https://pmc.ncbi.nlm.nih.gov/articles/PMC9880799/',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
howTo: howToData,
|
|
111
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
112
|
+
ui: {
|
|
113
|
+
drinkEspressoName: 'Espresso',
|
|
114
|
+
drinkDoubleEspressoName: 'Double Espresso',
|
|
115
|
+
drinkBrewedName: 'Filter Coffee',
|
|
116
|
+
drinkEnergySmallName: 'Energy Drink',
|
|
117
|
+
drinkMonsterName: 'XL Energy Can',
|
|
118
|
+
drinkSodaName: 'Cola Soda',
|
|
119
|
+
drinkTeaName: 'Black Tea',
|
|
120
|
+
drinkEspressoDesc: '60mg • 30ml',
|
|
121
|
+
drinkDoubleEspressoDesc: '120mg • 60ml',
|
|
122
|
+
drinkBrewedDesc: '95mg • 250ml',
|
|
123
|
+
drinkEnergySmallDesc: '80mg • 250ml',
|
|
124
|
+
drinkMonsterDesc: '160mg • 500ml',
|
|
125
|
+
drinkSodaDesc: '35mg • 330ml',
|
|
126
|
+
drinkTeaDesc: '45mg • 250ml',
|
|
127
|
+
metabolismFastLabel: 'Fast (Smoker)',
|
|
128
|
+
metabolismNormalLabel: 'Standard',
|
|
129
|
+
metabolismSlowLabel: 'Slow (Contraceptives)',
|
|
130
|
+
metabolismPregnancyLabel: 'Very Slow (Pregnancy)',
|
|
131
|
+
metabolismFastDesc: 'Smoking speeds up caffeine elimination.',
|
|
132
|
+
metabolismNormalDesc: 'Average for a healthy adult.',
|
|
133
|
+
metabolismSlowDesc: 'Certain medications slow the process.',
|
|
134
|
+
metabolismPregnancyDesc: 'Very slow elimination.',
|
|
135
|
+
sectionAddDrink: 'Add Drink',
|
|
136
|
+
sectionMetabolism: 'Metabolism',
|
|
137
|
+
sectionJournal: 'Total Intake',
|
|
138
|
+
labelCurrentMg: 'In Blood Now',
|
|
139
|
+
labelEliminationTime: 'Clearance Time',
|
|
140
|
+
labelSleepQuestion: 'When will you sleep?',
|
|
141
|
+
statusOptimal: 'Optimal',
|
|
142
|
+
statusModerate: 'Moderate',
|
|
143
|
+
statusCritical: 'Critical',
|
|
144
|
+
btnReset: 'Reset',
|
|
145
|
+
journalEmpty: 'Empty',
|
|
146
|
+
sleepAtPrefix: 'At',
|
|
147
|
+
},
|
|
148
|
+
seo: [
|
|
149
|
+
{
|
|
150
|
+
type: 'summary',
|
|
151
|
+
title: 'Caffeine Metabolism Tracker',
|
|
152
|
+
items: [
|
|
153
|
+
'<strong>Pharmacological half-life</strong>: time it takes your body to eliminate 50% of consumed caffeine.',
|
|
154
|
+
'<strong>Personalized metabolism</strong>: adjust for smokers, contraceptive users, or pregnancy.',
|
|
155
|
+
'<strong>Real-time decay chart</strong>: visualize how much caffeine remains in blood hour by hour over 24h.',
|
|
156
|
+
'<strong>Integrated sleep simulator</strong>: calculate exactly how much caffeine you will have at bedtime.',
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'title',
|
|
161
|
+
text: 'Caffeine Half-Life: Why That 5 PM Coffee Ruins Your Sleep',
|
|
162
|
+
level: 2,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: 'paragraph',
|
|
166
|
+
html: 'Most people consume caffeine daily without really understanding how it interacts with their biology. The key concept to master is the <strong>half-life</strong>. In pharmacology, the half-life is the time it takes the body to eliminate 50% of a substance from the blood. For the average healthy adult, caffeine has a half-life of about <strong>5 to 6 hours</strong>.',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
type: 'paragraph',
|
|
170
|
+
html: 'This means that if you drink a cup of coffee with 100mg of caffeine at 4 PM, at 10 PM you will still have 50mg circulating in your brain. At 4 AM (12 hours later), 25mg will still be active. That amount is more than enough to disrupt your sleep architecture, reducing deep sleep even if you manage to fall asleep.',
|
|
171
|
+
},
|
|
172
|
+
{ type: 'title', text: 'The Energy Lie: Adenosine', level: 2 },
|
|
173
|
+
{
|
|
174
|
+
type: 'paragraph',
|
|
175
|
+
html: 'We often say caffeine "gives us energy," but this is biologically incorrect. Caffeine does not add energy; what it does is <strong>block the perception of fatigue</strong>. From the moment you wake up, your brain accumulates a molecule called <strong>adenosine</strong>. The more adenosine binds to its receptors, the sleepier you feel. Caffeine fits into those same receptors, blocking them. When it finally metabolizes, all the accumulated adenosine hits at once: the famous <strong>"Caffeine Crash"</strong>.',
|
|
176
|
+
},
|
|
177
|
+
{ type: 'title', text: 'Factors That Alter Your Caffeine Metabolism', level: 2 },
|
|
178
|
+
{
|
|
179
|
+
type: 'list',
|
|
180
|
+
items: [
|
|
181
|
+
'<strong>Smoking (Accelerator):</strong> Smoking induces the CYP1A2 enzyme. Smokers eliminate caffeine twice as fast, which is why they tend to drink more cups to feel the same effect.',
|
|
182
|
+
'<strong>Oral contraceptives (Decelerator):</strong> Can double the half-life to 10-12 hours. A midday coffee can be equivalent to an evening coffee.',
|
|
183
|
+
'<strong>Pregnancy:</strong> During the third trimester, the half-life can extend to 15 hours due to hormonal and metabolic changes.',
|
|
184
|
+
'<strong>Genetics (CYP1A2):</strong> 50% of the population are "slow metabolizers" who feel jittery from just one small cup.',
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{ type: 'title', text: 'Optimizing Your Sleep Hygiene with Caffeine', level: 2 },
|
|
188
|
+
{
|
|
189
|
+
type: 'paragraph',
|
|
190
|
+
html: 'Most sleep experts recommend stopping caffeine consumption <strong>8 to 10 hours before</strong> bedtime. If your goal is to sleep at 11 PM, your last coffee should be between 1 PM and 3 PM. Also, to avoid the afternoon crash, wait 90 minutes after waking up before having your first cup.',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'tip',
|
|
194
|
+
title: 'Caffeine Curfew',
|
|
195
|
+
html: 'Use the simulator to calculate exactly how much caffeine you will have in your blood at bedtime. Experts recommend less than 20mg for quality sleep. Adjust the slider until the level shows "Optimal".',
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { WithContext, SoftwareApplication, FAQPage, HowToThing } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { CaffeineTrackerUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'rastreador-cafeina';
|
|
6
|
+
const title = 'Rastreador de Vida Media de la Cafeína: Simulador de Sueño';
|
|
7
|
+
const description =
|
|
8
|
+
'Calcula cuánta cafeína queda en tu sistema según tu metabolismo. Visualizador de degradación para evitar el insomnio y mejorar tu descanso.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: '¿Qué es la vida media de la cafeína?',
|
|
13
|
+
answer:
|
|
14
|
+
'Es el tiempo que tarda tu cuerpo en eliminar el 50% de la cafeína consumida. En un adulto sano, la vida media oscila entre 5 y 6 horas, aunque puede variar drásticamente según la genética y hábitos.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: '¿Por qué el café me afecta más por la tarde?',
|
|
18
|
+
answer:
|
|
19
|
+
'La cafeína bloquea los receptores de adenosina (la molécula del cansancio). Si consumes café por la tarde, la adenosina se acumula pero no puede actuar. Cuando la cafeína se metaboliza, toda esa adenosina golpea de golpe, causando el "crash".',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: '¿Cómo afecta el tabaco al metabolismo del café?',
|
|
23
|
+
answer:
|
|
24
|
+
'Fumar acelera la enzima CYP1A2, encargada de procesar la cafeína. Por eso, los fumadores suelen metabolizar el café hasta un 50% más rápido que los no fumadores.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: '¿Es seguro tomar cafeína durante el embarazo?',
|
|
28
|
+
answer:
|
|
29
|
+
'Durante el embarazo, la vida media de la cafeína puede aumentar hasta las 15 horas debido a cambios metabólicos. Se recomienda limitar el consumo a menos de 200mg diarios y siempre bajo supervisión médica.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Registrar consumo',
|
|
36
|
+
text: 'Introduce la cantidad de cafeína (en mg) y la hora a la que la has consumido.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Ajustar metabolismo',
|
|
40
|
+
text: 'Configura si eres fumador o si tienes un metabolismo lento/rápido para mayor precisión.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Visualizar degradación',
|
|
44
|
+
text: 'Observa el gráfico para ver cuánta cafeína quedará en tu sangre a la hora de ir a dormir.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Optimizar descanso',
|
|
48
|
+
text: 'Usa los datos para decidir si puedes tomar otra taza o si es mejor parar para garantizar un sueño reparador.',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowToThing> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step, i) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
position: i + 1,
|
|
70
|
+
name: step.name,
|
|
71
|
+
text: step.text,
|
|
72
|
+
})),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
76
|
+
'@context': 'https://schema.org',
|
|
77
|
+
'@type': 'SoftwareApplication',
|
|
78
|
+
name: title,
|
|
79
|
+
description,
|
|
80
|
+
applicationCategory: 'HealthApplication',
|
|
81
|
+
operatingSystem: 'Web',
|
|
82
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const content: ToolLocaleContent<CaffeineTrackerUI> = {
|
|
86
|
+
slug,
|
|
87
|
+
title,
|
|
88
|
+
description,
|
|
89
|
+
faqTitle: 'Preguntas frecuentes sobre la cafeína y el sueño',
|
|
90
|
+
faq: faqData,
|
|
91
|
+
bibliographyTitle: 'Ciencia del Metabolismo y Farmacocinética',
|
|
92
|
+
bibliography: [
|
|
93
|
+
{
|
|
94
|
+
name: 'Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (Journal of Clinical Sleep Medicine)',
|
|
95
|
+
url: 'https://jcsm.aasm.org/doi/10.5664/jcsm.3170',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Effect of smoking on caffeine elimination (Clinical Pharmacology & Therapeutics)',
|
|
99
|
+
url: 'https://pubmed.ncbi.nlm.nih.gov/2482799/',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Caffeine metabolism during pregnancy (British Journal of Clinical Pharmacology)',
|
|
103
|
+
url: 'https://www.bmj.com/content/313/7069/1358.short',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Common genetic variation in the CYP1A2 gene and caffeine metabolism (JAMA)',
|
|
107
|
+
url: 'https://pmc.ncbi.nlm.nih.gov/articles/PMC9880799/',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
howTo: howToData,
|
|
111
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
112
|
+
ui: {
|
|
113
|
+
drinkEspressoName: 'Espresso',
|
|
114
|
+
drinkDoubleEspressoName: 'Doble Espresso',
|
|
115
|
+
drinkBrewedName: 'Café de Filtro',
|
|
116
|
+
drinkEnergySmallName: 'Bebida Energética',
|
|
117
|
+
drinkMonsterName: 'Lata XL Energy',
|
|
118
|
+
drinkSodaName: 'Refresco Cola',
|
|
119
|
+
drinkTeaName: 'Té Negro',
|
|
120
|
+
drinkEspressoDesc: '60mg • 30ml',
|
|
121
|
+
drinkDoubleEspressoDesc: '120mg • 60ml',
|
|
122
|
+
drinkBrewedDesc: '95mg • 250ml',
|
|
123
|
+
drinkEnergySmallDesc: '80mg • 250ml',
|
|
124
|
+
drinkMonsterDesc: '160mg • 500ml',
|
|
125
|
+
drinkSodaDesc: '35mg • 330ml',
|
|
126
|
+
drinkTeaDesc: '45mg • 250ml',
|
|
127
|
+
metabolismFastLabel: 'Rápido (Fumador)',
|
|
128
|
+
metabolismNormalLabel: 'Estándar',
|
|
129
|
+
metabolismSlowLabel: 'Lento (Anticonceptivos)',
|
|
130
|
+
metabolismPregnancyLabel: 'Muy Lento (Embarazo)',
|
|
131
|
+
metabolismFastDesc: 'El tabaco acelera la eliminación del café.',
|
|
132
|
+
metabolismNormalDesc: 'Promedio para un adulto sano.',
|
|
133
|
+
metabolismSlowDesc: 'Ciertos medicamentos ralentizan el proceso.',
|
|
134
|
+
metabolismPregnancyDesc: 'Eliminación muy pausada.',
|
|
135
|
+
sectionAddDrink: 'Añadir Bebida',
|
|
136
|
+
sectionMetabolism: 'Metabolismo',
|
|
137
|
+
sectionJournal: 'Consumo Acumulado',
|
|
138
|
+
labelCurrentMg: 'En Sangre ahora',
|
|
139
|
+
labelEliminationTime: 'Tiempo de limpieza',
|
|
140
|
+
labelSleepQuestion: '¿A qué hora dormirás?',
|
|
141
|
+
statusOptimal: 'Óptimo',
|
|
142
|
+
statusModerate: 'Moderado',
|
|
143
|
+
statusCritical: 'Crítico',
|
|
144
|
+
btnReset: 'Reiniciar',
|
|
145
|
+
journalEmpty: 'Vacío',
|
|
146
|
+
sleepAtPrefix: 'A las',
|
|
147
|
+
},
|
|
148
|
+
seo: [
|
|
149
|
+
{
|
|
150
|
+
type: 'summary',
|
|
151
|
+
title: 'Rastreador de Vida Media de la Cafeína',
|
|
152
|
+
items: [
|
|
153
|
+
'<strong>Vida media farmacológica</strong>: tiempo que tarda tu cuerpo en eliminar el 50% de la cafeína consumida.',
|
|
154
|
+
'<strong>Metabolismo personalizado</strong>: ajusta si eres fumador, tomas anticonceptivos o estás embarazada.',
|
|
155
|
+
'<strong>Gráfico de degradación</strong>: visualiza cuánta cafeína queda en sangre hora a hora durante 24h.',
|
|
156
|
+
'<strong>Simulador de sueño</strong>: calcula exactamente cuánta cafeína tendrás al acostarte.',
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'title',
|
|
161
|
+
text: 'Vida Media de la Cafeína: Por qué ese café de las 5 PM arruina tu sueño',
|
|
162
|
+
level: 2,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: 'paragraph',
|
|
166
|
+
html: 'La mayoría de las personas consumen cafeína a diario sin entender realmente cómo interactúa con su biología. El concepto clave que debemos dominar es la <strong>vida media</strong>. En farmacología, la vida media es el tiempo que tarda el cuerpo en eliminar el 50% de una sustancia de la sangre. Para un adulto sano promedio, la cafeína tiene una vida media de unas <strong>5 a 6 horas</strong>.',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
type: 'paragraph',
|
|
170
|
+
html: 'Esto significa que si tomas una taza de café con 100mg de cafeína a las 4 de la tarde, a las 10 de la noche todavía tendrás 50mg circulando en tu cerebro. A las 4 de la mañana (12 horas después), aún quedarán 25mg activos. Esa cantidad es más que suficiente para alterar la arquitectura de tu sueño, reduciendo la fase de sueño profundo incluso si logras quedarte dormido.',
|
|
171
|
+
},
|
|
172
|
+
{ type: 'title', text: 'La Mentira de la Energía: La Adenosina', level: 2 },
|
|
173
|
+
{
|
|
174
|
+
type: 'paragraph',
|
|
175
|
+
html: 'A menudo decimos que la cafeína nos "da energía", pero esto es biológicamente incorrecto. La cafeína no añade energía; lo que hace es <strong>bloquear la percepción del cansancio</strong>. Desde que te despiertas, tu cerebro acumula una molécula llamada <strong>adenosina</strong>. Cuanta más adenosina se une a sus receptores, más sueño sientes. La cafeína encaja en esos mismos receptores, bloqueándolos. Cuando se metaboliza, toda la adenosina acumulada golpea de golpe: el famoso <strong>"Caffeine Crash"</strong>.',
|
|
176
|
+
},
|
|
177
|
+
{ type: 'title', text: 'Factores que Alteran tu Metabolismo del Café', level: 2 },
|
|
178
|
+
{
|
|
179
|
+
type: 'list',
|
|
180
|
+
items: [
|
|
181
|
+
'<strong>Tabaquismo (Acelerador):</strong> Fumar induce la enzima CYP1A2. Los fumadores eliminan la cafeína el doble de rápido, por eso suelen tomar más tazas para sentir el mismo efecto.',
|
|
182
|
+
'<strong>Anticonceptivos orales (Ralentizador):</strong> Pueden duplicar la vida media hasta las 10-12 horas. Un café al mediodía puede equivaler a un café nocturno.',
|
|
183
|
+
'<strong>Embarazo:</strong> Durante el tercer trimestre, la vida media puede extenderse hasta las 15 horas por cambios hormonales y metabólicos.',
|
|
184
|
+
'<strong>Genética (CYP1A2):</strong> El 50% de la población son "metabolizadores lentos" que sienten nerviosismo con una sola taza.',
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{ type: 'title', text: 'Optimizando tu Higiene del Sueño con Cafeína', level: 2 },
|
|
188
|
+
{
|
|
189
|
+
type: 'paragraph',
|
|
190
|
+
html: 'La mayoría de los expertos en sueño recomiendan dejar de consumir cafeína <strong>8 a 10 horas antes</strong> de acostarse. Si tu objetivo es dormir a las 11 PM, tu último café debería ser entre la 1 PM y las 3 PM. Además, para evitar el crash de la tarde, espera 90 minutos después de despertarte antes de tomar tu primera taza.',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'tip',
|
|
194
|
+
title: 'Caffeine Curfew (Toque de Queda de la Cafeína)',
|
|
195
|
+
html: 'Usa el simulador para calcular exactamente cuánta cafeína tendrás en sangre cuando quieras dormir. Los expertos recomiendan menos de 20mg para un sueño de calidad. Ajusta el deslizador hasta que el nivel sea "Óptimo".',
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { WithContext, SoftwareApplication, FAQPage, HowToThing } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { CaffeineTrackerUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'traceur-cafeine';
|
|
6
|
+
const title = 'Calculateur de Métabolisme de la Caféine: Simulateur de Sommeil';
|
|
7
|
+
const description =
|
|
8
|
+
'Calculez quelle quantité de caféine reste dans votre système selon votre métabolisme. Visualiseur de dégradation pour éviter l\'insomnie et améliorer votre repos.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Qu\'est-ce que la demi-vie de la caféine?',
|
|
13
|
+
answer:
|
|
14
|
+
'C\'est le temps que met votre corps pour éliminer 50% de la caféine consommée. Chez un adulte en bonne santé, la demi-vie se situe entre 5 et 6 heures, bien qu\'elle puisse varier considérablement selon la génétique et les habitudes.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'Pourquoi le café m\'affecte-t-il plus l\'après-midi?',
|
|
18
|
+
answer:
|
|
19
|
+
'La caféine bloque les récepteurs d\'adénosine (la molécule de fatigue). Si vous consommez du café l\'après-midi, l\'adénosine s\'accumule mais ne peut pas agir. Quand la caféine est métabolisée, toute cette adénosine frappe d\'un coup, provoquant le "crash".',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'Comment le tabac affecte-t-il le métabolisme du café?',
|
|
23
|
+
answer:
|
|
24
|
+
'Fumer accélère l\'enzyme CYP1A2 responsable du traitement de la caféine. C\'est pourquoi les fumeurs métabolisent généralement le café jusqu\'à 50% plus vite que les non-fumeurs.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'Est-il sûr de consommer de la caféine pendant la grossesse?',
|
|
28
|
+
answer:
|
|
29
|
+
'Pendant la grossesse, la demi-vie de la caféine peut augmenter jusqu\'à 15 heures en raison de changements métaboliques. Il est recommandé de limiter la consommation à moins de 200mg par jour et toujours sous surveillance médicale.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Enregistrer la consommation',
|
|
36
|
+
text: 'Saisissez la quantité de caféine (en mg) et l\'heure à laquelle vous l\'avez consommée.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Ajuster le métabolisme',
|
|
40
|
+
text: 'Configurez si vous êtes fumeur ou si vous avez un métabolisme lent/rapide pour plus de précision.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Visualiser la dégradation',
|
|
44
|
+
text: 'Observez le graphique pour voir combien de caféine restera dans votre sang à l\'heure du coucher.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Optimiser votre repos',
|
|
48
|
+
text: 'Utilisez les données pour décider si vous pouvez prendre une autre tasse ou s\'il vaut mieux arrêter pour garantir un sommeil réparateur.',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowToThing> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step, i) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
position: i + 1,
|
|
70
|
+
name: step.name,
|
|
71
|
+
text: step.text,
|
|
72
|
+
})),
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
76
|
+
'@context': 'https://schema.org',
|
|
77
|
+
'@type': 'SoftwareApplication',
|
|
78
|
+
name: title,
|
|
79
|
+
description,
|
|
80
|
+
applicationCategory: 'HealthApplication',
|
|
81
|
+
operatingSystem: 'Web',
|
|
82
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const content: ToolLocaleContent<CaffeineTrackerUI> = {
|
|
86
|
+
slug,
|
|
87
|
+
title,
|
|
88
|
+
description,
|
|
89
|
+
faqTitle: 'Questions fréquentes sur la caféine et le sommeil',
|
|
90
|
+
faq: faqData,
|
|
91
|
+
bibliographyTitle: 'Science du Métabolisme et Pharmacocinétique',
|
|
92
|
+
bibliography: [
|
|
93
|
+
{
|
|
94
|
+
name: 'Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed (Journal of Clinical Sleep Medicine)',
|
|
95
|
+
url: 'https://jcsm.aasm.org/doi/10.5664/jcsm.3170',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Effect of smoking on caffeine elimination (Clinical Pharmacology & Therapeutics)',
|
|
99
|
+
url: 'https://pubmed.ncbi.nlm.nih.gov/2482799/',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Caffeine metabolism during pregnancy (British Journal of Clinical Pharmacology)',
|
|
103
|
+
url: 'https://www.bmj.com/content/313/7069/1358.short',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Common genetic variation in the CYP1A2 gene and caffeine metabolism (JAMA)',
|
|
107
|
+
url: 'https://pmc.ncbi.nlm.nih.gov/articles/PMC9880799/',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
howTo: howToData,
|
|
111
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
112
|
+
ui: {
|
|
113
|
+
drinkEspressoName: 'Espresso',
|
|
114
|
+
drinkDoubleEspressoName: 'Double Espresso',
|
|
115
|
+
drinkBrewedName: 'Café Filtre',
|
|
116
|
+
drinkEnergySmallName: 'Boisson Énergétique',
|
|
117
|
+
drinkMonsterName: 'Canette XL Energy',
|
|
118
|
+
drinkSodaName: 'Soda Cola',
|
|
119
|
+
drinkTeaName: 'Thé Noir',
|
|
120
|
+
drinkEspressoDesc: '60mg • 30ml',
|
|
121
|
+
drinkDoubleEspressoDesc: '120mg • 60ml',
|
|
122
|
+
drinkBrewedDesc: '95mg • 250ml',
|
|
123
|
+
drinkEnergySmallDesc: '80mg • 250ml',
|
|
124
|
+
drinkMonsterDesc: '160mg • 500ml',
|
|
125
|
+
drinkSodaDesc: '35mg • 330ml',
|
|
126
|
+
drinkTeaDesc: '45mg • 250ml',
|
|
127
|
+
metabolismFastLabel: 'Rapide (Fumeur)',
|
|
128
|
+
metabolismNormalLabel: 'Standard',
|
|
129
|
+
metabolismSlowLabel: 'Lent (Contraceptifs)',
|
|
130
|
+
metabolismPregnancyLabel: 'Très Lent (Grossesse)',
|
|
131
|
+
metabolismFastDesc: 'Le tabac accélère l\'élimination de la caféine.',
|
|
132
|
+
metabolismNormalDesc: 'Moyenne pour un adulte en bonne santé.',
|
|
133
|
+
metabolismSlowDesc: 'Certains médicaments ralentissent le processus.',
|
|
134
|
+
metabolismPregnancyDesc: 'Élimination très lente.',
|
|
135
|
+
sectionAddDrink: 'Ajouter une Boisson',
|
|
136
|
+
sectionMetabolism: 'Métabolisme',
|
|
137
|
+
sectionJournal: 'Consommation Totale',
|
|
138
|
+
labelCurrentMg: 'Dans le Sang',
|
|
139
|
+
labelEliminationTime: 'Temps de Clairance',
|
|
140
|
+
labelSleepQuestion: 'Quand dormirez-vous?',
|
|
141
|
+
statusOptimal: 'Optimal',
|
|
142
|
+
statusModerate: 'Modéré',
|
|
143
|
+
statusCritical: 'Critique',
|
|
144
|
+
btnReset: 'Réinitialiser',
|
|
145
|
+
journalEmpty: 'Vide',
|
|
146
|
+
sleepAtPrefix: 'À',
|
|
147
|
+
},
|
|
148
|
+
seo: [
|
|
149
|
+
{
|
|
150
|
+
type: 'summary',
|
|
151
|
+
title: 'Calculateur de Métabolisme de la Caféine',
|
|
152
|
+
items: [
|
|
153
|
+
'<strong>Demi-vie pharmacologique</strong>: temps que met votre corps à éliminer 50% de la caféine consommée.',
|
|
154
|
+
'<strong>Métabolisme personnalisé</strong>: ajustez pour fumeurs, contraceptifs ou grossesse.',
|
|
155
|
+
'<strong>Graphique de dégradation</strong>: visualisez la caféine restante dans le sang heure par heure sur 24h.',
|
|
156
|
+
'<strong>Simulateur de sommeil</strong>: calculez exactement la caféine que vous aurez au coucher.',
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'title',
|
|
161
|
+
text: 'Demi-Vie de la Caféine: Pourquoi ce café de 17h ruine votre sommeil',
|
|
162
|
+
level: 2,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: 'paragraph',
|
|
166
|
+
html: 'La plupart des gens consomment de la caféine quotidiennement sans vraiment comprendre comment elle interagit avec leur biologie. Le concept clé à maîtriser est la <strong>demi-vie</strong>. En pharmacologie, la demi-vie est le temps que met le corps à éliminer 50% d\'une substance du sang. Pour un adulte sain moyen, la caféine a une demi-vie d\'environ <strong>5 à 6 heures</strong>.',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
type: 'paragraph',
|
|
170
|
+
html: 'Cela signifie que si vous buvez un café avec 100mg de caféine à 16h, à 22h vous aurez encore 50mg circulant dans votre cerveau. À 4h du matin (12 heures plus tard), il restera encore 25mg actifs. Cette quantité est plus que suffisante pour perturber l\'architecture de votre sommeil, réduisant le sommeil profond même si vous réussissez à vous endormir.',
|
|
171
|
+
},
|
|
172
|
+
{ type: 'title', text: 'Le Mensonge de l\'Énergie: L\'Adénosine', level: 2 },
|
|
173
|
+
{
|
|
174
|
+
type: 'paragraph',
|
|
175
|
+
html: 'On dit souvent que la caféine nous "donne de l\'énergie", mais c\'est biologiquement incorrect. La caféine n\'ajoute pas d\'énergie ; ce qu\'elle fait c\'est <strong>bloquer la perception de la fatigue</strong>. Depuis votre réveil, votre cerveau accumule une molécule appelée <strong>adénosine</strong>. Plus l\'adénosine se lie à ses récepteurs, plus vous vous sentez somnolent. La caféine s\'imbrique dans ces mêmes récepteurs, les bloquant. Quand elle se métabolise finalement, toute l\'adénosine accumulée frappe d\'un coup : le fameux <strong>"Caffeine Crash"</strong>.',
|
|
176
|
+
},
|
|
177
|
+
{ type: 'title', text: 'Facteurs qui Altèrent votre Métabolisme de la Caféine', level: 2 },
|
|
178
|
+
{
|
|
179
|
+
type: 'list',
|
|
180
|
+
items: [
|
|
181
|
+
'<strong>Tabagisme (Accélérateur):</strong> Fumer induit l\'enzyme CYP1A2. Les fumeurs éliminent la caféine deux fois plus vite, ce qui explique pourquoi ils boivent souvent plus de tasses.',
|
|
182
|
+
'<strong>Contraceptifs oraux (Décélérateur):</strong> Peuvent doubler la demi-vie jusqu\'à 10-12 heures. Un café à midi peut équivaloir à un café du soir.',
|
|
183
|
+
'<strong>Grossesse:</strong> Au troisième trimestre, la demi-vie peut s\'étendre jusqu\'à 15 heures en raison de changements hormonaux.',
|
|
184
|
+
'<strong>Génétique (CYP1A2):</strong> 50% de la population sont des "métaboliseurs lents" qui ressentent de la nervosité avec une seule petite tasse.',
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{ type: 'title', text: 'Optimiser votre Hygiène du Sommeil avec la Caféine', level: 2 },
|
|
188
|
+
{
|
|
189
|
+
type: 'paragraph',
|
|
190
|
+
html: 'La plupart des experts du sommeil recommandent d\'arrêter la consommation de caféine <strong>8 à 10 heures avant</strong> le coucher. Si votre objectif est de dormir à 23h, votre dernier café devrait être entre 13h et 15h. De plus, pour éviter le crash de l\'après-midi, attendez 90 minutes après le réveil avant de prendre votre première tasse.',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: 'tip',
|
|
194
|
+
title: 'Heure Limite Caféine',
|
|
195
|
+
html: 'Utilisez le simulateur pour calculer exactement la caféine que vous aurez dans le sang au moment de dormir. Les experts recommandent moins de 20mg pour un sommeil de qualité. Ajustez le curseur jusqu\'à ce que le niveau affiche "Optimal".',
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { HealthToolEntry, ToolDefinition } from '../../types';
|
|
2
|
+
import CaffeineTrackerComponent from './component.astro';
|
|
3
|
+
import CaffeineTrackerSEO from './seo.astro';
|
|
4
|
+
import CaffeineTrackerBibliography from './bibliography.astro';
|
|
5
|
+
import type { CaffeineTrackerUI } from './ui';
|
|
6
|
+
|
|
7
|
+
export const caffeineTracker: HealthToolEntry<CaffeineTrackerUI> = {
|
|
8
|
+
id: 'caffeineTracker',
|
|
9
|
+
icons: {
|
|
10
|
+
bg: 'mdi:coffee',
|
|
11
|
+
fg: 'mdi:sleep',
|
|
12
|
+
},
|
|
13
|
+
i18n: {
|
|
14
|
+
es: () => import('./i18n/es').then((m) => m.content),
|
|
15
|
+
en: () => import('./i18n/en').then((m) => m.content),
|
|
16
|
+
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { CaffeineTrackerComponent, CaffeineTrackerSEO, CaffeineTrackerBibliography };
|
|
21
|
+
|
|
22
|
+
export const CAFFEINE_TRACKER_TOOL: ToolDefinition = {
|
|
23
|
+
entry: caffeineTracker,
|
|
24
|
+
Component: CaffeineTrackerComponent,
|
|
25
|
+
SEOComponent: CaffeineTrackerSEO,
|
|
26
|
+
BibliographyComponent: CaffeineTrackerBibliography,
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DrinkPreset {
|
|
2
|
+
id: string;
|
|
3
|
+
mg: number;
|
|
4
|
+
icon: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface MetabolismPreset {
|
|
8
|
+
id: string;
|
|
9
|
+
halfLife: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const DRINK_PRESETS: DrinkPreset[] = [
|
|
13
|
+
{ id: 'espresso', mg: 60, icon: 'mdi:coffee-outline' },
|
|
14
|
+
{ id: 'double_espresso', mg: 120, icon: 'mdi:coffee' },
|
|
15
|
+
{ id: 'brewed', mg: 95, icon: 'mdi:coffee-maker-outline' },
|
|
16
|
+
{ id: 'energy_small', mg: 80, icon: 'mdi:lightning-bolt' },
|
|
17
|
+
{ id: 'monster', mg: 160, icon: 'mdi:lightning-bolt-circle' },
|
|
18
|
+
{ id: 'soda', mg: 35, icon: 'mdi:cup-water' },
|
|
19
|
+
{ id: 'tea', mg: 45, icon: 'mdi:tea' },
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const METABOLISM_PRESETS: MetabolismPreset[] = [
|
|
23
|
+
{ id: 'fast', halfLife: 3 },
|
|
24
|
+
{ id: 'normal', halfLife: 5.5 },
|
|
25
|
+
{ id: 'slow', halfLife: 10 },
|
|
26
|
+
{ id: 'pregnancy', halfLife: 15 },
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
export function calculateDecay(initialMg: number, hours: number, halfLife: number): number {
|
|
30
|
+
return initialMg * Math.pow(0.5, hours / halfLife);
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { SEORenderer } from '@jjlmoya/utils-shared';
|
|
3
|
+
import { caffeineTracker } 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 caffeineTracker.i18n[locale]?.();
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
{content && <SEORenderer content={{ locale, sections: content.seo }} />}
|