-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Implement contact us and explore AI Agents buttons (#1006)
- Loading branch information
Showing
6 changed files
with
84 additions
and
20 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 +1,24 @@ | ||
import clsx from "clsx"; | ||
import Button from "../ui/button"; | ||
import React from "react"; | ||
|
||
type PrimaryButtonProps = { | ||
children: string; | ||
children: JSX.Element; | ||
icon?: React.ReactNode; | ||
onClick?: () => void; | ||
outline?: boolean; | ||
}; | ||
export default function PrimaryButton({ children, onClick, outline }: PrimaryButtonProps) { | ||
export default function PrimaryButton({ children, onClick, icon }: PrimaryButtonProps) { | ||
return ( | ||
<button | ||
type="button" | ||
<Button | ||
onClick={onClick} | ||
className={clsx( | ||
"text-md rounded-lg px-4 py-2.5 shadow-sm ", | ||
"transition-colors duration-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600", | ||
outline | ||
? "text-[#BF7DFF]/90 ring-1 ring-[#BF7DFF] hover:bg-[#BF7DFF]/20" | ||
: "bg-[#BF7DFF] text-white hover:border-blue-200 hover:bg-[#9124ff] hover:text-zinc-200 " | ||
"rounded-full border-[1px] border-black shadow-sm", | ||
"transition duration-200 ease-in-out hover:hover:bg-white/90 focus-visible:bg-white/90 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-white/30", | ||
"bg-white text-black" | ||
)} | ||
onClick={onClick} | ||
> | ||
{icon} | ||
{children} | ||
</button> | ||
</Button> | ||
); | ||
} |
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,24 @@ | ||
import clsx from "clsx"; | ||
import Button from "../ui/button"; | ||
import React from "react"; | ||
|
||
type TextButtonProps = { | ||
children: JSX.Element; | ||
icon?: React.ReactNode; | ||
onClick?: () => void; | ||
}; | ||
export default function TextButton({ children, onClick, icon }: TextButtonProps) { | ||
return ( | ||
<Button | ||
onClick={onClick} | ||
className={clsx( | ||
"rounded-full", | ||
"transition duration-200 ease-in-out hover:bg-neutral-900 hover:text-neutral-100 focus-visible:bg-neutral-900 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-neutral-500", | ||
"bg-transparent text-white/60" | ||
)} | ||
> | ||
{icon} | ||
{children} | ||
</Button> | ||
); | ||
} |
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