Skip to content

Commit

Permalink
mantine 導入
Browse files Browse the repository at this point in the history
  • Loading branch information
kensiiwasaki committed Nov 21, 2023
1 parent e867773 commit 71431f6
Show file tree
Hide file tree
Showing 5 changed files with 506 additions and 15 deletions.
24 changes: 18 additions & 6 deletions app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import "@mantine/core/styles.css";

import { cssBundleHref } from "@remix-run/css-bundle";
import type { LinksFunction } from "@remix-run/node";
import {
Links,
LiveReload,
Meta,
Scripts,
ScrollRestoration,
} from "@remix-run/react";
import { MantineProvider, ColorSchemeScript } from "@mantine/core";

export const links: LinksFunction = () => [
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
];

export default function App() {
return (
Expand All @@ -14,15 +23,18 @@ export default function App() {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
<ColorSchemeScript />
</head>
<body>
<div>
<h1>Remix</h1>
</div>
<MantineProvider>
<div>
<h1>Remix</h1>
</div>

<ScrollRestoration />
<Scripts />
<LiveReload />
<ScrollRestoration />
<Scripts />
<LiveReload />
</MantineProvider>
</body>
</html>
);
Expand Down
Loading

0 comments on commit 71431f6

Please sign in to comment.