diff --git a/frontend/src/layout/navigation-3000/Navigation.tsx b/frontend/src/layout/navigation-3000/Navigation.tsx index 16b4e9fade6483..bbbb4b32ff740d 100644 --- a/frontend/src/layout/navigation-3000/Navigation.tsx +++ b/frontend/src/layout/navigation-3000/Navigation.tsx @@ -14,7 +14,6 @@ import { ProjectNotice } from '../navigation/ProjectNotice' import { MinimalNavigation } from './components/MinimalNavigation' import { Navbar } from './components/Navbar' import { Sidebar } from './components/Sidebar' -import { TopBar } from './components/TopBar' import { navigation3000Logic } from './navigationLogic' import { SidePanel } from './sidepanel/SidePanel' import { themeLogic } from './themeLogic' @@ -51,8 +50,6 @@ export function Navigation({ {activeNavbarItem && }
- -
-} diff --git a/frontend/src/layout/navigation/TopBar/YearInHogButton.scss b/frontend/src/layout/navigation/TopBar/YearInHogButton.scss index 1c5feb51eeeccf..f61f0ed645ac42 100644 --- a/frontend/src/layout/navigation/TopBar/YearInHogButton.scss +++ b/frontend/src/layout/navigation/TopBar/YearInHogButton.scss @@ -2,3 +2,57 @@ background-color: var(--bg-3000); border-radius: var(--radius); } + +.CheekyHog { + position: absolute; + top: -0.2rem; + animation-timing-function: ease-out; + animation-delay: 0s; + animation-fill-mode: both; +} + +.CheekyHog--peek { + animation-name: CheekyHog__Peek; + animation-duration: 1s; + animation-iteration-count: 1; +} + +.CheekyHog--hide { + animation-name: CheekyHog__Hide; + animation-duration: 1s; + animation-iteration-count: 1; +} + +@keyframes CheekyHog__Peek { + 0% { + left: 0; + transform: rotate(0); + } + + 50% { + left: -0.5rem; + transform: rotate(-20deg); + } + + 100% { + left: -1.45rem; + transform: rotate(-45deg); + } +} + +@keyframes CheekyHog__Hide { + 0% { + left: -1.45rem; + transform: rotate(-45deg); + } + + 50% { + left: -0.5rem; + transform: rotate(-20deg); + } + + 100% { + left: 0; + transform: rotate(0); + } +}