Git Product home page Git Product logo

calendar's Introduction

Vanilla JS Calendar Viewer

Improvments with unlimited time:

I would add animation to app. When the month changes, it would be nice to have a sliding effect or to blur the month and days breifly for a transition.

I would want to be more mindful of scoping. All the calendar modifying methods and state are in global scope. It would probably be better to put them all in a class and tie them to a specific calendar on the page's ID. Similalry, the class names I used in my CSS are pretty plain. I would want to prefix such that a class name like weekdays would become calendar-weekdays.

A calendar like this could be used for a date picker. With that in mind, I would switch from using rem to em such that I could scale the calendar to different sizes easily.

Tools to use for making the app production-ready:

Most production front-end code I write is in React. I would take advantage of React's state management features for modifying the heading and days on the calendar as well as properly scoping the methods. This is especially important if I want to render multiple calendars to the page (such as for a start and end date picker).

I would also use SCSS. This makes organizing CSS much easier and writing highly specific class names such as Date-picker-calendar-component less tedious.

calendar's People

Contributors

akambale avatar

Watchers

James Cloos avatar  avatar

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.