@jjlmoya/utils-babies 1.1.0 → 1.3.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 +1 -1
- package/src/index.ts +7 -0
- package/src/tool/baby-feeding-calculator/bibliography.astro +8 -4
- package/src/tool/baby-feeding-calculator/component.astro +208 -177
- package/src/tool/baby-feeding-calculator/style.css +317 -229
- package/src/tool/baby-percentile-calculator/bibliography.astro +8 -4
- package/src/tool/baby-percentile-calculator/component.astro +98 -240
- package/src/tool/baby-percentile-calculator/i18n/en.ts +1 -0
- package/src/tool/baby-percentile-calculator/i18n/es.ts +1 -0
- package/src/tool/baby-percentile-calculator/i18n/fr.ts +1 -0
- package/src/tool/baby-percentile-calculator/index.ts +1 -0
- package/src/tool/baby-percentile-calculator/style.css +342 -268
- package/src/tool/baby-size-converter/bibliography.astro +8 -4
- package/src/tool/baby-size-converter/component.astro +221 -212
- package/src/tool/baby-size-converter/style.css +433 -263
- package/src/tool/fertile-days-estimator/bibliography.astro +8 -4
- package/src/tool/fertile-days-estimator/component.astro +202 -200
- package/src/tool/fertile-days-estimator/style.css +408 -270
- package/src/tool/pregnancy-calculator/bibliography.astro +8 -4
- package/src/tool/pregnancy-calculator/component.astro +50 -8
- package/src/tool/pregnancy-calculator/i18n/en.ts +8 -0
- package/src/tool/pregnancy-calculator/i18n/es.ts +8 -0
- package/src/tool/pregnancy-calculator/i18n/fr.ts +8 -0
- package/src/tool/pregnancy-calculator/index.ts +8 -0
- package/src/tool/pregnancy-calculator/style.css +351 -134
- package/src/tool/vaccination-calendar/bibliography.astro +8 -4
- package/src/tool/vaccination-calendar/component.astro +120 -124
- package/src/tool/vaccination-calendar/style.css +296 -209
|
@@ -1,329 +1,417 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--bfc-shadow: rgba(0, 0, 0, 0.08);
|
|
11
|
-
--bfc-primary: #0d9488;
|
|
12
|
-
--bfc-primary-on: #fff;
|
|
13
|
-
--bfc-primary-soft: #f0fdfa;
|
|
14
|
-
--bfc-primary-glow: rgba(13, 148, 136, 0.3);
|
|
15
|
-
--bfc-hunger-bg: #fff7ed;
|
|
16
|
-
--bfc-hunger-text: #c2410c;
|
|
17
|
-
--bfc-satiety-bg: #f0fdf4;
|
|
18
|
-
--bfc-satiety-text: #15803d;
|
|
19
|
-
|
|
20
|
-
width: 100%;
|
|
1
|
+
/* PRINCIPAL CONTAINER */
|
|
2
|
+
.bfc-card {
|
|
3
|
+
background: #fff;
|
|
4
|
+
border: 1px solid #e2e8f0;
|
|
5
|
+
border-radius: 28px;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
|
|
21
10
|
}
|
|
22
11
|
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
--bfc-bg-alt: #374151;
|
|
27
|
-
--bfc-text: #f9fafb;
|
|
28
|
-
--bfc-text-muted: #e2e8f0;
|
|
29
|
-
--bfc-text-dim: #94a3b8;
|
|
30
|
-
--bfc-border: #374151;
|
|
31
|
-
--bfc-border-inner: #4b5563;
|
|
32
|
-
--bfc-shadow: rgba(0, 0, 0, 0.3);
|
|
33
|
-
--bfc-primary: #2dd4bf;
|
|
34
|
-
--bfc-primary-on: #fff;
|
|
35
|
-
--bfc-primary-soft: rgba(13, 148, 136, 0.05);
|
|
36
|
-
--bfc-primary-glow: rgba(45, 212, 191, 0.3);
|
|
37
|
-
--bfc-hunger-bg: rgba(194, 65, 12, 0.1);
|
|
38
|
-
--bfc-hunger-text: #fdba74;
|
|
39
|
-
--bfc-satiety-bg: rgba(21, 128, 61, 0.1);
|
|
40
|
-
--bfc-satiety-text: #4ade80;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.baby-feeding-calculator-card {
|
|
44
|
-
background: var(--bfc-bg);
|
|
45
|
-
border: 1px solid var(--bfc-border);
|
|
46
|
-
border-radius: 1rem;
|
|
47
|
-
box-shadow: 0 2px 12px var(--bfc-shadow);
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
width: 100%;
|
|
12
|
+
.dark .bfc-card {
|
|
13
|
+
background: #111827;
|
|
14
|
+
border-color: #1f2937;
|
|
50
15
|
}
|
|
51
16
|
|
|
52
|
-
|
|
17
|
+
/* GRID STRUCTURE */
|
|
18
|
+
.bfc-main {
|
|
53
19
|
display: grid;
|
|
54
20
|
grid-template-columns: 1fr 1fr;
|
|
55
|
-
gap: 0;
|
|
56
21
|
}
|
|
57
22
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
23
|
+
.bfc-left {
|
|
24
|
+
background: #f8fafc;
|
|
25
|
+
padding: 40px;
|
|
26
|
+
border-right: 1px solid #e2e8f0;
|
|
62
27
|
}
|
|
63
28
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
border-right:
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
gap: 1.25rem;
|
|
29
|
+
.dark .bfc-left {
|
|
30
|
+
background: #1f2937;
|
|
31
|
+
border-right-color: #374151;
|
|
70
32
|
}
|
|
71
33
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
border-bottom: 1px solid var(--bfc-border);
|
|
76
|
-
}
|
|
34
|
+
.bfc-right {
|
|
35
|
+
background: #fff;
|
|
36
|
+
padding: 40px;
|
|
77
37
|
}
|
|
78
38
|
|
|
79
|
-
.
|
|
80
|
-
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
gap: 1.25rem;
|
|
39
|
+
.dark .bfc-right {
|
|
40
|
+
background: #111827;
|
|
84
41
|
}
|
|
85
42
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
43
|
+
/* SECTION MARKER */
|
|
44
|
+
.bfc-section-marker {
|
|
45
|
+
display: block;
|
|
46
|
+
font-size: 0.75rem;
|
|
47
|
+
font-weight: 800;
|
|
90
48
|
text-transform: uppercase;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
49
|
+
letter-spacing: 0.15em;
|
|
50
|
+
color: #64748b;
|
|
51
|
+
margin-bottom: 32px;
|
|
94
52
|
}
|
|
95
53
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
54
|
+
/* INPUT LABEL */
|
|
55
|
+
.bfc-input-label {
|
|
56
|
+
display: block;
|
|
57
|
+
font-size: 0.95rem;
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
color: #334155;
|
|
60
|
+
margin-bottom: 12px;
|
|
100
61
|
}
|
|
101
62
|
|
|
102
|
-
.
|
|
103
|
-
|
|
104
|
-
font-weight: 600;
|
|
105
|
-
color: var(--bfc-text-muted);
|
|
63
|
+
.dark .bfc-input-label {
|
|
64
|
+
color: #e2e8f0;
|
|
106
65
|
}
|
|
107
66
|
|
|
108
|
-
|
|
67
|
+
/* INPUT GROUP */
|
|
68
|
+
.bfc-input-group {
|
|
69
|
+
margin-bottom: 28px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* UNIT NAV */
|
|
73
|
+
.bfc-unit-nav {
|
|
109
74
|
display: flex;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
border-radius:
|
|
113
|
-
|
|
75
|
+
background: #e2e8f0;
|
|
76
|
+
padding: 4px;
|
|
77
|
+
border-radius: 12px;
|
|
78
|
+
margin-bottom: 24px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dark .bfc-unit-nav {
|
|
82
|
+
background: #374151;
|
|
114
83
|
}
|
|
115
84
|
|
|
116
|
-
.
|
|
85
|
+
.bfc-unit-tab {
|
|
117
86
|
flex: 1;
|
|
118
|
-
padding:
|
|
87
|
+
padding: 8px;
|
|
119
88
|
border: none;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
font-
|
|
124
|
-
|
|
89
|
+
background: #f1f5f9;
|
|
90
|
+
color: #64748b;
|
|
91
|
+
font-size: 0.85rem;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
border-radius: 8px;
|
|
125
94
|
cursor: pointer;
|
|
126
|
-
transition:
|
|
95
|
+
transition: all 0.2s ease;
|
|
96
|
+
margin: 2px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dark .bfc-unit-tab {
|
|
100
|
+
background: #1f2937;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bfc-unit-active {
|
|
104
|
+
background: #fff;
|
|
105
|
+
color: #0d9488;
|
|
106
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
127
107
|
}
|
|
128
108
|
|
|
129
|
-
.
|
|
130
|
-
background:
|
|
131
|
-
color:
|
|
109
|
+
.dark .bfc-unit-active {
|
|
110
|
+
background: #4b5563;
|
|
111
|
+
color: #2dd4bf;
|
|
132
112
|
}
|
|
133
113
|
|
|
134
|
-
|
|
114
|
+
/* STEPPER */
|
|
115
|
+
.bfc-stepper-box {
|
|
135
116
|
display: flex;
|
|
136
117
|
align-items: center;
|
|
137
|
-
|
|
118
|
+
justify-content: space-between;
|
|
119
|
+
background: #fff;
|
|
120
|
+
border: 1px solid #cbd5e1;
|
|
121
|
+
border-radius: 16px;
|
|
122
|
+
padding: 8px;
|
|
123
|
+
margin-bottom: 8px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.dark .bfc-stepper-box {
|
|
127
|
+
background: #111827;
|
|
128
|
+
border-color: #4b5563;
|
|
138
129
|
}
|
|
139
130
|
|
|
140
|
-
.
|
|
141
|
-
width:
|
|
142
|
-
height:
|
|
143
|
-
border:
|
|
144
|
-
border
|
|
145
|
-
background:
|
|
146
|
-
color:
|
|
147
|
-
font-size: 1.
|
|
131
|
+
.bfc-btn-step {
|
|
132
|
+
width: 44px;
|
|
133
|
+
height: 44px;
|
|
134
|
+
border-radius: 12px;
|
|
135
|
+
border: none;
|
|
136
|
+
background: #f1f5f9;
|
|
137
|
+
color: #334155;
|
|
138
|
+
font-size: 1.25rem;
|
|
139
|
+
font-weight: 700;
|
|
148
140
|
cursor: pointer;
|
|
149
|
-
|
|
150
|
-
align-items: center;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
transition: background 0.15s, border-color 0.15s;
|
|
141
|
+
transition: all 0.2s ease;
|
|
153
142
|
}
|
|
154
143
|
|
|
155
|
-
.
|
|
156
|
-
background:
|
|
157
|
-
|
|
158
|
-
color: var(--bfc-primary);
|
|
144
|
+
.dark .bfc-btn-step {
|
|
145
|
+
background: #374151;
|
|
146
|
+
color: #f9fafb;
|
|
159
147
|
}
|
|
160
148
|
|
|
161
|
-
.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
align-items: baseline;
|
|
165
|
-
justify-content: center;
|
|
166
|
-
gap: 0.3rem;
|
|
149
|
+
.bfc-btn-step:hover {
|
|
150
|
+
background: #0d9488;
|
|
151
|
+
color: #fff;
|
|
167
152
|
}
|
|
168
153
|
|
|
169
|
-
.
|
|
170
|
-
|
|
171
|
-
font-weight: 700;
|
|
172
|
-
color: var(--bfc-text);
|
|
154
|
+
.bfc-val-view {
|
|
155
|
+
text-align: center;
|
|
173
156
|
}
|
|
174
157
|
|
|
175
|
-
.
|
|
176
|
-
|
|
177
|
-
|
|
158
|
+
.bfc-val-big {
|
|
159
|
+
display: block;
|
|
160
|
+
font-size: 2rem;
|
|
161
|
+
font-weight: 800;
|
|
162
|
+
color: #0f172a;
|
|
178
163
|
}
|
|
179
164
|
|
|
180
|
-
.
|
|
165
|
+
.dark .bfc-val-big {
|
|
166
|
+
color: #fff;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.bfc-val-sub {
|
|
170
|
+
display: block;
|
|
171
|
+
font-size: 0.85rem;
|
|
172
|
+
color: #64748b;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* SLIDER */
|
|
177
|
+
.bfc-slider-wrap {
|
|
178
|
+
padding: 0 11px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.bfc-slider {
|
|
182
|
+
-webkit-appearance: none;
|
|
183
|
+
appearance: none;
|
|
181
184
|
width: 100%;
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
margin: 16px 0;
|
|
186
|
+
height: 6px;
|
|
187
|
+
background: #e2e8f0;
|
|
188
|
+
border-radius: 3px;
|
|
189
|
+
outline: none;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
|
-
.
|
|
187
|
-
|
|
188
|
-
gap: 0.4rem;
|
|
192
|
+
.dark .bfc-slider {
|
|
193
|
+
background: #374151;
|
|
189
194
|
}
|
|
190
195
|
|
|
191
|
-
.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
font-size: 0.78rem;
|
|
199
|
-
font-weight: 600;
|
|
196
|
+
.bfc-slider::-webkit-slider-thumb {
|
|
197
|
+
-webkit-appearance: none;
|
|
198
|
+
appearance: none;
|
|
199
|
+
width: 22px;
|
|
200
|
+
height: 22px;
|
|
201
|
+
border-radius: 50%;
|
|
202
|
+
background: #0d9488;
|
|
200
203
|
cursor: pointer;
|
|
204
|
+
border: 3px solid #fff;
|
|
205
|
+
box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* FEED TYPE */
|
|
209
|
+
.bfc-type-rack {
|
|
210
|
+
display: grid;
|
|
211
|
+
grid-template-columns: repeat(3, 1fr);
|
|
212
|
+
gap: 12px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.bfc-type-tile {
|
|
216
|
+
background: #f1f5f9;
|
|
217
|
+
border: 1px solid #cbd5e1;
|
|
218
|
+
border-radius: 14px;
|
|
219
|
+
padding: 14px 4px;
|
|
201
220
|
text-align: center;
|
|
202
|
-
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
transition: all 0.2s ease;
|
|
223
|
+
font-size: 0.9rem;
|
|
224
|
+
font-weight: 700;
|
|
225
|
+
color: #64748b;
|
|
203
226
|
}
|
|
204
227
|
|
|
205
|
-
.
|
|
206
|
-
background:
|
|
207
|
-
border-color:
|
|
208
|
-
color: var(--bfc-primary);
|
|
228
|
+
.dark .bfc-type-tile {
|
|
229
|
+
background: #1f2937;
|
|
230
|
+
border-color: #4b5563;
|
|
209
231
|
}
|
|
210
232
|
|
|
211
|
-
.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
padding: 1rem 0;
|
|
233
|
+
.bfc-type-active {
|
|
234
|
+
background: #f0fdfa;
|
|
235
|
+
border-color: #0d9488;
|
|
236
|
+
color: #0f766e;
|
|
237
|
+
box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
|
|
217
238
|
}
|
|
218
239
|
|
|
219
|
-
.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
align-items: center;
|
|
224
|
-
justify-content: center;
|
|
240
|
+
.dark .bfc-type-active {
|
|
241
|
+
background: rgba(13, 148, 136, 0.1);
|
|
242
|
+
color: #2dd4bf;
|
|
243
|
+
border-color: #2dd4bf;
|
|
225
244
|
}
|
|
226
245
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
background:
|
|
232
|
-
border:
|
|
233
|
-
|
|
234
|
-
display: flex;
|
|
235
|
-
align-items: center;
|
|
236
|
-
justify-content: center;
|
|
237
|
-
transform-origin: center;
|
|
238
|
-
transition: transform 0.4s ease;
|
|
246
|
+
/* GAUGE */
|
|
247
|
+
.bfc-gauge-area {
|
|
248
|
+
margin-top: 40px;
|
|
249
|
+
padding: 30px;
|
|
250
|
+
background: #fff;
|
|
251
|
+
border-radius: 20px;
|
|
252
|
+
border: 1px solid #e2e8f0;
|
|
239
253
|
}
|
|
240
254
|
|
|
241
|
-
.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
color: var(--bfc-primary);
|
|
245
|
-
text-align: center;
|
|
255
|
+
.dark .bfc-gauge-area {
|
|
256
|
+
background: #111827;
|
|
257
|
+
border-color: #374151;
|
|
246
258
|
}
|
|
247
259
|
|
|
248
|
-
.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
padding: 1rem;
|
|
260
|
+
.bfc-gauge-viz {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
align-items: center;
|
|
253
264
|
text-align: center;
|
|
265
|
+
gap: 16px;
|
|
254
266
|
}
|
|
255
267
|
|
|
256
|
-
.
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
268
|
+
.bfc-stomach-bubble {
|
|
269
|
+
width: 60px;
|
|
270
|
+
height: 60px;
|
|
271
|
+
background: radial-gradient(circle at 30% 30%, #5eead4 0%, #0d9488 100%);
|
|
272
|
+
border-radius: 50%;
|
|
273
|
+
transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
274
|
+
box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
|
|
260
275
|
}
|
|
261
276
|
|
|
262
|
-
.
|
|
263
|
-
font-size: 0.
|
|
277
|
+
.bfc-visual-hint {
|
|
278
|
+
font-size: 0.95rem;
|
|
264
279
|
font-weight: 600;
|
|
265
|
-
color:
|
|
266
|
-
|
|
267
|
-
letter-spacing: 0.05em;
|
|
268
|
-
margin-bottom: 0.25rem;
|
|
280
|
+
color: #0f766e;
|
|
281
|
+
margin: 0;
|
|
269
282
|
}
|
|
270
283
|
|
|
271
|
-
.
|
|
272
|
-
|
|
273
|
-
grid-template-columns: repeat(3, 1fr);
|
|
274
|
-
gap: 0.5rem;
|
|
284
|
+
.dark .bfc-visual-hint {
|
|
285
|
+
color: #2dd4bf;
|
|
275
286
|
}
|
|
276
287
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
border-radius:
|
|
281
|
-
padding:
|
|
288
|
+
/* RESULT BOX */
|
|
289
|
+
.bfc-res-card-box {
|
|
290
|
+
background: #f0fdfa;
|
|
291
|
+
border-radius: 24px;
|
|
292
|
+
padding: 32px 16px;
|
|
282
293
|
text-align: center;
|
|
294
|
+
margin-bottom: 24px;
|
|
283
295
|
}
|
|
284
296
|
|
|
285
|
-
.
|
|
297
|
+
.dark .bfc-res-card-box {
|
|
298
|
+
background: rgba(13, 148, 136, 0.05);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.bfc-res-main-val {
|
|
302
|
+
display: block;
|
|
303
|
+
font-size: 3.5rem;
|
|
304
|
+
font-weight: 950;
|
|
305
|
+
color: #0d9488;
|
|
306
|
+
letter-spacing: -0.05em;
|
|
307
|
+
line-height: 1;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.dark .bfc-res-main-val {
|
|
311
|
+
color: #2dd4bf;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.bfc-res-label {
|
|
315
|
+
display: block;
|
|
316
|
+
margin-top: 8px;
|
|
286
317
|
font-size: 1rem;
|
|
287
318
|
font-weight: 700;
|
|
288
|
-
color:
|
|
289
|
-
|
|
319
|
+
color: #64748b;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* STATS */
|
|
323
|
+
.bfc-stats-grid {
|
|
324
|
+
display: grid;
|
|
325
|
+
grid-template-columns: 1fr 1fr;
|
|
326
|
+
gap: 20px;
|
|
327
|
+
margin-bottom: 32px;
|
|
290
328
|
}
|
|
291
329
|
|
|
292
|
-
.
|
|
293
|
-
|
|
294
|
-
|
|
330
|
+
.bfc-stat-item {
|
|
331
|
+
padding: 8px;
|
|
332
|
+
border-bottom: 2px solid #f1f5f9;
|
|
295
333
|
}
|
|
296
334
|
|
|
297
|
-
.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
335
|
+
.dark .bfc-stat-item {
|
|
336
|
+
border-bottom-color: #374151;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.bfc-stat-label {
|
|
340
|
+
display: block;
|
|
341
|
+
font-size: 0.7rem;
|
|
342
|
+
font-weight: 800;
|
|
343
|
+
color: #94a3b8;
|
|
344
|
+
text-transform: uppercase;
|
|
345
|
+
margin-bottom: 2px;
|
|
301
346
|
}
|
|
302
347
|
|
|
303
|
-
.
|
|
348
|
+
.bfc-stat-value {
|
|
349
|
+
font-size: 1.15rem;
|
|
350
|
+
font-weight: 800;
|
|
351
|
+
color: #334155;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.dark .bfc-stat-value {
|
|
355
|
+
color: #e2e8f0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/* BEHAVIOR SECTION */
|
|
359
|
+
.bfc-behavior-sec {
|
|
360
|
+
margin-top: 32px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.bfc-pills-container {
|
|
304
364
|
display: flex;
|
|
305
365
|
flex-wrap: wrap;
|
|
306
|
-
gap:
|
|
366
|
+
gap: 8px;
|
|
367
|
+
margin-top: 12px;
|
|
307
368
|
}
|
|
308
369
|
|
|
309
|
-
.
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
370
|
+
.bfc-pill {
|
|
371
|
+
font-size: 0.8rem;
|
|
372
|
+
font-weight: 700;
|
|
373
|
+
padding: 6px 12px;
|
|
374
|
+
border-radius: 100px;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.bfc-pill-hunger {
|
|
378
|
+
background: #fff7ed;
|
|
379
|
+
color: #c2410c;
|
|
315
380
|
}
|
|
316
381
|
|
|
317
|
-
.
|
|
318
|
-
background:
|
|
319
|
-
color:
|
|
382
|
+
.dark .bfc-pill-hunger {
|
|
383
|
+
background: rgba(194, 65, 12, 0.1);
|
|
384
|
+
color: #fdba74;
|
|
320
385
|
}
|
|
321
386
|
|
|
322
|
-
.
|
|
323
|
-
background:
|
|
324
|
-
color:
|
|
387
|
+
.bfc-pill-fullness {
|
|
388
|
+
background: #f0fdf4;
|
|
389
|
+
color: #15803d;
|
|
325
390
|
}
|
|
326
391
|
|
|
327
|
-
.
|
|
392
|
+
.dark .bfc-pill-fullness {
|
|
393
|
+
background: rgba(21, 128, 61, 0.1);
|
|
394
|
+
color: #4ade80;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* HIDDEN */
|
|
398
|
+
.bfc-hidden {
|
|
328
399
|
display: none;
|
|
329
400
|
}
|
|
401
|
+
|
|
402
|
+
/* RESPONSIVE */
|
|
403
|
+
@media (max-width: 800px) {
|
|
404
|
+
.bfc-main {
|
|
405
|
+
grid-template-columns: 1fr;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.bfc-left {
|
|
409
|
+
border-right: none;
|
|
410
|
+
border-bottom: 1px solid #e2e8f0;
|
|
411
|
+
padding: 30px 20px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.bfc-right {
|
|
415
|
+
padding: 30px 20px;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { Bibliography as BibliographyUI } from '@jjlmoya/utils-shared';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { babyPercentileCalculator } from './index';
|
|
4
|
+
import type { KnownLocale } from '../../types';
|
|
5
|
+
|
|
6
|
+
interface Props { locale?: KnownLocale; }
|
|
7
|
+
const { locale = 'es' } = Astro.props;
|
|
8
|
+
const content = await babyPercentileCalculator.i18n[locale]?.();
|
|
9
|
+
if (!content) return null;
|
|
6
10
|
---
|
|
7
|
-
<BibliographyUI links={
|
|
11
|
+
<BibliographyUI links={content.bibliography} title={content.bibliographyTitle ?? ''} />
|