edit
This commit is contained in:
23
src/components/Banner.jsx
Normal file
23
src/components/Banner.jsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { XMarkIcon } from '@heroicons/react/20/solid'
|
||||
|
||||
export default function Example() {
|
||||
return (
|
||||
<div className="flex items-center gap-x-6 bg-gradient px-6 py-2.5 sm:px-3.5 sm:before:flex-1">
|
||||
<p className="text-sm leading-6 text-white">
|
||||
<a href="#">
|
||||
<strong className="font-semibold">OurVerse FutureFest 2024</strong>
|
||||
<svg viewBox="0 0 2 2" aria-hidden="true" className="mx-2 inline h-0.5 w-0.5 fill-current">
|
||||
<circle r={1} cx={1} cy={1} />
|
||||
</svg>
|
||||
Join us at OurWorld Verse from Oct 25 – 27 to see what’s coming next <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</p>
|
||||
<div className="flex flex-1 justify-end">
|
||||
<button type="button" className="-m-3 p-3 focus-visible:outline-offset-[-4px]">
|
||||
<span className="sr-only">Dismiss</span>
|
||||
<XMarkIcon aria-hidden="true" className="h-5 w-5 text-white" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -3,7 +3,7 @@ import clsx from 'clsx'
|
||||
|
||||
export function Button({ className, ...props }) {
|
||||
className = clsx(
|
||||
'inline-flex justify-center rounded-2xl bg-blue-700 py-2 px-4 text-sm font-semibold text-white hover:bg-blue-500 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 active:text-white/70',
|
||||
'inline-flex justify-center rounded-2xl bg-gradient py-2 px-4 text-sm font-semibold text-white hover:bg-blue-500 focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 active:text-white/70',
|
||||
className,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user