diff --git a/src/app/page.tsx b/src/app/page.tsx
index 4d4bca2..7675302 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,6 +1,6 @@
import { listProjects } from "@/lib/projects";
import { templates } from "@/lib/templates";
-import { NewProjectButton } from "@/components/dashboard/NewProjectButton";
+import { Sidebar } from "@/components/dashboard/Sidebar";
import { TemplateGrid } from "@/components/dashboard/TemplateGrid";
import { ProjectsGallery } from "@/components/dashboard/ProjectsGallery";
@@ -18,26 +18,17 @@ export default function DashboardPage() {
}));
return (
-
-
+
+
-
-
-
-
- Templates
+
+
-
diff --git a/src/components/dashboard/NewProjectButton.tsx b/src/components/dashboard/NewProjectButton.tsx
index cdb4873..03f4db8 100644
--- a/src/components/dashboard/NewProjectButton.tsx
+++ b/src/components/dashboard/NewProjectButton.tsx
@@ -13,8 +13,9 @@ export function NewProjectButton() {
icon={Plus}
loading={pending === "blank"}
onClick={() => create({}, "blank")}
+ className="w-full"
>
- Blank document
+ New document
);
}
diff --git a/src/components/dashboard/ProjectCard.tsx b/src/components/dashboard/ProjectCard.tsx
index 052090b..7e0f722 100644
--- a/src/components/dashboard/ProjectCard.tsx
+++ b/src/components/dashboard/ProjectCard.tsx
@@ -19,21 +19,22 @@ export function ProjectCard({
onTogglePin,
onDelete,
}: ProjectCardProps) {
+ // data-engine sets the accent (green for LaTeX, blue for Typst) for everything
+ // tinted in this card: the top stripe, the badge, and the pinned ring
return (
-
+
+
-
- {project.pinned && (
-
- )}
-
{project.name}
-
+
{project.name}
Edited {formatRelativeTime(project.updatedAt)}
@@ -41,10 +42,7 @@ export function ProjectCard({
Created {formatDate(project.createdAt)}
-
+
{engines[project.engine].name}
@@ -52,27 +50,29 @@ export function ProjectCard({
{/* actions sit over the card; preventDefault keeps the link from firing */}
-
+