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.

_index.tsx 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import type { V2_MetaFunction } from "@remix-run/react";
  2. import {Link} from '@remix-run/react';
  3. import { Layouts } from '@tesseract-design/viewfinder-react';
  4. export const meta: V2_MetaFunction = () => {
  5. return [{ title: "New Remix App" }];
  6. };
  7. const IndexPage = () => {
  8. return (
  9. <Layouts.Basic.Root>
  10. <Layouts.Basic.ContentContainer>
  11. <div className="prose my-16">
  12. <h1>
  13. Viewfinder Examples
  14. </h1>
  15. <nav>
  16. <h2>
  17. Layouts
  18. </h2>
  19. <div>
  20. <Link to="layouts/basic">Basic</Link>
  21. </div>
  22. <div>
  23. <Link to="layouts/basic?span=narrow">Basic Narrow</Link>
  24. </div>
  25. <div>
  26. <Link to="layouts/left-sidebar">Left Sidebar</Link>
  27. </div>
  28. <div>
  29. <Link to="layouts/left-sidebar/alternate">Left Sidebar (alternate)</Link>
  30. </div>
  31. <div>
  32. <Link to="layouts/left-sidebar-with-menu">Left Sidebar With Menu</Link>
  33. </div>
  34. <div>
  35. <Link to="layouts/right-sidebar-static">Right Sidebar Static</Link>
  36. </div>
  37. </nav>
  38. <p>
  39. Look at how the layouts are coded in the <a href="https://code.modal.sh/TheoryOfNekomata/viewfinder" rel="noreferrer noopener" target="_blank">Git repository</a>.
  40. </p>
  41. </div>
  42. </Layouts.Basic.ContentContainer>
  43. </Layouts.Basic.Root>
  44. );
  45. }
  46. export default IndexPage;