This is a Svelte 5 + SvelteKit time calculator application with TypeScript and Tailwind CSS v4.
π View the app on GitHub Pages (TODO)
Timestamp & Readable Date Conversion (TODO) Convert between UNIX timestamps and human-readable dates.
Timezone Selection (TODO) Choose your desired timezone for both input and output conversions.
Flexible Date Calculations Perform time-based arithmetic using natural expressions like:
Svelte β Lightweight, fast, and reactive front-end framework. sv
.
GitHub Pages β Continuous deployment from main branch for seamless updates.
While experienced with React, this project was an opportunity to explore Svelteβs simpler and more expressive approach to building user interfaces.
src/
βββ components/
β βββ ui/ # Pure UI components
β β βββ Button.svelte
β β βββ Input.svelte
β β βββ Label.svelte
β βββ forms/ # Form components (controlled)
β β βββ TimestampInput.svelte
β β βββ DateInput.svelte
β β βββ DurationInput.svelte
β βββ containers/ # Container components
β βββ TimestampCard.svelte
β βββ ActionButtonGroup.svelte
βββ lib/
β βββ stores/ # State management
β β βββ timestamp.svelte.ts
β βββ types/ # Type definitions
β βββ timestamp.ts
βββroutes/
β βββ +page.svelte # Page component (state owner)
βββ utils/
βββ converters.ts # Utils
βββ formators.ts
pnpm run dev
# or with browser opening
pnpm run dev -- --open
pnpm run build
pnpm run preview # Preview production build