From c14f52c3ca85e172da2f7e0965241afde10c119a Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 27 Jan 2022 12:48:39 +0100 Subject: [PATCH] docs: finish v1 of the video content element. --- website/src/components/VideoContent.jsx | 24 +++++++++++++++++++----- website/src/css/custom.css | 5 ----- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/website/src/components/VideoContent.jsx b/website/src/components/VideoContent.jsx index 889f9e3387..fa79262296 100644 --- a/website/src/components/VideoContent.jsx +++ b/website/src/components/VideoContent.jsx @@ -1,14 +1,28 @@ import React from 'react'; import Admonition from '@theme/Admonition'; -const Component = ({ videoUrls, children }) => { +const icons = { + tip: ( + + + + ), +}; + +const Component = ({ title = 'video content', 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 πŸΏπŸ“½
diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 7ff0a066d3..30206b7385 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -78,11 +78,6 @@ html[data-theme='dark'] .header-github-link:before { margin-bottom: 1em; } -.unleash-video-container p { - background: var(--ifm-color-success-contrast-background); - border-radius: var(--border-radius); -} - .unleash-video-container > .videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));