Giter Club home page Giter Club logo

pokemon-cards's Introduction

Pokemon Cards

Introduction

Demonstration

This repository showcases using a variety of CSS techniques to recreate a Pokemon trading card. Some of the techniques are listed below:

  • Font Face: This CSS at-rule specifies a custom font with which to display text. This is used to change the typography of all the text on the card.

  • Clip Path: This CSS property creates a clipping region that sets what part of an element should be shown. Parts that are inside the region are shown, while those outside are hidden. This is used to create custom shapes for UI such as the stage badge, the biography, the weaknesses and restistances badges.

  • Filter Drop Shadow: This CSS function applies a drop shadow effect to an element. This is used on parent elements whose children use clip-path because box shadows do not honor clip-path.

  • WebP: WebP is a lossless and lossy compression image format developed by Google. It has better compression sizes than JPEG, PNG or GIF. This is used for card textures which originally were lossless PNG images.

  • AVIF: AVIF is an image format that is even newer—than WebP. As with WebP, AVIF aims to address every conceivable use case for raster images on the web: GIF-like animation, PNG-like transparency, and file sizes smaller than JPEG or WebP. It is used for Pokemon portraits instead of JPEG images.

  • CSS Grid: A two-dimensional layout system that lets you organize content into rows and columns and offers many features to simplify the creation of complex layouts. This is used for all aspects of layout in the cards.

Instructions

These instructions assume you are running a version of NodeJS equal to or greater than the version mentioned in the .nvmrc file and have pnpm installed:

  1. Install dependencies across all packages and applications in the monorepo
pnpm install
  1. Start the dev server to see the UI
pnpm dev

Further Reading

pokemon-cards's People

Contributors

anthonyhastings avatar

Stargazers

Stephen McCullough avatar

Watchers

 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.