mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
142 lines
4.6 KiB
TypeScript
142 lines
4.6 KiB
TypeScript
import { PlusGrid, PlusGridItem, PlusGridRow } from "./plus-grid";
|
|
|
|
function SitemapHeading({ children }: { children: React.ReactNode }) {
|
|
return <h3 className="text-sm/6 font-medium text-gray-950/50 dark:text-gray-200">{children}</h3>;
|
|
}
|
|
|
|
function SitemapLinks({ children }: { children: React.ReactNode }) {
|
|
return <ul className="mt-6 space-y-4 text-sm/6">{children}</ul>;
|
|
}
|
|
|
|
function SitemapLink(props: React.ComponentPropsWithoutRef<"a">) {
|
|
return (
|
|
<li>
|
|
<a
|
|
{...props}
|
|
className="font-medium text-gray-950 data-[hover]:text-gray-950/75 dark:text-gray-400"
|
|
/>
|
|
</li>
|
|
);
|
|
}
|
|
|
|
function Sitemap() {
|
|
return (
|
|
<>
|
|
<div>
|
|
<SitemapHeading>Product</SitemapHeading>
|
|
<SitemapLinks>
|
|
<SitemapLink href="https://docs.supermemory.ai">Documentation</SitemapLink>
|
|
<SitemapLink href="https://supermemory.ai/extension">Chrome Extension</SitemapLink>
|
|
<SitemapLink href="/shortcut">iOS Shortcut</SitemapLink>
|
|
</SitemapLinks>
|
|
</div>
|
|
<div>
|
|
<SitemapHeading>Community</SitemapHeading>
|
|
<SitemapLinks>
|
|
<SitemapLink href="https://discord.gg/b3BgKWpbtR">Discord</SitemapLink>
|
|
<SitemapLink href="https://github.com/supermemoryai/supermemory/issues">
|
|
Report Issue
|
|
</SitemapLink>
|
|
<SitemapLink href="mailto:help@supermemory.com">Get Help</SitemapLink>
|
|
</SitemapLinks>
|
|
</div>
|
|
<div>
|
|
<SitemapHeading>Legal</SitemapHeading>
|
|
<SitemapLinks>
|
|
<SitemapLink href="https://supermemory.ai/tos">Terms of Service</SitemapLink>
|
|
<SitemapLink href="https://supermemory.ai/privacy">Privacy Policy</SitemapLink>
|
|
</SitemapLinks>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
function SocialIconX(props: React.ComponentPropsWithoutRef<"svg">) {
|
|
return (
|
|
<svg viewBox="0 0 16 16" fill="currentColor" {...props}>
|
|
<path d="M12.6 0h2.454l-5.36 6.778L16 16h-4.937l-3.867-5.594L2.771 16H.316l5.733-7.25L0 0h5.063l3.495 5.114L12.6 0zm-.86 14.376h1.36L4.323 1.539H2.865l8.875 12.837z" />
|
|
</svg>
|
|
);
|
|
}
|
|
|
|
function SocialIconGitHub(props: React.ComponentPropsWithoutRef<"svg">) {
|
|
return (
|
|
<svg viewBox="0 0 16 16" fill="currentColor" {...props}>
|
|
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" />
|
|
</svg>
|
|
);
|
|
}
|
|
|
|
function SocialLinks() {
|
|
return (
|
|
<>
|
|
<a
|
|
href="https://github.com/supermemoryai"
|
|
target="_blank"
|
|
aria-label="Visit us on GitHub"
|
|
className="text-gray-950 data-[hover]:text-gray-950/75"
|
|
>
|
|
<SocialIconGitHub className="size-4" />
|
|
</a>
|
|
<a
|
|
href="https://x.com/supermemoryai"
|
|
target="_blank"
|
|
aria-label="Visit us on X"
|
|
className="text-gray-950 data-[hover]:text-gray-950/75"
|
|
>
|
|
<SocialIconX className="size-4" />
|
|
</a>
|
|
</>
|
|
);
|
|
}
|
|
|
|
function Copyright() {
|
|
return (
|
|
<div className="text-sm/6 text-gray-950 dark:text-gray-100">
|
|
© {new Date().getFullYear()} Supermemory, Inc.
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default function Footer() {
|
|
return (
|
|
<footer className="mt-16 font-dm">
|
|
<div className="absolute inset-2 rounded-4xl" />
|
|
<div className="px-6 lg:px-8">
|
|
<div className="mx-auto max-w-2xl lg:max-w-7xl">
|
|
<PlusGrid className="pb-16">
|
|
<PlusGridRow>
|
|
<div className="grid grid-cols-2 gap-y-10 pb-6 lg:grid-cols-6 lg:gap-8">
|
|
<div className="col-span-2 flex">
|
|
<PlusGridItem className="pt-6 lg:pb-6">
|
|
<h1 className="text-2xl font-semibold tracking-tighter dark:text-gray-300">
|
|
Supermemory
|
|
</h1>
|
|
<p className="text-gray-500">
|
|
Supermemory is a free, open-source AI knowlege platform.
|
|
</p>
|
|
</PlusGridItem>
|
|
</div>
|
|
<div className="col-span-2 grid grid-cols-2 gap-x-8 gap-y-12 lg:col-span-4 lg:grid-cols-subgrid lg:pt-6">
|
|
<Sitemap />
|
|
</div>
|
|
</div>
|
|
</PlusGridRow>
|
|
<PlusGridRow className="flex justify-between">
|
|
<div>
|
|
<PlusGridItem className="py-3">
|
|
<Copyright />
|
|
</PlusGridItem>
|
|
</div>
|
|
<div className="flex">
|
|
<PlusGridItem className="flex items-center gap-8 py-3">
|
|
<SocialLinks />
|
|
</PlusGridItem>
|
|
</div>
|
|
</PlusGridRow>
|
|
</PlusGrid>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|