Skip to content

Commit 037f62c

Browse files
committed
Refactor hook demos and details structure
Removed old HookDemo and hook-details components, and added individual hook example components under src/components/hook-examples. Updated useAsync and useFetch hooks for improved API and reliability. Removed useAsyncRetry and its exports. Added react-syntax-highlighter and related types to dependencies for code highlighting support. Updated layout and global styles for dark mode and UI improvements.
1 parent 5f83f8e commit 037f62c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2338
-1188
lines changed

app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@
44

55
@theme {
66
--color-brandColor: #3B03A9;
7+
--color-darkBg: #00001A;
8+
--color-darkText: #f4f4f4;
9+
}
10+
11+
* {
12+
scroll-behavior: smooth;
13+
}
14+
15+
button {
16+
cursor: pointer;
717
}

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function RootLayout({
1919
return (
2020
<html lang="en">
2121
<body className={inter.className}>
22-
<div className={spaceGrotesk.className}>
22+
<div className={`${spaceGrotesk.className} dark:bg-darkBg`}>
2323
{children}
2424
</div>
2525
</body>

0 commit comments

Comments
 (0)