MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / SubmitPage

Function SubmitPage

app/submit/page.tsx:648–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

646}
647
648export default function SubmitPage() {
649 return (
650 <div className="min-h-screen bg-[var(--color-bg)]">
651 <Header />
652
653 {/* Hero */}
654 <section className="border-b border-[var(--color-border-weak)] px-[var(--padding)] py-[var(--vertical-padding)]">
655 <div className="mx-auto max-w-[67.5rem]">
656 <h1 className="mb-2 text-2xl font-semibold text-[var(--color-text-strong)]">
657 Submit an Extension
658 </h1>
659 <p className="text-[var(--color-text)]">
660 Share your MCP servers, plugins, hooks, themes, and tools with the OpenCode community.
661 </p>
662 </div>
663 </section>
664
665 {/* Content */}
666 <main className="px-[var(--padding)] py-[var(--vertical-padding)]">
667 <div className="mx-auto max-w-[67.5rem]">
668 <AuthLoading>
669 <div className="text-[var(--color-text-weak)]">Loading...</div>
670 </AuthLoading>
671
672 <Authenticated>
673 <SubmitForm />
674 </Authenticated>
675
676 <Unauthenticated>
677 <div className="flex flex-col gap-4">
678 <p className="text-[var(--color-text)]">
679 You need to sign in to submit an extension.
680 </p>
681 <Link
682 href="/sign-in"
683 className="inline-flex w-fit items-center justify-center rounded bg-[var(--color-bg-strong)] px-4 py-2 text-sm font-medium text-[var(--color-text-inverted)] transition-colors hover:bg-[var(--color-bg-strong-hover)]"
684 >
685 Sign In
686 </Link>
687 </div>
688 </Unauthenticated>
689 </div>
690 </main>
691 </div>
692 )
693}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected