Skip to content

Commit

Permalink
Sweet trip grid
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellBo committed Jul 2, 2024
1 parent b0a5a23 commit 9d8d6ed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
Binary file added public/clouds.webp
Binary file not shown.
37 changes: 19 additions & 18 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ export function App() {
</div>
)
}
function GridLines() {
return (
<div className="grid-container">
<svg className="grid" width="400" height="400" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="smallGrid" width="10" height="10" patternUnits="userSpaceOnUse">
<path d="M 0 0 L 0 0 0 10" fill="none" stroke="gray" strokeWidth="0.5" />
</pattern>
<pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse">
<rect width="100" height="100" fill="url(#smallGrid)" />
<path d="M 100 0 L 0 0 0 100" fill="none" stroke="SkyBlue" strokeWidth="3" />
</pattern>
</defs>
<rect width="100%" height="100%" fill="url(#grid)" />
</svg>
</div>
)
}

export function ErrorPage() {
const error: any = useRouteError();
Expand Down Expand Up @@ -349,24 +367,7 @@ export function ItemPage() {
);
}

function GridLines() {
return (
<div className="grid-container">
<svg className="grid" width="400" height="400" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="smallGrid" width="10" height="10" patternUnits="userSpaceOnUse">
<path d="M 10 0 L 0 0 0 10" fill="none" stroke="gray" stroke-width="0.5" />
</pattern>
<pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse">
<rect width="100" height="100" fill="url(#smallGrid)" />
<path d="M 100 0 L 0 0 0 100" fill="none" stroke="gray" stroke-width="1" />
</pattern>
</defs>
<rect width="100%" height="100%" fill="url(#grid)" />
</svg>
</div>
)
}


export function WallLabelPage() {
const { item, user, collection } = useLoaderData() as Awaited<ReturnType<typeof loadItem>>;
Expand Down

0 comments on commit 9d8d6ed

Please sign in to comment.