+
{quest.jurisdiction}}
@@ -185,18 +186,18 @@ function QuestDetailRoute() {
-
+
{quest.content ? (
-
+
{quest.content}
) : (
"No content"
)}
-
+
);
}
diff --git a/src/routes/_authenticated/admin/route.tsx b/src/routes/_authenticated/admin/route.tsx
index a6f6e84..1724c58 100644
--- a/src/routes/_authenticated/admin/route.tsx
+++ b/src/routes/_authenticated/admin/route.tsx
@@ -1,4 +1,11 @@
-import { AppSidebar, Container, Nav, NavItem } from "@/components";
+import {
+ AppContent,
+ AppSidebar,
+ Container,
+ Nav,
+ NavGroup,
+ NavItem,
+} from "@/components";
import { Outlet, createFileRoute, redirect } from "@tanstack/react-router";
import { FileText, Milestone, RectangleEllipsis } from "lucide-react";
@@ -19,23 +26,25 @@ export const Route = createFileRoute("/_authenticated/admin")({
function AdminRoute() {
return (
-
+
-
+
);
}
diff --git a/src/routes/_authenticated/browse/index.tsx b/src/routes/_authenticated/browse/index.tsx
index e1955aa..6cf1e51 100644
--- a/src/routes/_authenticated/browse/index.tsx
+++ b/src/routes/_authenticated/browse/index.tsx
@@ -1,4 +1,5 @@
import {
+ AppContent,
AppSidebar,
Badge,
Button,
@@ -169,7 +170,7 @@ function IndexRoute() {
);
return (
-
+
-
+
{filteredQuests && search !== "" ? (
) : (
)}
-
+
);
}
diff --git a/src/routes/_authenticated/settings/overview.tsx b/src/routes/_authenticated/settings/account.tsx
similarity index 96%
rename from src/routes/_authenticated/settings/overview.tsx
rename to src/routes/_authenticated/settings/account.tsx
index ed18567..958f6ea 100644
--- a/src/routes/_authenticated/settings/overview.tsx
+++ b/src/routes/_authenticated/settings/account.tsx
@@ -18,11 +18,11 @@ import { useTheme } from "next-themes";
import { useEffect, useState } from "react";
import { useDebouncedCallback } from "use-debounce";
-export const Route = createFileRoute("/_authenticated/settings/overview")({
- component: SettingsOverviewRoute,
+export const Route = createFileRoute("/_authenticated/settings/account")({
+ component: SettingsAccountRoute,
});
-function SettingsOverviewRoute() {
+function SettingsAccountRoute() {
const { signOut } = useAuthActions();
const { setTheme } = useTheme();
const user = useQuery(api.users.getCurrentUser);
@@ -91,7 +91,7 @@ function SettingsOverviewRoute() {
return (
<>
-
+
{user === undefined ? (
"Loading..."
) : user === null ? (
diff --git a/src/routes/_authenticated/settings/index.tsx b/src/routes/_authenticated/settings/index.tsx
index 3988524..9780839 100644
--- a/src/routes/_authenticated/settings/index.tsx
+++ b/src/routes/_authenticated/settings/index.tsx
@@ -2,6 +2,6 @@ import { createFileRoute, redirect } from "@tanstack/react-router";
export const Route = createFileRoute("/_authenticated/settings/")({
beforeLoad: () => {
- throw redirect({ to: "/settings/overview" });
+ throw redirect({ to: "/settings/account" });
},
});
diff --git a/src/routes/_authenticated/settings/route.tsx b/src/routes/_authenticated/settings/route.tsx
index 9807bdb..a065b05 100644
--- a/src/routes/_authenticated/settings/route.tsx
+++ b/src/routes/_authenticated/settings/route.tsx
@@ -1,4 +1,11 @@
-import { AppSidebar, Container, Nav, NavItem } from "@/components";
+import {
+ AppContent,
+ AppSidebar,
+ Container,
+ Nav,
+ NavGroup,
+ NavItem,
+} from "@/components";
import { Outlet, createFileRoute } from "@tanstack/react-router";
import { CircleUser, Database } from "lucide-react";
@@ -8,20 +15,22 @@ export const Route = createFileRoute("/_authenticated/settings")({
function SettingsRoute() {
return (
-
+
-
+
);
}
diff --git a/src/styles/index.css b/src/styles/index.css
index dda8a9f..c330f39 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -2,6 +2,16 @@
@tailwind components;
@tailwind utilities;
+@layer components {
+ .app-padding {
+ @apply px-6 lg:px-8;
+ }
+
+ .h-header {
+ @apply h-16 lg:h-20;
+ }
+}
+
/* Scale up hit targets on high resolution mobile devices. */
@media (min-resolution: 200dpi) {
html {