1.0.6 • Published 3 years ago

reactjs-mtg-card v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

reactjs-mtg-card

Made with create-react-library

NPM JavaScript Style Guide

Demo

Magic: The Gathering Reactjs Card Generator

MTG Reactjs is a ongoing project to generate Reactjs cards as you want.

Based on Davide Iaiunese good work. Uses mana-font as the mana symbols and can use keyrune as the set symbols (see the example folder).

Install

npm install reactjs-mtg-card keyrune mana-font

or

yarn add reactjs-mtg-card keyrune mana-font

Usage

import React from 'react'
import 'reactjs-mtg-card/dist/index.css'
import { MagicCard } from 'reactjs-mtg-card'

const MyApp = () => {
    return (
        <MagicCard
            cardColor="green"
            name='Oath of Nissa'
            manaCost='{2}{G}{U}{W}{R}{B}'
            descriptions={[
                'When Oath of Nissa enters the battlefield, look at the top three cards of your library. You may reveal a creature, land, or planeswalker card from among them and put it into your hand. Put the rest on the bottom of your library in any order.',
                'You may spend mana as though it were mana of any color to cast planeswalker spells.',
            ]}
            expansionSymbol="https://image.ibb.co/kzaLjn/OGW_R.png"
            artUrl="https://image.ibb.co/fqdLEn/nissa.jpg"
            type='Legendary Enchantment'
            flavorText={['"For the life of every plane, I will keep watch."']}
            fotterLeftText={[
                '140/184 R',
                'OGW &#x2022; EN Wesley Burt',
            ]}
            fotterRightText={[
                '&#x99; &amp; &#169; 2016 Wizards of the Coast',
            ]}
        />
    )
}

export default MyApp

License

MIT © germanyn

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago