Skip to content

Commit 8632d98

Browse files
committed
Add Black Friday banner
1 parent 688bc34 commit 8632d98

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

src/components/Header.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,45 @@ function Featured() {
4444
)
4545
}
4646

47+
function BlackFriday() {
48+
return (
49+
<Link
50+
href="https://tailwindui.com/all-access"
51+
className="ml-3 text-xs leading-5 font-medium text-white dark:text-sky-400 bg-slate-900 rounded-full py-1 px-3 hidden xl:flex items-center hover:bg-slate-700"
52+
>
53+
<strong className="font-semibold">Black Friday Deal</strong>
54+
<svg
55+
width="2"
56+
height="2"
57+
fill="currentColor"
58+
aria-hidden="true"
59+
className="ml-2 text-slate-400 dark:text-sky-400/70"
60+
>
61+
<circle cx="1" cy="1" r="1" />
62+
</svg>
63+
<span className="ml-2">
64+
Get Tailwind UI + Refactoring UI{' '}
65+
<span className="hidden min-[1320px]:inline">together</span> for over 30% off
66+
</span>
67+
<svg
68+
width="3"
69+
height="6"
70+
className="ml-3 overflow-visible text-slate-300 dark:text-sky-400"
71+
aria-hidden="true"
72+
>
73+
<path
74+
d="M0 0L3 3L0 6"
75+
fill="none"
76+
stroke="currentColor"
77+
strokeWidth="1.5"
78+
strokeLinecap="round"
79+
strokeLinejoin="round"
80+
/>
81+
</svg>
82+
</Link>
83+
)
84+
}
85+
4786
export function NavPopover({ display = 'md:hidden', className, ...props }) {
4887
let [isOpen, setIsOpen] = useState(false)
4988

@@ -219,7 +258,7 @@ export function Header({ hasNav = false, navIsOpen, onNavToggle, title, section
219258
<Logo className="w-auto h-5" />
220259
</Link>
221260
<VersionSwitcher />
222-
<Featured />
261+
<BlackFriday />
223262
<div className="relative hidden lg:flex items-center ml-auto">
224263
<nav className="text-sm leading-6 font-semibold text-slate-700 dark:text-slate-200">
225264
<ul className="flex space-x-8">

0 commit comments

Comments
 (0)