From 2ab93f76c2efd5ec7badb9adbb3e0242eab80ed9 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sun, 5 Sep 2021 21:58:44 +0200 Subject: [PATCH] Add sticky banner for youtube --- components/icons/youtube.svg | 3 +++ components/sticky-banner.tsx | 24 ++++++++++++++++++++++++ pages/_app.tsx | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 components/icons/youtube.svg create mode 100644 components/sticky-banner.tsx diff --git a/components/icons/youtube.svg b/components/icons/youtube.svg new file mode 100644 index 000000000..b37541c96 --- /dev/null +++ b/components/icons/youtube.svg @@ -0,0 +1,3 @@ + + + diff --git a/components/sticky-banner.tsx b/components/sticky-banner.tsx new file mode 100644 index 000000000..6b384552d --- /dev/null +++ b/components/sticky-banner.tsx @@ -0,0 +1,24 @@ +import { Flex, Link, Text } from '@chakra-ui/react'; +import YouTubeLogo from '../components/icons/youtube.svg'; +import siteConfig from '../content/site.json'; + +export function StickyBanner() { + return ( + + + + Subscribe to our YouTube channel for the video content. + We now have a YouTube Channel. + + + ); +} diff --git a/pages/_app.tsx b/pages/_app.tsx index a289c167e..855536376 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -5,6 +5,7 @@ import 'prism-themes/themes/prism-shades-of-purple.css'; import { roadmapTheme } from '../styles/theme'; import { firePageView } from '../lib/gtag'; import '../styles/carbon.css'; +import { StickyBanner } from '../components/sticky-banner'; function MyApp({ Component, pageProps }: AppProps) { useEffect(() => { @@ -13,6 +14,7 @@ function MyApp({ Component, pageProps }: AppProps) { return ( + );