Coder Social home page Coder Social logo

jordypereira / catvent Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 2.0 2.86 MB

An advent calendar with cats. Made with Nuxtjs

Home Page: https://catvent.jordypereira.be

License: MIT License

CSS 3.31% Vue 28.53% JavaScript 68.10% Shell 0.06%
cats advent-calendar cat vuejs nuxt tailwind

catvent's Introduction

catvent

2 Dec 2018

An advent calendar with cats.
Add dangerous or irrelevant cat pictures to the blacklist

About

This was my project to try out Nuxt.

You can flip over a card with a random cat picture/gif every day, until the 25th.
The cats are chosen from a random set depending on the day you click on.

I save which cat pictures you've clicked on with 1 long string in your localStorage.
That way I limit the amount of data to the bare minimum.

When you visit the page, all the images get preloaded and saved in the same string. That way, flipping the images becomes an instant experience.

Big shout out to The Cat Api

Setup

copy .env.example to .env and fill in an api key from the cat api
fill in an google analytics key or remove the line in the nuxt.config.js

Features

  • Load in a different set of random kitties per day.
  • Preload all images.
  • Save clicked images in 1 string in Local Storage.
  • The Cat Face is drawn with CSS.
  • CSS hover animation.

catvent's People

Contributors

dependabot[bot] avatar jordypereira avatar

Stargazers

 avatar  avatar  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.