Skip to content

Calculate when to fall asleep or wake up in accordance with your natural sleep cycles.

License

Notifications You must be signed in to change notification settings

zsrobinson/sleep

Repository files navigation

Circular Sleep

Visit Project: https://circularsleep.com

A project to calculate various times to wake up or fall asleep to align with your natural sleep cycles. By waking up at the end of one of these 90 minute cycles, you will have a better night's rest. This calculator assumes that it takes the average person 14 minutes to fall asleep, and this value is factored into the calculations.

This is my first time using Svelte, a front-end, component-based Javascript framework. For that matter, this is my first project using any front-end, component-based Javascript framework. I figured that it was about time I learn one of these Javascript frameworks, and Svelte seemed like the most intuitive one after watching a video by Fireship comparing several of them. If I didn't start learning one, I might've had to make my own -- and the world doesn't need yet another Javascript framework.

Thanks to @bitwitch on Medium for his article on creating a simple circular slider using trigonometry.

About

Calculate when to fall asleep or wake up in accordance with your natural sleep cycles.

Topics

Resources

License

Stars

Watchers

Forks