"use client";
import { useState } from "react";
import Link from "next/link";
/* ------------------------------------------------------------------ */
/* README content (rendered as simple markdown-ish HTML) */
/* ------------------------------------------------------------------ */
const README_LINES = [
{ tag: "h1", text: "betterNAS" },
{
tag: "p",
text: "Mount VMs and remote filesystems on your Mac as native Finder volumes. No special client, no syncing - just your files, where you expect them.",
},
{
tag: "p",
text: "Soon: a unified layer across your phone, computer, and AI agents. A safe, modular backup of your filesystem that you can use natively - and a way to deploy agents on your own infrastructure without giving up control.",
},
] as const;
/* ------------------------------------------------------------------ */
/* Icons */
/* ------------------------------------------------------------------ */
function GithubIcon({ className }: { className?: string }) {
return (
);
}
function ClockIcon() {
return (
);
}
function SharedIcon() {
return (
);
}
function LibraryIcon() {
return (
);
}
function AppIcon() {
return (
);
}
function DesktopIcon() {
return (
);
}
function DownloadIcon() {
return (
);
}
function DocumentsIcon() {
return (
);
}
function FolderIcon({ className }: { className?: string }) {
return (
);
}
function CloudIcon() {
return (
);
}
function HomeIcon() {
return (
);
}
function NetworkIcon() {
return (
);
}
function AirdropIcon() {
return (
);
}
/* ------------------------------------------------------------------ */
/* README modal (Quick Look style) */
/* ------------------------------------------------------------------ */
function ReadmeModal({ onClose }: { onClose: () => void }) {
return (
e.stopPropagation()}
>
{/* titlebar */}
README.md
{/* body */}
{README_LINES.map((block, i) => {
if (block.tag === "h1")
return (