Skip to content

Commit

Permalink
more informative landing text
Browse files Browse the repository at this point in the history
  • Loading branch information
nedredmond committed Jan 13, 2024
1 parent 55501b2 commit 17fb403
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
11 changes: 10 additions & 1 deletion src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ const router = (data: WcagResponseData) =>
createHashRouter([
{
path: "/",
element: <Text>Search will go here!</Text>,
element: (
<Text>
Add the spec to the URL like so: <code>/#/wcag/1</code> to go to the
first principal, or <code>/#/wcag/1/1/1</code> to go to the first
success criterion. <br /> You can also use the names of principles,
guidelines, and criteria, like so:
<code> /#/wcag/robust/compatible/name-role-value</code>
</Text>
),
},
...wcagRoutes(data),
{
Expand All @@ -58,6 +66,7 @@ const Router = () => (
if (!data) {
return <Text>Something went wrong!</Text>;
}
console.log("router", router(data).routes);
return <RouterProvider router={router(data)} />;
}}
</WcagContext.Consumer>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "/a11y-routes/"
base: "/a11y-routes/",
});

0 comments on commit 17fb403

Please sign in to comment.