From 0b21611e04ac8bba2212827cf8833ab847930488 Mon Sep 17 00:00:00 2001 From: Nick Grato Date: Wed, 28 Feb 2024 15:12:17 -0800 Subject: [PATCH] adding banner --- .../navigation/MainNav/MainNav.module.scss | 36 +++++++++++++++++++ .../components/navigation/MainNav/MainNav.tsx | 27 +++++++++++++- client/styles/ui/page.scss | 2 +- .../navigation/MainNav/MainNav.module.scss | 2 ++ .../components/navigation/MainNav/MainNav.tsx | 36 +++++++++++-------- marketing/styles/globals.scss | 2 +- 6 files changed, 88 insertions(+), 17 deletions(-) diff --git a/client/components/navigation/MainNav/MainNav.module.scss b/client/components/navigation/MainNav/MainNav.module.scss index 3fdb5236..9f19915b 100644 --- a/client/components/navigation/MainNav/MainNav.module.scss +++ b/client/components/navigation/MainNav/MainNav.module.scss @@ -98,3 +98,39 @@ button.exit_button { line-height: 20px; } } + +.marquee { + &_container { + display: flex; + justify-content: center; + align-items: center; + padding: 15px; + @include mobile-down { + padding: 20px; + } + } + + & section { + @include mobile-down { + display: inline-block; + padding-left: 100%; + animation: marquee 20s linear infinite; + } + } + + @include mobile-down { + white-space: nowrap; + overflow: hidden; + position: absolute; + width: 100vw; + } +} + +@keyframes marquee { + 0% { + transform: translate(0, 0); + } + 100% { + transform: translate(-100%, 0); + } +} diff --git a/client/components/navigation/MainNav/MainNav.tsx b/client/components/navigation/MainNav/MainNav.tsx index 4787408b..cdf48e2c 100644 --- a/client/components/navigation/MainNav/MainNav.tsx +++ b/client/components/navigation/MainNav/MainNav.tsx @@ -104,7 +104,32 @@ const MainNav = ({ */ return (