Skip to content

Commit ffbe579

Browse files
authored
feat(website): backport next website into main (#1103)
1 parent 3f53046 commit ffbe579

File tree

29 files changed

+1589
-1280
lines changed

29 files changed

+1589
-1280
lines changed

.pkgs/configs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"eslint-plugin-perfectionist": "^4.12.3",
2828
"eslint-plugin-regexp": "^2.7.0",
2929
"eslint-plugin-unicorn": "^59.0.0",
30-
"typescript-eslint": "^8.31.0"
30+
"typescript-eslint": "^8.31.1"
3131
}
3232
}

.pkgs/eslint-plugin-local/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"@eslint-react/var": "workspace:*",
2929
"@eslint/js": "^9.25.1",
3030
"@stylistic/eslint-plugin": "^4.2.0",
31-
"@typescript-eslint/scope-manager": "^8.31.0",
32-
"@typescript-eslint/type-utils": "^8.31.0",
33-
"@typescript-eslint/types": "^8.31.0",
34-
"@typescript-eslint/utils": "^8.31.0",
31+
"@typescript-eslint/scope-manager": "^8.31.1",
32+
"@typescript-eslint/type-utils": "^8.31.1",
33+
"@typescript-eslint/types": "^8.31.1",
34+
"@typescript-eslint/utils": "^8.31.1",
3535
"eslint-plugin-de-morgan": "^1.2.1",
3636
"eslint-plugin-jsdoc": "^50.6.11",
3737
"eslint-plugin-perfectionist": "^4.12.3",
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@local/configs": "workspace:*",
4545
"@types/react": "^19.1.2",
46-
"@types/react-dom": "^19.1.2",
46+
"@types/react-dom": "^19.1.3",
4747
"tsup": "^8.4.0"
4848
},
4949
"peerDependencies": {

apps/website/app/(home)/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { EffectLayer } from "#/components/EffectLayer";
12
import { ESLintReact } from "#/components/ESLintReact";
23
import { Card, Cards } from "fumadocs-ui/components/card";
34
import { CircleDotDashed, Gauge, Sliders, Zap } from "lucide-react";
@@ -17,27 +18,26 @@ const features = [
1718
export default function HomePage() {
1819
return (
1920
<main className="w-full min-w-0 max-w-6xl px-8 pt-4 pb-12 md:px-12 mx-auto">
21+
<EffectLayer />
2022
<ESLintReact />
2123
<article className="prose max-w-none">
22-
<p className="text-center">
23-
A series of composable ESLint rules for React and friends.
24-
</p>
25-
<h2>Features</h2>
24+
<h2 className="isolate">Features</h2>
2625
<Cards className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4">
2726
{features.map(([title, description, Icon]) => (
2827
<Card
28+
className="mix-blend-luminosity shadow-none"
2929
description={description}
3030
icon={<Icon />}
3131
key={title}
3232
title={title}
3333
/>
3434
))}
3535
</Cards>
36-
<h2>Roadmap</h2>
36+
<h2 className="isolate">Roadmap</h2>
3737
<p>
3838
Check out the <Link href="/roadmap">roadmap</Link> to see what's planned for the future.
3939
</p>
40-
<h2>Contributing</h2>
40+
<h2 className="isolate">Contributing</h2>
4141
<p>
4242
Want to contribute? Check out the{" "}
4343
<Link href="https://github.com/Rel1cx/eslint-react/blob/main/.github/CONTRIBUTING.md">

apps/website/app/layout.config.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ export const baseOptions: BaseLayoutProps = {
2727
<span>ESLint React</span>
2828
</div>
2929
),
30+
transparentMode: "top",
31+
},
32+
themeSwitch: {
33+
enabled: false,
3034
},
3135
};

apps/website/app/layout.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ const ibm_plex_mono = IBM_Plex_Mono({
1515
weight: ["400", "500", "700"],
1616
});
1717

18+
const themeOptions = {
19+
defaultTheme: "dark",
20+
enabled: true,
21+
enableSystem: false,
22+
forcedTheme: "dark",
23+
};
24+
1825
export const metadata = {
1926
description: "A series of composable ESLint rules for React and friends.",
2027
title: {
@@ -45,7 +52,9 @@ export default function Layout({ children }: { children: ReactNode }) {
4552
type="image/png"
4653
/>
4754
<body className="flex flex-col min-h-screen">
48-
<RootProvider>{children}</RootProvider>
55+
<RootProvider theme={themeOptions}>
56+
{children}
57+
</RootProvider>
4958
</body>
5059
</html>
5160
</ViewTransitions>

apps/website/app/overrides.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
filter: brightness(0.5);
1414
}
1515

16+
#nd-home-layout {
17+
position: relative;
18+
}
19+
1620
#nd-page .bsky-post [class*="embed-module_external"] {
1721
display: none;
1822
}

apps/website/components/ESLintReact.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export function ESLintReact() {
88
<div className="flex flex-col items-center gap-4 m-0 mx-auto p-8 w-fit">
99
<Image alt="logo" height="150" quality={100} src={logo as StaticImageData} width="150" />
1010
<span className="text-2xl">ESLint React</span>
11+
<p className="text-center text-gray-400">
12+
A series of composable ESLint rules for React and friends.
13+
</p>
1114
</div>
1215
);
1316
}

0 commit comments

Comments
 (0)