-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(#1001): implement contact us and explore AI Agents buttons #1006
Merged
asim-shrestha
merged 2 commits into
main
from
feat/1001_create_contact_button_and_explore_button_in_hero_section
Jul 10, 2023
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReactNode