Polish palette controls and add power conversions

This commit is contained in:
Codex
2026-03-07 20:44:49 +00:00
parent fbab62f6f6
commit d6ea306ee0
3 changed files with 136 additions and 45 deletions

View File

@@ -44,6 +44,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "acres-to-hectares", "name": "Acres to Hectares", "category": "area", "type": "standard", "teaser": "A 50-acre farm prompts the question: how many hectares does it include?", "labels": {"in1": "Acres", "in2": "Hectares"}, "factor": 0.404686},
{"slug": "acres-to-square-feet", "name": "Acres to Square Feet", "category": "area", "type": "standard", "teaser": "For the listing, convert 2 acres into square feet to describe the lot size.", "labels": {"in1": "Acres", "in2": "Square Feet"}, "factor": 43560.0},
{"slug": "acre-feet-to-liters", "name": "Acre-feet to Liters", "category": "volume", "type": "standard", "teaser": "A lake holds 1 acre-foot; how many liters of water is that?", "labels": {"in1": "Acre-feet", "in2": "Liters"}, "factor": 1233481.8375476},
{"slug": "acre-feet-to-centiliters", "name": "Acre-feet to Centiliters", "category": "volume", "type": "standard", "teaser": "Imagine that same acre-foot expressed in metric centiliters for fluid planning.", "labels": {"in1": "Acre-feet", "in2": "Centiliters"}, "factor": 123348183.75476},
{"slug": "acres-to-square-kilometers", "name": "Acres to Square Kilometers", "category": "area", "type": "standard", "teaser": "How many square kilometers cover one acre?", "labels": {"in1": "Acres", "in2": "Square Kilometers"}, "factor": 0.0040468564224, "hidden": true},
{"slug": "acres-to-square-meters", "name": "Acres to Square Meters", "category": "area", "type": "standard", "teaser": "Convert a single acre into square meters.", "labels": {"in1": "Acres", "in2": "Square Meters"}, "factor": 4046.8564224},
{"slug": "acres-to-square-miles", "name": "Acres to Square Miles", "category": "area", "type": "standard", "teaser": "See how many square miles equal one acre.", "labels": {"in1": "Acres", "in2": "Square Miles"}, "factor": 0.0015625, "hidden": true},
@@ -126,7 +127,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "cups-to-cubic-feet", "name": "Cups to Cubic Feet", "category": "length", "type": "standard", "teaser": "Express a cup in cubic feet for construction math.", "labels": {"in1": "Cups", "in2": "Cubic Feet"}, "factor": 0.008355034722222222},
{"slug": "cups-to-cubic-inches", "name": "Cups to Cubic Inches", "category": "length", "type": "standard", "teaser": "Convert cups into cubic inches for compact spaces.", "labels": {"in1": "Cups", "in2": "Cubic Inches"}, "factor": 14.4375},
{"slug": "cups-to-cubic-meters", "name": "Cups to Cubic Meters", "category": "length", "type": "standard", "teaser": "Cover cup volumes in cubic meters.", "labels": {"in1": "Cups", "in2": "Cubic Meters"}, "factor": 0.0002365882365},
{"slug": "cups-to-cubic-yards", "name": "Cups to Cubic Yards", "category": "length", "type": "standard", "teaser": "Translate cups into cubic yards for landscaping.", "labels": {"in1": "Cups", "in2": "Cubic Yards"}, "factor": 0.30944573045267487},
{"slug": "cups-to-cubic-yards", "name": "Cups to Cubic Yards", "category": "length", "type": "standard", "teaser": "Translate cups into cubic yards for landscaping.", "labels": {"in1": "Cups", "in2": "Cubic Yards"}, "factor": 0.30944573045267487, "hidden": true},
{"slug": "cups-to-fluid-ounces", "name": "Cups to Fluid Ounces", "category": "weight", "type": "standard", "teaser": "Convert cups into US fluid ounces (8 fl oz per cup).", "labels": {"in1": "Cups", "in2": "Fluid Ounces"}, "factor": 8.0},
{"slug": "cups-to-gills", "name": "Cups to Gills", "category": "volume", "type": "standard", "teaser": "Express cup volumes as US gills.", "labels": {"in1": "Cups", "in2": "Gills"}, "factor": 2.0},
{"slug": "cups-to-hogshead", "name": "Cups to Hogshead", "category": "volume", "type": "standard", "teaser": "Compare cupfuls with a hogshead for brewing.", "labels": {"in1": "Cups", "in2": "Hogshead"}, "factor": 0.0009920632524184317},
@@ -166,10 +167,10 @@ export const calculators: CalculatorDef[] = [
{"slug": "daltons-to-amu", "name": "Daltons to AMU", "category": "weight", "type": "standard", "labels": {"in1": "Daltons", "in2": "AMU"}, "factor": 1.0},
{"slug": "days-to-hours", "name": "Days to Hours", "category": "time", "type": "standard", "labels": {"in1": "Days", "in2": "Hours"}, "factor": 24.0},
{"slug": "days-to-weeks", "name": "Days to Weeks", "category": "time", "type": "standard", "labels": {"in1": "Days", "in2": "Weeks"}, "factor": 0.142857143, "hidden": true},
{"slug": "days-to-years", "name": "Days to Years", "category": "time", "type": "standard", "labels": {"in1": "Days", "in2": "Years"}, "factor": 0.002737851},
{"slug": "days-to-years", "name": "Days to Years", "category": "time", "type": "standard", "labels": {"in1": "Days", "in2": "Years"}, "factor": 0.002737851, "hidden": true},
{"slug": "months-to-days", "name": "Months to Days", "category": "time", "type": "standard", "teaser": "Convert months into days using the average year length.", "labels": {"in1": "Months", "in2": "Days"}, "factor": 30.436875},
{"slug": "months-to-weeks", "name": "Months to Weeks", "category": "time", "type": "standard", "teaser": "Express an average month as weeks.", "labels": {"in1": "Months", "in2": "Weeks"}, "factor": 4.348125},
{"slug": "months-to-years", "name": "Months to Years", "category": "time", "type": "standard", "teaser": "Show how months stack into years.", "labels": {"in1": "Months", "in2": "Years"}, "factor": 0.08333333333333333},
{"slug": "months-to-years", "name": "Months to Years", "category": "time", "type": "standard", "teaser": "Show how months stack into years.", "labels": {"in1": "Months", "in2": "Years"}, "factor": 0.08333333333333333, "hidden": true},
{"slug": "atomic-time-units-to-seconds", "name": "Atomic Time Units to Seconds", "category": "time", "type": "standard", "teaser": "Turn an atomic unit of time into seconds for quantum timing.", "labels": {"in1": "Atomic Time Units", "in2": "Seconds"}, "factor": 2.418884326505e-17},
{"slug": "degrees-to-mils", "name": "Degrees to Mils", "category": "angle", "type": "standard", "labels": {"in1": "Degrees", "in2": "Mils"}, "factor": 17.777777778},
{"slug": "mils-to-degrees", "name": "Mils to Degrees", "category": "angle", "type": "standard", "teaser": "Convert mils (1/6400 circle) back into degrees.", "labels": {"in1": "Mils", "in2": "Degrees"}, "factor": 0.05625, "hidden": true},
@@ -504,6 +505,11 @@ export const calculators: CalculatorDef[] = [
{"slug": "weeks-to-seconds", "name": "Weeks to seconds", "category": "time", "type": "standard", "teaser": "Turn weeks into seconds for precise counting (1 week = 604,800 seconds).", "labels": {"in1": "Weeks", "in2": "seconds"}, "factor": 604800.0},
{"slug": "weeks-to-milliseconds", "name": "Weeks to milliseconds", "category": "time", "type": "standard", "teaser": "Express a week\u2019s span as milliseconds for timestamps (1 week = 604,800,000 ms).", "labels": {"in1": "Weeks", "in2": "milliseconds"}, "factor": 604800000.0},
{"slug": "weeks-to-microseconds", "name": "Weeks to microseconds", "category": "time", "type": "standard", "teaser": "Convert weeks into microseconds when tagging high-resolution data (1 week = 604,800,000,000 \u00b5s).", "labels": {"in1": "Weeks", "in2": "microseconds"}, "factor": 604800000000.0},
{"slug": "years-to-centuries", "name": "Years to Centuries", "category": "time", "type": "standard", "teaser": "Convert years into centuries when dealing with multi-generational timelines.", "labels": {"in1": "Years", "in2": "Centuries"}, "factor": 0.01},
{"slug": "years-to-days", "name": "Years to Days", "category": "time", "type": "standard", "teaser": "Expand a year into days for scheduling (1 year \u2248 365 days).", "labels": {"in1": "Years", "in2": "Days"}, "factor": 365.0},
{"slug": "years-to-decades", "name": "Years to Decades", "category": "time", "type": "standard", "teaser": "Translate years into decades for decade-scale planning (1 decade = 10 years).", "labels": {"in1": "Years", "in2": "Decades"}, "factor": 0.1},
{"slug": "years-to-months", "name": "Years to Months", "category": "time", "type": "standard", "teaser": "Convert years into months for monthly reporting.", "labels": {"in1": "Years", "in2": "Months"}, "factor": 12.0},
{"slug": "years-to-weeks", "name": "Years to Weeks", "category": "time", "type": "standard", "teaser": "Express years as weeks for weekly cadence math (1 year \u2248 52 weeks).", "labels": {"in1": "Years", "in2": "Weeks"}, "factor": 52.0},
{"slug": "watts-to-horsepower", "name": "Watts to horsepower", "category": "power", "type": "standard", "labels": {"in1": "Watts", "in2": "horsepower"}, "factor": 0.001341, "hidden": true},
{"slug": "watts-to-btuhour", "name": "Watts to BTU/hour", "category": "energy", "type": "standard", "labels": {"in1": "Watts", "in2": "BTU/hour"}, "factor": 3.41214},
{"slug": "troy-ounces-to-grams", "name": "Troy ounces to grams", "category": "weight", "type": "standard", "labels": {"in1": "Troy ounces", "in2": "grams"}, "factor": 31.1034},
@@ -526,6 +532,33 @@ export const calculators: CalculatorDef[] = [
{"slug": "tablespoons-to-teaspoons", "name": "Tablespoons to Teaspoons", "category": "volume", "type": "standard", "teaser": "Break tablespoons into teaspoons (1 tbsp = 3 tsp).", "labels": {"in1": "Tablespoons", "in2": "Teaspoons"}, "factor": 3.0},
{"slug": "sticks-of-butter-to-cups", "name": "Sticks of Butter to Cups", "category": "volume", "type": "standard", "teaser": "Convert sticks of butter into cups for baking.", "labels": {"in1": "Sticks of Butter", "in2": "Cups"}, "factor": 0.5, "hidden": true},
{"slug": "sticks-of-butter-to-tablespoons", "name": "Sticks of Butter to Tablespoons", "category": "volume", "type": "standard", "teaser": "Translate butter sticks into tablespoons.", "labels": {"in1": "Sticks of Butter", "in2": "Tablespoons"}, "factor": 8.0},
{"slug": "cubic-yards-to-acre-feet", "name": "Cubic Yards to Acre-feet", "category": "volume", "type": "standard", "teaser": "Express excavation volumes in acre-feet for reservoir planning.", "labels": {"in1": "Cubic Yards", "in2": "Acre-feet"}, "factor": 0.0006198347107437615, "hidden": true},
{"slug": "cubic-yards-to-barrel-us-oil", "name": "Cubic Yards to Barrel (US oil)", "category": "length", "type": "standard", "teaser": "Convert cubic yards into oil barrels when sizing tanks.", "labels": {"in1": "Cubic Yards", "in2": "Barrel (US oil)"}, "factor": 4.808905380333952},
{"slug": "cubic-yards-to-bushels", "name": "Cubic Yards to Bushels", "category": "length", "type": "standard", "teaser": "Turn bulk volumes into bushels for agriculture.", "labels": {"in1": "Cubic Yards", "in2": "Bushels"}, "factor": 21.69622678365432},
{"slug": "cubic-yards-to-centiliters", "name": "Cubic Yards to Centiliters", "category": "length", "type": "standard", "teaser": "Show cubic-yard volumes as metric centiliters for lab math.", "labels": {"in1": "Cubic Yards", "in2": "Centiliters"}, "factor": 76455.4857984},
{"slug": "cubic-yards-to-cubic-centimeters", "name": "Cubic Yards to Cubic Centimeters", "category": "length", "type": "standard", "teaser": "Expand yard volumes into cubic centimeters for precision.", "labels": {"in1": "Cubic Yards", "in2": "Cubic Centimeters"}, "factor": 764554.857984},
{"slug": "cubic-yards-to-cubic-feet", "name": "Cubic Yards to Cubic Feet", "category": "length", "type": "standard", "teaser": "Convert cubic yards into cubic feet for contractors.", "labels": {"in1": "Cubic Yards", "in2": "Cubic Feet"}, "factor": 27.0},
{"slug": "cubic-yards-to-cubic-inches", "name": "Cubic Yards to Cubic Inches", "category": "length", "type": "standard", "teaser": "Turn yard volumes into cubic inches for small crafts.", "labels": {"in1": "Cubic Yards", "in2": "Cubic Inches"}, "factor": 46656.0},
{"slug": "cubic-yards-to-cups", "name": "Cubic Yards to Cups", "category": "length", "type": "standard", "teaser": "Relate a yard of concrete to cooking cups for fun comparison.", "labels": {"in1": "Cubic Yards", "in2": "Cups"}, "factor": 3231.5844155844156},
{"slug": "cubic-yards-to-drams-fluid", "name": "Cubic Yards to Drams (fluid)", "category": "length", "type": "standard", "teaser": "Express volumes in fluid drams for historical pharmacy analogies.", "labels": {"in1": "Cubic Yards", "in2": "Drams (fluid)"}, "factor": 206821.4025974026},
{"slug": "cubic-yards-to-fluid-ounces", "name": "Cubic Yards to Fluid Ounces", "category": "length", "type": "standard", "teaser": "Translate cubic yards into fluid ounces for kitchen-scale references.", "labels": {"in1": "Cubic Yards", "in2": "Fluid Ounces"}, "factor": 25852.675324675325},
{"slug": "cubic-yards-to-gallons", "name": "Cubic Yards to Gallons", "category": "length", "type": "standard", "teaser": "Convert cubic yards into US gallons for pool or fuel math.", "labels": {"in1": "Cubic Yards", "in2": "Gallons"}, "factor": 201.97402597402598},
{"slug": "cubic-yards-to-gill", "name": "Cubic Yards to Gill", "category": "length", "type": "standard", "teaser": "Convert cubic yards into gills (1 U.S. gill = 4 fl oz).", "labels": {"in1": "Cubic Yards", "in2": "Gill"}, "factor": 6463.168831168831},
{"slug": "cubic-yards-to-hogshead", "name": "Cubic Yards to Hogshead", "category": "length", "type": "standard", "teaser": "Relate volumes to hogsheads when shipping large barrels.", "labels": {"in1": "Cubic Yards", "in2": "Hogshead"}, "factor": 3.2059369523786683},
{"slug": "cubic-yards-to-imperial-fl-oz", "name": "Cubic Yards to Imperial Fluid Ounces", "category": "length", "type": "standard", "teaser": "Express yard-level volumes inside Imperial fluid ounces.", "labels": {"in1": "Cubic Yards", "in2": "Imperial Fluid Ounces"}, "factor": 26908.56918306501},
{"slug": "cubic-yards-to-imperial-gallons", "name": "Cubic Yards to Imperial Gallons", "category": "length", "type": "standard", "teaser": "Turn cubic yards into Imperial gallons for UK specs.", "labels": {"in1": "Cubic Yards", "in2": "Imperial Gallons"}, "factor": 168.1785573941563},
{"slug": "cubic-yards-to-imperial-pints", "name": "Cubic Yards to Imperial Pints", "category": "length", "type": "standard", "teaser": "Convert yard volumes into Imperial pints for beverage math.", "labels": {"in1": "Cubic Yards", "in2": "Imperial Pints"}, "factor": 1345.4284591532503},
{"slug": "cubic-yards-to-jiggers", "name": "Cubic Yards to Jiggers", "category": "length", "type": "standard", "teaser": "Express cubic-yard volumes as jiggers for cocktail-level analogies.", "labels": {"in1": "Cubic Yards", "in2": "Jiggers"}, "factor": 17235.116977820035},
{"slug": "cubic-yards-to-liters", "name": "Cubic Yards to Liters", "category": "length", "type": "standard", "teaser": "Translate cubic yards directly into liters for metric-friendly discussions.", "labels": {"in1": "Cubic Yards", "in2": "Liters"}, "factor": 764.554857984},
{"slug": "cubic-yards-to-milliliters", "name": "Cubic Yards to Milliliters", "category": "length", "type": "standard", "teaser": "Convert yard volumes into milliliters for lab-scale context.", "labels": {"in1": "Cubic Yards", "in2": "Milliliters"}, "factor": 764554.857984},
{"slug": "cubic-yards-to-minims", "name": "Cubic Yards to Minims", "category": "length", "type": "standard", "teaser": "Express volumes in minims for apothecary throwbacks.", "labels": {"in1": "Cubic Yards", "in2": "Minims"}, "factor": 12409288.168345196},
{"slug": "cubic-yards-to-pecks", "name": "Cubic Yards to Pecks", "category": "length", "type": "standard", "teaser": "Convert bulk yard volumes into pecks for produce shipments.", "labels": {"in1": "Cubic Yards", "in2": "Pecks"}, "factor": 86.78492232188688},
{"slug": "cubic-yards-to-pints", "name": "Cubic Yards to Pints", "category": "length", "type": "standard", "teaser": "Translate cubic yards into US pints for drink supply math.", "labels": {"in1": "Cubic Yards", "in2": "Pints"}, "factor": 1615.7922077922078},
{"slug": "cubic-yards-to-quarts", "name": "Cubic Yards to Quarts", "category": "length", "type": "standard", "teaser": "Express yard volumes as quarts for appliance specs.", "labels": {"in1": "Cubic Yards", "in2": "Quarts"}, "factor": 807.8961038961039},
{"slug": "cubic-yards-to-tablespoons", "name": "Cubic Yards to Tablespoons", "category": "length", "type": "standard", "teaser": "Break yard-scale volumes into tablespoons for comparisons.", "labels": {"in1": "Cubic Yards", "in2": "Tablespoons"}, "factor": 51705.35064935065},
{"slug": "cubic-yards-to-teaspoons", "name": "Cubic Yards to Teaspoons", "category": "length", "type": "standard", "teaser": "Convert cubic yards into teaspoons for tiny-scale fun.", "labels": {"in1": "Cubic Yards", "in2": "Teaspoons"}, "factor": 155116.05194805196},
{"slug": "cubic-yards-to-us-gallons", "name": "Cubic Yards to US Gallons", "category": "length", "type": "standard", "teaser": "Convert yard volumes into US gallons for fuel or pool math.", "labels": {"in1": "Cubic Yards", "in2": "US Gallons"}, "factor": 201.97402597402598},
{"slug": "cubic-yards-to-us-pints", "name": "Cubic Yards to US Pints", "category": "length", "type": "standard", "teaser": "Translate yard volumes into US pints for beverage math.", "labels": {"in1": "Cubic Yards", "in2": "US Pints"}, "factor": 1615.7922077922078},
{"slug": "stones-to-pounds", "name": "Stones to pounds", "category": "weight", "type": "standard", "labels": {"in1": "Stones", "in2": "pounds"}, "factor": 14.0},
{"slug": "stones-to-kilograms", "name": "Stones to Kilograms", "category": "weight", "type": "standard", "teaser": "Convert stones into kilograms for weight discussions.", "labels": {"in1": "Stones", "in2": "Kilograms"}, "factor": 6.35029318},
{"slug": "square-yards-to-square-miles", "name": "Square yards to square miles", "category": "area", "type": "standard", "labels": {"in1": "Square yards", "in2": "square miles"}, "factor": 3.228e-07, "hidden": true},
@@ -547,7 +580,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "square-kilometers-to-hectares", "name": "Square Kilometers to Hectares", "category": "area", "type": "standard", "teaser": "Switch between square kilometers and hectares.", "labels": {"in1": "Square Kilometers", "in2": "Hectares"}, "factor": 100.0},
{"slug": "square-kilometers-to-square-miles", "name": "Square Kilometers to Square Miles", "category": "area", "type": "standard", "teaser": "Compare square kilometers with square miles.", "labels": {"in1": "Square Kilometers", "in2": "Square Miles"}, "factor": 0.386102159, "hidden": true},
{"slug": "square-meters-to-acres", "name": "Square Meters to Acres", "category": "area", "type": "standard", "teaser": "Translate square meters into acres for large parcels.", "labels": {"in1": "Square Meters", "in2": "Acres"}, "factor": 0.000247105381, "hidden": true},
{"slug": "square-meters-to-ares", "name": "Square Meters to Ares", "category": "area", "type": "standard", "teaser": "Convert square meters into ares when talking metric land units.", "labels": {"in1": "Square Meters", "in2": "Ares"}, "factor": 0.01},
{"slug": "square-meters-to-ares", "name": "Square Meters to Ares", "category": "area", "type": "standard", "teaser": "Convert square meters into ares when talking metric land units.", "labels": {"in1": "Square Meters", "in2": "Ares"}, "factor": 0.01, "hidden": true},
{"slug": "square-meters-to-barns", "name": "Square Meters to Barns", "category": "area", "type": "standard", "teaser": "Express square meters as barns for particle physics scales.", "labels": {"in1": "Square Meters", "in2": "Barns"}, "factor": 1e+28},
{"slug": "square-meters-to-hectares", "name": "Square Meters to Hectares", "category": "area", "type": "standard", "teaser": "Turn square meters into hectares on property summaries.", "labels": {"in1": "Square Meters", "in2": "Hectares"}, "factor": 0.0001, "hidden": true},
{"slug": "square-meters-to-square-centimeters", "name": "Square Meters to Square Centimeters", "category": "area", "type": "standard", "teaser": "Break square meters into square centimeters for precision.", "labels": {"in1": "Square Meters", "in2": "Square Centimeters"}, "factor": 10000.0},
@@ -647,7 +680,12 @@ export const calculators: CalculatorDef[] = [
{"slug": "square-mils-to-square-miles", "name": "Square Mils to Square Miles", "category": "area", "type": "standard", "teaser": "Compare square mils with entire square miles.", "labels": {"in1": "Square Mils", "in2": "Square Miles"}, "factor": 2.49097668605e-16, "hidden": true},
{"slug": "square-mils-to-square-yards", "name": "Square Mils to Square Yards", "category": "area", "type": "standard", "teaser": "Translate microareas into square yards for rugs.", "labels": {"in1": "Square Mils", "in2": "Square Yards"}, "factor": 7.71604938272e-10, "hidden": true},
{"slug": "square-mils-to-townships", "name": "Square Mils to Townships", "category": "area", "type": "standard", "teaser": "Express square mils in township units for a large-range perspective.", "labels": {"in1": "Square Mils", "in2": "Townships"}, "factor": 6.91937968348e-18, "hidden": true},
{"slug": "square-yards-to-ares", "name": "Square Yards to Ares", "category": "area", "type": "standard", "teaser": "Convert square yards into ares for yard-to-metric conversions.", "labels": {"in1": "Square Yards", "in2": "Ares"}, "factor": 0.0083612736},
{"slug": "square-yards-to-ares", "name": "Square Yards to Ares", "category": "area", "type": "standard", "teaser": "Convert square yards into ares for yard-to-metric conversions.", "labels": {"in1": "Square Yards", "in2": "Ares"}, "factor": 0.0083612736, "hidden": true},
{"slug": "ares-to-acres", "name": "Ares to Acres", "category": "area", "type": "standard", "teaser": "Flip metric ares back into acres when comparing US and metric land details.", "labels": {"in1": "Ares", "in2": "Acres"}, "factor": 0.024710538146716532, "hidden": true},
{"slug": "ares-to-square-yards", "name": "Ares to Square Yards", "category": "area", "type": "standard", "teaser": "Convert metric ares into square yards for hybrid surveying units.", "labels": {"in1": "Ares", "in2": "Square Yards"}, "factor": 119.59900463010803},
{"slug": "ares-to-square-meters", "name": "Ares to Square Meters", "category": "area", "type": "standard", "teaser": "Express an are in square meters (1 are = 100 m\u00b2) for simple metric scaling.", "labels": {"in1": "Ares", "in2": "Square Meters"}, "factor": 100.0},
{"slug": "barns-to-acres", "name": "Barns to Acres", "category": "area", "type": "standard", "teaser": "Cascade a barn-level beam area into acres for astrophysics analogies.", "labels": {"in1": "Barns", "in2": "Acres"}, "factor": 2.471053814671653e-32, "hidden": true},
{"slug": "barns-to-square-yards", "name": "Barns to Square Yards", "category": "area", "type": "standard", "teaser": "Express tiny barn-scale areas in square yards when reviewing conductor cross-sections.", "labels": {"in1": "Barns", "in2": "Square Yards"}, "factor": 1.1959900463010803e-28, "hidden": true},
{"slug": "square-yards-to-barns", "name": "Square Yards to Barns", "category": "area", "type": "standard", "teaser": "Scale square yards down to barns for bridging magnitudes.", "labels": {"in1": "Square Yards", "in2": "Barns"}, "factor": 8.3612736e+27},
{"slug": "square-yards-to-circular-mils", "name": "Square Yards to Circular Mils", "category": "area", "type": "standard", "teaser": "Translate yard areas into circular mil equivalents.", "labels": {"in1": "Square Yards", "in2": "Circular Mils"}, "factor": 1650118449.98},
{"slug": "square-yards-to-dunams", "name": "Square Yards to Dunams", "category": "area", "type": "standard", "teaser": "Express square yards as dunams for regional conversions.", "labels": {"in1": "Square Yards", "in2": "Dunams"}, "factor": 0.00083612736},
@@ -1232,7 +1270,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "kilometers-per-hour-to-centimeters-per-second", "name": "Kilometers Per Hour to Centimeters Per Second", "category": "length", "type": "standard", "teaser": "Express km/h as centimeters per second.", "labels": {"in1": "Kilometers Per Hour", "in2": "Centimeters Per Second"}, "factor": 27.7777777778},
{"slug": "kilometers-per-hour-to-cm-per-second", "name": "Kilometers Per Hour to Cm Per Second", "category": "length", "type": "standard", "teaser": "Alias for the same cm/s conversion.", "labels": {"in1": "Kilometers Per Hour", "in2": "Cm Per Second"}, "factor": 27.7777777778},
{"slug": "kilometers-per-hour-to-km-s", "name": "Kilometers Per Hour to km/s", "category": "length", "type": "standard", "teaser": "Convert km/h into kilometers per second.", "labels": {"in1": "Kilometers Per Hour", "in2": "km/s"}, "factor": 0.000277777777778},
{"slug": "square-meters-to-ares", "name": "Square meters to Ares", "category": "area", "type": "standard", "teaser": "Convert square meters into ares for metric land surveying.", "labels": {"in1": "Square meters", "in2": "Ares"}, "factor": 0.01},
{"slug": "square-meters-to-ares", "name": "Square meters to Ares", "category": "area", "type": "standard", "teaser": "Convert square meters into ares for metric land surveying.", "labels": {"in1": "Square meters", "in2": "Ares"}, "factor": 0.01, "hidden": true},
{"slug": "square-meters-to-barns", "name": "Square meters to Barns", "category": "area", "type": "standard", "teaser": "Convert area into barns for particle physics cross-sections.", "labels": {"in1": "Square meters", "in2": "Barns"}, "factor": 1e+28},
{"slug": "square-mils-to-circular-mils", "name": "Square mils to Circular mils", "category": "area", "type": "standard", "teaser": "Turn square mils into circular mils used for conductor sizing.", "labels": {"in1": "Square mils", "in2": "Circular mils"}, "factor": 1.273239544735163},
{"slug": "statamperes-to-amperes", "name": "Statamperes to Amperes", "category": "electrical", "type": "standard", "teaser": "Translate CGS statamperes into modern amperes.", "labels": {"in1": "Statamperes", "in2": "Amperes"}, "factor": 0.333564095},
@@ -1290,6 +1328,8 @@ export const calculators: CalculatorDef[] = [
{"slug": "yards-to-centimeters", "name": "Yards to Centimeters", "category": "length", "type": "standard", "teaser": "Convert yards into centimeters for sewing and textiles.", "labels": {"in1": "Yards", "in2": "Centimeters"}, "factor": 91.44},
{"slug": "yards-to-feet", "name": "Yards to Feet", "category": "length", "type": "standard", "teaser": "Turn yards into feet for carpentry math.", "labels": {"in1": "Yards", "in2": "Feet"}, "factor": 3.0},
{"slug": "yards-to-inches", "name": "Yards to Inches", "category": "length", "type": "standard", "teaser": "Convert yards into inches for finer measurements.", "labels": {"in1": "Yards", "in2": "Inches"}, "factor": 36.0},
{"slug": "yards-to-kilometers", "name": "Yards to Kilometers", "category": "length", "type": "standard", "teaser": "Translate yards into kilometers for longer distances.", "labels": {"in1": "Yards", "in2": "Kilometers"}, "factor": 0.0009144, "hidden": true},
{"slug": "yards-to-miles", "name": "Yards to Miles", "category": "length", "type": "standard", "teaser": "Convert yards into miles for road-distance math.", "labels": {"in1": "Yards", "in2": "Miles"}, "factor": 0.0005681818181818182, "hidden": true},
{"slug": "angstroms-to-light-years", "name": "Angstroms to Light Years", "category": "light", "type": "standard", "teaser": "Convert atomic-scale lengths into cosmic light-year spans.", "labels": {"in1": "Angstroms", "in2": "Light Years"}, "factor": 1.05700083402e-26, "hidden": true},
{"slug": "cables-to-light-years", "name": "Cables to Light Years", "category": "length", "type": "standard", "teaser": "Compare nautical cable graduations with interstellar distances.", "labels": {"in1": "Cables", "in2": "Light Years"}, "factor": 1.95756554461e-14, "hidden": true},
{"slug": "centimeters-per-second-to-speed-of-light", "name": "Centimeters Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Show a centimeter-per-second pace as a fraction of c.", "labels": {"in1": "Centimeters Per Second", "in2": "Speed Of Light"}, "factor": 3.33564095198e-11, "hidden": true},

View File

@@ -1,11 +1,22 @@
<script lang="ts">
import Calculator from '$lib/components/Calculator.svelte';
import { afterNavigate } from '$app/navigation';
import { browser } from '$app/environment';
import { onMount } from 'svelte';
import type { PageData } from './$types';
export let data: PageData;
$: calc = data.calculator;
$: related = data.related;
onMount(() => {
if (!browser) return;
window.scrollTo({ top: 0 });
return afterNavigate(() => {
window.scrollTo({ top: 0 });
});
});
</script>
<svelte:head>