jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

Create a boardgame-card element #209

Closed jkomoros closed 7 years ago

jkomoros commented 7 years ago

By popping out memory's memory-card.

Look at https://www.webcomponents.org/element/vpusher/game-card to see what to use.

Animations to flip. Spacers. Ideally this will be the class that does the magic layout diffing and stuff in the future.

jkomoros commented 7 years ago

We'll naturally need to do this for #161

jkomoros commented 7 years ago

The API would be that you pass a renderedContent

. If that's empty, it's in spacer mode.

Then users would sub-class it to automatically provide that content well.

jkomoros commented 7 years ago
jkomoros commented 7 years ago

Some cards are "naturally" tall, while some are "naturally" wide.

There is an attribute, "tall", which means that the card's content is naturally tall. The card also has rotated attribute, which rotates 90 degrees (logically, not via transforms)