Website: add testimonial (#16689)

Closes: https://github.com/fleetdm/confidential/issues/5182

Changes: 
- Added a quote from Chandra Majumdar to testimonials.yml
- Updated the testimonial sorting in the view actions for the product
category landing pages to sort quotes by the authors full name.

---------

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
This commit is contained in:
Eric 2024-02-12 16:40:56 -06:00 committed by GitHub
parent aac971145f
commit 5a9f5d86a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 13 deletions

View file

@ -141,4 +141,12 @@
quoteAuthorProfileImageFilename: testimonial-author-tom-larkin-48x48@2x.png
quoteLinkUrl: https://www.linkedin.com/in/thlarkin/
youtubeVideoUrl: https://www.youtube.com/watch?v=nkjg_hNe86Q
productCategories: [Endpoint operations]
productCategories: [Endpoint operations]
-
quote: Something I really appreciate about working with you guys is that it doesn't feel like I'm talking to a vendor. It actually feels like I'm talking to my team, and I really appreciate it.
quoteImageFilename: social-proof-logo-deloitte-130x32@2x.png
quoteLinkUrl: https://www.linkedin.com/in/cmajumdar/
quoteAuthorName: Chandra Majumdar
quoteAuthorProfileImageFilename: testimonial-author-chandra-majumdar-48x48@2x.png
quoteAuthorJobTitle: Partner - Cyber and Strategic Risk
productCategories: [Vulnerability management, Endpoint operations]

View file

@ -29,14 +29,14 @@ module.exports = {
});
// Specify an order for the testimonials on this page using the last names of quote authors
let testimonialOrderForThisPage = ['Gomez', 'Fohs', 'Grzelak', 'Botelho', 'Whetstone', 'Carr'];
let testimonialOrderForThisPage = ['Erik Gomez', 'Nick Fohs', 'Dan Grzelak', 'Kenny Botelho', 'Wes Whetstone', 'Matt Carr'];
testimonialsForScrollableTweets.sort((a, b)=>{
if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName.split(' ')[1]) === -1){
if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName) === -1){
return 1;
} else if(testimonialOrderForThisPage.indexOf(b.quoteAuthorName.split(' ')[1]) === -1) {
} else if(testimonialOrderForThisPage.indexOf(b.quoteAuthorName) === -1) {
return -1;
}
return testimonialOrderForThisPage.indexOf(a.quoteAuthorName.split(' ')[1]) - testimonialOrderForThisPage.indexOf(b.quoteAuthorName.split(' ')[1]);
return testimonialOrderForThisPage.indexOf(a.quoteAuthorName) - testimonialOrderForThisPage.indexOf(b.quoteAuthorName);
});
// Respond with view.

View file

@ -29,14 +29,14 @@ module.exports = {
});
// Specify an order for the testimonials on this page using the last names of quote authors
let testimonialOrderForThisPage = ['Zaffery','Grzelak','Waisman','Larkin','Anderson','Gomez','Fohs','Shaklovitz','Arpaia','Shields','Majumdar','Elshaer','Yousafzai','Ravazzolo','Whetstone','Botelho'];
let testimonialOrderForThisPage = ['Charles Zaffery','Dan Grzelak','Nico Waisman','Tom Larkin','Austin Anderson','Erik Gomez','Nick Fohs','Brendan Shaklovitz','Mike Arpaia','Andre Shields','Dhruv Majumdar','Ahmed Elshaer','Abubakar Yousafzai','Harrison Ravazzolo','Wes Whetstone','Kenny Botelho', 'Chandra Majumdar'];
testimonialsForScrollableTweets.sort((a, b)=>{
if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName.split(' ')[1]) === -1){
if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName) === -1){
return 1;
} else if(testimonialOrderForThisPage.indexOf(b.quoteAuthorName.split(' ')[1]) === -1) {
} else if(testimonialOrderForThisPage.indexOf(b.quoteAuthorName) === -1) {
return -1;
}
return testimonialOrderForThisPage.indexOf(a.quoteAuthorName.split(' ')[1]) - testimonialOrderForThisPage.indexOf(b.quoteAuthorName.split(' ')[1]);
return testimonialOrderForThisPage.indexOf(a.quoteAuthorName) - testimonialOrderForThisPage.indexOf(b.quoteAuthorName);
});
// Respond with view.

View file

@ -29,14 +29,14 @@ module.exports = {
});
// Specify an order for the testimonials on this page using the last names of quote authors
let testimonialOrderForThisPage = ['Waisman', 'Shields', 'Majumdar', 'Anderson', 'Grzelak', 'Fohs'];
let testimonialOrderForThisPage = ['Nico Waisman', 'Andre Shields', 'Dhruv Majumdar', 'Austin Anderson', 'Dan Grzelak', 'Nick Fohs', 'Chandra Majumdar'];
testimonialsForScrollableTweets.sort((a, b)=>{
if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName.split(' ')[1]) === -1){
if(testimonialOrderForThisPage.indexOf(a.quoteAuthorName) === -1){
return 1;
} else if(testimonialOrderForThisPage.indexOf(b.quoteAuthorName.split(' ')[1]) === -1) {
} else if(testimonialOrderForThisPage.indexOf(b.quoteAuthorName) === -1) {
return -1;
}
return testimonialOrderForThisPage.indexOf(a.quoteAuthorName.split(' ')[1]) - testimonialOrderForThisPage.indexOf(b.quoteAuthorName.split(' ')[1]);
return testimonialOrderForThisPage.indexOf(a.quoteAuthorName) - testimonialOrderForThisPage.indexOf(b.quoteAuthorName);
});
// Respond with view.

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB