diff --git a/.changeset/poor-seahorses-wonder.md b/.changeset/poor-seahorses-wonder.md
new file mode 100644
index 0000000..7a3ca22
--- /dev/null
+++ b/.changeset/poor-seahorses-wonder.md
@@ -0,0 +1,5 @@
+---
+"namesake": minor
+---
+
+Redesign app layout for optimal line length and taller scroll area
diff --git a/src/components/AppHeader/AppHeader.tsx b/src/components/AppHeader/AppHeader.tsx
deleted file mode 100644
index c4a72c0..0000000
--- a/src/components/AppHeader/AppHeader.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import { useAuthActions } from "@convex-dev/auth/react";
-import { api } from "@convex/_generated/api";
-import { RiAccountCircleFill } from "@remixicon/react";
-import { Authenticated, useQuery } from "convex/react";
-import { Button } from "../Button";
-import { Link } from "../Link";
-import { Logo } from "../Logo";
-import { Menu, MenuItem, MenuTrigger } from "../Menu";
-
-export const AppHeader = () => {
- const { signOut } = useAuthActions();
- const role = useQuery(api.users.getCurrentUserRole);
- const isAdmin = role === "admin";
-
- const handleSignOut = async () => {
- await signOut();
- };
-
- return (
-
{Icon &&
}
{props.children}
diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx
index abbfdd4..d4c80ac 100644
--- a/src/components/Button/Button.tsx
+++ b/src/components/Button/Button.tsx
@@ -16,7 +16,7 @@ export interface ButtonProps extends AriaButtonProps {
export const buttonStyles = tv({
extend: focusRing,
- base: "py-2 text-sm font-medium whitespace-nowrap rounded-lg flex gap-1 items-center justify-center border border-black/10 dark:border-white/10 cursor-pointer",
+ base: "py-2 text-sm font-medium whitespace-nowrap rounded-lg flex gap-1.5 items-center justify-center border border-black/10 dark:border-white/10 cursor-pointer",
variants: {
variant: {
primary: "bg-purple-solid text-white",
diff --git a/src/components/Container/Container.tsx b/src/components/Container/Container.tsx
index aca0cc3..7a4cde3 100644
--- a/src/components/Container/Container.tsx
+++ b/src/components/Container/Container.tsx
@@ -1,14 +1,14 @@
-import { twMerge } from "tailwind-merge";
+import { tv } from "tailwind-variants";
export interface ContainerProps {
className?: string;
children: React.ReactNode;
}
+const containerStyles = tv({
+ base: "max-w-full w-[1200px] px-4 lg:px-6 xl:px-8 mx-auto",
+});
+
export function Container({ className, children }: ContainerProps) {
- return (
-
- {children}
-
- );
+ return
{children}
;
}
diff --git a/src/components/Nav/Nav.tsx b/src/components/Nav/Nav.tsx
index fec0721..1ab43fd 100644
--- a/src/components/Nav/Nav.tsx
+++ b/src/components/Nav/Nav.tsx
@@ -21,7 +21,7 @@ export const Nav = ({ routes }: NavProps) => {
const matchRoute = useMatchRoute();
return (
-
- {subtitle &&