diff --git a/app/src/assets/BeeMovieCharacters.js b/app/src/assets/BeeMovieCharacters.js index 7ae61db..98d5e46 100644 --- a/app/src/assets/BeeMovieCharacters.js +++ b/app/src/assets/BeeMovieCharacters.js @@ -2,73 +2,73 @@ const characters = [ { name: 'Barry B. Benson', role: 'ya like jazz? ya like jazz? ya like jazz? ya like jazz?', - price: '$10.00', + price: 10.0, }, { name: 'Vanessa Bloome', role: 'A florist who befriends Barry and helps him in his quest.', - price: '$12.00', + price: 12.0, }, { name: 'Ken', role: 'WHY IS YOGURT NIGHT SO DIFFICULT', - price: '$8.00', + price: 8.0, }, { name: 'Adam Flayman', role: "Barry's best friend, who works with him at the hive.", - price: '$9.00', + price: 9.0, }, { name: 'Judge Bumbleton', role: 'The judge who presides over the trial against the human race.', - price: '$15.00', + price: 15.0, }, { - name: 'Layton T. Montgomery', + name: 'Layton Montgomery', role: 'The human lawyer who represents the honey industry in the trial.', - price: '$18.00', + price: 18.0, }, { name: 'President of the Honey Association', role: 'A character who is part of the honey industry.', - price: '$20.00', + price: 20.0, }, { name: 'The Pollen Jock', role: 'A group of bees responsible for pollinating flowers and collecting nectar.', - price: '$14.00', + price: 14.0, }, { name: 'Mr. Svenson', role: "The bee who talks about the hive's work and the status quo.", - price: '$7.00', + price: 7.0, }, { name: 'Dr. Z', role: 'A bee who appears at the hospital scene and is somewhat scientific in nature.', - price: '$13.00', + price: 13.0, }, { name: 'Bee Movie Narrator', role: 'Narrates the events and sets the tone for the story.', - price: '$25.00', + price: 25.0, }, { name: 'Carlos', role: 'A bee who is part of the group involved in the courtroom drama.', - price: '$11.00', + price: 11.0, }, { name: 'Peggy', role: 'A bee who is part of the scene where Barry addresses the media.', - price: '$9.00', + price: 9.0, }, { name: 'The Bee Flight Instructor', role: 'A bee who teaches the younger bees how to fly and perform tasks.', - price: '$16.00', + price: 16.0, }, ] -export default characters // Have something like this to export JS files!! +export default characters // have something like this to export js files diff --git a/app/src/components/icons/CharacterCard.vue b/app/src/components/icons/CharacterCard.vue index 3c2db9c..7cc0ff1 100644 --- a/app/src/components/icons/CharacterCard.vue +++ b/app/src/components/icons/CharacterCard.vue @@ -2,14 +2,13 @@
-
-

{{ character.name }}

-

{{ character.role }}

-

{{ character.price }}

+

{{ character.name }}

+

{{ character.role }}

+

${{ character.price }}

@@ -18,18 +17,10 @@ @@ -54,10 +60,6 @@ import { ref, reactive } from 'vue'
- - - -
@@ -65,23 +67,37 @@ import { ref, reactive } from 'vue' v-for="character in characters" :key="character.name" :character="character" - @click="cart.push(character)" + @click="addToCart(character, character.price)" > -
-
- + +

Your Cart

+
+

+ Cost: ${{ totalCost }} +

+
+
+ +
- - - +
+ +