diff --git a/apps/dashboard/src/app/[locale]/@dashboard/(closed)/closed/page.tsx b/apps/dashboard/src/app/[locale]/@dashboard/(closed)/closed/page.tsx index 994ebe1f9d..9d8d24713f 100644 --- a/apps/dashboard/src/app/[locale]/@dashboard/(closed)/closed/page.tsx +++ b/apps/dashboard/src/app/[locale]/@dashboard/(closed)/closed/page.tsx @@ -14,37 +14,37 @@ export default function Closed() {
-
-
+
+
-

+

We will soon open up for beta.{" "}

-

+

You can't login yet but keep a lookout in your email for when we open up for beta testing.

diff --git a/apps/dashboard/src/app/[locale]/@dashboard/(root)/vault/[[...folders]]/page.tsx b/apps/dashboard/src/app/[locale]/@dashboard/(root)/vault/[[...folders]]/page.tsx index b2eac9ca5f..e3416a36be 100644 --- a/apps/dashboard/src/app/[locale]/@dashboard/(root)/vault/[[...folders]]/page.tsx +++ b/apps/dashboard/src/app/[locale]/@dashboard/(root)/vault/[[...folders]]/page.tsx @@ -19,7 +19,7 @@ export default function Vault({ params }) {
- +
diff --git a/apps/dashboard/src/app/[locale]/@login/page.tsx b/apps/dashboard/src/app/[locale]/@login/page.tsx index 0729e7a376..1c58d1a33b 100644 --- a/apps/dashboard/src/app/[locale]/@login/page.tsx +++ b/apps/dashboard/src/app/[locale]/@login/page.tsx @@ -1,4 +1,6 @@ import { AppleSignIn } from "@/components/apple-sign-in"; +import { FigmaSignIn } from "@/components/figma-sign-in"; +import { GithubSignIn } from "@/components/github-sign-in"; import { GoogleSignIn } from "@/components/google-sign-in"; import { SlackSignIn } from "@/components/slack-sign-in"; import { Cookies } from "@/utils/constants"; @@ -21,6 +23,8 @@ export default async function Login() { <> + + ); @@ -31,6 +35,8 @@ export default async function Login() { <> + + ); break; @@ -41,9 +47,36 @@ export default async function Login() { <> + + ); break; + + case "github": + prefferedSignInOption = ; + moreSignInOptions = ( + <> + + + + + + ); + break; + + case "figma": + prefferedSignInOption = ; + moreSignInOptions = ( + <> + + + + + + ); + break; + default: break; } @@ -110,9 +143,12 @@ export default async function Login() {

- By clicking Continue with Google, you acknowledge that you have - read and understood, and agree to Midday's and{" "} - Privacy Policy. + By clicking continue, you acknowledge that you have read and + understood, and agree to Midday's and{" "} + + Privacy Policy + + .

diff --git a/apps/dashboard/src/components/figma-sign-in.tsx b/apps/dashboard/src/components/figma-sign-in.tsx new file mode 100644 index 0000000000..b263061045 --- /dev/null +++ b/apps/dashboard/src/components/figma-sign-in.tsx @@ -0,0 +1,28 @@ +"use client"; + +import { createClient } from "@midday/supabase/client"; +import { Button } from "@midday/ui/button"; +import { Icons } from "@midday/ui/icons"; + +export function FigmaSignIn() { + const supabase = createClient(); + + const handleSignIn = async () => { + await supabase.auth.signInWithOAuth({ + provider: "figma", + options: { + redirectTo: `${location.origin}/api/auth/callback?provider=figma`, + }, + }); + }; + + return ( + + ); +} diff --git a/apps/dashboard/src/components/github-sign-in.tsx b/apps/dashboard/src/components/github-sign-in.tsx new file mode 100644 index 0000000000..1d641c044b --- /dev/null +++ b/apps/dashboard/src/components/github-sign-in.tsx @@ -0,0 +1,28 @@ +"use client"; + +import { createClient } from "@midday/supabase/client"; +import { Button } from "@midday/ui/button"; +import { Icons } from "@midday/ui/icons"; + +export function GithubSignIn() { + const supabase = createClient(); + + const handleSignIn = async () => { + await supabase.auth.signInWithOAuth({ + provider: "github", + options: { + redirectTo: `${location.origin}/api/auth/callback?provider=github`, + }, + }); + }; + + return ( + + ); +} diff --git a/packages/ui/src/components/icons.tsx b/packages/ui/src/components/icons.tsx index 8b06729303..a113d0dc9b 100644 --- a/packages/ui/src/components/icons.tsx +++ b/packages/ui/src/components/icons.tsx @@ -82,16 +82,28 @@ export const Icons = { Transactions: MdOutlineListAlt, Invoice: MdOutlineDescription, Files: MdOutlineInventory2, - Apple: () => ( - + Apple: (props: any) => ( + ), - Google: () => ( - + Google: (props: any) => ( + ), + Github: (props: any) => ( + + + + + ), + Figma: (props: any) => ( + + + + ), FlightTakeoff: MdFlightTakeoff, Desk: MdDesk, FastFood: MdFastfood,