diff --git a/content/testimonials/testimonial-1.mdx b/content/testimonials/testimonial-1.mdx
index 462e6a1..0d4ced5 100644
--- a/content/testimonials/testimonial-1.mdx
+++ b/content/testimonials/testimonial-1.mdx
@@ -1,4 +1,4 @@
**GitOps is the best thing since configuration as code.** Git changed how we collaborate, but declarative configuration is the key to dealing with infrastructure at scale, and sets the stage for the next generation of management tools.
- Kelsey Hightower
- Staff Developer Advocate, Google
+ Staff Developer Advocate, Google
diff --git a/content/testimonials/testimonial-2.mdx b/content/testimonials/testimonial-2.mdx
index 8ee4d26..5b9b07f 100644
--- a/content/testimonials/testimonial-2.mdx
+++ b/content/testimonials/testimonial-2.mdx
@@ -1,3 +1,3 @@
**I wish GitOps practices were available a decade ago.** GitOps increases the quality of everything we do. Right now, I can't imagine working differently anytime in the future.
-- Florian Heubeck, Principal Engineer, MediaMarktSaturn Technology
+- Florian Heubeck, Principal Engineer, MediaMarktSaturn Technology
diff --git a/content/testimonials/testimonial-3.mdx b/content/testimonials/testimonial-3.mdx
index aaa94b1..02ccef4 100644
--- a/content/testimonials/testimonial-3.mdx
+++ b/content/testimonials/testimonial-3.mdx
@@ -1,3 +1,3 @@
GitOps feels like the right way to manage Kubernetes clusters. Other pre-containerization CI/CD tools are flakey, fragile and take up valuable time. **Engineers should focus on solving code problems, and not on the deployment process.**
-- Curve
+- Garry Wilson, Site Reliability Team Lead, Curve
diff --git a/content/testimonials/testimonial-4.mdx b/content/testimonials/testimonial-4.mdx
new file mode 100644
index 0000000..4461de7
--- /dev/null
+++ b/content/testimonials/testimonial-4.mdx
@@ -0,0 +1,3 @@
+**GitOps is the only way to keep our velocity from being bogged down by the huge amount of complexity in building internet scale systems.** Just as no serious developer would code without using version control, deploying and documenting systems without GitOps is setting yourself up for a lot of stressful sprints.
+
+- A. Stevko, Director of Cloud Engineering, Trugard Labs Inc
diff --git a/content/testimonials/testimonial-5.mdx b/content/testimonials/testimonial-5.mdx
new file mode 100644
index 0000000..32f2251
--- /dev/null
+++ b/content/testimonials/testimonial-5.mdx
@@ -0,0 +1,3 @@
+**We're confident that what is in git is running in production.** Preventing state drift has saved us from many problems. We've also caught several configuration bugs that would otherwise only be detectable in production.
+
+- Mark Robinson, Infrastructure Engineer, Plaid
diff --git a/content/testimonials/testimonial-6.mdx b/content/testimonials/testimonial-6.mdx
new file mode 100644
index 0000000..058c497
--- /dev/null
+++ b/content/testimonials/testimonial-6.mdx
@@ -0,0 +1,3 @@
+At that scale, you have to manage against node drift. **We knew that GitOps was the solution to manage drift and to enable automation.**
+
+- Nicolas M. Chaillan, Chief Software Officer (at the time), U.S. Air Force / U.S. Department of Defense
diff --git a/content/testimonials/testimonial-7.mdx b/content/testimonials/testimonial-7.mdx
new file mode 100644
index 0000000..767554a
--- /dev/null
+++ b/content/testimonials/testimonial-7.mdx
@@ -0,0 +1,3 @@
+**GitOps provides an audited way to manage our environments across multiple clouds with the same tooling and process.** From a developer's perspective, the process is identical whether you deploy on GCP or AWS.
+
+- Kasper Nissen, Lead Platform Architect, Lunar
diff --git a/content/testimonials/testimonial-8.mdx b/content/testimonials/testimonial-8.mdx
new file mode 100644
index 0000000..0068f9e
--- /dev/null
+++ b/content/testimonials/testimonial-8.mdx
@@ -0,0 +1,3 @@
+**It's really about Git being a source of truth for your code and deployments, from build to apps in production, or GitOps.** No more manual arcane scripts.
+
+- Pratik Wadher, VP, Intuit Development Platform (formerly Founder and CEO, Applatix), Intuit
diff --git a/content/testimonials/testimonial-9.mdx b/content/testimonials/testimonial-9.mdx
new file mode 100644
index 0000000..e11846d
--- /dev/null
+++ b/content/testimonials/testimonial-9.mdx
@@ -0,0 +1,3 @@
+**By embracing cloud native technologies and GitOps practices, we've significantly reduced development bottlenecks while creating a more reproducible, scalable platform for machine learning.**
+
+- Ryoji Kobayashi, DevOps Engineer, ADAS Development Department, Subaru
diff --git a/src/components/testimonials.js b/src/components/testimonials.js
index dcd7454..ea9ee3a 100644
--- a/src/components/testimonials.js
+++ b/src/components/testimonials.js
@@ -1,8 +1,9 @@
import * as React from "react"
-import { useStaticQuery, graphql } from "gatsby"
+import { useStaticQuery, graphql, withPrefix } from "gatsby"
import { MDXRenderer } from "gatsby-plugin-mdx"
-import { Grid } from "./ui/grid"
import CardTestimonial from "../components/ui/card-testimonial"
+import images from "../data/testimonial-images.json"
+import useCrawl from "../hooks/use-crawl"
const Testimonials = () => {
const query = useStaticQuery(
@@ -10,26 +11,72 @@ const Testimonials = () => {
query {
allMdx(
filter: { fileAbsolutePath: { regex: "/(content/testimonials)/" } }
- limit: 6
+ sort: { fields: fileAbsolutePath, order: ASC }
) {
- edges {
- node {
- body
+ nodes {
+ body
+ parent {
+ ... on File {
+ name
+ }
}
}
}
}
`
)
+ const nodes = query.allMdx.nodes
+ const { track, scroll, pause, resume } = useCrawl(nodes.length)
+
+ // The cards render twice so the crawl can loop seamlessly; the copy is inert.
+ const cards = copy =>
+ nodes.map(node => {
+ const image = images[node.parent.name]
+ return (
+
{quote &&{quote}
} diff --git a/src/data/testimonial-images.json b/src/data/testimonial-images.json new file mode 100644 index 0000000..42d7ca9 --- /dev/null +++ b/src/data/testimonial-images.json @@ -0,0 +1,11 @@ +{ + "testimonial-1": "1-kelsey-hightower.jpg", + "testimonial-2": "2-florian-heubeck.jpg", + "testimonial-3": "3-curve-logo.svg", + "testimonial-4": "4-trugard-labs-logo.png", + "testimonial-5": "5-mark-robinson.jpg", + "testimonial-6": "6-nicolas-chaillan.jpg", + "testimonial-7": "7-kasper-nissen.jpg", + "testimonial-8": "8-pratik-wadher.jpg", + "testimonial-9": "9-ryoji-kobayashi.jpg" +} diff --git a/src/hooks/use-crawl.js b/src/hooks/use-crawl.js new file mode 100644 index 0000000..f2230c9 --- /dev/null +++ b/src/hooks/use-crawl.js @@ -0,0 +1,51 @@ +import * as React from "react" + +const speed = 0.04 // px per ms, about 40px a second + +// Continuously scrolls a track whose children are `count` items rendered +// twice, wrapping by one period so the loop is seamless. Pauses while the +// user hovers, focuses or touches it, and stays still for reduced motion. +const useCrawl = count => { + const track = React.useRef(null) + const resumeAt = React.useRef(0) + + React.useEffect(() => { + const el = track.current + if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) + return + let pos = el.scrollLeft + let last = performance.now() + let frame + const step = now => { + const period = el.children[count].offsetLeft - el.children[0].offsetLeft + if (now < resumeAt.current) { + pos = el.scrollLeft + } else { + pos += (now - last) * speed + if (pos >= period) pos -= period + el.scrollLeft = Math.round(pos) + } + last = now + frame = requestAnimationFrame(step) + } + frame = requestAnimationFrame(step) + return () => cancelAnimationFrame(frame) + }, [count]) + + const pause = () => (resumeAt.current = Infinity) + const resume = delay => (resumeAt.current = performance.now() + delay) + + // Jump one visible "page"; hold the crawl until the smooth scroll settles. + const scroll = dir => { + const el = track.current + if (!el) return + const period = el.children[count].offsetLeft - el.children[0].offsetLeft + if (dir < 0 && el.scrollLeft < el.clientWidth) el.scrollLeft += period + resume(1000) + el.scrollBy({ left: dir * el.clientWidth, behavior: "smooth" }) + } + + return { track, scroll, pause, resume } +} + +export default useCrawl diff --git a/src/styles/app.scss b/src/styles/app.scss index aa5afab..d8ffb75 100644 --- a/src/styles/app.scss +++ b/src/styles/app.scss @@ -11,3 +11,11 @@ a:not([class]) { @apply text-accent; } + +.no-scrollbar { + scrollbar-width: none; +} + +.no-scrollbar::-webkit-scrollbar { + display: none; +} diff --git a/static/testimonials/1-kelsey-hightower.jpg b/static/testimonials/1-kelsey-hightower.jpg new file mode 100644 index 0000000..5da08f3 Binary files /dev/null and b/static/testimonials/1-kelsey-hightower.jpg differ diff --git a/static/testimonials/2-florian-heubeck.jpg b/static/testimonials/2-florian-heubeck.jpg new file mode 100644 index 0000000..f79e32a Binary files /dev/null and b/static/testimonials/2-florian-heubeck.jpg differ diff --git a/static/testimonials/3-curve-logo.svg b/static/testimonials/3-curve-logo.svg new file mode 100644 index 0000000..bbde491 --- /dev/null +++ b/static/testimonials/3-curve-logo.svg @@ -0,0 +1,10 @@ + diff --git a/static/testimonials/4-trugard-labs-logo.png b/static/testimonials/4-trugard-labs-logo.png new file mode 100644 index 0000000..72389c6 Binary files /dev/null and b/static/testimonials/4-trugard-labs-logo.png differ diff --git a/static/testimonials/5-mark-robinson.jpg b/static/testimonials/5-mark-robinson.jpg new file mode 100644 index 0000000..c7aa869 Binary files /dev/null and b/static/testimonials/5-mark-robinson.jpg differ diff --git a/static/testimonials/6-nicolas-chaillan.jpg b/static/testimonials/6-nicolas-chaillan.jpg new file mode 100644 index 0000000..a3702d1 Binary files /dev/null and b/static/testimonials/6-nicolas-chaillan.jpg differ diff --git a/static/testimonials/7-kasper-nissen.jpg b/static/testimonials/7-kasper-nissen.jpg new file mode 100644 index 0000000..30c4ca2 Binary files /dev/null and b/static/testimonials/7-kasper-nissen.jpg differ diff --git a/static/testimonials/8-pratik-wadher.jpg b/static/testimonials/8-pratik-wadher.jpg new file mode 100644 index 0000000..0c6c912 Binary files /dev/null and b/static/testimonials/8-pratik-wadher.jpg differ diff --git a/static/testimonials/9-ryoji-kobayashi.jpg b/static/testimonials/9-ryoji-kobayashi.jpg new file mode 100644 index 0000000..52cdb1b Binary files /dev/null and b/static/testimonials/9-ryoji-kobayashi.jpg differ