Skip to content

feat(website): backport next website into main #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pkgs/configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"eslint-plugin-perfectionist": "^4.12.3",
"eslint-plugin-regexp": "^2.7.0",
"eslint-plugin-unicorn": "^59.0.0",
"typescript-eslint": "^8.31.0"
"typescript-eslint": "^8.31.1"
}
}
10 changes: 5 additions & 5 deletions .pkgs/eslint-plugin-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"@eslint-react/var": "workspace:*",
"@eslint/js": "^9.25.1",
"@stylistic/eslint-plugin": "^4.2.0",
"@typescript-eslint/scope-manager": "^8.31.0",
"@typescript-eslint/type-utils": "^8.31.0",
"@typescript-eslint/types": "^8.31.0",
"@typescript-eslint/utils": "^8.31.0",
"@typescript-eslint/scope-manager": "^8.31.1",
"@typescript-eslint/type-utils": "^8.31.1",
"@typescript-eslint/types": "^8.31.1",
"@typescript-eslint/utils": "^8.31.1",
"eslint-plugin-de-morgan": "^1.2.1",
"eslint-plugin-jsdoc": "^50.6.11",
"eslint-plugin-perfectionist": "^4.12.3",
Expand All @@ -43,7 +43,7 @@
"devDependencies": {
"@local/configs": "workspace:*",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@types/react-dom": "^19.1.3",
"tsup": "^8.4.0"
},
"peerDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions apps/website/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EffectLayer } from "#/components/EffectLayer";
import { ESLintReact } from "#/components/ESLintReact";
import { Card, Cards } from "fumadocs-ui/components/card";
import { CircleDotDashed, Gauge, Sliders, Zap } from "lucide-react";
Expand All @@ -17,27 +18,26 @@ const features = [
export default function HomePage() {
return (
<main className="w-full min-w-0 max-w-6xl px-8 pt-4 pb-12 md:px-12 mx-auto">
<EffectLayer />
<ESLintReact />
<article className="prose max-w-none">
<p className="text-center">
A series of composable ESLint rules for React and friends.
</p>
<h2>Features</h2>
<h2 className="isolate">Features</h2>
<Cards className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4">
{features.map(([title, description, Icon]) => (
<Card
className="mix-blend-luminosity shadow-none"
description={description}
icon={<Icon />}
key={title}
title={title}
/>
))}
</Cards>
<h2>Roadmap</h2>
<h2 className="isolate">Roadmap</h2>
<p>
Check out the <Link href="/roadmap">roadmap</Link> to see what's planned for the future.
</p>
<h2>Contributing</h2>
<h2 className="isolate">Contributing</h2>
<p>
Want to contribute? Check out the{" "}
<Link href="https://github.com/Rel1cx/eslint-react/blob/main/.github/CONTRIBUTING.md">
Expand Down
4 changes: 4 additions & 0 deletions apps/website/app/layout.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ export const baseOptions: BaseLayoutProps = {
<span>ESLint React</span>
</div>
),
transparentMode: "top",
},
themeSwitch: {
enabled: false,
},
};
11 changes: 10 additions & 1 deletion apps/website/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ const ibm_plex_mono = IBM_Plex_Mono({
weight: ["400", "500", "700"],
});

const themeOptions = {
defaultTheme: "dark",
enabled: true,
enableSystem: false,
forcedTheme: "dark",
};

export const metadata = {
description: "A series of composable ESLint rules for React and friends.",
title: {
Expand Down Expand Up @@ -45,7 +52,9 @@ export default function Layout({ children }: { children: ReactNode }) {
type="image/png"
/>
<body className="flex flex-col min-h-screen">
<RootProvider>{children}</RootProvider>
<RootProvider theme={themeOptions}>
{children}
</RootProvider>
</body>
</html>
</ViewTransitions>
Expand Down
4 changes: 4 additions & 0 deletions apps/website/app/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
filter: brightness(0.5);
}

#nd-home-layout {
position: relative;
}

#nd-page .bsky-post [class*="embed-module_external"] {
display: none;
}
3 changes: 3 additions & 0 deletions apps/website/components/ESLintReact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export function ESLintReact() {
<div className="flex flex-col items-center gap-4 m-0 mx-auto p-8 w-fit">
<Image alt="logo" height="150" quality={100} src={logo as StaticImageData} width="150" />
<span className="text-2xl">ESLint React</span>
<p className="text-center text-gray-400">
A series of composable ESLint rules for React and friends.
</p>
</div>
);
}
Loading