npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-pokemon-cards-css

v1.0.0

Published

Vue implementation of Pokémon Cards Holographic effect in CSS (from https://github.com/simeydotme/pokemon-cards-css)

Downloads

12

Readme

Pokémon Cards Holographic effect in CSS

This is a repository holder for the Pokemon Cards CSS Holographic effect.

🔥 As seen on css-tricks.com and codepen
🌟 Demo running @ https://poke-holo.simey.me/

Vue implementation of Pokémon Cards Holographic effect in CSS .

from (https://github.com/simeydotme/pokemon-cards-css).

Thanks to the vue implementation of (https://github.com/Maurier/vue-pokemon-cards-css)

A collection of advanced CSS styles, applied with vue.js.


install

npm i vue-pokemon-cards-css

Example

<!--
 * @Author: 时不待我 [email protected]
 * @Date: 2022-12-17 22:18:59
 * @LastEditors: 时不待我 [email protected]
 * @LastEditTime: 2022-12-18 13:16:53
-->

<template>
  <div class="showcase" @click="active = null">
    <div>
      <div class="slice">
        <vue-pokemon-cards-css
          v-for="card of slices"
          @click.native.stop="active = active === card ? null : card"
          :key="card.id"
          :name="card.name"
          :img="card.images.large"
          :number="card.number"
          backimg="https://tcg.pokemon.com/assets/img/global/tcg-card-back-2x.jpg"
          :supertype="card.supertype"
          :subtypes="card.subtypes"
          :rarity="card.rarity"
          :gallery="card.gallery"
          :active="active === card"
        />
      </div>
    </div>
  </div>
</template>
<script lang="ts">
import Vue from "vue";
//导入
import VuePokemonCardsCss from "vue-pokemon-cards-css";

//导入渲染的数组
let cards = require("@/assets/data.json");
//数组进行处理
cards = cards.map((card) => {
  return {
    ...card,
    rarity: card.rarity.toLowerCase(),
    supertype: card.supertype.toLowerCase(),
    subtypes: Array.isArray(card.subtypes)
      ? card.subtypes.join(" ").toLowerCase()
      : card.subtypes.toLowerCase(),
    gallery: card.number.startsWith("TG"),
  };
});
export default Vue.extend({
  name: "ServeDev",
  components: {
    VuePokemonCardsCss,
  },
  data() {
    return {
      active: null,
      slices:
        cards.slice(0, 6),
    };
  },
});
</script>

<style lang="scss" scoped>
.showcase {
  padding: 4rem;
}

.slice {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4rem;
}

hr {
  opacity: 0.35;
  border-bottom: 1px solid #000;
  margin-bottom: 3rem;
}
</style>

data.json

https://github.com/zzy-life/components-pokemon-cards-css/blob/master/src/assets/data.json

options

subtypes && rarity

Card material (supertype and subtype)

| data.json | | ------------------------------------------------- | | // basics | | cards.slice(0, 6), | | // holos | | cards.slice(6, 12), | | // galaxies | | cards.slice(12, 15), | | // radiant | | cards.slice(15, 18), | | // basicGallery | | cards.slice(60, 63), | | // vee | | cards.slice(18, 21), | | // veeUltra | | cards.slice(21, 24), | | // veeAlt | | [...cards.slice(27, 30), ...cards.slice(33, 36)], | | // veeMax | | cards.slice(24, 27), | | // veeMaxAlt | | [cards[36], cards[31], cards[37]], | | // veeStar | | cards.slice(39, 42), | | // trainerHolo | | cards.slice(42, 48), | | // rainbow | | cards.slice(48, 51), | | // gold | | cards.slice(51, 60), | | // veeGallery | | cards.slice(63, 69), |

images.small

small picture

images.large

big picture

backimg

card back view

Local operation

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

support / tip

If you think this is super cool, or useful, and want to donate a little, then you are also super cool!

| | | | | ------------------------------------------------------------ | -----------------------------------------------------------: | --------------------------------------------------- | | | £1 One Pound tip | £1 tip | | | £5 Five Pounds tip | £5 tip | | | £10 Ten Pounds tip | £10 tip |


attribution

- Galaxy Holo from aschefield101
- Some backgrounds from Vecteezy