-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add Call to Action button component and update related files (#67)
* ✨ Add Call to Action button component and update related files * ✨ Rename button component from 'Buttont' to 'CallToAction' for clarity * ✨ Rename GithubStars component file for consistency and update import paths * ✨ Update import path for GithubStarsButton component for consistency
- Loading branch information
1 parent
9f3eacb
commit a5a9589
Showing
16 changed files
with
296 additions
and
205 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
19 changes: 19 additions & 0 deletions
19
packages/ui/cuicui/common-ui/buttons/call-to-action-button/call-to-action-button.variant.tsx
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,19 @@ | ||
import { ArrowRightIcon } from "lucide-react"; | ||
|
||
export default function CallToAction() { | ||
return ( | ||
<button | ||
type="button" | ||
className="group relative flex flex-row items-center p-1 pr-3 text-sm gap-2 rounded-full border border-neutral-400/15 hover:border-neutral-400/30 shadow hover:shadow-sm overflow-hidden focus-visible:outline-none focus-visible:ring-neutral-600 focus-visible:ring-2 focus-visible:rounded-full transition duration-100 bg-neutral-400/5 hover:bg-neutral-400/10" | ||
> | ||
<div className="inline-flex items-center bg-brand dark:text-violet-300 text-violet-600 border border-violet-400/20 px-3 rounded-full text-sm py-1 bg-violet-400/20"> | ||
New version | ||
</div> | ||
<span className="dark:text-neutral-400 text-neutral-500"> | ||
Check out the new features | ||
</span> | ||
<ArrowRightIcon className="dark:text-neutral-400 text-neutral-500 size-5 group-hover:translate-x-1 transition-transform duration-100" /> | ||
<div className="absolute inset-0 -z-10 bg-gradient-to-br opacity-70 group-hover:opacity-100 transition-opacity overflow-hidden rounded-full from-violet-100 to-violet-300 backdrop-blur-md" /> | ||
</button> | ||
); | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/ui/cuicui/common-ui/buttons/call-to-action-button/component.ts
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,12 @@ | ||
import type { ComponentMetaType } from "@/lib/types/component"; | ||
|
||
export const Component: ComponentMetaType = { | ||
name: "Call to action button", | ||
description: | ||
"A button that calls for action with a badge that can display a message.", | ||
inspiration: "Supabase", | ||
inspirationLink: "https://supabase.com/", | ||
sizePreview: "xs", | ||
}; | ||
|
||
export default Component; |
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
2 changes: 1 addition & 1 deletion
2
packages/ui/cuicui/common-ui/buttons/github-stars/github-stars.variant.tsx
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
2 changes: 1 addition & 1 deletion
2
packages/ui/cuicui/common-ui/buttons/magnetic-button/magnetic-background-button.variant.tsx
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
2 changes: 1 addition & 1 deletion
2
packages/ui/cuicui/common-ui/buttons/magnetic-button/magnetic-button.variant.tsx
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
File renamed without changes.
8 changes: 6 additions & 2 deletions
8
...i/common-ui/buttons/shiny-rotating-border-button/shiny-rotating-border-button.variant.tsx
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { ShinyRotatingBorderButton } from "@/cuicui/common-ui/buttons/shiny-rotating-border-button/component.shiny-rotating-border-button"; | ||
import { ShinyRotatingBorderButton } from "@/cuicui/common-ui/buttons/shiny-rotating-border-button/shiny-rotating-border-button"; | ||
|
||
export const PreviewShinyRotatingBorderButton = () => { | ||
return <ShinyRotatingBorderButton>Click</ShinyRotatingBorderButton>; | ||
return ( | ||
<ShinyRotatingBorderButton> | ||
✨ This button is shiny | ||
</ShinyRotatingBorderButton> | ||
); | ||
}; | ||
|
||
export default PreviewShinyRotatingBorderButton; |
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
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
Oops, something went wrong.