Skip to content

Commit

Permalink
Add mouse trails
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 26, 2024
1 parent 3c0ba4a commit e20a6ef
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/pages-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"react-webgl-trails": "^0.0.2",
"typescript": "^5.5.2"
}
}
8 changes: 4 additions & 4 deletions examples/pages-router/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import * as React from "react";
import { AppProps } from "next/app";
import { ColorSchemeType, ThemeSwitcher } from "nextjs-themes";
import { CardProps, Layout } from "@repo/shared/dist/server";
import "../styles/global.css";
import { Inter } from "next/font/google";
import { Header } from "@repo/shared";
import Link from "next/link";
import { Card, Cards, LandingPage } from "@repo/shared/dist/server";
import { ThemeController, PageNavigatorCard } from "@repo/shared";
import { Card, Cards, LandingPage, Layout, type CardProps } from "@repo/shared/dist/server";
import { ThemeController, PageNavigatorCard, Header } from "@repo/shared";
import { ColorSwitch } from "nextjs-themes/color-switch";
import { ScopedThemes } from "@repo/shared/dist/client/scoped-themes";
import { MouseTrail } from "react-webgl-trails";

const inter = Inter({ subsets: ["latin"] });

Expand Down Expand Up @@ -48,6 +47,7 @@ export default function App({ Component, pageProps }: _AppProps) {
</Cards>
</LandingPage>
</Layout>
<MouseTrail />
</div>
);
}
1 change: 1 addition & 0 deletions examples/pages-router/src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "nextjs-themes/css";
@import "@repo/shared/dist/global.css";
@import "@repo/shared/dist";
@import "react-webgl-trails/dist";

html {
-webkit-text-size-adjust: 100%;
Expand Down
14 changes: 14 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e20a6ef

Please sign in to comment.