mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
More tweaks
This commit is contained in:
+15
-16
@@ -1,32 +1,31 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: #252525;
|
--background: #252525;
|
||||||
--foreground: #ededed;
|
--foreground: #ededed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
+16
-16
@@ -3,31 +3,31 @@ import { Space_Grotesk, Space_Mono } from "next/font/google";
|
|||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
const spaceGrotesk = Space_Grotesk({
|
const spaceGrotesk = Space_Grotesk({
|
||||||
variable: "--font-space-grotesk",
|
variable: "--font-space-grotesk",
|
||||||
subsets: ["latin"]
|
subsets: ["latin"]
|
||||||
});
|
});
|
||||||
|
|
||||||
const spaceMono = Space_Mono({
|
const spaceMono = Space_Mono({
|
||||||
variable: "--font-space-mono",
|
variable: "--font-mono",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
weight: ["400"]
|
weight: ["400"]
|
||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Create Next App",
|
title: "Create Next App",
|
||||||
description: "Generated by create next app",
|
description: "Generated by create next app",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
}: Readonly<{
|
}: Readonly<{
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className={`${spaceGrotesk.variable} ${spaceMono.variable}`}>
|
<body className={`${spaceGrotesk.variable} ${spaceMono.variable}`}>
|
||||||
{children}
|
{children}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@
|
|||||||
.hydrationCode {
|
.hydrationCode {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 780px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hydrationText {
|
.hydrationText {
|
||||||
@@ -282,3 +282,13 @@
|
|||||||
padding: 1rem;
|
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);
|
||||||
|
}
|
||||||
@@ -54,13 +54,13 @@ export default function Home() {
|
|||||||
<div className={styles.hydrationSection}>
|
<div className={styles.hydrationSection}>
|
||||||
<div className={styles.hydrationContainer}>
|
<div className={styles.hydrationContainer}>
|
||||||
<div className={styles.hydrationCode}>
|
<div className={styles.hydrationCode}>
|
||||||
<CodeExample code={hydrationExample} height={260} noScroll={true} />
|
<CodeExample code={hydrationExample} height={245} noScroll={true} />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.hydrationText}>
|
<div className={styles.hydrationText}>
|
||||||
<h2>Smart Hydration</h2>
|
<h2>Smart Hydration</h2>
|
||||||
<p>
|
<p>
|
||||||
Unicord's hydration system automatically manages Discord object lifecycles.
|
Unicord's hydration system automatically manages Discord object lifecycles.
|
||||||
The context.hydrate method intelligently fetches and caches Discord objects
|
The <code>context.hydrate</code> method intelligently fetches and caches Discord objects
|
||||||
like messages, users, and guilds, ensuring your bot stays efficient while
|
like messages, users, and guilds, ensuring your bot stays efficient while
|
||||||
keeping your code clean and predictable.
|
keeping your code clean and predictable.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -10,6 +10,4 @@
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border: 1px solid #2d2d2d;
|
border: 1px solid #2d2d2d;
|
||||||
/* Prevent scroll capture */
|
|
||||||
/* pointer-events: none; */
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user