Code Monkey home page Code Monkey logo

h5p-advent-calendar's Introduction

H5P Advent calendar

Do something nice before X-mas!

This is just a spare time project with the initial version hacked in merely 2 days on Nov 4, 2020 and Nov 5, 2020 while the world was eager to learn who'd be the next president of the USA and I needed something to do while tracking the latest poll results ;-)

It still lacks proper a11y support, was not tested on anything but Chrome and may still have bugs - but feel free to improve the code!

Getting started

Clone this repository with git and check out the branch that you are interested in (or choose the branch first and then download the archive, but learning how to use git really makes sense).

Change to the repository directory and run

npm install

to install required modules. Afterwards, you can build the project using

npm run build

or, if you want to let everything be built continuously while you are making changes to the code, run

npm run watch

Before putting the code in production, you should always run npm run build.

The build process will transpile ES6 to earlier versions in order to improve compatibility to older browsers. If you want to use particular functions that some browsers don't support, you'll have to add a polyfill.

The build process will also move the source files into one distribution file and minify the code.

h5p-advent-calendar's People

Contributors

antonioaneiros avatar e-me avatar fnoks avatar germanvaleroelizondo avatar izendegi avatar miropuhek avatar otacke avatar renebreedveld avatar weblate avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

h5p-advent-calendar's Issues

Take care of a11y

Accessibility needs to be checked, at least:

  • proper readspeaker announcements
  • proper keyboard use

Advent calendar customization

I don't know if this is the proper place to add an issue and. then, a PR to try to improve this awesome exercise.

We would want to add this customizations to the project:

  • Author would be able to choose the background image and the number of gates.
  • The gates lead to text-image or another modules like memory game
  • User would have the possibility to return to the home page of the calendar and open another door by pressing a button / keyboard key,

Choose door size depending on viewport

Allow users to enforce layouts that might make sense, e.g.

  • 6x4
  • 4x6

Choose some minimum/maximum width and then choose (.h5p-advent-calendar .h5p-advent-calendar-square {flex-basis}) accordingly:

  • 6x4: calc(16.666% - 1em);
  • 4x6: calc(25% - 1em);
  • 3x8: calc(33% - 1em);
  • 2x12: calc(50% - 1em);
  • 1x24: calc(100% - 1em); (might be tooooo large :-D)

Refactor

As a private weekend hackathon, this got out of hand a little :-) Things to consider:

  • Use SASS for stylesheets (plenty of colors codes, etc.)
  • general code cleaning

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.