Git Product home page Git Product logo

quando's Introduction

The quando logo, a sundial that looks like a Q

quando

A small project for counting time (and learning PWAs).

It may just be me, but the number of times in my life I’ve wondered how many seconds old I am is at least 4. So I built this.

About

Time Entry

This revisits a challenge I encountered working on developing promotional sites with specific launch times across the world. The time entry form lets people specify a moment in time with typical knowledge, rather than requiring any specific calendrical literacy.

Times are input and stored with specific timezones and countdowns are presented in local time. Timezones are selected by their IANA name and any summer time offsets are then determined by the full selected date. Rather than asking “what is the timezone for that place?” or ”is that place currently in summer time?”, the computer does the work.

Beyond that, date-fns handles the calculations and most formatting. I couldn’t find a complete sentence, or commas for thousands, but otherwise I’m told it’s faster than moment, so I use it now.

Local Storage

All times are stored in local storage thanks to vuex-persist. This requires consent and easy removal, so a banner explains and requests this, and a menu helps remove everything.

The main drawback is no sync across installations and no backup. For the limited scope of the project, I’ve added a copy/paste approach which is mainly convenient across iCloud, but doesn’t exclude anybody who can share text across devices by other means.

Page Transitions

Yes, the page transitions are modelled on the iOS page slides from screen recordings by graphing pixel measurements per frame to derive a cubic-bezier value for the easing.

No, I can’t prevent the transition from happening when swiping from the screen edge. I know.

Project setup

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Customize configuration

See Configuration Reference.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.