Skip to content

Commit

Permalink
Update Remix example
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 9, 2024
1 parent 31e7f99 commit cef7a8a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions examples/remix/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@re
import { Analytics } from "@vercel/analytics/react";
import styles from "./styles.css";
import { Layout } from "@repo/shared/dist/server";
import { Core } from "nextjs-darkmode";
import { Header } from "@repo/shared";

/** Page metadata */
export const meta: MetaFunction = () => [
Expand All @@ -26,6 +28,8 @@ export default function App(): JSX.Element {
</head>
<body>
<Layout>
<Core t="background .5s" />
<Header />
<Outlet />
</Layout>
<ScrollRestoration />
Expand Down
12 changes: 6 additions & 6 deletions examples/remix/app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Demo } from "@repo/shared";
import { LandingPage } from "@repo/shared/dist/server";

/** Remix App */
export default function Index(): JSX.Element {
return (
<div className="container">
<h1 className="title">
Blog <br />
<span>Turborepo Template</span>
</h1>
</div>
<LandingPage title="Remix Example">
<Demo />
</LandingPage>
);
}
3 changes: 2 additions & 1 deletion examples/remix/app/styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "react18-themes/styles.css";
@import "nextjs-darkmode/css";
@import "@repo/shared/dist/global.css";
@import "@repo/shared/dist";
@import "react18-loaders/dist";

html {
font-family:
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "vite build",
"start": "vite serve",
"start": "vite preview",
"clean": "rm -rf dist",
"dev": "vite --host 0.0.0.0 --port 3001 --clearScreen false",
"typecheck": "tsc --noEmit",
Expand Down

0 comments on commit cef7a8a

Please sign in to comment.