From 97e804ecae6b7cb747dd7a27c2557bab377fb199 Mon Sep 17 00:00:00 2001 From: PopDaph Date: Fri, 3 Nov 2023 23:11:11 +0100 Subject: [PATCH] Handle the signup buttons --- front/components/Button.tsx | 101 +++++++++++++++++++++++++++++++++- front/pages/index.tsx | 104 +++++++++++------------------------- 2 files changed, 130 insertions(+), 75 deletions(-) diff --git a/front/components/Button.tsx b/front/components/Button.tsx index 0d3a73edfb1f..14175a40beda 100644 --- a/front/components/Button.tsx +++ b/front/components/Button.tsx @@ -1,4 +1,12 @@ -import { Button } from "@dust-tt/sparkle"; +import { + Button, + DropdownMenu, + GithubLogo, + GoogleLogo, + Icon, + LoginIcon, + RocketIcon, +} from "@dust-tt/sparkle"; import { classNames } from "@app/lib/utils"; @@ -41,3 +49,94 @@ export function SignInButton({ > ); } + +export function SignInDropDownButton({ + buttonVariant = "tertiary", + buttonLabel = "Sign in", + buttonIcon = LoginIcon, + buttonClassname = "", + shouldDisplayGithub, + onClickGithub, + onClickGoogle, +}: { + buttonVariant?: "primary" | "secondary" | "tertiary"; + buttonLabel?: string; + buttonIcon?: typeof Icon; + buttonClassname?: string; + shouldDisplayGithub: boolean; + onClickGithub: () => void; + onClickGoogle: () => void; +}) { + return ( + + +