8일 차: 패닉 없이 레시피 변환 (Unit Converter)

발행: (2026년 1월 1일 오전 02:55 GMT+9)
3 min read
원문: Dev.to

Source: Dev.to

It’s Day 8 of 12 Days of Svelte Apps 🎄
Holiday cooking is fun… right up until the recipe switches units on you.

  • cups vs milliliters → 컵 vs 밀리리터
  • ounces vs grams → 온스 vs 그램
  • Fahrenheit vs Celsius → 화씨 vs 섭씨

So today’s mini‑app is the Unit Converter — a clean, fast converter you can keep open while you cook.

🔗 실시간으로 사용해 보기:
💻 코드 보기:

What it does

The UI is intentionally simple:

  • Pick a unit category (Volume, Temperature, Mass, etc.) → 단위 카테고리 선택 (부피, 온도, 질량 등)
  • Enter a value → 값 입력
  • Choose “From” and “To” units → “From”와 “To” 단위 선택
  • Get a formatted result instantly → 즉시 형식화된 결과 확인

It also includes a Swap button to flip the direction quickly and a Clear action to reset the input.

What makes it feel good to use

  • Results are formatted cleanly (no unreadable long decimals) → 결과가 깔끔하게 형식화됩니다 (읽기 어려운 긴 소수점 없이)
  • Handles “same unit” conversions gracefully → “동일 단위” 변환을 자연스럽게 처리합니다
  • Supports a wide set of categories beyond cooking (length, area, time, angle, data, energy, force, power, pressure) → 요리 외에도 다양한 카테고리(길이, 면적, 시간, 각도, 데이터, 에너지, 힘, 전력, 압력)를 지원합니다

A few holiday‑friendly conversions to try

Oven temperature

If your recipe says 350 °F but you’re using a °C oven, pick Temperature and convert. → 레시피에 350 °F 라고 적혀 있지만 섭씨 오븐을 사용한다면, Temperature 를 선택하고 변환하세요.

Cups to milliliters

For recipes written in US cups, pick Volume and convert to mL for a measuring jug. → 미국식 컵으로 적힌 레시피는 Volume 을 선택하고 mL 로 변환해 측정용 주전자에 사용하세요.

Ounces to grams

For baking (where precision matters), converting to grams can make measuring a lot easier. → 정밀함이 중요한 베이킹에서는 온스를 그램으로 변환하면 측정이 훨씬 쉬워집니다.

If you try it, post a conversion you used today (or a recipe you’re making) and tag me. → 시도해 보셨다면 오늘 사용한 변환(또는 만들고 있는 레시피)을 올리고 저를 태그해 주세요.

Back to Blog

관련 글

더 보기 »