From 6e712e535d0f9047e320ad52afea48bb3e57bb5c Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 7 Mar 2026 10:46:25 +0000 Subject: [PATCH] Improve layout/behavior and accessibility --- calculators_list.md | 231 +++++++++++++----- hdyc-svelte/src/app.css | 174 +++++++++++++ hdyc-svelte/src/app.html | 20 +- .../src/lib/components/Calculator.svelte | 12 +- .../src/lib/components/SearchBar.svelte | 17 +- hdyc-svelte/src/lib/components/Sidebar.svelte | 21 +- hdyc-svelte/src/lib/data/calculators.ts | 44 +++- hdyc-svelte/src/routes/+layout.svelte | 43 +--- 8 files changed, 457 insertions(+), 105 deletions(-) diff --git a/calculators_list.md b/calculators_list.md index 9a905c5..1aac6c2 100644 --- a/calculators_list.md +++ b/calculators_list.md @@ -31,14 +31,33 @@ The registry currently contains 416 unique calculator slugs. | Attograms to Femtograms – To compare particle masses, convert 150 attograms into femtograms. | attograms-to-femtograms | 0.001 | | Bar to Pascal | bar-to-pascal | 100000.0 | | Bar to PSI | bar-to-psi | 14.5037738 | +| Pascal to Bar – Convert pascals back into bars for quick pressure comparisons. | pascal-to-bar | 1e-05 | +| Pascal to Dynes per sq cm – Translate SI pressure into CGS dynes per square centimeter. | pascal-to-dynes-per-sq-cm | 10.0 | +| Pascal to kPa – Convert pascals into kilopascals. | pascal-to-kpa | 0.001 | +| Pascal to Megapascals – Express pascals as megapascals. | pascal-to-megapascals | 1e-06 | +| Pascal to mmHg – Turn pascals into millimeters of mercury. | pascal-to-mmhg | 0.00750062 | +| Pascal to PSI – Convert pascals to pounds per square inch. | pascal-to-psi | 0.000145038 | +| Pascal to Technical atmosphere – Convert pascals to technical atmospheres (kgf/cm²). | pascal-to-technical-atmosphere | 0.000010197162 | +| Pascal to Torr – Convert pascals into torr for vacuum work. | pascal-to-torr | 0.00750062 | | Becquerel to Curie | becquerel-to-curie | 2.7027027e-11 | | Becquerel to Rutherford | becquerel-to-rutherford | 0.000001 | | Bits to Bytes | bits-to-bytes | 0.125 | +| Words (16-bit) to Bits – Convert 16-bit words into raw bits for archive calculations. | words-16-bit-to-bits | 16.0 | +| Words (16-bit) to Bytes – Express a 16-bit word as a pair of bytes. | words-16-bit-to-bytes | 2.0 | +| Words (32-bit) to Bits – Convert 32-bit words into bits for framing larger registers. | words-32-bit-to-bits | 32.0 | +| Words (32-bit) to Bytes – Express a 32-bit word as four bytes. | words-32-bit-to-bytes | 4.0 | +| Bits to Words (16-bit) – Show how many 16-bit words fit into a given bit count. | bits-to-words-16-bit | 0.0625 | +| Bits to Words (32-bit) – Show how many 32-bit words fit into a given bit count. | bits-to-words-32-bit | 0.03125 | +| Bytes to Words (16-bit) – Convert byte counts into 16-bit words for legacy units. | bytes-to-words-16-bit | 0.5 | +| Bytes to Words (32-bit) – Convert byte counts into 32-bit words for modern registers. | bytes-to-words-32-bit | 0.25 | | BTU to Kilojoules | btu-to-kilojoules | 1.05505585 | | BTU/hour to Watts | btuhour-to-watts | 0.293071 | | Calories to Joules | calories-to-joules | 4.184 | | Calories to Kilojoules | calories-to-kilojoules | 4.184 | +| Abamperes to Amperes – Convert ancient electromagnetic units into modern amperes. | abamperes-to-amperes | 10.0 | +| Abvolts to Volts – Translate CGS-style abvolts into SI volts. | abvolts-to-volts | 1e-08 | | ASCII to Binary | ascii-to-binary | N/A (Text) | +| Amperes to Abamperes – Convert SI amperes into CGS abamperes quickly. | amperes-to-abamperes | 0.1 | | Amps to Volts | amps-to-volts | Multi-Variable | | Binary to ASCII | binary-to-ascii | N/A (Text) | | Binary to Decimal | binary-to-decimal | N/A (Text) | @@ -53,7 +72,9 @@ The registry currently contains 416 unique calculator slugs. | Centimeters to Inches | centimeters-to-inches | 0.393700787 | | CFS to CMS | cfs-to-cms | 0.0283168466 | | CMS to CFS | cms-to-cfs | 35.3146667 | +| Ampere-hours to Coulombs – Convert battery capacity in ampere-hours into coulombs. | ampere-hours-to-coulombs | 3600.0 | | Coulomb per Kilogram to Roentgen | coulomb-per-kilogram-to-roentgen | 3875.96899 | +| Coulombs to Ampere-hours – Express a charge in coulombs as ampere-hours. | coulombs-to-ampere-hours | 0.0002777777777777778 | | Cups to Milliliters | cups-to-milliliters | 236.588237 | | Curie to Becquerel | curie-to-becquerel | 3.7e10 | | Daltons to AMU | daltons-to-amu | 1.0 | @@ -62,6 +83,8 @@ The registry currently contains 416 unique calculator slugs. | Days to Years | days-to-years | 0.002737851 | | Atomic Time Units to Seconds – Turn an atomic unit of time into seconds for quantum timing. | atomic-time-units-to-seconds | 2.418884326505e-17 | | Degrees to Mils | degrees-to-mils | 17.777777778 | +| Mils to Degrees – Convert mils (1/6400 circle) back into degrees. | mils-to-degrees | 0.05625 | +| Mils to Radians – Convert mils into radians for fine angular controls. | mils-to-radians | 0.0009817477 | | Degrees to Radians | degrees-to-radians | 0.017453293 | | Arcminutes to Arcseconds – Expand each arcminute into 60 arcseconds for high-precision angles. | arcminutes-to-arcseconds | 60.0 | | Arcminutes to Degrees – Convert minutes of arc into degrees. | arcminutes-to-degrees | 0.0166666667 | @@ -85,6 +108,8 @@ The registry currently contains 416 unique calculator slugs. | Grams to Pennyweights | grams-to-pennyweights | 0.643014931 | | Grams to Troy Ounces | grams-to-troy-ounces | 0.0321507466 | | Gray to Rad | gray-to-rad | 100.0 | +| Millirem to Microsievert – Convert millirem exposures into microsieverts. | millirem-to-microsievert | 100.0 | +| Millisievert to Rem – Turn millisieverts into rems for dose comparisons. | millisievert-to-rem | 0.1 | | Grams to Apothecary ounces | grams-to-apothecary-ounces | 0.0321507466 | | Grams to Carats | grams-to-carats | 5.0 | | Grams to Grains | grams-to-grains | 15.4323584 | @@ -112,6 +137,8 @@ The registry currently contains 416 unique calculator slugs. | Kilojoules to Joules | kilojoules-to-joules | 1000.0 | | Micrograms to Grams | micrograms-to-grams | 1e-06 | | Milligrams to Grams | milligrams-to-grams | 0.001 | +| Milligrams to Carats – Convert milligrams to carats (1 carat = 200 mg). | milligrams-to-carats | 0.005 | +| Milligrams to Centigrams – Express milligrams as centigrams. | milligrams-to-centigrams | 0.1 | | Millibars to Pascals | millibars-to-pascals | 100.0 | | Millimeters of Mercury to Pascals | millimeters-of-mercury-to-pascals | 133.322 | | Meters per second to Feet per second | meters-per-second-to-feet-per-second | 3.28084 | @@ -124,6 +151,7 @@ The registry currently contains 416 unique calculator slugs. | Milliliters to Fluid Ounces | milliliters-to-fluid-ounces | 0.033814 | | Millimeters to Centimeters | millimeters-to-centimeters | 0.1 | | Millimeters to Inches | millimeters-to-inches | 0.0393701 | +| Millimeters to Thou – Express millimeters as mils/thou (1 mil = 0.0254 mm). | millimeters-to-thou | 39.3701 | | Megabytes to Gigabytes | megabytes-to-gigabytes | 0.001 | | Megajoules to Kilowatt-hours | megajoules-to-kilowatt-hours | 0.277778 | | Meters to Feet | meters-to-feet | 3.28084 | @@ -132,8 +160,13 @@ The registry currently contains 416 unique calculator slugs. | Minutes to Hours | minutes-to-hours | 0.0166667 | | Minutes to Seconds | minutes-to-seconds | 60.0 | | Nautical miles to Kilometers | nautical-miles-to-kilometers | 1.852 | +| Nautical Miles to Fathoms – Convert nautical miles into fathoms for marine depth references. | nautical-miles-to-fathoms | 1012.6867 | +| Nautical Miles to Meters – Convert nautical miles into meters. | nautical-miles-to-meters | 1852.0 | +| Nautical Miles to Miles – Convert nautical miles into statute miles. | nautical-miles-to-miles | 1.15077945 | | Newtons to Dynes | newtons-to-dynes | 100000.0 | | Newton-meters to Kilogram-force Meters – Convert a torque in newton-meters into kilogram-force meters for mechanical specs. | newton-meters-to-kilogram-force-meters | 0.10197162129779283 | +| Newton-meters to Dyne-centimeters – Scale a newton-meter into dyne-centimeters for CGS torque gauges. | newton-meters-to-dyne-centimeters | 10000000.0 | +| Newton-meters to Inch-Pounds – Express a newton-meter as inch-pounds to compare imperial torque specs. | newton-meters-to-inch-pounds | 8.850745767 | | Newtons to Kilogram-force – A force of one newton expressed as kilogram-force. | newtons-to-kilogram-force | 0.10197162129779283 | | Newtons to Pound-force – Translate a newton reading into pounds of force. | newtons-to-pound-force | 0.2248089431128759 | | Newtons to Kilonewtons – Convert a newton force into kilonewtons for handy SI notation. | newtons-to-kilonewtons | 0.001 | @@ -160,12 +193,30 @@ The registry currently contains 416 unique calculator slugs. | Miles per hour to Kilometers per hour | miles-per-hour-to-kilometers-per-hour | 1.609344 | | Miles per hour to Knots | miles-per-hour-to-knots | 0.8689762419 | | Miles per hour to Meters per second | miles-per-hour-to-meters-per-second | 0.44704 | +| Milliliters to Centiliters | milliliters-to-centiliters | 0.01 | +| Milliliters to Drams (fluid) – Convert milliliters into US fluid drams. | milliliters-to-drams-fluid | 0.270027 | +| Milliliters to Gill – Express milliliters as US gills for bartending volumes. | milliliters-to-gill | 0.00845303 | +| Milliliters to Jiggers – Convert milliliters into jiggers (1 jigger = 44.3603 ml). | milliliters-to-jiggers | 0.02255624 | +| Minims to Milliliters – Convert apothecary minims into milliliters. | minims-to-milliliters | 0.0616115 | | Milliliters to Cups | milliliters-to-cups | 0.00422675 | | Milliliters to Tablespoons | milliliters-to-tablespoons | 0.067628 | | Milliliters to Teaspoons | milliliters-to-teaspoons | 0.202884 | | Millimeters to Microns | millimeters-to-microns | 1000 | | Femtograms to Attograms | femtograms-to-attograms | 1000 | | Gigabytes to Terabytes | gigabytes-to-terabytes | 0.0009765625 | +| Maxwell to Weber – Convert CGS magnetic flux (maxwell) into SI webers. | maxwell-to-weber | 1e-08 | +| Mbps to Gbps – Convert megabits per second into gigabits per second. | mbps-to-gbps | 0.001 | +| Mbps to Kbps – Convert megabits per second into kilobits per second. | mbps-to-kbps | 1000 | +| Mbps to MB/s – Convert megabits per second into megabytes per second. | mbps-to-mb-per-second | 0.125 | +| Mebibytes to Megabytes – Convert mebibytes into megabytes. | mebibytes-to-megabytes | 1.048576 | +| Megabits to Gigabits – Convert megabits into gigabits. | megabits-to-gigabits | 0.001 | +| Megabits to Kilobits – Convert megabits into kilobits. | megabits-to-kilobits | 1000 | +| Megabytes to Bytes – A download weighs 5 megabytes; how many bytes does that represent? | megabytes-to-bytes | 1000000 | +| Megabytes to Kilobytes – A file is 3 megabytes; how many kilobytes is that? | megabytes-to-kilobytes | 3000 | +| Megabytes to Mebibytes – Convert megabytes into mebibytes. | megabytes-to-mebibytes | 0.95367431640625 | +| Megabytes to Terabytes – Convert megabytes into terabytes. | megabytes-to-terabytes | 0.000001 | +| Megahertz to Gigahertz – A radio tuned to 100 MHz is what frequency in GHz? | megahertz-to-gigahertz | 0.001 | +| Megahertz to Kilohertz – Express megahertz as kilohertz. | megahertz-to-kilohertz | 1000 | | Joules to Calories | joules-to-calories | 0.239005736 | | Joules to Ergs | joules-to-ergs | 10000000 | | Kilocalories to Kilojoules | kilocalories-to-kilojoules | 4.184 | @@ -184,6 +235,13 @@ The registry currently contains 416 unique calculator slugs. | Liters to Gallons | liters-to-gallons | 0.264172052 | | Liters to Pints | liters-to-pints | 2.11337642 | | Liters to Quarts | liters-to-quarts | 1.05668821 | +| Liters per 100 km to Kilometers per liter – Turn consumption from L/100 km into km per liter. | liters-per-100-km-to-kilometers-per-liter | 100/x | +| Liters per 100 km to Miles per gallon – Convert L/100 km into MPG. | liters-per-100-km-to-miles-per-gallon | 235.21/x | +| Liters per minute to Gallons per minute | liters-per-minute-to-gallons-per-minute | 0.264172052 | +| Liters per second to CMS – Convert liters per second into cubic meters per second. | liters-per-second-to-cms | 0.001 | +| Liters to Cubic inches – Express liters as cubic inches. | liters-to-cubic-inches | 61.0237441 | +| Liters to Cubic Meters – Express liters as cubic meters. | liters-to-cubic-meters | 0.001 | +| Liters to Fluid Ounces – Express liters as US fluid ounces. | liters-to-fluid-ounces | 33.8140227 | | Candela to Lumens | candela-to-lumens | 12.5663706 | | Decimal to Binary | decimal-to-binary | 10_to_2 | | Decimal to Hex | decimal-to-hex | 10_to_16 | @@ -192,6 +250,7 @@ The registry currently contains 416 unique calculator slugs. | Hex to Decimal | hex-to-decimal | 16_to_10 | | Watts to amps | watts-to-amps | Multi-Variable | | Volts to amps | volts-to-amps | Multi-Variable | +| Volts to Abvolts – Convert SI volts into CGS abvolts. | volts-to-abvolts | 1e+08 | | Siemens to ohms | siemens-to-ohms | 1/x | | Ohms to siemens | ohms-to-siemens | 1/x | | Miles per gallon to liters per 100 km | miles-per-gallon-to-liters-per-100-km | 235.21/x | @@ -237,6 +296,9 @@ The registry currently contains 416 unique calculator slugs. | Slugs to kilograms | slugs-to-kilograms | 14.5939 | | Sievert to rem | sievert-to-rem | 100 | | Seconds to minutes | seconds-to-minutes | 0.016667 | +| Milliseconds to Microseconds | milliseconds-to-microseconds | 1000.0 | +| Milliseconds to Minutes | milliseconds-to-minutes | 0.0000166667 | +| Milliseconds to Seconds | milliseconds-to-seconds | 0.001 | | Seconds to milliseconds | seconds-to-milliseconds | 1000 | | Rutherford to becquerel | rutherford-to-becquerel | 1000000 | | RPM to rad/s | rpm-to-rads | 0.10472 | @@ -254,7 +316,9 @@ The registry currently contains 416 unique calculator slugs. | Pounds to kilograms | pounds-to-kilograms | 0.45359 | | Pints to liters | pints-to-liters | 0.473176 | | Percent to PPM | percent-to-ppm | 10000 | +| Percent ABV to Proof – Convert alcohol by volume into US proof values (Proof = 2 × ABV). | percent-abv-to-proof | 2 | | Pennyweights to grams | pennyweights-to-grams | 1.55517 | +| Pennyweights to Troy Ounces – Convert pennyweights into troy ounces (1 pennyweight = 0.05 troy ounces). | pennyweights-to-troy-ounces | 0.05 | | Pascals to inches of water | pascals-to-inches-of-water | 0.004015 | | Pascals to inches of mercury | pascals-to-inches-of-mercury | 0.000295 | | Pascal to atmosphere | pascal-to-atmosphere | 9.869e-06 | @@ -276,6 +340,8 @@ The registry currently contains 416 unique calculator slugs. | Hectopascals to Bar – Convert Hectopascals to Bar instantly. | hectopascals-to-bar | 0.001 | | Hectopascals to PSI – Convert Hectopascals to PSI instantly. | hectopascals-to-psi | 0.0145038 | | Henries to Millihenries – Convert Henries to Millihenries instantly. | henries-to-millihenries | 1000 | +| Millihenries to Henries – Convert millihenries back into henries for coarse values. | millihenries-to-henries | 0.001 | +| Millihenries to Microhenries – Translate millihenries into microhenries for fine tuning. | millihenries-to-microhenries | 1000 | | Hertz to Kilohertz – Convert Hertz to Kilohertz instantly. | hertz-to-kilohertz | 0.001 | | Hertz to RPM – Convert Hertz to RPM instantly. | hertz-to-rpm | 60 | | Hex to Octal – Convert Hex to Octal instantly. | hex-to-octal | Base 16 → 8 | @@ -324,6 +390,7 @@ The registry currently contains 416 unique calculator slugs. | Gallons to Quarts – Four gallons convert to how many quarts for canning? | gallons-to-quarts | 4 | | Gamma (mass) to Micrograms – A lab note shows gamma units; what is that in micrograms? | gamma-mass-to-micrograms | 1 | | Gauss to Tesla – A field reads five thousand gauss; what is that in tesla? | gauss-to-tesla | 0.0001 | +| Millitesla to Tesla – Convert milliteslas into teslas for electromagnetism work. | millitesla-to-tesla | 0.001 | | Gbps to Mbps – A fiber uplink reports 10 Gbps; how many megabits per second of capacity is that? | gbps-to-mbps | 1000 | | Gibibytes to Gigabytes – A backup file is 2 GiB; how many gigabytes will the storage quota show? | gibibytes-to-gigabytes | 1.073741824 | | Gigabits to Megabits – A carrier promises 3 gigabits per second; how many megabits is the link rated for? | gigabits-to-megabits | 1000 | @@ -407,6 +474,8 @@ The registry currently contains 416 unique calculator slugs. | Miles to Yards – Convert miles into yards. | miles-to-yards | 1760 | | Milliampere-hours to Coulombs – Convert a charge from mAh to coulombs. | milliampere-hours-to-coulombs | 3.6 | | Milliamps to Amps – Convert milliamperes into amperes. | milliamps-to-amps | 0.001 | +| Millivolts to Volts – Convert millivolts into volts. | millivolts-to-volts | 0.001 | +| Milliwatts to Watts – Convert power from milliwatts to watts. | milliwatts-to-watts | 0.001 | | Millibars to Atmosphere – Convert millibars into atmospheres. | millibars-to-atmosphere | 0.000986923 | | Megapascals to Bar – Convert pressure from megapascals to bar. | megapascals-to-bar | 10 | | Megapascals to Kilopascals – Convert pressure from MPa to kPa. | megapascals-to-kilopascals | 1000 | @@ -455,6 +524,7 @@ The registry currently contains 416 unique calculator slugs. | Liters to Barrel (US oil) – Convert liters to US oil barrels. | liters-to-barrel-us-oil | 0.00628981077 | | Liters to Bushels – Convert liters to US dry bushels. | liters-to-bushels | 0.0284130625 | | Liters to Centiliters – Convert liters to centiliters. | liters-to-centiliters | 100 | +| Pecks to Liters – Convert US pecks into liters (1 peck = 9.09218 liters). | pecks-to-liters | 9.09218 | | Long Tons to Kilograms – Convert UK long tons to kilograms. | long-tons-to-kilograms | 1016.0469088 | | Long Tons to Pounds – Convert UK long tons to pounds. | long-tons-to-pounds | 2240 | | Long Tons to Short Tons – Convert UK long tons to US short tons. | long-tons-to-short-tons | 1.12 | @@ -511,6 +581,14 @@ The registry currently contains 416 unique calculator slugs. - [x] Becquerel to Curie (`becquerel-to-curie`) - [x] Becquerel to Rutherford (`becquerel-to-rutherford`) - [x] Bits to Bytes (`bits-to-bytes`) +- [x] Words (16-bit) to Bits (`words-16-bit-to-bits`) +- [x] Words (16-bit) to Bytes (`words-16-bit-to-bytes`) +- [x] Words (32-bit) to Bits (`words-32-bit-to-bits`) +- [x] Words (32-bit) to Bytes (`words-32-bit-to-bytes`) +- [x] Bits to Words (16-bit) (`bits-to-words-16-bit`) +- [x] Bits to Words (32-bit) (`bits-to-words-32-bit`) +- [x] Bytes to Words (16-bit) (`bytes-to-words-16-bit`) +- [x] Bytes to Words (32-bit) (`bytes-to-words-32-bit`) - [x] BTU to Kilojoules (`btu-to-kilojoules`) - [x] BTU/hour to Watts (`btuhour-to-watts`) - [x] Calories to Joules (`calories-to-joules`) @@ -547,6 +625,8 @@ The registry currently contains 416 unique calculator slugs. - [x] Arcseconds to Degrees (`arcseconds-to-degrees`) - [x] Dynes to Newtons (`dynes-to-newtons`) - [x] Newton-meters to Kilogram-force Meters (`newton-meters-to-kilogram-force-meters`) +- [x] Newton-meters to Dyne-centimeters (`newton-meters-to-dyne-centimeters`) +- [x] Newton-meters to Inch-pounds (`newton-meters-to-inch-pounds`) - [x] Newtons to Kilogram-force (`newtons-to-kilogram-force`) - [x] Newtons to Pound-force (`newtons-to-pound-force`) - [x] Dyne-centimeters to Kilogram-force Meters (`dyne-centimeters-to-kilogram-force-meters`) @@ -617,8 +697,15 @@ The registry currently contains 416 unique calculator slugs. - [x] Micrograms to Milligrams (`micrograms-to-milligrams`) - [x] Micrometers to Millimeters (`micrometers-to-millimeters`) - [x] Milligrams to Micrograms (`milligrams-to-micrograms`) +- [x] Milligrams to Carats (`milligrams-to-carats`) +- [x] Milligrams to Centigrams (`milligrams-to-centigrams`) - [x] Milliliters to Liters (`milliliters-to-liters`) - [x] Milliliters to Fluid Ounces (`milliliters-to-fluid-ounces`) +- [x] Milliliters to Centiliters (`milliliters-to-centiliters`) +- [x] Milliliters to Drams (fluid) (`milliliters-to-drams-fluid`) +- [x] Milliliters to Gill (`milliliters-to-gill`) +- [x] Milliliters to Jiggers (`milliliters-to-jiggers`) +- [x] Minims to Milliliters (`minims-to-milliliters`) - [x] Millimeters to Centimeters (`millimeters-to-centimeters`) - [x] Millimeters to Inches (`millimeters-to-inches`) - [x] Megabytes to Gigabytes (`megabytes-to-gigabytes`) @@ -643,6 +730,19 @@ The registry currently contains 416 unique calculator slugs. - [x] Millimeters to Microns (`millimeters-to-microns`) - [x] Femtograms to Attograms (`femtograms-to-attograms`) - [x] Gigabytes to Terabytes (`gigabytes-to-terabytes`) +- [x] Maxwell to Weber (`maxwell-to-weber`) +- [x] Mbps to Gbps (`mbps-to-gbps`) +- [x] Mbps to Kbps (`mbps-to-kbps`) +- [x] Mbps to MB/s (`mbps-to-mb-per-second`) +- [x] Mebibytes to Megabytes (`mebibytes-to-megabytes`) +- [x] Megabits to Gigabits (`megabits-to-gigabits`) +- [x] Megabits to Kilobits (`megabits-to-kilobits`) +- [x] Megabytes to Bytes (`megabytes-to-bytes`) +- [x] Megabytes to Kilobytes (`megabytes-to-kilobytes`) +- [x] Megabytes to Mebibytes (`megabytes-to-mebibytes`) +- [x] Megabytes to Terabytes (`megabytes-to-terabytes`) +- [x] Megahertz to Gigahertz (`megahertz-to-gigahertz`) +- [x] Megahertz to Kilohertz (`megahertz-to-kilohertz`) - [x] Joules to Calories (`joules-to-calories`) - [x] Joules to Ergs (`joules-to-ergs`) - [x] Kilocalories to Kilojoules (`kilocalories-to-kilojoules`) @@ -661,6 +761,13 @@ The registry currently contains 416 unique calculator slugs. - [x] Liters to Gallons (`liters-to-gallons`) - [x] Liters to Pints (`liters-to-pints`) - [x] Liters to Quarts (`liters-to-quarts`) +- [x] Liters per 100 km to Kilometers per liter (`liters-per-100-km-to-kilometers-per-liter`) +- [x] Liters per 100 km to Miles per gallon (`liters-per-100-km-to-miles-per-gallon`) +- [x] Liters per minute to Gallons per minute (`liters-per-minute-to-gallons-per-minute`) +- [x] Liters per second to CMS (`liters-per-second-to-cms`) +- [x] Liters to Cubic inches (`liters-to-cubic-inches`) +- [x] Liters to Cubic Meters (`liters-to-cubic-meters`) +- [x] Liters to Fluid Ounces (`liters-to-fluid-ounces`) - [x] Candela to Lumens (`candela-to-lumens`) - [x] Decimal to Binary (`decimal-to-binary`) - [x] Decimal to Hex (`decimal-to-hex`) @@ -1310,17 +1417,17 @@ The registry currently contains 416 unique calculator slugs. - [x] Leagues to Kilometers - [x] Light Years to Kilometers - [x] Light Years to Miles -- [ ] Liters per 100 km to Kilometers per liter -- [ ] Liters per 100 km to Miles per gallon -- [ ] Liters per minute to Gallons per minute -- [ ] Liters per second to CMS +- [x] Liters per 100 km to Kilometers per liter (100 / L/100km) +- [x] Liters per 100 km to Miles per gallon (235.21 / L/100km) +- [x] Liters per minute to Gallons per minute (`liters-per-minute-to-gallons-per-minute`) +- [x] Liters per second to CMS (`liters-per-second-to-cms`) - [x] Liters to Acre-feet - [x] Liters to Barrel (US oil) - [x] Liters to Bushels - [x] Liters to Centiliters -- [ ] Liters to Cubic inches -- [ ] Liters to Cubic Meters -- [ ] Liters to Fluid Ounces +- [x] Liters to Cubic inches (`liters-to-cubic-inches`) +- [x] Liters to Cubic Meters (`liters-to-cubic-meters`) +- [x] Liters to Fluid Ounces (`liters-to-fluid-ounces`) - [x] Liters to Imperial gallons - [x] Liters to Milliliters - [ ] Liters to Pecks @@ -1335,20 +1442,20 @@ The registry currently contains 416 unique calculator slugs. - [x] Mach to Knots - [x] Mach to Meters per second - [x] Mach to Miles per hour -- [ ] Maxwell to Weber +- [x] Maxwell to Weber (1 maxwell = 1e-8 webers) - [x] MB/s to Mbps -- [ ] Mbps to Gbps -- [ ] Mbps to Kbps -- [ ] Mbps to MB/s -- [ ] Mebibytes to Megabytes -- [ ] Megabits to Gigabits -- [ ] Megabits to Kilobits -- [ ] Megabytes to Bytes -- [ ] Megabytes to Kilobytes -- [ ] Megabytes to Mebibytes -- [ ] Megabytes to Terabytes -- [ ] Megahertz to Gigahertz -- [ ] Megahertz to Kilohertz +- [x] Mbps to Gbps (`mbps-to-gbps`) +- [x] Mbps to Kbps (`mbps-to-kbps`) +- [x] Mbps to MB/s (`mbps-to-mb-per-second`) +- [x] Mebibytes to Megabytes (`mebibytes-to-megabytes`) +- [x] Megabits to Gigabits (`megabits-to-gigabits`) +- [x] Megabits to Kilobits (`megabits-to-kilobits`) +- [x] Megabytes to Bytes (`megabytes-to-bytes`) +- [x] Megabytes to Kilobytes (`megabytes-to-kilobytes`) +- [x] Megabytes to Mebibytes (`megabytes-to-mebibytes`) +- [x] Megabytes to Terabytes (`megabytes-to-terabytes`) +- [x] Megahertz to Gigahertz (`megahertz-to-gigahertz`) +- [x] Megahertz to Kilohertz (`megahertz-to-kilohertz`) - [x] Megajoules to BTU - [x] Megajoules to Joules - [x] Megapascals to Bar @@ -1391,27 +1498,27 @@ The registry currently contains 416 unique calculator slugs. - [x] Milliampere-hours to Coulombs - [x] Milliamps to Amps - [x] Millibars to Atmosphere -- [ ] Milligrams to Carats -- [ ] Milligrams to Centigrams +- [x] Milligrams to Carats (`milligrams-to-carats`) +- [x] Milligrams to Centigrams (`milligrams-to-centigrams`) - [ ] Millihenries to Henries - [ ] Millihenries to Microhenries -- [ ] Milliliters to Centiliters -- [ ] Milliliters to Drams (fluid) -- [ ] Milliliters to Gill -- [ ] Milliliters to Jiggers +- [x] Milliliters to Centiliters (`milliliters-to-centiliters`) +- [x] Milliliters to Drams (fluid) (`milliliters-to-drams-fluid`) +- [x] Milliliters to Gill (`milliliters-to-gill`) +- [x] Milliliters to Jiggers (`milliliters-to-jiggers`) - [ ] Millimeters to AWG -- [ ] Millimeters to Thou -- [ ] Millirem to Microsievert -- [ ] Milliseconds to Microseconds -- [ ] Milliseconds to Minutes -- [ ] Milliseconds to Seconds -- [ ] Millisievert to Rem -- [ ] Millitesla to Tesla -- [ ] Millivolts to Volts -- [ ] Milliwatts to Watts -- [ ] Mils to Degrees -- [ ] Mils to Radians -- [ ] Minims to Milliliters +- [x] Millimeters to Thou (`millimeters-to-thou`) +- [x] Millirem to Microsievert (`millirem-to-microsievert`) +- [x] Milliseconds to Microseconds (`milliseconds-to-microseconds`) +- [x] Milliseconds to Minutes (`milliseconds-to-minutes`) +- [x] Milliseconds to Seconds (`milliseconds-to-seconds`) +- [x] Millisievert to Rem (`millisievert-to-rem`) +- [x] Millitesla to Tesla (`millitesla-to-tesla`) +- [x] Millivolts to Volts (`millivolts-to-volts`) +- [x] Milliwatts to Watts (`milliwatts-to-watts`) +- [x] Mils to Degrees (`mils-to-degrees`) +- [x] Mils to Radians (`mils-to-radians`) +- [x] Minims to Milliliters (`minims-to-milliliters`) - [ ] Minutes to Days - [ ] mmHg to Bar - [ ] mmHg to PSI @@ -1423,12 +1530,12 @@ The registry currently contains 416 unique calculator slugs. - [ ] Months to Years - [ ] Nanometers to Angstroms - [ ] Nanoseconds to Microseconds -- [ ] Nautical Miles to Fathoms -- [ ] Nautical Miles to Meters -- [ ] Nautical Miles to Miles +- [x] Nautical Miles to Fathoms (`nautical-miles-to-fathoms`) +- [x] Nautical Miles to Meters (`nautical-miles-to-meters`) +- [x] Nautical Miles to Miles (`nautical-miles-to-miles`) - [ ] Newton (temp scale) to Fahrenheit -- [ ] Newton-Meters to Dyne-Centimeters -- [ ] Newton-Meters to Inch-Pounds +- [x] Newton-Meters to Dyne-Centimeters (`newton-meters-to-dyne-centimeters`) +- [x] Newton-Meters to Inch-Pounds (`newton-meters-to-inch-pounds`) - [x] Newton-Meters to Kilogram-force Meters (`newton-meters-to-kilogram-force-meters`) - [x] Newtons to Kilogram-force (`newtons-to-kilogram-force`) - [x] Newtons to Kilonewtons (`newtons-to-kilonewtons`) @@ -1447,19 +1554,19 @@ The registry currently contains 416 unique calculator slugs. - [ ] Parsecs to Kilometers - [ ] Parsecs to Light Years - [ ] Parsecs to Miles -- [ ] Pascal to Bar +- [x] Pascal to Bar (`pascal-to-bar`) - [ ] Pascal to Barye -- [ ] Pascal to Dynes per sq cm -- [ ] Pascal to kPa -- [ ] Pascal to Megapascals -- [ ] Pascal to mmHg -- [ ] Pascal to PSI -- [ ] Pascal to Technical atmosphere -- [ ] Pascal to Torr +- [x] Pascal to Dynes per sq cm (`pascal-to-dynes-per-sq-cm`) +- [x] Pascal to kPa (`pascal-to-kpa`) +- [x] Pascal to Megapascals (`pascal-to-megapascals`) +- [x] Pascal to mmHg (`pascal-to-mmhg`) +- [x] Pascal to PSI (`pascal-to-psi`) +- [x] Pascal to Technical atmosphere (`pascal-to-technical-atmosphere`) +- [x] Pascal to Torr (`pascal-to-torr`) - [ ] Pascal-seconds to Centipoise -- [ ] Pecks to Liters -- [ ] Pennyweights to Troy Ounces -- [ ] Percent ABV to Proof +[x] Pecks to Liters (`pecks-to-liters`) +[x] Pennyweights to Troy Ounces (`pennyweights-to-troy-ounces`) +[x] Percent ABV to Proof (`percent-abv-to-proof`) - [ ] Petabytes to Exabytes - [ ] Petabytes to Gigabytes - [ ] Petabytes to Terabytes @@ -1620,8 +1727,8 @@ The registry currently contains 416 unique calculator slugs. - [ ] Weeks to Hours - [ ] Wh per km to Wh per mile - [ ] Wh per mile to Wh per km -- [ ] Words (16-bit) to Bytes -- [ ] Words (32-bit) to Bytes +- [x] Words (16-bit) to Bytes (`words-16-bit-to-bytes`) +- [x] Words (32-bit) to Bytes (`words-32-bit-to-bytes`) - [ ] Yards per second to Kilometers per hour - [ ] Yards per second to Miles per hour - [ ] Yards to Centimeters @@ -2135,8 +2242,8 @@ The registry currently contains 416 unique calculator slugs. - [ ] Bits to Petabytes - [ ] Bits to Tebibytes - [ ] Bits to Terabytes -- [ ] Bits to Words (16-bit) -- [ ] Bits to Words (32-bit) +- [x] Bits to Words (16-bit) (`bits-to-words-16-bit`) +- [x] Bits to Words (32-bit) (`bits-to-words-32-bit`) - [ ] Board Feet to Cord - [ ] Boiler Horsepower to btu/hour - [ ] Boiler Horsepower to btu/min @@ -2220,8 +2327,8 @@ The registry currently contains 416 unique calculator slugs. - [ ] Bytes to Petabytes - [ ] Bytes to Tebibytes - [ ] Bytes to Terabytes -- [ ] Bytes to Words (16-bit) -- [ ] Bytes to Words (32-bit) +- [x] Bytes to Words (16-bit) (`bytes-to-words-16-bit`) +- [x] Bytes to Words (32-bit) (`bytes-to-words-32-bit`) - [ ] Cables to Angstroms - [ ] Cables to Astronomical Units - [ ] Cables to Centimeters @@ -7150,7 +7257,7 @@ The registry currently contains 416 unique calculator slugs. - [ ] Wh Per Mile to Miles Per Kwh - [ ] Wh Per Mile to Uk Mpg - [ ] Wh Per Mile to Us Mpg -- [ ] Words (16-bit) to Bits +- [x] Words (16-bit) to Bits (`words-16-bit-to-bits`) - [ ] Words (16-bit) to Exabytes - [ ] Words (16-bit) to Gibibytes - [ ] Words (16-bit) to Gigabits @@ -7166,7 +7273,7 @@ The registry currently contains 416 unique calculator slugs. - [ ] Words (16-bit) to Tebibytes - [ ] Words (16-bit) to Terabytes - [ ] Words (16-bit) to Words (32-bit) -- [ ] Words (32-bit) to Bits +- [x] Words (32-bit) to Bits (`words-32-bit-to-bits`) - [ ] Words (32-bit) to Exabytes - [ ] Words (32-bit) to Gibibytes - [ ] Words (32-bit) to Gigabits diff --git a/hdyc-svelte/src/app.css b/hdyc-svelte/src/app.css index 03d525f..49fae96 100644 --- a/hdyc-svelte/src/app.css +++ b/hdyc-svelte/src/app.css @@ -18,6 +18,7 @@ --accent-glow: rgba(16, 185, 129, 0.15); --accent-gradient: linear-gradient(135deg, #10b981, #06b6d4); --header-bg: rgba(12, 15, 20, 0.85); + --section-bg: rgba(255, 255, 255, 0.04); /* ─── Typography ──────────────────────────────────────── */ --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; @@ -42,6 +43,179 @@ --accent-glow: rgba(16, 185, 129, 0.15); --accent-gradient: linear-gradient(135deg, #10b981, #06b6d4); --header-bg: rgba(255, 255, 255, 0.95); + --section-bg: rgba(15, 23, 42, 0.04); +} + +/* ─── Palette overrides ─────────────────────────────────── */ + +:root[data-palette='emerald'][data-theme='dark'] { + --bg: #0b1313; + --bg-elevated: rgba(4, 20, 15, 0.85); + --sidebar-bg: #08110f; + --card-bg: rgba(6, 19, 13, 0.75); + --input-bg: rgba(16, 185, 129, 0.08); + --hover-bg: rgba(16, 185, 129, 0.12); + --border: rgba(16, 185, 129, 0.35); + --text: #e9fcea; + --text-muted: #9fdac4; + --accent: #10b981; + --accent-dark: #059669; + --accent-glow: rgba(16, 185, 129, 0.25); + --accent-gradient: linear-gradient(135deg, #10b981, #0ea5e9); + --header-bg: rgba(12, 15, 20, 0.85); +} + +:root[data-palette='emerald'][data-theme='light'] { + --bg: #f6fbf9; + --bg-elevated: #ffffff; + --sidebar-bg: #ffffff; + --card-bg: #ffffff; + --input-bg: #ecf7f1; + --hover-bg: #d5f0df; + --border: rgba(4, 120, 87, 0.25); + --text: #0b2c1f; + --text-muted: #4a6b5c; + --accent: #047857; + --accent-dark: #065f46; + --accent-glow: rgba(4, 120, 87, 0.2); + --accent-gradient: linear-gradient(135deg, #047857, #0ea5e9); + --header-bg: rgba(255, 255, 255, 0.95); +} + +:root[data-palette='sunset'][data-theme='dark'] { + --bg: #0f0505; + --bg-elevated: rgba(15, 5, 5, 0.85); + --sidebar-bg: #0c0404; + --card-bg: rgba(19, 6, 6, 0.7); + --input-bg: rgba(251, 113, 133, 0.08); + --hover-bg: rgba(251, 113, 133, 0.14); + --border: rgba(251, 113, 133, 0.35); + --text: #ffe7e0; + --text-muted: #f9a6aa; + --accent: #fb7185; + --accent-dark: #be123c; + --accent-glow: rgba(251, 113, 133, 0.25); + --accent-gradient: linear-gradient(135deg, #fb7185, #f97316); + --header-bg: rgba(12, 8, 6, 0.85); +} + +:root[data-palette='sunset'][data-theme='light'] { + --bg: #fff8f2; + --bg-elevated: #ffffff; + --sidebar-bg: #ffffff; + --card-bg: #fff4ef; + --input-bg: #ffe3d8; + --hover-bg: #ffd3bf; + --border: rgba(249, 115, 22, 0.25); + --text: #3d1b0b; + --text-muted: #7a4a37; + --accent: #f97316; + --accent-dark: #c2410c; + --accent-glow: rgba(249, 115, 22, 0.25); + --accent-gradient: linear-gradient(135deg, #f97316, #ec4899); + --header-bg: rgba(255, 255, 255, 0.96); +} + +:root[data-palette='ocean'][data-theme='dark'] { + --bg: #030b12; + --bg-elevated: rgba(2, 9, 20, 0.85); + --sidebar-bg: #050c16; + --card-bg: rgba(3, 13, 26, 0.75); + --input-bg: rgba(14, 165, 233, 0.08); + --hover-bg: rgba(14, 165, 233, 0.15); + --border: rgba(14, 165, 233, 0.4); + --text: #e6f6ff; + --text-muted: #a1c4e8; + --accent: #38bdf8; + --accent-dark: #0369a1; + --accent-glow: rgba(14, 165, 233, 0.35); + --accent-gradient: linear-gradient(135deg, #38bdf8, #0f172a); + --header-bg: rgba(6, 15, 30, 0.85); +} + +:root[data-palette='ocean'][data-theme='light'] { + --bg: #f4fbff; + --bg-elevated: #ffffff; + --sidebar-bg: #ffffff; + --card-bg: #f0f7ff; + --input-bg: #dcefff; + --hover-bg: #cae8ff; + --border: rgba(14, 165, 233, 0.25); + --text: #06274e; + --text-muted: #4d6993; + --accent: #0ea5e9; + --accent-dark: #0369a1; + --accent-glow: rgba(14, 165, 233, 0.25); + --accent-gradient: linear-gradient(135deg, #0ea5e9, #4753ff); + --header-bg: rgba(255, 255, 255, 0.95); +} + +:root[data-palette='orchid'][data-theme='dark'] { + --bg: #0c0215; + --bg-elevated: rgba(10, 3, 30, 0.85); + --sidebar-bg: #090118; + --card-bg: rgba(12, 2, 25, 0.75); + --input-bg: rgba(168, 85, 247, 0.08); + --hover-bg: rgba(168, 85, 247, 0.16); + --border: rgba(168, 85, 247, 0.35); + --text: #f5e6ff; + --text-muted: #c5a3e8; + --accent: #d946ef; + --accent-dark: #831843; + --accent-glow: rgba(217, 70, 239, 0.25); + --accent-gradient: linear-gradient(135deg, #d946ef, #fb7185); + --header-bg: rgba(13, 6, 23, 0.95); +} + +:root[data-palette='orchid'][data-theme='light'] { + --bg: #fdf6ff; + --bg-elevated: #ffffff; + --sidebar-bg: #ffffff; + --card-bg: #fdf2ff; + --input-bg: #f5e4ff; + --hover-bg: #e9d4ff; + --border: rgba(168, 85, 247, 0.25); + --text: #2c0a3a; + --text-muted: #6a5277; + --accent: #a855f7; + --accent-dark: #6d28d9; + --accent-glow: rgba(168, 85, 247, 0.25); + --accent-gradient: linear-gradient(135deg, #c084fc, #a855f7); + --header-bg: rgba(255, 255, 255, 0.97); +} + +:root[data-palette='citrus'][data-theme='dark'] { + --bg: #1a1203; + --bg-elevated: rgba(26, 18, 3, 0.9); + --sidebar-bg: #130e02; + --card-bg: rgba(26, 18, 3, 0.75); + --input-bg: rgba(250, 204, 21, 0.08); + --hover-bg: rgba(250, 204, 21, 0.14); + --border: rgba(250, 204, 21, 0.35); + --text: #fff8e7; + --text-muted: #f6dea1; + --accent: #fbbf24; + --accent-dark: #b45309; + --accent-glow: rgba(250, 204, 21, 0.25); + --accent-gradient: linear-gradient(135deg, #fbbf24, #f97316); + --header-bg: rgba(15, 9, 2, 0.9); +} + +:root[data-palette='citrus'][data-theme='light'] { + --bg: #fffdf5; + --bg-elevated: #ffffff; + --sidebar-bg: #ffffff; + --card-bg: #fffaf0; + --input-bg: #fff4d8; + --hover-bg: #ffeec1; + --border: rgba(250, 204, 21, 0.25); + --text: #2b2509; + --text-muted: #6d5f2a; + --accent: #facc15; + --accent-dark: #b45309; + --accent-glow: rgba(250, 204, 21, 0.2); + --accent-gradient: linear-gradient(135deg, #facc15, #f97316); + --header-bg: rgba(255, 255, 255, 0.98); } *, *::before, *::after { diff --git a/hdyc-svelte/src/app.html b/hdyc-svelte/src/app.html index f273cc5..20c135f 100644 --- a/hdyc-svelte/src/app.html +++ b/hdyc-svelte/src/app.html @@ -1,8 +1,26 @@ - + + %sveltekit.head% diff --git a/hdyc-svelte/src/lib/components/Calculator.svelte b/hdyc-svelte/src/lib/components/Calculator.svelte index a0a8741..b52f53e 100644 --- a/hdyc-svelte/src/lib/components/Calculator.svelte +++ b/hdyc-svelte/src/lib/components/Calculator.svelte @@ -75,7 +75,13 @@ {#if !has3}
-
{#if focused && results.length > 0} -