Skip to content
Source
Sign inSign up
fuko/trytanstackdb-v2

Phase 1: guide + Apple Notes clone layout #1

Mergedfukomerged 1 commit intomain fromrefs/pull/1/headmerged by fuko

Showing 76 changed files with 212 additions and 0 deletions (loading 71).

x
0 of 76 viewed, 76 left
145 additions and 0 deletionssrc/components/browser/browser-frame.tsxAdded
View file
@@ -0,0 +1,145 @@
+import { ArrowLeft, ArrowRight, Lock, Plus, RotateCw, X } from "lucide-react";
+import type { ReactNode } from "react";
+​
+import { cn } from "@/lib/utils";
+​
+import { useBrowserHistory } from "./use-browser-history";
+​
+export const FAKE_HOST = "notes.app";
+​
+interface BrowserFrameProps {
+ /** Shown in the tab. */
+ title: string;
+ /** Path part of the fake URL, e.g. `/folders/work`. */
+ path: string;
+ /** Mobile: one compact toolbar row and no tab strip. */
+ compact?: boolean;
+ /** Reserved for latency and failure controls (phase 4). */
+ controls?: ReactNode;
+ children: ReactNode;
+}
+​
+export function BrowserFrame({
+ title,
+ path,
+ compact = false,
+ controls,
+ children,