Zomis / Games

Many kinds of games, playable in both multiplayer or local play. Replays, spectator mode, and AIs.
https://games.zomis.net
MIT License
17 stars 5 forks source link

Create common Vue components #96

Open Zomis opened 4 years ago

Zomis commented 4 years ago

To avoid having to re-implement the same behavior in every game, it might be beneficial to create some reusable components.

Such as:

Features that common components are intended to solve:

Opinions about which components to create are much appreciated.

Zomis commented 4 years ago

As an example of Value component: https://github.com/Cardshifter/HTML-Client/blob/master/src/components/Value.vue and https://stackoverflow.com/q/50824857/1310566

Zomis commented 4 years ago

A lot of stuff can be done using https://materialdesignicons.com/ , to use them use <v-icon>mdi-...</v-icon>. They can also be used inside buttons, as seen in examples here: https://vuetifyjs.com/en/components/buttons/