aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/174bg.net/src
diff options
context:
space:
mode:
Diffstat (limited to 'communities/red-right-hand/174bg.net/src')
-rw-r--r--communities/red-right-hand/174bg.net/src/app/layout.js12
-rw-r--r--communities/red-right-hand/174bg.net/src/components/AuthHeader/index.js26
-rw-r--r--communities/red-right-hand/174bg.net/src/proxy.js12
3 files changed, 2 insertions, 48 deletions
diff --git a/communities/red-right-hand/174bg.net/src/app/layout.js b/communities/red-right-hand/174bg.net/src/app/layout.js
index 4535f5e..ce97609 100644
--- a/communities/red-right-hand/174bg.net/src/app/layout.js
+++ b/communities/red-right-hand/174bg.net/src/app/layout.js
@@ -1,9 +1,6 @@
-import { ClerkProvider } from "@clerk/nextjs";
import { Inter, Fira_Code } from "next/font/google";
-import { Suspense } from "react";
import "./globals.css";
import TerminalOverlay from "@/components/TerminalOverlay";
-import AuthHeader from "@/components/AuthHeader";
const inter = Inter({
variable: "--font-inter",
@@ -30,13 +27,8 @@ export default function RootLayout({ children }) {
className={`${inter.variable} ${firaCode.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col">
- <ClerkProvider>
- <Suspense>
- <AuthHeader />
- </Suspense>
- <TerminalOverlay />
- {children}
- </ClerkProvider>
+ <TerminalOverlay />
+ {children}
</body>
</html>
);
diff --git a/communities/red-right-hand/174bg.net/src/components/AuthHeader/index.js b/communities/red-right-hand/174bg.net/src/components/AuthHeader/index.js
deleted file mode 100644
index 1661421..0000000
--- a/communities/red-right-hand/174bg.net/src/components/AuthHeader/index.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use client";
-
-import { Show, SignInButton, SignUpButton, UserButton } from "@clerk/nextjs";
-import { useSearchParams } from "next/navigation";
-
-export default function AuthHeader() {
- const searchParams = useSearchParams();
-
- if (!searchParams.has("auth")) return null;
-
- return (
- <header className="flex justify-end items-center p-4 gap-4 h-16">
- <Show when="signed-out">
- <SignInButton />
- <SignUpButton>
- <button className="bg-purple-700 text-white rounded-full font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 cursor-pointer">
- Sign Up
- </button>
- </SignUpButton>
- </Show>
- <Show when="signed-in">
- <UserButton />
- </Show>
- </header>
- );
-}
diff --git a/communities/red-right-hand/174bg.net/src/proxy.js b/communities/red-right-hand/174bg.net/src/proxy.js
deleted file mode 100644
index 21b699f..0000000
--- a/communities/red-right-hand/174bg.net/src/proxy.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import { clerkMiddleware } from "@clerk/nextjs/server";
-
-export default clerkMiddleware();
-
-export const config = {
- matcher: [
- // Skip Next.js internals and all static files, unless found in search params
- "/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
- // Always run for API routes
- "/(api|trpc)(.*)",
- ],
-};