From aab2f7a546dc4f0454aaf5e01dffbaa8f6d31947 Mon Sep 17 00:00:00 2001 From: Jaron Date: Sun, 23 Feb 2025 00:21:53 -0600 Subject: [PATCH] More tweaks --- website/src/app/globals.css | 31 +++++++++--------- website/src/app/layout.tsx | 32 +++++++++---------- website/src/app/page.module.css | 12 ++++++- website/src/app/page.tsx | 4 +-- website/src/components/CodeExample.module.css | 2 -- 5 files changed, 44 insertions(+), 37 deletions(-) diff --git a/website/src/app/globals.css b/website/src/app/globals.css index c776dba..d906592 100644 --- a/website/src/app/globals.css +++ b/website/src/app/globals.css @@ -1,32 +1,31 @@ - :root { - --background: #252525; - --foreground: #ededed; + --background: #252525; + --foreground: #ededed; } html, body { - max-width: 100vw; - overflow-x: hidden; - color-scheme: dark; + max-width: 100vw; + overflow-x: hidden; + color-scheme: dark; } body { - color: var(--foreground); - background: var(--background); - font-family: Arial, Helvetica, sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + color: var(--foreground); + background: var(--background); + font-family: Arial, Helvetica, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } * { - box-sizing: border-box; - padding: 0; - margin: 0; + box-sizing: border-box; + padding: 0; + margin: 0; } a { - color: inherit; - text-decoration: none; + color: inherit; + text-decoration: none; } \ No newline at end of file diff --git a/website/src/app/layout.tsx b/website/src/app/layout.tsx index 5651b45..95a887d 100644 --- a/website/src/app/layout.tsx +++ b/website/src/app/layout.tsx @@ -3,31 +3,31 @@ import { Space_Grotesk, Space_Mono } from "next/font/google"; import "./globals.css"; const spaceGrotesk = Space_Grotesk({ - variable: "--font-space-grotesk", - subsets: ["latin"] + variable: "--font-space-grotesk", + subsets: ["latin"] }); const spaceMono = Space_Mono({ - variable: "--font-space-mono", - subsets: ["latin"], - weight: ["400"] + variable: "--font-mono", + subsets: ["latin"], + weight: ["400"] }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "Create Next App", + description: "Generated by create next app", }; export default function RootLayout({ - children, + children, }: Readonly<{ - children: React.ReactNode; + children: React.ReactNode; }>) { - return ( - - - {children} - - - ); + return ( + + + {children} + + + ); } diff --git a/website/src/app/page.module.css b/website/src/app/page.module.css index a300ada..935f731 100644 --- a/website/src/app/page.module.css +++ b/website/src/app/page.module.css @@ -227,7 +227,7 @@ .hydrationCode { flex: 2; width: 100%; - max-width: 800px; + max-width: 780px; } .hydrationText { @@ -282,3 +282,13 @@ padding: 1rem; } } + +.hydrationText p code { + font-family: var(--font-mono); + font-size: 0.85em; + background-color: var(--gray-alpha-100); + border-radius: 0.2em; + padding: 0.1em 0.2em; + color: var(--foreground); + border: 1px solid var(--gray-alpha-200); +} \ No newline at end of file diff --git a/website/src/app/page.tsx b/website/src/app/page.tsx index 0421f48..731d064 100644 --- a/website/src/app/page.tsx +++ b/website/src/app/page.tsx @@ -54,13 +54,13 @@ export default function Home() {
- +

Smart Hydration

Unicord's hydration system automatically manages Discord object lifecycles. - The context.hydrate method intelligently fetches and caches Discord objects + The context.hydrate method intelligently fetches and caches Discord objects like messages, users, and guilds, ensuring your bot stays efficient while keeping your code clean and predictable.

diff --git a/website/src/components/CodeExample.module.css b/website/src/components/CodeExample.module.css index 342f95e..d74a49b 100644 --- a/website/src/components/CodeExample.module.css +++ b/website/src/components/CodeExample.module.css @@ -10,6 +10,4 @@ border-radius: 8px; overflow: hidden; border: 1px solid #2d2d2d; - /* Prevent scroll capture */ - /* pointer-events: none; */ }