3
3
import { AnimatePresence , motion } from "framer-motion" ;
4
4
import Image from "next/image" ;
5
5
import Link from "next/link" ;
6
- import { useState , useCallback , useEffect , useRef } from "react" ;
6
+ import { useCallback , useEffect , useRef , useState } from "react" ;
7
7
8
8
import { Button } from "@/components/ui/button" ;
9
9
import logo from "@/public/logo.svg" ;
@@ -14,6 +14,7 @@ import NewWindow from "../icons/new-window";
14
14
15
15
import ThemeSwitchButton from "./ThemeSwitchButton" ;
16
16
import { ToolsDropdown } from "./ToolsDropdown" ;
17
+ import AnnouncementBanner from "@/components/hero/AnnouncementBanner" ;
17
18
18
19
interface NavLink {
19
20
href : string ;
@@ -92,20 +93,7 @@ export default function Navbar() {
92
93
role = "navigation"
93
94
aria-label = "Main navigation"
94
95
>
95
- < div className = "z-[60] flex w-full items-center justify-center gap-2 border-b border-gray-200 bg-lightGray-200 px-4 py-2 text-center text-sm font-medium text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-white" >
96
- < span className = "mr-2 inline-block rounded bg-white/60 px-2 py-0.5 text-xs font-bold uppercase tracking-wide text-blue-700 dark:bg-white/10 dark:text-blue-300" >
97
- New
98
- </ span >
99
- < span className = "font-semibold" >
100
- We launched the new Notification generator, fully interactive and customizable!
101
- </ span >
102
- < a
103
- href = "/notification-generator"
104
- className = "ml-2 font-semibold text-blue-700 underline underline-offset-2 transition-colors hover:text-indigo-700 dark:text-blue-300 dark:hover:text-indigo-300"
105
- >
106
- Check it out →
107
- </ a >
108
- </ div >
96
+ < AnnouncementBanner />
109
97
110
98
< div className = "mx-auto flex max-w-screen-xl flex-wrap items-center justify-between px-4 py-4 md:py-6" >
111
99
< Link href = "/" className = "flex items-center" aria-label = "Go to homepage" >
0 commit comments