@jjlmoya/utils-forensic-science 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 +69 -0
- package/scripts/crystal-lattice-catalog-translations.mjs +459 -0
- package/scripts/postinstall.mjs +27 -0
- package/scripts/sync-crystal-lattice-i18n.mjs +50 -0
- package/src/category/i18n/de.ts +55 -0
- package/src/category/i18n/en.ts +55 -0
- package/src/category/i18n/es.ts +55 -0
- package/src/category/i18n/fr.ts +55 -0
- package/src/category/i18n/id.ts +55 -0
- package/src/category/i18n/it.ts +55 -0
- package/src/category/i18n/ja.ts +56 -0
- package/src/category/i18n/ko.ts +56 -0
- package/src/category/i18n/nl.ts +55 -0
- package/src/category/i18n/pl.ts +55 -0
- package/src/category/i18n/pt.ts +55 -0
- package/src/category/i18n/ru.ts +55 -0
- package/src/category/i18n/sv.ts +55 -0
- package/src/category/i18n/tr.ts +55 -0
- package/src/category/i18n/zh.ts +56 -0
- package/src/category/index.ts +48 -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 +10 -0
- package/src/entries.ts +48 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +29 -0
- package/src/layouts/PreviewLayout.astro +117 -0
- package/src/pages/[locale]/[slug].astro +162 -0
- package/src/pages/[locale].astro +261 -0
- package/src/pages/index.astro +3 -0
- package/src/tests/diacritics_density.test.ts +140 -0
- package/src/tests/faq_count.test.ts +19 -0
- package/src/tests/i18n_coverage.test.ts +36 -0
- package/src/tests/inverted_punctuation.test.ts +84 -0
- package/src/tests/locale_completeness.test.ts +24 -0
- package/src/tests/mocks/astro_mock.js +2 -0
- package/src/tests/no_en_dash.test.ts +70 -0
- package/src/tests/no_h1_in_components.test.ts +48 -0
- package/src/tests/schemas_fulfillment.test.ts +23 -0
- package/src/tests/script_density.test.ts +94 -0
- package/src/tests/seo_length.test.ts +46 -0
- package/src/tests/shared-test-helpers.ts +56 -0
- package/src/tests/slug_language_code_format.test.ts +23 -0
- package/src/tests/slug_uniqueness.test.ts +81 -0
- package/src/tests/title_quality.test.ts +55 -0
- package/src/tests/tool_exports.test.ts +34 -0
- package/src/tests/tool_validation.test.ts +16 -0
- package/src/tests/widmark.test.ts +28 -0
- package/src/tool/forensic-age-estimator/bibliography.astro +14 -0
- package/src/tool/forensic-age-estimator/bibliography.ts +16 -0
- package/src/tool/forensic-age-estimator/component.astro +321 -0
- package/src/tool/forensic-age-estimator/dental-skeletal-third-molar-age-estimator.css +634 -0
- package/src/tool/forensic-age-estimator/entry.ts +32 -0
- package/src/tool/forensic-age-estimator/i18n/de.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/en.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/es.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/fr.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/id.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/it.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/ja.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/ko.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/nl.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/pl.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/pt.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/ru.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/sv.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/tr.ts +245 -0
- package/src/tool/forensic-age-estimator/i18n/zh.ts +246 -0
- package/src/tool/forensic-age-estimator/index.ts +11 -0
- package/src/tool/forensic-age-estimator/logic.ts +81 -0
- package/src/tool/forensic-age-estimator/seo.astro +15 -0
- package/src/tool/forensic-blood-test-simulator/bibliography.astro +6 -0
- package/src/tool/forensic-blood-test-simulator/bibliography.ts +12 -0
- package/src/tool/forensic-blood-test-simulator/component.astro +168 -0
- package/src/tool/forensic-blood-test-simulator/dom-utils.ts +40 -0
- package/src/tool/forensic-blood-test-simulator/entry.ts +32 -0
- package/src/tool/forensic-blood-test-simulator/forensic-presumptive-blood-testing-luminol-kastle-meyer-simulator.css +532 -0
- package/src/tool/forensic-blood-test-simulator/helpers.ts +16 -0
- package/src/tool/forensic-blood-test-simulator/i18n/de.ts +185 -0
- package/src/tool/forensic-blood-test-simulator/i18n/en.ts +185 -0
- package/src/tool/forensic-blood-test-simulator/i18n/es.ts +185 -0
- package/src/tool/forensic-blood-test-simulator/i18n/fr.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/id.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/it.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/ja.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/ko.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/nl.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/pl.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/pt.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/ru.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/sv.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/tr.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/i18n/zh.ts +220 -0
- package/src/tool/forensic-blood-test-simulator/index.ts +11 -0
- package/src/tool/forensic-blood-test-simulator/logic.ts +174 -0
- package/src/tool/forensic-blood-test-simulator/script.ts +192 -0
- package/src/tool/forensic-blood-test-simulator/seo.astro +15 -0
- package/src/tool/forensic-fiber-comparison-microscope/bibliography.astro +6 -0
- package/src/tool/forensic-fiber-comparison-microscope/bibliography.ts +16 -0
- package/src/tool/forensic-fiber-comparison-microscope/component.astro +146 -0
- package/src/tool/forensic-fiber-comparison-microscope/entry.ts +32 -0
- package/src/tool/forensic-fiber-comparison-microscope/forensic-fiber-comparison-microscope.css +629 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/de.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/en.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/es.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/fr.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/id.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/it.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/ja.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/ko.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/nl.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/pl.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/pt.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/ru.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/sv.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/tr.ts +246 -0
- package/src/tool/forensic-fiber-comparison-microscope/i18n/zh.ts +250 -0
- package/src/tool/forensic-fiber-comparison-microscope/index.ts +11 -0
- package/src/tool/forensic-fiber-comparison-microscope/logic.ts +244 -0
- package/src/tool/forensic-fiber-comparison-microscope/render.ts +265 -0
- package/src/tool/forensic-fiber-comparison-microscope/seo.astro +15 -0
- package/src/tool/forensic-fiber-comparison-microscope/view.ts +267 -0
- package/src/tool/forensic-glass-becke-line-simulator/bibliography.astro +6 -0
- package/src/tool/forensic-glass-becke-line-simulator/bibliography.ts +16 -0
- package/src/tool/forensic-glass-becke-line-simulator/component.astro +81 -0
- package/src/tool/forensic-glass-becke-line-simulator/entry.ts +32 -0
- package/src/tool/forensic-glass-becke-line-simulator/forensic-glass-becke-line-simulator.css +392 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/de.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/en.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/es.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/fr.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/id.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/it.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/ja.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/ko.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/nl.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/pl.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/pt.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/ru.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/sv.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/tr.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/i18n/zh.ts +231 -0
- package/src/tool/forensic-glass-becke-line-simulator/index.ts +11 -0
- package/src/tool/forensic-glass-becke-line-simulator/logic.ts +100 -0
- package/src/tool/forensic-glass-becke-line-simulator/seo.astro +15 -0
- package/src/tool/forensic-glass-becke-line-simulator/view.ts +281 -0
- package/src/tool/forensic-image-authenticity-analyzer/bibliography.astro +9 -0
- package/src/tool/forensic-image-authenticity-analyzer/bibliography.ts +7 -0
- package/src/tool/forensic-image-authenticity-analyzer/component.astro +250 -0
- package/src/tool/forensic-image-authenticity-analyzer/entry.ts +29 -0
- package/src/tool/forensic-image-authenticity-analyzer/forensic-image-metadata-authenticity-analyzer.css +679 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/de.ts +105 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/en.ts +105 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/es.ts +105 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/fr.ts +105 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/id.ts +76 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/it.ts +105 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/ja.ts +72 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/ko.ts +72 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/nl.ts +75 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/pl.ts +75 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/pt.ts +105 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/ru.ts +75 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/sv.ts +76 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/tr.ts +76 -0
- package/src/tool/forensic-image-authenticity-analyzer/i18n/zh.ts +71 -0
- package/src/tool/forensic-image-authenticity-analyzer/index.ts +11 -0
- package/src/tool/forensic-image-authenticity-analyzer/logic.ts +283 -0
- package/src/tool/forensic-image-authenticity-analyzer/seo.astro +10 -0
- package/src/tool/forensic-microcrystal-drug-simulator/bibliography.astro +6 -0
- package/src/tool/forensic-microcrystal-drug-simulator/bibliography.ts +12 -0
- package/src/tool/forensic-microcrystal-drug-simulator/component.astro +240 -0
- package/src/tool/forensic-microcrystal-drug-simulator/entry.ts +32 -0
- package/src/tool/forensic-microcrystal-drug-simulator/forensic-microcrystal-drug-simulator.css +430 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/de.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/en.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/es.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/fr.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/id.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/it.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/ja.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/ko.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/nl.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/pl.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/pt.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/ru.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/sv.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/tr.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/i18n/zh.ts +244 -0
- package/src/tool/forensic-microcrystal-drug-simulator/index.ts +11 -0
- package/src/tool/forensic-microcrystal-drug-simulator/logic.ts +189 -0
- package/src/tool/forensic-microcrystal-drug-simulator/seo.astro +15 -0
- package/src/tool/forensic-sex-determinator/bibliography.astro +14 -0
- package/src/tool/forensic-sex-determinator/bibliography.ts +12 -0
- package/src/tool/forensic-sex-determinator/component.astro +463 -0
- package/src/tool/forensic-sex-determinator/entry.ts +32 -0
- package/src/tool/forensic-sex-determinator/forensic-sex-determinator.css +413 -0
- package/src/tool/forensic-sex-determinator/i18n/de.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/en.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/es.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/fr.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/id.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/it.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/ja.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/ko.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/nl.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/pl.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/pt.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/ru.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/sv.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/tr.ts +211 -0
- package/src/tool/forensic-sex-determinator/i18n/zh.ts +211 -0
- package/src/tool/forensic-sex-determinator/index.ts +11 -0
- package/src/tool/forensic-sex-determinator/logic.ts +89 -0
- package/src/tool/forensic-sex-determinator/seo.astro +15 -0
- package/src/tool/forensic-stature-estimator/bibliography.astro +14 -0
- package/src/tool/forensic-stature-estimator/bibliography.ts +12 -0
- package/src/tool/forensic-stature-estimator/component.astro +49 -0
- package/src/tool/forensic-stature-estimator/components/EstimationPanel.astro +65 -0
- package/src/tool/forensic-stature-estimator/components/OsteometricBoard.astro +39 -0
- package/src/tool/forensic-stature-estimator/components/OsteometricSelector.astro +109 -0
- package/src/tool/forensic-stature-estimator/dom-utils.ts +71 -0
- package/src/tool/forensic-stature-estimator/entry.ts +32 -0
- package/src/tool/forensic-stature-estimator/forensic-stature-estimator.css +689 -0
- package/src/tool/forensic-stature-estimator/helpers.ts +51 -0
- package/src/tool/forensic-stature-estimator/i18n/de.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/en.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/es.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/fr.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/id.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/it.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/ja.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/ko.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/nl.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/pl.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/pt.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/ru.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/sv.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/tr.ts +196 -0
- package/src/tool/forensic-stature-estimator/i18n/zh.ts +196 -0
- package/src/tool/forensic-stature-estimator/index.ts +11 -0
- package/src/tool/forensic-stature-estimator/logic.ts +119 -0
- package/src/tool/forensic-stature-estimator/script.ts +288 -0
- package/src/tool/forensic-stature-estimator/seo.astro +15 -0
- package/src/tool/forensic-tlc-ink-simulator/bibliography.astro +6 -0
- package/src/tool/forensic-tlc-ink-simulator/bibliography.ts +16 -0
- package/src/tool/forensic-tlc-ink-simulator/component.astro +245 -0
- package/src/tool/forensic-tlc-ink-simulator/entry.ts +32 -0
- package/src/tool/forensic-tlc-ink-simulator/forensic-tlc-ink-simulator.css +462 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/de.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/en.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/es.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/fr.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/id.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/it.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/ja.ts +235 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/ko.ts +235 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/nl.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/pl.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/pt.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/ru.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/sv.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/tr.ts +243 -0
- package/src/tool/forensic-tlc-ink-simulator/i18n/zh.ts +235 -0
- package/src/tool/forensic-tlc-ink-simulator/index.ts +11 -0
- package/src/tool/forensic-tlc-ink-simulator/logic.ts +152 -0
- package/src/tool/forensic-tlc-ink-simulator/seo.astro +15 -0
- package/src/tool/gsr-dispersion-calculator/bibliography.astro +6 -0
- package/src/tool/gsr-dispersion-calculator/bibliography.ts +16 -0
- package/src/tool/gsr-dispersion-calculator/component.astro +294 -0
- package/src/tool/gsr-dispersion-calculator/entry.ts +32 -0
- package/src/tool/gsr-dispersion-calculator/gsr-dispersion-calculator.css +305 -0
- package/src/tool/gsr-dispersion-calculator/i18n/de.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/en.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/es.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/fr.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/id.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/it.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/ja.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/ko.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/nl.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/pl.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/pt.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/ru.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/sv.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/tr.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/i18n/zh.ts +272 -0
- package/src/tool/gsr-dispersion-calculator/index.ts +11 -0
- package/src/tool/gsr-dispersion-calculator/logic.ts +148 -0
- package/src/tool/gsr-dispersion-calculator/seo.astro +15 -0
- package/src/tool/widmark-alcohol-simulator/bibliography.astro +14 -0
- package/src/tool/widmark-alcohol-simulator/bibliography.ts +12 -0
- package/src/tool/widmark-alcohol-simulator/component.astro +453 -0
- package/src/tool/widmark-alcohol-simulator/entry.ts +32 -0
- package/src/tool/widmark-alcohol-simulator/i18n/de.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/en.ts +206 -0
- package/src/tool/widmark-alcohol-simulator/i18n/es.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/fr.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/id.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/it.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/ja.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/ko.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/nl.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/pl.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/pt.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/ru.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/sv.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/tr.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/i18n/zh.ts +193 -0
- package/src/tool/widmark-alcohol-simulator/index.ts +11 -0
- package/src/tool/widmark-alcohol-simulator/logic.ts +97 -0
- package/src/tool/widmark-alcohol-simulator/seo.astro +15 -0
- package/src/tool/widmark-alcohol-simulator/widmark-alcohol-simulator.css +386 -0
- package/src/tools.ts +27 -0
- package/src/types.ts +70 -0
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
.forensic-stature-card {
|
|
2
|
+
--fe-ink: #0f172a;
|
|
3
|
+
--fe-muted: #64748b;
|
|
4
|
+
--fe-paper: #fff;
|
|
5
|
+
--fe-border: #e2e8f0;
|
|
6
|
+
--fe-sub-bg: #f8fafc;
|
|
7
|
+
--fe-accent: #0284c7;
|
|
8
|
+
--fe-accent-rgb: 2, 132, 199;
|
|
9
|
+
--fe-alert-bg: #f0f9ff;
|
|
10
|
+
--fe-alert-border: #bae6fd;
|
|
11
|
+
--fe-alert-text: #0369a1;
|
|
12
|
+
|
|
13
|
+
background: var(--fe-paper);
|
|
14
|
+
border: 1px solid var(--fe-border);
|
|
15
|
+
border-radius: 24px;
|
|
16
|
+
padding: 2.5rem;
|
|
17
|
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
|
|
18
|
+
max-width: 1200px;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
color: var(--fe-ink);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.theme-dark .forensic-stature-card {
|
|
24
|
+
--fe-ink: #f1f5f9;
|
|
25
|
+
--fe-muted: #94a3b8;
|
|
26
|
+
--fe-paper: rgba(15, 23, 42, 0.95);
|
|
27
|
+
--fe-border: rgba(255, 255, 255, 0.08);
|
|
28
|
+
--fe-sub-bg: rgba(0, 0, 0, 0.25);
|
|
29
|
+
--fe-accent: #38bdf8;
|
|
30
|
+
--fe-accent-rgb: 56, 189, 248;
|
|
31
|
+
--fe-alert-bg: rgba(2, 132, 199, 0.08);
|
|
32
|
+
--fe-alert-border: rgba(2, 132, 199, 0.2);
|
|
33
|
+
--fe-alert-text: #38bdf8;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.forensic-stature-header {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
margin-bottom: 2rem;
|
|
40
|
+
padding-bottom: 1.5rem;
|
|
41
|
+
border-bottom: 1px solid var(--fe-border);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.unit-toggle-group-global {
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: auto auto;
|
|
47
|
+
background: var(--fe-sub-bg);
|
|
48
|
+
border: 1px solid var(--fe-border);
|
|
49
|
+
padding: 4px;
|
|
50
|
+
border-radius: 12px;
|
|
51
|
+
gap: 4px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.forensic-stature-title-area {
|
|
55
|
+
margin-bottom: 2rem;
|
|
56
|
+
text-align: left;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.forensic-stature-main-title {
|
|
60
|
+
font-size: 1.75rem;
|
|
61
|
+
font-weight: 800;
|
|
62
|
+
letter-spacing: -0.02em;
|
|
63
|
+
margin-bottom: 0.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.forensic-stature-main-desc {
|
|
67
|
+
font-size: 0.95rem;
|
|
68
|
+
color: var(--fe-muted);
|
|
69
|
+
line-height: 1.5;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.forensic-stature-grid {
|
|
73
|
+
display: grid;
|
|
74
|
+
grid-template-columns: 1fr;
|
|
75
|
+
gap: 2.5rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (min-width: 1024px) {
|
|
79
|
+
.forensic-stature-grid {
|
|
80
|
+
grid-template-columns: 1.2fr 0.8fr;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.forensic-stature-left {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
gap: 2rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.osteometric-board-container {
|
|
91
|
+
background: var(--fe-sub-bg);
|
|
92
|
+
border: 1px solid var(--fe-border);
|
|
93
|
+
border-radius: 16px;
|
|
94
|
+
padding: 1.5rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.osteometric-board-header {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: center;
|
|
101
|
+
margin-bottom: 1rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.osteometric-board-title {
|
|
105
|
+
font-size: 0.9rem;
|
|
106
|
+
font-weight: 700;
|
|
107
|
+
text-transform: uppercase;
|
|
108
|
+
letter-spacing: 0.05em;
|
|
109
|
+
color: var(--fe-accent);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.osteometric-board-instructions {
|
|
113
|
+
font-size: 0.8rem;
|
|
114
|
+
color: var(--fe-muted);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.osteometric-board {
|
|
118
|
+
position: relative;
|
|
119
|
+
height: 180px;
|
|
120
|
+
background: #f1ebd7;
|
|
121
|
+
border: 4px solid #b89775;
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.theme-dark .osteometric-board {
|
|
128
|
+
background: #2e2820;
|
|
129
|
+
border-color: #634d35;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.osteometric-ruler {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 0;
|
|
135
|
+
left: 10%;
|
|
136
|
+
right: 10%;
|
|
137
|
+
height: 25px;
|
|
138
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.theme-dark .osteometric-ruler {
|
|
142
|
+
border-bottom-color: rgba(255, 255, 255, 0.15);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.osteometric-base {
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 40px;
|
|
148
|
+
left: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
bottom: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.fixed-block {
|
|
154
|
+
position: absolute;
|
|
155
|
+
left: 10%;
|
|
156
|
+
top: 0;
|
|
157
|
+
bottom: 10px;
|
|
158
|
+
width: 12px;
|
|
159
|
+
background: #876743;
|
|
160
|
+
border-radius: 2px;
|
|
161
|
+
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.theme-dark .fixed-block {
|
|
165
|
+
background: #473623;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.bone-stage {
|
|
169
|
+
position: absolute;
|
|
170
|
+
left: calc(10% + 12px);
|
|
171
|
+
right: 10%;
|
|
172
|
+
top: 10px;
|
|
173
|
+
bottom: 10px;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.bone-svg {
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.bone-shape {
|
|
184
|
+
transition: all 0.3s ease;
|
|
185
|
+
filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.bone-shape.hidden {
|
|
189
|
+
display: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.sliding-caliper {
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: -10px;
|
|
195
|
+
bottom: 10px;
|
|
196
|
+
width: 24px;
|
|
197
|
+
transition: left 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
198
|
+
pointer-events: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.caliper-arm {
|
|
202
|
+
position: absolute;
|
|
203
|
+
left: 0;
|
|
204
|
+
top: 10px;
|
|
205
|
+
bottom: 0;
|
|
206
|
+
width: 6px;
|
|
207
|
+
background: #5c6b73;
|
|
208
|
+
border-radius: 1px;
|
|
209
|
+
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.25);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.theme-dark .caliper-arm {
|
|
213
|
+
background: #374151;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.caliper-handle {
|
|
217
|
+
position: absolute;
|
|
218
|
+
left: -9px;
|
|
219
|
+
top: 0;
|
|
220
|
+
width: 24px;
|
|
221
|
+
height: 20px;
|
|
222
|
+
background: #e2e8f0;
|
|
223
|
+
border: 2px solid #64748b;
|
|
224
|
+
border-radius: 4px;
|
|
225
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.theme-dark .caliper-handle {
|
|
229
|
+
background: #4b5563;
|
|
230
|
+
border-color: #9ca3af;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.osteometric-selector {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
gap: 1.5rem;
|
|
237
|
+
padding: 1.75rem;
|
|
238
|
+
border: 1px solid var(--fe-border);
|
|
239
|
+
border-radius: 16px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.selector-title {
|
|
243
|
+
font-size: 1.1rem;
|
|
244
|
+
font-weight: 700;
|
|
245
|
+
margin-bottom: 0.5rem;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.form-group {
|
|
249
|
+
display: flex;
|
|
250
|
+
flex-direction: column;
|
|
251
|
+
gap: 0.5rem;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.form-group label {
|
|
255
|
+
font-size: 0.85rem;
|
|
256
|
+
font-weight: 600;
|
|
257
|
+
color: var(--fe-muted);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.unit-toggle-group {
|
|
261
|
+
display: grid;
|
|
262
|
+
grid-template-columns: 1fr 1fr;
|
|
263
|
+
background: var(--fe-sub-bg);
|
|
264
|
+
border: 1px solid var(--fe-border);
|
|
265
|
+
padding: 4px;
|
|
266
|
+
border-radius: 12px;
|
|
267
|
+
gap: 4px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.unit-toggle-label {
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
text-align: center;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.unit-toggle-label input {
|
|
276
|
+
display: none;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.unit-toggle-button {
|
|
280
|
+
display: block;
|
|
281
|
+
padding: 0.6rem;
|
|
282
|
+
font-size: 0.9rem;
|
|
283
|
+
font-weight: 600;
|
|
284
|
+
border-radius: 8px;
|
|
285
|
+
color: var(--fe-muted);
|
|
286
|
+
transition: all 0.2s ease;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.unit-toggle-label input:checked + .unit-toggle-button {
|
|
290
|
+
background: var(--fe-accent);
|
|
291
|
+
color: #fff;
|
|
292
|
+
box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.custom-select {
|
|
296
|
+
position: relative;
|
|
297
|
+
width: 100%;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.custom-select-trigger {
|
|
301
|
+
width: 100%;
|
|
302
|
+
display: flex;
|
|
303
|
+
justify-content: space-between;
|
|
304
|
+
align-items: center;
|
|
305
|
+
padding: 0.75rem 1rem;
|
|
306
|
+
border: 1px solid var(--fe-border);
|
|
307
|
+
border-radius: 10px;
|
|
308
|
+
background: var(--fe-paper);
|
|
309
|
+
color: var(--fe-ink);
|
|
310
|
+
font-size: 0.95rem;
|
|
311
|
+
font-weight: 500;
|
|
312
|
+
text-align: left;
|
|
313
|
+
cursor: pointer;
|
|
314
|
+
outline: none;
|
|
315
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.custom-select-trigger:focus,
|
|
319
|
+
.custom-select-trigger[aria-expanded="true"] {
|
|
320
|
+
border-color: var(--fe-accent);
|
|
321
|
+
box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.custom-select-arrow {
|
|
325
|
+
color: var(--fe-muted);
|
|
326
|
+
transition: transform 0.2s ease;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.custom-select-trigger[aria-expanded="true"] .custom-select-arrow {
|
|
330
|
+
transform: rotate(180deg);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.custom-select-options {
|
|
334
|
+
position: absolute;
|
|
335
|
+
top: calc(100% + 6px);
|
|
336
|
+
left: 0;
|
|
337
|
+
right: 0;
|
|
338
|
+
background: var(--fe-paper);
|
|
339
|
+
border: 1px solid var(--fe-border);
|
|
340
|
+
border-radius: 12px;
|
|
341
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
342
|
+
z-index: 50;
|
|
343
|
+
max-height: 220px;
|
|
344
|
+
overflow-y: auto;
|
|
345
|
+
padding: 4px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.custom-select-options.hidden {
|
|
349
|
+
display: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.custom-select-option {
|
|
353
|
+
padding: 0.65rem 1rem;
|
|
354
|
+
font-size: 0.95rem;
|
|
355
|
+
color: var(--fe-ink);
|
|
356
|
+
border-radius: 8px;
|
|
357
|
+
cursor: pointer;
|
|
358
|
+
transition: background 0.15s ease, color 0.15s ease;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.custom-select-option:hover {
|
|
362
|
+
background: var(--fe-sub-bg);
|
|
363
|
+
color: var(--fe-accent);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.custom-select-option.selected {
|
|
367
|
+
background: rgba(2, 132, 199, 0.08);
|
|
368
|
+
color: var(--fe-accent);
|
|
369
|
+
font-weight: 600;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.length-input-container {
|
|
373
|
+
display: grid;
|
|
374
|
+
grid-template-columns: 80px 1fr;
|
|
375
|
+
gap: 1rem;
|
|
376
|
+
align-items: center;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.selector-number {
|
|
380
|
+
padding: 0.6rem;
|
|
381
|
+
border: 1px solid var(--fe-border);
|
|
382
|
+
border-radius: 8px;
|
|
383
|
+
background: var(--fe-paper);
|
|
384
|
+
color: var(--fe-ink);
|
|
385
|
+
font-size: 0.95rem;
|
|
386
|
+
text-align: center;
|
|
387
|
+
outline: none;
|
|
388
|
+
font-weight: 600;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.selector-range {
|
|
392
|
+
-webkit-appearance: none;
|
|
393
|
+
appearance: none;
|
|
394
|
+
width: 100%;
|
|
395
|
+
height: 6px;
|
|
396
|
+
background: var(--fe-border);
|
|
397
|
+
border-radius: 3px;
|
|
398
|
+
outline: none;
|
|
399
|
+
cursor: pointer;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.selector-range::-webkit-slider-thumb {
|
|
403
|
+
-webkit-appearance: none;
|
|
404
|
+
appearance: none;
|
|
405
|
+
width: 18px;
|
|
406
|
+
height: 18px;
|
|
407
|
+
border-radius: 50%;
|
|
408
|
+
background: var(--fe-accent);
|
|
409
|
+
cursor: pointer;
|
|
410
|
+
transition: transform 0.1s ease;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.selector-range::-webkit-slider-thumb:hover {
|
|
414
|
+
transform: scale(1.25);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.radio-group {
|
|
418
|
+
display: flex;
|
|
419
|
+
gap: 1.5rem;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.radio-label {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
gap: 0.6rem;
|
|
426
|
+
cursor: pointer;
|
|
427
|
+
font-size: 0.95rem;
|
|
428
|
+
font-weight: 500;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.radio-label input {
|
|
432
|
+
display: none;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.custom-radio {
|
|
436
|
+
display: inline-block;
|
|
437
|
+
width: 18px;
|
|
438
|
+
height: 18px;
|
|
439
|
+
border: 2px solid var(--fe-border);
|
|
440
|
+
border-radius: 50%;
|
|
441
|
+
position: relative;
|
|
442
|
+
background: var(--fe-paper);
|
|
443
|
+
transition: border-color 0.2s ease, background 0.2s ease;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.radio-label input:checked + .custom-radio {
|
|
447
|
+
border-color: var(--fe-accent);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.radio-label input:checked + .custom-radio::after {
|
|
451
|
+
content: "";
|
|
452
|
+
display: block;
|
|
453
|
+
position: absolute;
|
|
454
|
+
top: 3px;
|
|
455
|
+
left: 3px;
|
|
456
|
+
width: 8px;
|
|
457
|
+
height: 8px;
|
|
458
|
+
border-radius: 50%;
|
|
459
|
+
background: var(--fe-accent);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.forensic-stature-right {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-direction: column;
|
|
465
|
+
gap: 1.5rem;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.estimation-panel {
|
|
469
|
+
display: flex;
|
|
470
|
+
flex-direction: column;
|
|
471
|
+
gap: 1.5rem;
|
|
472
|
+
padding: 2rem;
|
|
473
|
+
background: var(--fe-sub-bg);
|
|
474
|
+
border: 1px solid var(--fe-border);
|
|
475
|
+
border-radius: 20px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.panel-title {
|
|
479
|
+
font-size: 1.2rem;
|
|
480
|
+
font-weight: 700;
|
|
481
|
+
border-bottom: 1px solid var(--fe-border);
|
|
482
|
+
padding-bottom: 0.75rem;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.alert-box {
|
|
486
|
+
background: var(--fe-alert-bg);
|
|
487
|
+
border: 1px solid var(--fe-alert-border);
|
|
488
|
+
color: var(--fe-alert-text);
|
|
489
|
+
border-radius: 12px;
|
|
490
|
+
padding: 1rem;
|
|
491
|
+
font-size: 0.85rem;
|
|
492
|
+
line-height: 1.4;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.alert-box.hidden {
|
|
496
|
+
display: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.stature-hero {
|
|
500
|
+
background: var(--fe-paper);
|
|
501
|
+
border: 1px solid var(--fe-border);
|
|
502
|
+
border-radius: 16px;
|
|
503
|
+
padding: 1.75rem;
|
|
504
|
+
text-align: center;
|
|
505
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.stature-value-box {
|
|
509
|
+
display: flex;
|
|
510
|
+
flex-direction: column;
|
|
511
|
+
gap: 0.5rem;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.stature-value-title {
|
|
515
|
+
font-size: 0.85rem;
|
|
516
|
+
font-weight: 700;
|
|
517
|
+
text-transform: uppercase;
|
|
518
|
+
color: var(--fe-muted);
|
|
519
|
+
letter-spacing: 0.05em;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.stature-display {
|
|
523
|
+
display: flex;
|
|
524
|
+
justify-content: center;
|
|
525
|
+
align-items: baseline;
|
|
526
|
+
gap: 0.25rem;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.stature-number {
|
|
530
|
+
font-size: 3.5rem;
|
|
531
|
+
font-weight: 800;
|
|
532
|
+
letter-spacing: -0.03em;
|
|
533
|
+
color: var(--fe-accent);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.stature-unit {
|
|
537
|
+
font-size: 1.25rem;
|
|
538
|
+
font-weight: 700;
|
|
539
|
+
color: var(--fe-muted);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.stature-display-secondary {
|
|
543
|
+
font-size: 1.1rem;
|
|
544
|
+
font-weight: 600;
|
|
545
|
+
color: var(--fe-muted);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.metrics-grid {
|
|
549
|
+
display: grid;
|
|
550
|
+
grid-template-columns: 1fr;
|
|
551
|
+
gap: 1rem;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@media (min-width: 480px) {
|
|
555
|
+
.metrics-grid {
|
|
556
|
+
grid-template-columns: 1fr 1fr;
|
|
557
|
+
}
|
|
558
|
+
.span-2 {
|
|
559
|
+
grid-column: span 2;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.metric-card {
|
|
564
|
+
background: var(--fe-paper);
|
|
565
|
+
border: 1px solid var(--fe-border);
|
|
566
|
+
border-radius: 12px;
|
|
567
|
+
padding: 1rem;
|
|
568
|
+
display: flex;
|
|
569
|
+
flex-direction: column;
|
|
570
|
+
gap: 0.25rem;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.metric-title {
|
|
574
|
+
font-size: 0.75rem;
|
|
575
|
+
font-weight: 600;
|
|
576
|
+
color: var(--fe-muted);
|
|
577
|
+
text-transform: uppercase;
|
|
578
|
+
letter-spacing: 0.03em;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.metric-value {
|
|
582
|
+
font-size: 1.1rem;
|
|
583
|
+
font-weight: 700;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.formula-card {
|
|
587
|
+
background: var(--fe-paper);
|
|
588
|
+
border: 1px dashed var(--fe-border);
|
|
589
|
+
border-radius: 16px;
|
|
590
|
+
padding: 1.5rem;
|
|
591
|
+
display: flex;
|
|
592
|
+
flex-direction: column;
|
|
593
|
+
gap: 1rem;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.formula-title {
|
|
597
|
+
font-size: 0.75rem;
|
|
598
|
+
font-weight: 600;
|
|
599
|
+
color: var(--fe-muted);
|
|
600
|
+
text-transform: uppercase;
|
|
601
|
+
letter-spacing: 0.05em;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.formula-visual-container {
|
|
605
|
+
display: flex;
|
|
606
|
+
flex-wrap: wrap;
|
|
607
|
+
align-items: center;
|
|
608
|
+
justify-content: flex-start;
|
|
609
|
+
gap: 0.5rem;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.formula-part {
|
|
613
|
+
display: inline-flex;
|
|
614
|
+
flex-direction: column;
|
|
615
|
+
align-items: center;
|
|
616
|
+
padding: 0.5rem 0.75rem;
|
|
617
|
+
border-radius: 8px;
|
|
618
|
+
border: 1px solid var(--fe-border);
|
|
619
|
+
background: var(--fe-sub-bg);
|
|
620
|
+
min-width: 90px;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.formula-part-label {
|
|
624
|
+
font-size: 0.6rem;
|
|
625
|
+
font-weight: 600;
|
|
626
|
+
text-transform: uppercase;
|
|
627
|
+
color: var(--fe-muted);
|
|
628
|
+
margin-bottom: 0.25rem;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.formula-part-math {
|
|
632
|
+
font-size: 0.85rem;
|
|
633
|
+
font-weight: 700;
|
|
634
|
+
color: var(--fe-ink);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.formula-operator {
|
|
638
|
+
font-size: 1.25rem;
|
|
639
|
+
font-weight: 800;
|
|
640
|
+
color: var(--fe-muted);
|
|
641
|
+
padding: 0 0.25rem;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.highlight-bone {
|
|
645
|
+
border-color: rgba(2, 132, 199, 0.25);
|
|
646
|
+
background: rgba(2, 132, 199, 0.04);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.highlight-const {
|
|
650
|
+
border-color: rgba(16, 185, 129, 0.25);
|
|
651
|
+
background: rgba(16, 185, 129, 0.04);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.highlight-age {
|
|
655
|
+
border-color: rgba(245, 158, 11, 0.25);
|
|
656
|
+
background: rgba(245, 158, 11, 0.04);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.highlight-error {
|
|
660
|
+
border-color: rgba(239, 68, 68, 0.25);
|
|
661
|
+
background: rgba(239, 68, 68, 0.04);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.ruler-ticks {
|
|
665
|
+
width: 100%;
|
|
666
|
+
height: 100%;
|
|
667
|
+
background-image:
|
|
668
|
+
repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25) 1.5px, transparent 1.5px, transparent 16.666%),
|
|
669
|
+
repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 1.666%);
|
|
670
|
+
background-size: 100% 100%;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.theme-dark .ruler-ticks {
|
|
674
|
+
background-image:
|
|
675
|
+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px, transparent 16.666%),
|
|
676
|
+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15) 1px, transparent 1px, transparent 1.666%);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.ruler-ticks.unit-imperial {
|
|
680
|
+
background-image:
|
|
681
|
+
repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25) 1.5px, transparent 1.5px, transparent 16.666%),
|
|
682
|
+
repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 4.166%);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.theme-dark .ruler-ticks.unit-imperial {
|
|
686
|
+
background-image:
|
|
687
|
+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px, transparent 16.666%),
|
|
688
|
+
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15) 1px, transparent 1px, transparent 4.166%);
|
|
689
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface LimitInfo {
|
|
2
|
+
min: number;
|
|
3
|
+
max: number;
|
|
4
|
+
step: number;
|
|
5
|
+
formattedMin: string;
|
|
6
|
+
formattedMax: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function getLimitsForUnit(
|
|
10
|
+
unit: 'metric' | 'imperial',
|
|
11
|
+
config: { min: number; max: number; default: number }
|
|
12
|
+
): LimitInfo {
|
|
13
|
+
const isImperial = unit === 'imperial';
|
|
14
|
+
const min = isImperial ? config.min / 2.54 : config.min;
|
|
15
|
+
const max = isImperial ? config.max / 2.54 : config.max;
|
|
16
|
+
const step = isImperial ? 0.05 : 0.1;
|
|
17
|
+
return {
|
|
18
|
+
min,
|
|
19
|
+
max,
|
|
20
|
+
step,
|
|
21
|
+
formattedMin: min.toFixed(2),
|
|
22
|
+
formattedMax: max.toFixed(2)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function cmToFtIn(cm: number): string {
|
|
27
|
+
const totalInches = cm / 2.54;
|
|
28
|
+
const feet = Math.floor(totalInches / 12);
|
|
29
|
+
const inches = Math.round(totalInches % 12);
|
|
30
|
+
return `${feet}' ${inches}" (${totalInches.toFixed(1)} in)`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function convertValueForUnit(val: number, unit: 'metric' | 'imperial'): number {
|
|
34
|
+
if (unit === 'imperial') {
|
|
35
|
+
return val / 2.54;
|
|
36
|
+
}
|
|
37
|
+
return val * 2.54;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function applyLengthLimits(
|
|
41
|
+
val: number,
|
|
42
|
+
config: { min: number; max: number; default: number },
|
|
43
|
+
unit: 'metric' | 'imperial'
|
|
44
|
+
): number {
|
|
45
|
+
const min = unit === 'imperial' ? config.min / 2.54 : config.min;
|
|
46
|
+
const max = unit === 'imperial' ? config.max / 2.54 : config.max;
|
|
47
|
+
if (isNaN(val) || val < min || val > max) {
|
|
48
|
+
return unit === 'imperial' ? config.default / 2.54 : config.default;
|
|
49
|
+
}
|
|
50
|
+
return val;
|
|
51
|
+
}
|