diff --git a/src/App.vue b/src/App.vue
index 5c5069c..02f17ef 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,51 +1,35 @@
-
- -
- {{ players.length }}
- {{ teams.alive }}
- {{ teams.votes }}
-
- -
- {{ teams.townsfolk }}
-
- {{ teams.outsiders }}
-
- {{ teams.minions }}
-
- {{ teams.demons }}
-
-
- {{ teams.travellers }}
-
-
-
-
+
-
-
-
-
-
+
+
+ -
+ Toggle Grimoire
+
+ -
+ Add Player
+
+ -
+ Select Roles
+
+ -
+ Randomize Seatings
+
+
diff --git a/src/components/TownSquare.vue b/src/components/TownSquare.vue
index 11fd1d5..5da9149 100644
--- a/src/components/TownSquare.vue
+++ b/src/components/TownSquare.vue
@@ -9,6 +9,7 @@
:is-public="isPublic"
@add-reminder="openReminderModal"
@set-role="openRoleModal"
+ @remove-player="removePlayer"
>
@@ -51,7 +52,20 @@ export default {
Modal,
Player
},
- props: ["isPublic", "players", "roles"],
+ props: {
+ isPublic: {
+ type: Boolean,
+ required: true
+ },
+ players: {
+ type: Array,
+ required: true
+ },
+ roles: {
+ type: Map,
+ required: true
+ }
+ },
data() {
return {
selectedPlayer: false,
@@ -96,6 +110,11 @@ export default {
this.selectedPlayer = false;
this.availableReminders = [];
this.availableRoles = [];
+ },
+ removePlayer(player) {
+ if (confirm(`Do you really want to remove ${player.name}?`)) {
+ this.players.splice(this.players.indexOf(player), 1);
+ }
}
}
};
@@ -174,7 +193,7 @@ export default {
}
}
-@for $i from 5 through 20 {
+@for $i from 1 through 20 {
.circle.size-#{$i} li {
@include on-circle($item-count: $i);
}
diff --git a/src/main.js b/src/main.js
index 971eaea..99273fd 100644
--- a/src/main.js
+++ b/src/main.js
@@ -6,11 +6,21 @@ import {
faHeartbeat,
faVoteYea,
faUserFriends,
- faUser
+ faUser,
+ faTimesCircle,
+ faCogs
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
-library.add(faUsers, faHeartbeat, faVoteYea, faUserFriends, faUser);
+library.add(
+ faUsers,
+ faHeartbeat,
+ faVoteYea,
+ faUserFriends,
+ faUser,
+ faTimesCircle,
+ faCogs
+);
Vue.component("font-awesome-icon", FontAwesomeIcon);
diff --git a/src/vars.scss b/src/vars.scss
index 5c714ad..22e7720 100644
--- a/src/vars.scss
+++ b/src/vars.scss
@@ -2,7 +2,7 @@ $token: 150px;
$townsfolk: #1f65ff;
$outsider: #46d5ff;
$minion: #ff6900;
-$demon: #ff0000;
+$demon: #ce0100;
$traveller: #cc04ff;
$roles: