-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: changing the position of callout
- Loading branch information
Showing
4 changed files
with
50 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
"use client"; | ||
|
||
import {usePostHog} from "posthog-js/react"; | ||
|
||
export const NextUIProCallout = () => { | ||
const posthog = usePostHog(); | ||
|
||
const handleClick = () => { | ||
posthog.capture("NextUI Pro Banner", { | ||
action: "click", | ||
category: "nextui-callout", | ||
}); | ||
}; | ||
|
||
return ( | ||
<div className="fixed top-[calc(100vh-320px)] border border-default/60 hover:shadow-inner hover:border-default/80 rounded-md py-6 px-2 m-2 cursor-pointer"> | ||
<a | ||
className="flex flex-col items-center" | ||
href="https://nextui.pro/components?utm_source=nextui.org&utm_medium=callout" | ||
rel="noopener noreferrer" | ||
onClick={handleClick} | ||
> | ||
<div> | ||
<p className="leading-none tracking-tight text-center text-xl font-semibold"> | ||
Ship | ||
<span className="bg-clip-text text-transparent bg-gradient-to-b from-[#5EA2EF] to-[#0072F5]"> | ||
faster | ||
</span> | ||
<br /> | ||
with beautiful | ||
<br /> | ||
components | ||
</p> | ||
<p className="text-center text-xs mt-2.5 px-6 font-medium text-default-500 leading-tight"> | ||
Discover 210+ stunning, responsive components crafted by the NextUI team. | ||
</p> | ||
</div> | ||
<div className="mt-2 flex group min-w-[120px] items-center font-semibold text-foreground shadow-sm gap-1.5 relative overflow-hidden rounded-full p-[1px]"> | ||
<span className="absolute inset-[-1000%] bg-[conic-gradient(from_90deg_at_50%_50%,#F54180_0%,#338EF7_50%,#F54180_100%)]" /> | ||
<div className="inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-background transition-background px-4 py-2 text-xs font-medium text-foreground backdrop-blur-3xl"> | ||
Explore Components | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters