diff --git a/handbook/company/testimonials.yml b/handbook/company/testimonials.yml index 2a57a3a5b6..a828ac0129 100644 --- a/handbook/company/testimonials.yml +++ b/handbook/company/testimonials.yml @@ -150,7 +150,7 @@ productCategories: [Vulnerability management, Endpoint operations] - quote: Fleet has such a huge amount of use cases. My goal was to get telemetry on endpoints, but then our IR team, our TBM team, and multiple other folks in security started heavily utilizing the system in ways I didn’t expect. It spread so naturally, even our corporate and infrastructure teams want to run it. - quoteAuthorName: Charles Zaffery + quoteAuthorName: charles zaffery # Note: this name is lowercased here so we can sort the two endpoint-ops-related Charles Zaffery quotes in different spots. (The name will be capitalized via CSS) quoteLinkUrl: https://www.linkedin.com/in/charleszaffery/ quoteAuthorJobTitle: Principle computer janitor quoteAuthorProfileImageFilename: testimonial-author-charles-zaffery-48x48@2x.png diff --git a/website/api/controllers/view-testimonials.js b/website/api/controllers/view-testimonials.js index dfd040ccf5..5365a312d8 100644 --- a/website/api/controllers/view-testimonials.js +++ b/website/api/controllers/view-testimonials.js @@ -28,12 +28,82 @@ module.exports = { let testimonialsForMdm = _.filter(testimonials, (testimonial)=>{ return _.contains(testimonial.productCategories, 'Device management'); }); + let testimonialOrderForMdm = [ + 'Scott MacVicar', + 'Wes Whetstone', + 'Nick Fohs', + 'Erik Gomez', + 'Matt Carr', + 'Nico Waisman', + 'Kenny Botelho', + 'Dan Grzelak', + 'Eric Tan', + ]; + testimonialsForMdm.sort((a, b)=>{ + if(testimonialOrderForMdm.indexOf(a.quoteAuthorName) === -1){ + return 1; + } else if(testimonialOrderForMdm.indexOf(b.quoteAuthorName) === -1) { + return -1; + } + return testimonialOrderForMdm.indexOf(a.quoteAuthorName) - testimonialOrderForMdm.indexOf(b.quoteAuthorName); + }); let testimonialsForSecurityEngineering = _.filter(testimonials, (testimonial)=>{ return _.contains(testimonial.productCategories, 'Vulnerability management'); }); + let testimonialOrderForSecurityEngineering = [ + 'Nico Waisman', + 'Austin Anderson', + 'Chandra Majumdar', + 'Andre Shields', + 'Dan Grzelak', + 'Charles Zaffery', + 'Erik Gomez', + 'Nick Fohs', + 'Dhruv Majumdar', + 'Arsenio Figueroa', + ]; + testimonialsForSecurityEngineering.sort((a, b)=>{ + if(testimonialOrderForSecurityEngineering.indexOf(a.quoteAuthorName) === -1){ + return 1; + } else if(testimonialOrderForSecurityEngineering.indexOf(b.quoteAuthorName) === -1) { + return -1; + } + return testimonialOrderForSecurityEngineering.indexOf(a.quoteAuthorName) - testimonialOrderForSecurityEngineering.indexOf(b.quoteAuthorName); + }); let testimonialsForItEngineering = _.filter(testimonials, (testimonial)=>{ return _.contains(testimonial.productCategories, 'Endpoint operations'); }); + let testimonialOrderForItEngineering = [ + 'Charles Zaffery', + 'Nico Waisman', + 'Erik Gomez', + 'Mike Arpaia', + 'Ahmed Elshaer', + 'Kenny Botelho', + 'Alvaro Gutierrez', + 'Tom Larkin', + 'Nick Fohs', + 'charles zaffery',// Note: This testimonial's quoteAuthorName value is lowercased so it can be sorted to a different position than the other Charles Zaffery quote. + 'Andre Shields', + 'Abubakar Yousafzai', + 'Chandra Majumdar', + 'Joe Pistone', + 'Dan Grzelak', + 'Austin Anderson', + 'Brendan Shaklovitz', + 'Dhruv Majumdar', + 'Wes Whetstone', + 'Eric Tan', + 'Arsenio Figueroa', + ]; + testimonialsForItEngineering.sort((a, b)=>{ + if(testimonialOrderForItEngineering.indexOf(a.quoteAuthorName) === -1){ + return 1; + } else if(testimonialOrderForItEngineering.indexOf(b.quoteAuthorName) === -1) { + return -1; + } + return testimonialOrderForItEngineering.indexOf(a.quoteAuthorName) - testimonialOrderForItEngineering.indexOf(b.quoteAuthorName); + }); let testimonialsWithVideoLinks = _.filter(testimonials, (testimonial)=>{ return testimonial.youtubeVideoUrl; }); diff --git a/website/assets/styles/components/scrollable-tweets.component.less b/website/assets/styles/components/scrollable-tweets.component.less index b11473169f..b890e5d6c3 100644 --- a/website/assets/styles/components/scrollable-tweets.component.less +++ b/website/assets/styles/components/scrollable-tweets.component.less @@ -92,6 +92,7 @@ line-height: 18px !important;//lesshint-disable-line importantRule,duplicateProperty } [purpose='name'] { + text-transform: capitalize; color: @core-fleet-black !important;//lesshint-disable-line importantRule,duplicateProperty } [purpose='profile-picture'] { diff --git a/website/assets/styles/pages/testimonials.less b/website/assets/styles/pages/testimonials.less index 7a1f24e14a..e6b0d30932 100644 --- a/website/assets/styles/pages/testimonials.less +++ b/website/assets/styles/pages/testimonials.less @@ -116,6 +116,7 @@ border: 1px solid var(--UI-Fleet-Black-10, #E2E4EA); background: var(--Core-White, #FFF); height: min-content; + margin-bottom: 24px; [purpose='logo'] { img { max-height: 32px; @@ -146,6 +147,7 @@ } [purpose='name'] { color: @core-fleet-black; + text-transform: capitalize; } [purpose='profile-picture'] { margin-right: 16px; diff --git a/website/views/pages/testimonials.ejs b/website/views/pages/testimonials.ejs index 34ce0c7d4f..0a8a0b42e8 100644 --- a/website/views/pages/testimonials.ejs +++ b/website/views/pages/testimonials.ejs @@ -29,68 +29,86 @@
- {{testimonial.quote}} - See the video. -
-{{testimonial.quoteAuthorName}}
-{{testimonial.quoteAuthorJobTitle}}
+ <% for(let testimonial of testimonialsForMdm) {%> ++ <%- testimonial.quote %> + <%if(testimonial.youtubeVideoUrl) {%> + ')">See the video. + <% } %> +
+<%- testimonial.quoteAuthorName %>
+<%- testimonial.quoteAuthorJobTitle %>
+- {{testimonial.quote}} - See the video. -
-{{testimonial.quoteAuthorName}}
-{{testimonial.quoteAuthorJobTitle}}
+ <% for(let testimonial of testimonialsForItEngineering) {%> ++ <%- testimonial.quote %> + <%if(testimonial.youtubeVideoUrl) {%> + ')">See the video. + <% } %> +
+<%- testimonial.quoteAuthorName %>
+<%- testimonial.quoteAuthorJobTitle %>
+- {{testimonial.quote}} - See the video. -
-{{testimonial.quoteAuthorName}}
-{{testimonial.quoteAuthorJobTitle}}
+ <% for(let testimonial of testimonialsForSecurityEngineering) {%> ++ <%- testimonial.quote %> + <%if(testimonial.youtubeVideoUrl) {%> + ')">See the video. + <% } %> +
+<%- testimonial.quoteAuthorName %>
+<%- testimonial.quoteAuthorJobTitle %>
+