From 401018e4e2595a7571f4e61756585090ac161d4c Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:25:01 -0800 Subject: [PATCH 1/2] Added new testimony, testimonies now display in a random order. --- app/components/Testimonies.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/components/Testimonies.vue b/app/components/Testimonies.vue index 90b0192..19ce7e2 100644 --- a/app/components/Testimonies.vue +++ b/app/components/Testimonies.vue @@ -33,7 +33,7 @@ } }" > - +
@@ -64,6 +64,10 @@ return `"${quote}"`; } + const randomizedOrder = computed(() => { + return [...testimonies].sort(() => Math.random() - 0.5); + }); + const testimonies: Testimony[] = [ { author: "Kai", @@ -89,5 +93,11 @@ quote: "Cider completely changes the game for the desktop Apple Music experience. Gone are the blindingly ugly light mode of iTunes and the awful performance on official clients, replaced by an absolute beauty that zips around like a supercar. I for one welcome our new music overlords.", }, + { + author: "RylanFM", + position: "New Cider Enthusiast", + quote: + "I was a bit skeptical having never even heard of Cider until the afternoon I got it. A couple weeks in and I can confidently say that this is one of the best purchases I have ever made. The UI is so clean and intuitive. I have a vertical monitor and immersive mode looks amazing. Everyone in the Discord server was so kind and helped me get it set up in just a few minutes. I highly recommend giving Cider a try!", + } ]; From 2d60a33be8d3014c1c2f6d6e6d50e16b4b84142e Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 30 Jan 2025 17:45:54 -0800 Subject: [PATCH 2/2] Fix randomization --- app/components/Testimonies.vue | 127 +++++++++++++++++---------------- 1 file changed, 67 insertions(+), 60 deletions(-) diff --git a/app/components/Testimonies.vue b/app/components/Testimonies.vue index 19ce7e2..ba27617 100644 --- a/app/components/Testimonies.vue +++ b/app/components/Testimonies.vue @@ -1,7 +1,5 @@