From 1a399fcabc5a3abf82426f5668a1d17b9da27149 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 26 Jan 2022 12:57:42 +0100 Subject: [PATCH] docs: add video content component (to be moved) --- website/docs/how-to/VideoThing.jsx | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 website/docs/how-to/VideoThing.jsx diff --git a/website/docs/how-to/VideoThing.jsx b/website/docs/how-to/VideoThing.jsx new file mode 100644 index 0000000000..29da9df244 --- /dev/null +++ b/website/docs/how-to/VideoThing.jsx @@ -0,0 +1,42 @@ +import React from 'react'; +import Admonition from '@theme/Admonition'; + +const Component = ({ videoUrls, children }) => { + return ( +
+
+ + {children} + Hey! Did you know that the content in this guide is also + available in video format? If that's more your speed, feel + free to check out one of these related videos πŸΏπŸ“½ + + +
+ {videoUrls ? ( + videoUrls.map((url) => ( +
+ +
+ )) + ) : ( + + You need to provide YouTube video URLs for this + component to work properly. + + )} +
+
+
+ ); +}; + +export default Component;