diff --git a/docs/app/api/og/route.tsx b/docs/app/api/og/route.tsx index 99dbf8d5..0971aaf5 100644 --- a/docs/app/api/og/route.tsx +++ b/docs/app/api/og/route.tsx @@ -1,19 +1,13 @@ import { ImageResponse } from "@vercel/og"; import { z } from "zod"; -import { Plus } from "lucide-react"; export const runtime = "edge"; + const ogSchema = z.object({ heading: z.string(), mode: z.string(), type: z.string(), }); -// Use this example object to work with og image generator -// const ogData = { -// heading: "This is a test heading for the page", -// mode: "dark", -// type: "documentation", -// }; function GridPattern({ width = 40, height = 40, @@ -42,8 +36,8 @@ function GridPattern({ left: 0, height: "100%", width: "100%", - fill: "rgba(107, 114, 128, 0.3)", - stroke: "rgba(107, 114, 128, 0.3)", + fill: "rgba(0, 0, 0, 0.602)", + stroke: "rgba(13, 14, 17, 0.777)", }} xmlns="http://www.w3.org/2000/svg" > @@ -64,7 +58,7 @@ function GridPattern({ @@ -130,7 +124,7 @@ export async function GET(req: Request) { const trueHeading = heading.length > 140 ? `${heading.substring(0, 140)}...` : heading; - const paint = mode === "dark" ? "#fff" : "#000"; + const paint = mode === "dark" ? "#fff" : "#000000"; const fontSize = trueHeading.length > 100 ? "30px" : "60px"; return new ImageResponse( @@ -140,7 +134,7 @@ export async function GET(req: Request) { color: paint, backgroundColor: "transparent", border: "1px solid rgba(255, 255, 255, 0.1)", - boxShadow: "0 -20px 80px -20px rgba(134, 134, 240, 0.1) inset", + boxShadow: "0 -20px 80px -20px rgba(28, 12, 12, 0.1) inset", background: mode === "dark" ? "#1A0D0D" : "white", }} > @@ -170,7 +164,7 @@ export async function GET(req: Request) { > @@ -186,7 +180,7 @@ export async function GET(req: Request) { > - +
@@ -283,14 +277,14 @@ export async function GET(req: Request) {
Better Auth
@@ -337,7 +331,6 @@ export async function GET(req: Request) { ); } catch (err) { console.log({ err }); - return new Response("Failed to generate the og image", { status: 500 }); } } diff --git a/docs/components/icons.tsx b/docs/components/icons.tsx index e18e7785..c4627919 100644 --- a/docs/components/icons.tsx +++ b/docs/components/icons.tsx @@ -211,4 +211,52 @@ export const Icons = { /> ), + elysia: () => ( + + + + + + + + + + + + ), }; diff --git a/docs/components/sidebar-content.tsx b/docs/components/sidebar-content.tsx index 723509ed..b669264b 100644 --- a/docs/components/sidebar-content.tsx +++ b/docs/components/sidebar-content.tsx @@ -563,6 +563,11 @@ export const contents: Content[] = [ icon: Icons.node, href: "/docs/integrations/node", }, + { + title: "Elysia", + icon: Icons.elysia, + href: "/docs/integrations/elysia", + }, ], }, { @@ -588,33 +593,33 @@ export const contents: Content[] = [ title: "Authentication", group: true, href: "/docs/plugins/1st-party-plugins", - icon: LucideAArrowDown, + icon: () => , }, { title: "Two Factor", - icon: ScanFace, + icon: () => , href: "/docs/plugins/2fa", }, { title: "Username", - icon: UserSquare2, + icon: () => , href: "/docs/plugins/username", }, { title: "Anonymous", - icon: UserCircle, + icon: () => , href: "/docs/plugins/anonymous", }, { title: "Phone Number", - icon: Phone, + icon: () => , href: "/docs/plugins/phone-number", }, { title: "Magic Link", href: "/docs/plugins/magic-link", - icon: Mailbox, + icon: () => , }, { title: "Passkey", @@ -660,7 +665,7 @@ export const contents: Content[] = [ title: "Authorization", group: true, href: "/docs/plugins/1st-party-plugins", - icon: LucideAArrowDown, + icon: () => , }, { title: "Admin", @@ -673,17 +678,12 @@ export const contents: Content[] = [ viewBox="0 0 24 24" > - + @@ -691,19 +691,19 @@ export const contents: Content[] = [ }, { title: "Organization", - icon: Users2, + icon: () => , href: "/docs/plugins/organization", }, { title: "Utility", group: true, href: "/docs/plugins/1st-party-plugins", - icon: LucideAArrowDown, + icon: () => , }, { title: "Bearer", - icon: Key, + icon: () => , href: "/docs/plugins/bearer", }, ],