Layout scaffolding for Web apps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

root.tsx 904 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {
  2. Links,
  3. LiveReload,
  4. Meta,
  5. Outlet,
  6. Scripts,
  7. ScrollRestoration,
  8. } from "@remix-run/react";
  9. import type {LinksFunction} from '@remix-run/node';
  10. import { setup, extractCss } from '@tesseract-design/viewfinder-react';
  11. import * as React from 'react';
  12. import * as gooberPrefixer from 'goober/prefixer';
  13. import globalStylesheetUrl from './style.css';
  14. setup(React.createElement, gooberPrefixer.prefix);
  15. export const links: LinksFunction = () => {
  16. return [{ rel: "stylesheet", href: globalStylesheetUrl }];
  17. };
  18. const App = () => (
  19. <html lang="en-PH">
  20. <head>
  21. <meta charSet="utf-8" />
  22. <meta name="viewport" content="width=device-width,initial-scale=1" />
  23. <Meta />
  24. <Links />
  25. <style>{extractCss()}</style>
  26. </head>
  27. <body>
  28. <Outlet />
  29. <ScrollRestoration />
  30. <Scripts />
  31. <LiveReload />
  32. </body>
  33. </html>
  34. )
  35. export default App