aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(auth)
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-05-25 18:41:26 -0500
committerDhravya <[email protected]>2024-05-25 18:41:26 -0500
commit075f45986fd4d198292226e64afb71b3515576b4 (patch)
tree5c728356cd0310f1c1c012fd6618c72a836c314b /apps/web/app/(auth)
parentadded social material (diff)
downloadsupermemory-075f45986fd4d198292226e64afb71b3515576b4.tar.xz
supermemory-075f45986fd4d198292226e64afb71b3515576b4.zip
refactored UI, with shared components and UI, better rules and million lint
Diffstat (limited to 'apps/web/app/(auth)')
-rw-r--r--apps/web/app/(auth)/auth-buttons.tsx15
-rw-r--r--apps/web/app/(auth)/signin/page.tsx8
2 files changed, 23 insertions, 0 deletions
diff --git a/apps/web/app/(auth)/auth-buttons.tsx b/apps/web/app/(auth)/auth-buttons.tsx
new file mode 100644
index 00000000..9da1f5a5
--- /dev/null
+++ b/apps/web/app/(auth)/auth-buttons.tsx
@@ -0,0 +1,15 @@
+"use client";
+
+import { Button } from "@repo/ui/src/button";
+import React from "react";
+import { signIn } from "../helpers/server/auth";
+
+function SignIn() {
+ return (
+ <Button className="mt-4" onClick={async () => await signIn("google")}>
+ Login with Google
+ </Button>
+ );
+}
+
+export default SignIn;
diff --git a/apps/web/app/(auth)/signin/page.tsx b/apps/web/app/(auth)/signin/page.tsx
new file mode 100644
index 00000000..44d2b4f4
--- /dev/null
+++ b/apps/web/app/(auth)/signin/page.tsx
@@ -0,0 +1,8 @@
+import { getThemeToggler } from "../../helpers/lib/get-theme-button";
+
+async function Signin() {
+ const SetThemeButton = getThemeToggler();
+ return <SetThemeButton />;
+}
+
+export default Signin;