Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

chore(site): add the brand assets and fonts the site serves

spacesdrivea98dea28ed3f
diff --git a/frontend/src/docs/DocsHeader.tsx b/frontend/src/docs/DocsHeader.tsx
deleted file mode 100644
index 68405d7..0000000
--- a/frontend/src/docs/DocsHeader.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import React from 'react';
-import { Link } from 'react-router-dom';
-import { Menu, Moon, Search, Sun } from 'lucide-react';
-import { Button } from '@/components/ui/button';
-import { Logo } from '@/components/brand/Logo';
-import { cn } from '@/lib/utils';
-import { DOC_TABS, firstPagePath } from './nav';
-import type { DocTab } from './nav';
-
-interface DocsHeaderProps {
- tab: DocTab;
- signedIn: boolean;
- isDark: boolean;
- onToggleTheme: () => void;
- onOpenMenu: () => void;
- onOpenSearch: () => void;
-}
-
-export default function DocsHeader({ tab, signedIn, isDark, onToggleTheme, onOpenMenu, onOpenSearch }: DocsHeaderProps) {
- return (
- <header className="sticky top-0 z-30 border-b border-line bg-surface/90 backdrop-blur-md">
- <div className="flex h-14 items-center gap-3 px-4 lg:px-6">
- <Button variant="ghost" size="icon-sm" className="lg:hidden" onClick={onOpenMenu} aria-label="Open navigation">
- <Menu />
- </Button>
- <Link to="/docs" className="flex shrink-0 items-center gap-2.5" aria-label="Twiligent documentation home">
- <Logo className="h-6" />
- <span className="hidden border-l border-line pl-2.5 text-sm font-medium text-ink-muted sm:inline">Docs</span>
- </Link>
- <button
- type="button"
- onClick={onOpenSearch}
- aria-label="Search documentation"
- className="ml-auto flex size-9 shrink-0 items-center justify-center gap-2 rounded-field border border-line-control bg-surface text-sm text-ink-faint transition-colors hover:border-line-strong/60 hover:text-ink-muted sm:mx-auto sm:w-full sm:max-w-md sm:shrink sm:justify-start sm:px-3"
- >
- <Search className="size-4 stroke-[1.75]" />
- <span className="hidden flex-1 text-left sm:inline">Search</span>
- <kbd className="hidden rounded-sm border border-line px-1.5 font-mono text-caption sm:inline">/</kbd>
- </button>
- <div className="flex shrink-0 items-center gap-1">
- <Button variant="ghost" size="icon-sm" onClick={onToggleTheme} aria-label={isDark ? 'Switch to light theme' : 'Switch to dark theme'}>
- {isDark ? <Sun /> : <Moon />}
- </Button>
- <Button size="sm" render={<Link to={signedIn ? '/' : '/login'} />}>
- {signedIn ? <>Open<span className="hidden sm:inline">&nbsp;Twiligent</span></> : 'Sign in'}
- </Button>
- </div>
- </div>
- <nav aria-label="Documentation sections" className="scrollbar-hide flex h-11 items-stretch gap-5 overflow-x-auto px-4 lg:px-6">
- {DOC_TABS.map(docTab => (
- <Link
- key={docTab.id}
- to={firstPagePath(docTab)}
- aria-current={docTab.id === tab.id ? 'page' : undefined}
- className={cn(
- 'relative flex shrink-0 items-center text-sm font-medium transition-colors duration-(--duration-base)',
- docTab.id === tab.id ? 'text-ink after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:rounded-full after:bg-brand' : 'text-ink-muted hover:text-ink',
- )}
- >
- {docTab.label}
- </Link>
- ))}
- </nav>
- </header>
- );
-}
diff --git a/frontend/src/docs/DocsLayout.tsx b/frontend/src/docs/DocsLayout.tsx
deleted file mode 100644
index c4a37fb..0000000
--- a/frontend/src/docs/DocsLayout.tsx
+++ /dev/null
@@ -1,108 +0,0 @@
-import React, { Suspense, useCallback, useEffect, useRef, useState } from 'react';
-import { Outlet, useLocation } from 'react-router-dom';
-import { Copy, Check } from 'lucide-react';
-import { Button } from '@/components/ui/button';
-import { Skeleton } from '@/components/ui/skeleton';
-import { useSmoothTheme } from '@/hooks/use-smooth-theme';
-import { useAuth } from '../context/AuthContext';
-import { tabForPath, neighbours } from './nav';
-import { useTableOfContents } from './useTableOfContents';
-import DocsHeader from './DocsHeader';
-import DocsSidebarNav from './DocsSidebarNav';
-import DocsPager from './DocsPager';
-import DocsToc from './DocsToc';
-import DocsMobileNav from './DocsMobileNav';
-import DocsSearch from './DocsSearch';
-
-function useSearchShortcut(setSearchOpen: (open: boolean) => void) {
- useEffect(() => {
- const onKey = (e: KeyboardEvent) => {
- const typing = /input|textarea|select/i.test((e.target as HTMLElement).tagName) || (e.target as HTMLElement).isContentEditable;
- if ((e.key === '/' && !typing) || ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === 'k')) {
- e.preventDefault();
- setSearchOpen(true);
- }
- };
- window.addEventListener('keydown', onKey);
- return () => window.removeEventListener('keydown', onKey);
- }, [setSearchOpen]);
-}
-
-export default function DocsLayout() {
- const location = useLocation();
- const { session } = useAuth();
- const { resolvedTheme, setTheme } = useSmoothTheme();
- const [searchOpen, setSearchOpen] = useState(false);
- const [menuOpen, setMenuOpen] = useState(false);
- const [copied, setCopied] = useState(false);
- const articleRef = useRef<HTMLElement | null>(null);
- const tab = tabForPath(location.pathname);
- const { prev, next } = neighbours(location.pathname);
- const { items: toc, active } = useTableOfContents(articleRef, location.pathname);
- const isDark = resolvedTheme === 'dark';
-
- useEffect(() => {
- if (!location.hash) window.scrollTo({ top: 0 });
- else document.getElementById(location.hash.slice(1))?.scrollIntoView();
- }, [location.pathname, location.hash]);
-
- useSearchShortcut(setSearchOpen);
-
- const copyPage = useCallback(async () => {
- try {
- await navigator.clipboard.writeText(articleRef.current?.innerText || '');
- setCopied(true);
- setTimeout(() => setCopied(false), 1500);
- } catch {
- setCopied(false);
- }
- }, []);
-
- return (
- <div className="min-h-svh bg-surface text-ink">
- <a href="#docs-content" className="sr-only focus:not-sr-only focus:fixed focus:top-3 focus:left-3 focus:z-50 focus:rounded-control focus:bg-ink focus:px-4 focus:py-2 focus:text-sm focus:text-ink-inverse">Skip to content</a>
-
- <DocsHeader
- tab={tab}
- signedIn={Boolean(session)}
- isDark={isDark}
- onToggleTheme={() => setTheme(isDark ? 'light' : 'dark')}
- onOpenMenu={() => setMenuOpen(true)}
- onOpenSearch={() => setSearchOpen(true)}
- />
-
- <div className="mx-auto flex max-w-[96rem]">
- <aside className="sticky top-[6.25rem] hidden h-[calc(100svh-6.25rem)] w-64 shrink-0 overflow-y-auto border-r border-line px-4 py-6 lg:block">
- <DocsSidebarNav tab={tab} />
- </aside>
-
- <main id="docs-content" className="min-w-0 flex-1 px-5 py-10 sm:px-8 lg:px-12">
- <div className="mx-auto flex max-w-[50rem] flex-col">
- <div className="mb-2 flex items-center justify-between gap-3">
- <p className="eyebrow text-brand-text">{tab.label}</p>
- <Button variant="outline" size="xs" onClick={copyPage} aria-label="Copy this page as text">
- {copied ? <Check className="text-success" /> : <Copy />}
- {copied ? 'Copied' : 'Copy page'}
- </Button>
- </div>
- <article ref={articleRef} className="animate-fold-in">
- <Suspense fallback={<div className="flex flex-col gap-4"><Skeleton className="h-11 w-2/3" /><Skeleton className="h-5 w-full" /><Skeleton className="h-64 rounded-card" /></div>}>
- <Outlet />
- </Suspense>
- </article>
-
- <DocsPager prev={prev} next={next} />
- </div>
- </main>
-
- <aside className="sticky top-[6.25rem] hidden h-[calc(100svh-6.25rem)] w-60 shrink-0 overflow-y-auto py-10 pr-6 xl:block">
- <DocsToc items={toc} active={active} />
- </aside>
- </div>
-
- <DocsMobileNav tab={tab} open={menuOpen} onOpenChange={setMenuOpen} />
-
- <DocsSearch open={searchOpen} onOpenChange={setSearchOpen} />
- </div>
- );
-}
diff --git a/frontend/src/docs/DocsMobileNav.tsx b/frontend/src/docs/DocsMobileNav.tsx
deleted file mode 100644
index 2431467..0000000
--- a/frontend/src/docs/DocsMobileNav.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from 'react';
-import { Link } from 'react-router-dom';
-import { Sheet, SheetContent, SheetTitle } from '@/components/ui/sheet';
-import { cn } from '@/lib/utils';
-import { DOC_TABS, firstPagePath } from './nav';
-import type { DocTab } from './nav';
-import DocsSidebarNav from './DocsSidebarNav';
-
-interface DocsMobileNavProps {
- tab: DocTab;
- open: boolean;
- onOpenChange: (open: boolean) => void;
-}
-
-export default function DocsMobileNav({ tab, open, onOpenChange }: DocsMobileNavProps) {
- const close = () => onOpenChange(false);
- return (
- <Sheet open={open} onOpenChange={onOpenChange}>
- <SheetContent side="left" className="w-72 overflow-y-auto p-5">
- <SheetTitle className="sr-only">Documentation navigation</SheetTitle>
- <div className="mb-6 flex flex-col gap-1">
- {DOC_TABS.map(docTab => (
- <Link key={docTab.id} to={firstPagePath(docTab)} onClick={close} className={cn('rounded-row px-2 py-1.5 text-sm font-medium', docTab.id === tab.id ? 'text-ink' : 'text-ink-muted')}>
- {docTab.label}
- </Link>
- ))}
- </div>
- <DocsSidebarNav tab={tab} onNavigate={close} />
- </SheetContent>
- </Sheet>
- );
-}
diff --git a/frontend/src/docs/DocsPager.tsx b/frontend/src/docs/DocsPager.tsx
deleted file mode 100644
index ea3eb1b..0000000
--- a/frontend/src/docs/DocsPager.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import React from 'react';
-import { Link } from 'react-router-dom';
-import { ArrowLeft, ArrowRight } from 'lucide-react';
-import type { DocPageEntry } from './nav';
-
-interface DocsPagerProps {
- prev: DocPageEntry | null;
- next: DocPageEntry | null;
-}
-
-export default function DocsPager({ prev, next }: DocsPagerProps) {
- return (
- <nav aria-label="Previous and next page" className="mt-16 grid grid-cols-1 gap-3 border-t border-line pt-8 sm:grid-cols-2">
- {prev ? (
- <Link to={prev.path} className="group flex flex-col gap-1 rounded-card border border-line p-4 transition-colors hover:border-line-strong/50">
- <span className="flex items-center gap-1 text-caption text-ink-faint"><ArrowLeft className="size-3.5" />Previous</span>
- <span className="text-sm font-medium text-ink">{prev.title}</span>
- </Link>
- ) : <span />}
- {next && (
- <Link to={next.path} className="group flex flex-col items-end gap-1 rounded-card border border-line p-4 text-right transition-colors hover:border-line-strong/50">
- <span className="flex items-center gap-1 text-caption text-ink-faint">Next<ArrowRight className="size-3.5" /></span>
- <span className="text-sm font-medium text-ink">{next.title}</span>
- </Link>
- )}
- </nav>
- );
-}
diff --git a/frontend/src/docs/DocsSearch.tsx b/frontend/src/docs/DocsSearch.tsx
deleted file mode 100644
index 12023d1..0000000
--- a/frontend/src/docs/DocsSearch.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React, { useMemo, useState } from 'react';
-import { useNavigate } from 'react-router-dom';
-import { FileText } from 'lucide-react';
-import { Dialog, DialogContent, DialogDescription, DialogTitle } from '@/components/ui/dialog';
-import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command';
-import { filterCommands, groupCommands } from '@/lib/commandSearch';
-import { ALL_DOC_PAGES } from './nav';
-
-interface DocSearchCommand {
- id: string;
- label: string;
- group: string;
- keywords: string[];
- path: string;
-}
-
-interface DocsSearchProps {
- open: boolean;
- onOpenChange: (open: boolean) => void;
-}
-
-export default function DocsSearch({ open, onOpenChange }: DocsSearchProps) {
- const navigate = useNavigate();
- const [query, setQuery] = useState('');
- const commands = useMemo<DocSearchCommand[]>(() => ALL_DOC_PAGES.map(page => ({ id: page.path, label: page.title, group: page.tabLabel, keywords: page.keywords, path: page.path })), []);
- const grouped = useMemo(() => groupCommands(filterCommands(commands, query)), [commands, query]);
- const close = (next: boolean) => { if (!next) setQuery(''); onOpenChange(next); };
- return (
- <Dialog open={open} onOpenChange={close}>
- <DialogContent showCloseButton={false} className="top-[18%] translate-y-0 gap-0 overflow-hidden p-0 sm:max-w-xl">
- <DialogTitle className="sr-only">Search the documentation</DialogTitle>
- <DialogDescription className="sr-only">Find a page by title or topic</DialogDescription>
- <Command shouldFilter={false} loop>
- <CommandInput value={query} onValueChange={setQuery} placeholder="Search the docs, for example Instagram tester" />
- <CommandList>
- <CommandEmpty>No pages match "{query}"</CommandEmpty>
- {grouped.map(({ group, items }) => (
- <CommandGroup key={group} heading={group}>
- {items.map((item: DocSearchCommand) => (
- <CommandItem key={item.id} value={item.id} onSelect={() => { close(false); navigate(item.path); }}>
- <FileText />
- {item.label}
- </CommandItem>
- ))}
- </CommandGroup>
- ))}
- </CommandList>
- </Command>
- </DialogContent>
- </Dialog>
- );
-}
diff --git a/frontend/src/docs/DocsSidebarNav.tsx b/frontend/src/docs/DocsSidebarNav.tsx
deleted file mode 100644
index d71030e..0000000
--- a/frontend/src/docs/DocsSidebarNav.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from 'react';
-import { NavLink } from 'react-router-dom';
-import { cn } from '@/lib/utils';
-import type { DocTab } from './nav';
-
-interface DocsSidebarNavProps {
- tab: DocTab;
- onNavigate?: () => void;
-}
-
-export default function DocsSidebarNav({ tab, onNavigate }: DocsSidebarNavProps) {
- return (
- <nav aria-label={`${tab.label} pages`} className="flex flex-col gap-6">
- {tab.groups.map((group, i) => (
- <div key={group.label || i} className="flex flex-col gap-0.5">
- {group.label && <p className="mb-1 px-2 text-small font-semibold text-ink">{group.label}</p>}
- {group.pages.map(page => {
- const path = page.slug ? `/docs/${page.slug}` : '/docs';
- return (
- <NavLink
- key={path}
- to={path}
- end
- onClick={onNavigate}
- className={({ isActive }) => cn(
- 'rounded-row px-2 py-2 text-sm leading-[1.1rem] transition-colors duration-(--duration-base)',
- isActive ? 'bg-surface-selected font-medium text-ink' : 'text-ink-muted hover:bg-surface-hover hover:text-ink',
- )}
- >
- {page.title}
- </NavLink>
- );
- })}
- </div>
- ))}
- </nav>
- );
-}
diff --git a/frontend/src/docs/DocsToc.tsx b/frontend/src/docs/DocsToc.tsx
deleted file mode 100644
index 0484336..0000000
--- a/frontend/src/docs/DocsToc.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react';
-import { ArrowUp } from 'lucide-react';
-import { cn } from '@/lib/utils';
-import type { TocItem } from './useTableOfContents';
-
-function jumpTo(e: React.MouseEvent<HTMLAnchorElement>, id: string) {
- e.preventDefault();
- document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' });
- history.replaceState(null, '', `#${id}`);
-}
-
-interface DocsTocProps {
- items: TocItem[];
- active: string | null;
-}
-
-export default function DocsToc({ items, active }: DocsTocProps) {
- if (items.length === 0) return null;
- return (
- <nav aria-label="On this page" className="flex flex-col gap-3">
- <p className="text-sm font-medium text-ink-muted">On this page</p>
- <ul className="flex flex-col border-l border-line">
- {items.map(item => (
- <li key={item.id}>
- <a
- href={`#${item.id}`}
- onClick={e => jumpTo(e, item.id)}
- className={cn(
- '-ml-px block border-l py-1 text-sm leading-5 transition-colors duration-(--duration-base)',
- item.level === 3 ? 'pl-6' : 'pl-3',
- active === item.id ? 'border-brand text-ink' : 'border-transparent text-ink-faint hover:text-ink',
- )}
- >
- {item.text}
- </a>
- </li>
- ))}
- </ul>
- <button type="button" onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })} className="mt-3 flex w-fit items-center gap-1.5 border-t border-line pt-4 text-sm text-ink-faint transition-colors hover:text-ink">
- Scroll to top <ArrowUp className="size-3.5" />
- </button>
- </nav>
- );
-}
diff --git a/frontend/src/docs/components.tsx b/frontend/src/docs/components.tsx
deleted file mode 100644
index cc8f6fe..0000000
--- a/frontend/src/docs/components.tsx
+++ /dev/null
@@ -1,251 +0,0 @@
-import React, { useState } from 'react';
-import { Link } from 'react-router-dom';
-import { Info, AlertTriangle, Lightbulb, ShieldAlert, Check, Copy, ArrowRight } from 'lucide-react';
-import type { LucideIcon } from 'lucide-react';
-import { cn } from '@/lib/utils';
-import { slugify } from './slug';
-
-// Building blocks for documentation pages. Headings get ids so the "On this page" list can find them.
-
-type ElementWithChildren = React.ReactElement<{ children?: React.ReactNode }>;
-
-function textOf(node: React.ReactNode): string {
- if (typeof node === 'string' || typeof node === 'number') return String(node);
- if (Array.isArray(node)) return node.map(textOf).join('');
- if ((node as ElementWithChildren | null | undefined)?.props?.children) return textOf((node as ElementWithChildren).props.children);
- return '';
-}
-
-export interface DocTitleProps {
- title: React.ReactNode;
- lead?: React.ReactNode;
-}
-
-export function DocTitle({ title, lead }: DocTitleProps) {
- return (
- <header className="mb-10 flex flex-col gap-3">
- <h1 className="font-heading text-[2.25rem] leading-[2.8125rem] font-semibold tracking-[-0.02em] text-ink">{title}</h1>
- {lead && <p className="text-lg leading-7 text-ink-muted">{lead}</p>}
- </header>
- );
-}
-
-export interface HeadingProps {
- children: React.ReactNode;
- id?: string;
-}
-
-export function H2({ children, id }: HeadingProps) {
- return (
- <h2 id={id || slugify(textOf(children))} data-toc="2" className="mt-12 mb-4 scroll-mt-32 font-heading text-2xl leading-8 font-semibold tracking-[-0.02em] text-ink first:mt-0">
- {children}
- </h2>
- );
-}
-
-export function H3({ children, id }: HeadingProps) {
- return (
- <h3 id={id || slugify(textOf(children))} data-toc="3" className="mt-8 mb-3 scroll-mt-32 font-heading text-xl leading-8 font-semibold tracking-[-0.01em] text-ink">
- {children}
- </h3>
- );
-}
-
-export interface PProps {
- children: React.ReactNode;
- className?: string;
-}
-
-export function P({ children, className }: PProps) {
- return <p className={cn('my-4 text-base leading-7 text-ink-muted [&_strong]:font-semibold [&_strong]:text-ink', className)}>{children}</p>;
-}
-
-export interface ChildrenProps {
- children: React.ReactNode;
-}
-
-export function UL({ children }: ChildrenProps) {
- return <ul className="my-4 flex list-disc flex-col gap-2 pl-6 text-base leading-7 text-ink-muted marker:text-ink-faint [&_strong]:font-semibold [&_strong]:text-ink">{children}</ul>;
-}
-
-export function OL({ children }: ChildrenProps) {
- return <ol className="my-4 flex list-decimal flex-col gap-2 pl-6 text-base leading-7 text-ink-muted marker:text-ink-faint [&_strong]:font-semibold [&_strong]:text-ink">{children}</ol>;
-}
-
-export function Code({ children }: ChildrenProps) {
- return <code className="rounded-sm border border-line bg-surface-sunken px-1.5 py-0.5 font-mono text-[0.875em] text-ink">{children}</code>;
-}
-
-export interface AProps {
- to?: string;
- href?: string;
- children: React.ReactNode;
-}
-
-export function A({ to, href, children }: AProps) {
- const cls = 'font-medium text-brand-text underline decoration-brand-text/40 underline-offset-4 hover:decoration-brand-text';
- if (to) return <Link to={to} className={cls}>{children}</Link>;
- return <a href={href} target="_blank" rel="noopener noreferrer" className={cls}>{children}</a>;
-}
-
-export type CalloutType = 'note' | 'tip' | 'warning' | 'danger';
-
-interface CalloutStyle {
- icon: LucideIcon;
- cls: string;
- iconCls: string;
- label: string;
-}
-
-const CALLOUTS: Record<CalloutType, CalloutStyle> = {
- note: { icon: Info, cls: 'border-info/30 bg-info-soft', iconCls: 'text-info', label: 'Note' },
- tip: { icon: Lightbulb, cls: 'border-success/30 bg-success-soft', iconCls: 'text-success', label: 'Tip' },
- warning: { icon: AlertTriangle, cls: 'border-warning/30 bg-warning-soft', iconCls: 'text-warning', label: 'Warning' },
- danger: { icon: ShieldAlert, cls: 'border-danger/30 bg-danger-soft', iconCls: 'text-danger', label: 'Important' },
-};
-
-export interface CalloutProps {
- type?: CalloutType;
- title: React.ReactNode;
- children?: React.ReactNode;
-}
-
-export function Callout({ type = 'note', title, children }: CalloutProps) {
- const callout = CALLOUTS[type];
- const Icon = callout.icon;
- return (
- <div className={cn('my-6 flex gap-3 rounded-field border px-4 py-3.5', callout.cls)}>
- <Icon className={cn('mt-0.5 size-4 shrink-0 stroke-[1.75]', callout.iconCls)} aria-hidden="true" />
- <div className="flex min-w-0 flex-col gap-1 text-[0.9375rem] leading-6 text-ink-muted [&_strong]:font-semibold [&_strong]:text-ink">
- <p className="font-semibold text-ink"><span className="sr-only">{callout.label}: </span>{title}</p>
- {children && <div className="[&>p]:m-0 flex flex-col gap-2">{children}</div>}
- </div>
- </div>
- );
-}
-
-export interface CodeBlockProps {
- children: string;
- title?: string;
-}
-
-export function CodeBlock({ children, title }: CodeBlockProps) {
- const [copied, setCopied] = useState(false);
- const text = String(children).replace(/^\n/, '').replace(/\n\s*$/, '');
- return (
- <div className="my-6 overflow-hidden rounded-field border border-line bg-surface-sunken">
- <div className="flex items-center justify-between gap-3 border-b border-line px-4 py-2">
- <span className="font-mono text-caption text-ink-faint">{title || 'Terminal'}</span>
- <button
- type="button"
- onClick={async () => { try { await navigator.clipboard.writeText(text); setCopied(true); setTimeout(() => setCopied(false), 1500); } catch { setCopied(false); } }}
- className="inline-flex items-center gap-1.5 rounded-row px-2 py-1 text-caption text-ink-muted transition-colors hover:bg-surface-hover hover:text-ink"
- >
- {copied ? <Check className="size-3.5 text-success" /> : <Copy className="size-3.5" />}
- {copied ? 'Copied' : 'Copy'}
- </button>
- </div>
- <pre className="overflow-x-auto px-4 py-3.5 font-mono text-[0.8125rem] leading-6 text-ink"><code>{text}</code></pre>
- </div>
- );
-}
-
-export function Steps({ children }: ChildrenProps) {
- return <ol className="my-6 flex flex-col [counter-reset:step]">{children}</ol>;
-}
-
-export interface StepProps {
- title: string;
- children: React.ReactNode;
-}
-
-export function Step({ title, children }: StepProps) {
- return (
- <li className="relative flex gap-4 pb-8 last:pb-0 [counter-increment:step] before:absolute before:top-9 before:bottom-1 before:left-[0.9375rem] before:w-px before:bg-line last:before:hidden">
- <span className="flex size-8 shrink-0 items-center justify-center rounded-full border border-line bg-surface-raised font-mono text-small font-medium text-ink before:content-[counter(step)]" aria-hidden="true" />
- <div className="flex min-w-0 flex-1 flex-col pt-1">
- <h3 id={slugify(title)} data-toc="3" className="scroll-mt-32 font-heading text-lg leading-7 font-semibold text-ink">{title}</h3>
- <div className="text-base leading-7 text-ink-muted [&>*:first-child]:mt-2 [&_strong]:font-semibold [&_strong]:text-ink">{children}</div>
- </div>
- </li>
- );
-}
-
-export interface TableProps {
- head: string[];
- rows: React.ReactNode[][];
-}
-
-export function Table({ head, rows }: TableProps) {
- return (
- <div className="my-6 overflow-x-auto rounded-field border border-line">
- <table className="w-full min-w-[36rem] text-left text-[0.875rem] leading-6">
- <thead className="border-b border-line bg-surface-sunken/60">
- <tr>{head.map(h => <th key={h} className="px-4 py-2.5 font-semibold text-ink">{h}</th>)}</tr>
- </thead>
- <tbody>
- {rows.map((row, i) => (
- <tr key={i} className="border-b border-divider last:border-0 align-top">
- {row.map((cell, j) => <td key={j} className="px-4 py-3 text-ink-muted [&_strong]:font-semibold [&_strong]:text-ink">{cell}</td>)}
- </tr>
- ))}
- </tbody>
- </table>
- </div>
- );
-}
-
-// Image-topped path cards. The art is the brand fold band with a ribbon crop, tinted per card.
-export function PathCards({ children }: ChildrenProps) {
- return <div className="my-8 grid grid-cols-1 gap-4 md:grid-cols-3">{children}</div>;
-}
-
-const CARD_ART = [
- 'linear-gradient(120deg, #C11F2F 0%, #C11F2F 35%, #9A1423 70%, #5E0B14 100%)',
- 'linear-gradient(120deg, #2A1D21 0%, #5E0B14 60%, #9A1423 100%)',
- 'linear-gradient(120deg, #E8A33D 0%, #C11F2F 65%, #5E0B14 100%)',
-];
-
-export interface PathCardProps {
- to: string;
- title: React.ReactNode;
- children: React.ReactNode;
- art?: number;
-}
-
-export function PathCard({ to, title, children, art = 0 }: PathCardProps) {
- return (
- <Link
- to={to}
- className="group flex flex-col overflow-hidden rounded-panel border border-line bg-surface-raised transition-colors duration-(--duration-base) hover:border-line-strong/50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
- >
- <div className="relative h-36 overflow-hidden" style={{ background: CARD_ART[art % CARD_ART.length] }}>
- <img src="/Logos/twiligent-mark-white.svg" alt="" className="absolute -right-6 -bottom-10 w-40 opacity-20 transition-transform duration-(--duration-slow) ease-(--ease-fold) group-hover:-translate-y-1" />
- </div>
- <div className="flex flex-1 flex-col gap-2 p-5">
- <p className="flex items-center gap-1.5 font-heading text-lg font-semibold text-ink">
- {title}
- <ArrowRight className="size-4 text-ink-faint transition-transform duration-(--duration-base) group-hover:translate-x-0.5" />
- </p>
- <p className="text-[0.9375rem] leading-6 text-ink-muted">{children}</p>
- </div>
- </Link>
- );
-}
-
-export type BadgeTone = 'neutral' | 'required' | 'optional' | 'secret';
-
-export interface BadgeProps {
- children: React.ReactNode;
- tone?: BadgeTone;
-}
-
-export function Badge({ children, tone = 'neutral' }: BadgeProps) {
- const tones: Record<BadgeTone, string> = {
- neutral: 'bg-surface-sunken text-ink-muted',
- required: 'bg-brand-soft text-brand-text',
- optional: 'bg-info-soft text-info',
- secret: 'bg-warning-soft text-warning',
- };
- return <span className={cn('inline-flex h-5 items-center rounded-pill px-2 text-caption font-semibold whitespace-nowrap', tones[tone])}>{children}</span>;
-}
diff --git a/frontend/src/docs/nav.ts b/frontend/src/docs/nav.ts
deleted file mode 100644
index 9cafb7f..0000000
--- a/frontend/src/docs/nav.ts
+++ /dev/null
@@ -1,142 +0,0 @@
-// tabs, sidebar groups and pages; routes.ts maps each page to its component
-
-export interface DocPage {
- slug: string;
- title: string;
- keywords: string[];
-}
-
-export interface DocGroup {
- label: string | null;
- pages: DocPage[];
-}
-
-export interface DocTab {
- id: string;
- label: string;
- groups: DocGroup[];
-}
-
-export interface DocPageEntry extends DocPage {
- tabId: string;
- tabLabel: string;
- path: string;
-}
-
-export interface DocNeighbours {
- prev: DocPageEntry | null;
- next: DocPageEntry | null;
-}
-
-export const DOC_TABS: DocTab[] = [
- {
- id: 'overview',
- label: 'Overview',
- groups: [
- {
- label: null,
- pages: [
- { slug: '', title: 'Introduction', keywords: ['start', 'what is twiligent', 'paths'] },
- { slug: 'concepts', title: 'Members and administrators', keywords: ['instance', 'roles', 'who does what', 'shared'] },
- ],
- },
- ],
- },
- {
- id: 'use',
- label: 'Using Twiligent',
- groups: [
- {
- label: 'Get started',
- pages: [
- { slug: 'use/getting-started', title: 'Sign in and first steps', keywords: ['account', 'sign up', 'login'] },
- { slug: 'use/connect-accounts', title: 'Connect your accounts', keywords: ['youtube', 'instagram', 'reddit', 'tester', 'cookie'] },
- ],
- },
- {
- label: 'Work with Twiligent',
- pages: [
- { slug: 'use/analytics', title: 'Read your analytics', keywords: ['overview', 'videos', 'shorts', 'reels', 'charts'] },
- { slug: 'use/publishing', title: 'Publish and schedule', keywords: ['instagram', 'post', 'reel', 'story', 'bulk', 'schedule'] },
- { slug: 'use/tracked-content', title: 'Track content', keywords: ['reddit posts', 'youtube videos', 'categories', 'views'] },
- ],
- },
- {
- label: 'Help',
- pages: [
- { slug: 'use/troubleshooting', title: 'Troubleshooting', keywords: ['errors', 'pending', 'failed', 'contact', 'administrator'] },
- ],
- },
- ],
- },
- {
- id: 'self-host',
- label: 'Run your own',
- groups: [
- {
- label: 'Plan',
- pages: [
- { slug: 'self-host', title: 'Self-hosting overview', keywords: ['requirements', 'cost', 'accounts needed', 'architecture'] },
- ],
- },
- {
- label: 'Set up services',
- pages: [
- { slug: 'self-host/supabase', title: 'Supabase', keywords: ['database', 'auth', 'sql', 'rls', 'keys'] },
- { slug: 'self-host/google-sign-in', title: 'Sign in with Google (optional)', keywords: ['google', 'oauth', 'login', 'branding', 'logo', 'verification'] },
- { slug: 'self-host/email-codes', title: 'Email verification codes (optional)', keywords: ['email', 'resend', 'smtp', 'confirm', 'otp', 'code', 'sign up', 'hook'] },
- { slug: 'self-host/youtube', title: 'YouTube API key', keywords: ['google cloud', 'data api'] },
- { slug: 'self-host/instagram', title: 'Instagram app', keywords: ['meta', 'facebook', 'oauth', 'redirect', 'tester', 'app review'] },
- { slug: 'self-host/cloudinary', title: 'Cloudinary', keywords: ['media', 'upload preset', 'cdn'] },
- { slug: 'self-host/redis', title: 'Upstash Redis (optional)', keywords: ['cache', 'redis'] },
- ],
- },
- {
- label: 'Deploy',
- pages: [
- { slug: 'self-host/deploy-backend', title: 'Deploy the backend', keywords: ['cloudflare', 'worker', 'wrangler', 'secrets'] },
- { slug: 'self-host/deploy-frontend', title: 'Deploy the frontend', keywords: ['cloudflare pages', 'vite', 'env'] },
- { slug: 'self-host/github', title: 'GitHub automation', keywords: ['actions', 'scheduling backup', 'deploy on push'] },
- { slug: 'self-host/checklist', title: 'Launch checklist', keywords: ['verify', 'test', 'done'] },
- ],
- },
- ],
- },
- {
- id: 'reference',
- label: 'Reference',
- groups: [
- {
- label: null,
- pages: [
- { slug: 'reference/environment', title: 'Environment variables', keywords: ['keys', 'secrets', 'config', 'env'] },
- { slug: 'reference/scheduling', title: 'How scheduling works', keywords: ['cron', 'status', 'pending', 'claim'] },
- { slug: 'reference/security', title: 'Security', keywords: ['rls', 'service key', 'tokens', 'signups'] },
- { slug: 'reference/faq', title: 'FAQ', keywords: ['questions', 'cost', 'limits'] },
- ],
- },
- ],
- },
-];
-
-export const ALL_DOC_PAGES: DocPageEntry[] = DOC_TABS.flatMap(tab => tab.groups.flatMap(group => group.pages.map(page => ({
- ...page,
- tabId: tab.id,
- tabLabel: tab.label,
- path: page.slug ? `/docs/${page.slug}` : '/docs',
-}))));
-
-export function tabForPath(pathname: string): DocTab {
- const page = ALL_DOC_PAGES.find(p => p.path === pathname);
- return DOC_TABS.find(t => t.id === page?.tabId) || DOC_TABS[0];
-}
-
-export function neighbours(pathname: string): DocNeighbours {
- const i = ALL_DOC_PAGES.findIndex(p => p.path === pathname);
- return { prev: i > 0 ? ALL_DOC_PAGES[i - 1] : null, next: i >= 0 && i < ALL_DOC_PAGES.length - 1 ? ALL_DOC_PAGES[i + 1] : null };
-}
-
-export function firstPagePath(tab: DocTab): string {
- const page = tab.groups[0].pages[0];
- return page.slug ? `/docs/${page.slug}` : '/docs';
-}
diff --git a/frontend/src/docs/pages/Overview.tsx b/frontend/src/docs/pages/Overview.tsx
deleted file mode 100644
index 71cd37e..0000000
--- a/frontend/src/docs/pages/Overview.tsx
+++ /dev/null
@@ -1,95 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, H3, P, UL, A, Callout, PathCards, PathCard, Table } from '../components';
-
-export function Introduction() {
- return (
- <>
- <DocTitle
- title="Twiligent documentation"
- lead="Guides for everyone who uses Twiligent, and for the people who run their own copy of it."
- />
-
- <H2>What Twiligent does</H2>
- <P>
- Twiligent brings your YouTube channels, Instagram professional accounts and Reddit profiles into one place. You see their analytics side by side, publish and schedule Instagram posts, and follow individual Reddit posts and YouTube videos that matter to you.
- </P>
- <P>
- Twiligent is self-hosted. Every copy of it, called an <strong>instance</strong>, belongs to the person or team who set it up. That person is the instance's <strong>administrator</strong>. Everyone who signs in to it is a <strong>member</strong>.
- </P>
-
- <H2>Choose your path</H2>
- <P>Which guides you need depends on one question: did someone give you a Twiligent link to sign in to, or are you setting Twiligent up yourself?</P>
- <PathCards>
- <PathCard to="/docs/use/getting-started" title="Use Twiligent" art={0}>
- You signed in to an instance someone else runs. Connect your accounts, read analytics and schedule posts. Nothing to install.
- </PathCard>
- <PathCard to="/docs/self-host" title="Run your own" art={1}>
- You want your own instance. Set up Supabase, the platform keys and Cloudflare, step by step, mostly on free plans.
- </PathCard>
- <PathCard to="/docs/reference/environment" title="Reference" art={2}>
- Every environment variable, how scheduling works, and the security model, in one place.
- </PathCard>
- </PathCards>
-
- <H2>What you can do</H2>
- <Table
- head={['Area', 'What it covers']}
- rows={[
- [<strong>Analytics</strong>, 'Subscribers, followers, karma, views, likes and comments across platforms, with per-account detail pages.'],
- [<strong>Libraries</strong>, 'Every YouTube video and Short, every Instagram reel, post and video, and every Reddit post, searchable and filterable.'],
- [<strong>Publishing</strong>, 'Publish photos, Reels and Stories to Instagram now, schedule them for later, or upload many files at once.'],
- [<strong>Tracked content</strong>, 'Follow any Reddit post or YouTube video by link, group them into categories and compare them.'],
- ]}
- />
-
- <Callout type="note" title="Not sure whether you are a member or an administrator?">
- <p>If you only ever opened a link and signed in, you are a member: read <A to="/docs/use/getting-started">Using Twiligent</A>. If you created the Supabase project and deployed the app, you are the administrator: read <A to="/docs/self-host">Run your own</A>.</p>
- </Callout>
- </>
- );
-}
-
-export function Concepts() {
- return (
- <>
- <DocTitle
- title="Members and administrators"
- lead="Who sets up what, and what each person can and cannot change."
- />
-
- <H2>Two roles</H2>
- <H3>Member</H3>
- <P>
- A member signs in to an existing instance with an email and password. Members connect their own YouTube, Instagram and Reddit accounts, read their analytics, publish and schedule posts, and track content. A member never needs a server, a database, API keys or GitHub.
- </P>
- <H3>Administrator</H3>
- <P>
- The administrator runs the instance. They create the Supabase project, get the platform keys (YouTube, Instagram, Cloudinary), deploy the backend and frontend to Cloudflare, and keep them running. The administrator is also the person members contact for Instagram tester access or when something is not working.
- </P>
-
- <H2>Who does what</H2>
- <Table
- head={['Task', 'Member', 'Administrator']}
- rows={[
- ['Sign in and add accounts', 'Yes', 'Yes'],
- ['Read analytics, publish and schedule', 'Yes', 'Yes'],
- ['Request Instagram tester access', 'Yes, by email', 'Adds the tester in the Meta app'],
- ['Set up scheduling', 'Nothing to do. The server publishes scheduled posts.', 'Deploys the backend once; optionally adds the GitHub backup'],
- ['Create and own the Supabase project', 'No', 'Yes'],
- ['Hold API keys and secrets', 'Never', 'Yes, as server secrets only'],
- ['Deploy updates', 'No', 'Yes'],
- ]}
- />
-
- <H2>What is shared and what is yours</H2>
- <UL>
- <li><strong>Shared by everyone on the instance:</strong> the YouTube API key, the Instagram (Meta) app, the Cloudinary account and the server itself. These are set once by the administrator.</li>
- <li><strong>Yours alone:</strong> the accounts you connect, their access tokens and cookies, your scheduled posts and your tracked content. Other members cannot see them, and the server never sends tokens or cookies back to any browser.</li>
- </UL>
-
- <Callout type="tip" title="Running Twiligent just for yourself?">
- <p>Then you are both. Follow <A to="/docs/self-host">Run your own</A> once, then use the app like any member.</p>
- </Callout>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/Reference.tsx b/frontend/src/docs/pages/Reference.tsx
deleted file mode 100644
index a774212..0000000
--- a/frontend/src/docs/pages/Reference.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-// pages live in reference/; this barrel keeps them in one lazy chunk
-export { default as Environment } from './reference/Environment';
-export { default as Scheduling } from './reference/Scheduling';
-export { default as Security } from './reference/Security';
-export { default as FAQ } from './reference/FAQ';
diff --git a/frontend/src/docs/pages/SelfHost.tsx b/frontend/src/docs/pages/SelfHost.tsx
deleted file mode 100644
index d76a1da..0000000
--- a/frontend/src/docs/pages/SelfHost.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-// pages live in selfHost/; this barrel keeps them in one lazy chunk
-export { SCHEMA_SQL } from './selfHost/selfHostSql';
-export { default as Overview } from './selfHost/Overview';
-export { default as Supabase } from './selfHost/Supabase';
-export { default as GoogleSignIn } from './selfHost/GoogleSignIn';
-export { default as EmailCodes } from './selfHost/EmailCodes';
-export { default as YouTube } from './selfHost/YouTube';
-export { default as Instagram } from './selfHost/Instagram';
-export { default as Cloudinary } from './selfHost/Cloudinary';
-export { default as Redis } from './selfHost/Redis';
-export { default as DeployBackend } from './selfHost/DeployBackend';
-export { default as DeployFrontend } from './selfHost/DeployFrontend';
-export { default as GitHub } from './selfHost/GitHub';
-export { default as Checklist } from './selfHost/Checklist';
diff --git a/frontend/src/docs/pages/Use.tsx b/frontend/src/docs/pages/Use.tsx
deleted file mode 100644
index 8c5ce58..0000000
--- a/frontend/src/docs/pages/Use.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-// each page lives in use/; this barrel keeps them in one lazy chunk for routes.ts
-export { default as GettingStarted } from './use/GettingStarted';
-export { default as ConnectAccounts } from './use/ConnectAccounts';
-export { default as Analytics } from './use/Analytics';
-export { default as Publishing } from './use/Publishing';
-export { default as TrackedContent } from './use/TrackedContent';
-export { default as Troubleshooting } from './use/Troubleshooting';
diff --git a/frontend/src/docs/pages/reference/Environment.tsx b/frontend/src/docs/pages/reference/Environment.tsx
deleted file mode 100644
index 5b10c02..0000000
--- a/frontend/src/docs/pages/reference/Environment.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, UL, A, Code, Callout, Table, Badge } from '../../components';
-
-type Need = keyof typeof NEED;
-
-const BACKEND_VARS: [string, Need, boolean, string, string][] = [
- ['SUPABASE_URL', 'required', false, 'Supabase, Project Settings, Data API', 'Which database the Worker talks to.'],
- ['SUPABASE_SERVICE_KEY', 'required', true, 'Supabase, Project Settings, API Keys, secret key (legacy: service_role)', 'Reads and writes all tables on behalf of members.'],
- ['SUPABASE_ANON_KEY', 'required', false, 'Supabase, Project Settings, API Keys, publishable key (legacy: anon)', 'Checks that a sign-in token is genuine.'],
- ['YOUTUBE_API_KEY', 'youtube', true, 'Google Cloud, APIs and Services, Credentials', 'Every YouTube read.'],
- ['INSTAGRAM_APP_ID', 'instagram', false, 'Meta app, Instagram, API setup with Instagram business login', 'Starts Instagram sign-in.'],
- ['INSTAGRAM_APP_SECRET', 'instagram', true, 'Same page as the app ID', 'Exchanges and renews Instagram access tokens.'],
- ['CLOUDINARY_CLOUD_NAME', 'publishing', false, 'Cloudinary dashboard', 'Where uploaded media goes.'],
- ['CLOUDINARY_UPLOAD_PRESET', 'publishing', false, 'Cloudinary, Settings, Upload, Upload presets (unsigned)', 'Lets browsers upload without the Cloudinary API secret.'],
- ['BACKEND_URL', 'instagram', false, 'Your Worker address, no trailing slash', 'Builds the Instagram redirect URI.'],
- ['FRONTEND_URL', 'required', false, 'Your Pages address', 'The only site the backend accepts requests from, and where members land after Instagram sign-in.'],
- ['ALLOWED_ORIGINS', 'optional', false, 'Other addresses the site is served from, comma-separated, for example https://twiligent.pages.dev', 'Lets the site call the backend from more than one address.'],
- ['UPSTASH_REDIS_REST_URL', 'optional', false, 'Upstash database, REST API', 'Cache address.'],
- ['UPSTASH_REDIS_REST_TOKEN', 'optional', true, 'Upstash database, REST API', 'Cache password.'],
- ['SEND_EMAIL_HOOK_SECRET', 'optional', true, 'Supabase, Authentication, Auth Hooks, Send Email hook', 'Proves an email request came from your Supabase project.'],
- ['RESEND_API_KEY', 'optional', true, 'Resend, API Keys (sending access)', 'Sends verification codes and other sign-in emails.'],
- ['EMAIL_FROM', 'optional', false, 'A sender on a domain verified in Resend, for example Twiligent <[email protected]>', 'The sender of those emails.'],
- ['EMAIL_DAILY_LIMIT', 'optional', false, 'A whole number; 100 when not set', 'Emails a day before sign-up points people to Google.'],
-];
-
-const FRONTEND_VARS: [string, Need, string][] = [
- ['VITE_SUPABASE_URL', 'required', 'Same as SUPABASE_URL.'],
- ['VITE_SUPABASE_ANON_KEY', 'required', 'The publishable key. Never the secret key.'],
- ['VITE_API_URL', 'required', 'Backend URL plus /api, for example https://twiligent.you.workers.dev/api. Defaults to http://localhost:8787/api in development.'],
- ['VITE_ADMIN_EMAIL', 'optional', 'Where members are told to write for Instagram tester access or help.'],
- ['VITE_GOOGLE_CLIENT_ID', 'optional', 'Web client ID from Google Auth Platform. Shows the Sign in with Google button; leave unset to hide it.'],
-];
-
-const NEED = {
- required: <Badge tone="required">Required</Badge>,
- youtube: <Badge tone="optional">For YouTube</Badge>,
- instagram: <Badge tone="optional">For Instagram</Badge>,
- publishing: <Badge tone="optional">For publishing</Badge>,
- optional: <Badge tone="optional">Optional</Badge>,
-};
-
-export default function Environment() {
- return (
- <>
- <DocTitle title="Environment variables" lead="Every value Twiligent reads, where it comes from, and where it goes." />
-
- <Callout type="note" title="Members can skip this page">
- <p>Only the administrator of an instance sets these. If you sign in to someone else's Twiligent, nothing here applies to you.</p>
- </Callout>
-
- <H2>Backend (Cloudflare Worker)</H2>
- <P>Set each one with <Code>npx wrangler secret put NAME</Code> in <Code>backend/</Code>. For local development, put them in <Code>backend/.dev.vars</Code>, which Git ignores. See <A to="/docs/self-host/deploy-backend">Deploy the backend</A>.</P>
- <P>The backend only answers browsers on <Code>FRONTEND_URL</Code> and the addresses in <Code>ALLOWED_ORIGINS</Code>. If the site loads but every page fails to load data, check that <Code>FRONTEND_URL</Code> matches the address in the browser exactly, including <Code>https://</Code>. A backend running on your own computer also accepts the local website on port 5173.</P>
- <Table
- head={['Name', 'Needed', 'Where to get it', 'Used for']}
- rows={BACKEND_VARS.map(([name, need, secret, from, use]) => [
- <span className="inline-flex flex-col gap-1"><Code>{name}</Code>{secret && <Badge tone="secret">Secret</Badge>}</span>,
- NEED[need],
- from,
- use,
- ])}
- />
- <P>Platform keys are shared by every member of the instance. Missing ones only switch off that platform: Settings shows which are set, and members see a clear message instead of an error.</P>
-
- <H2>Frontend (Cloudflare Pages)</H2>
- <P>Set these in <Code>frontend/.env</Code> before running <Code>npm run build</Code> in the top folder of the project, or as GitHub secrets when the deploy workflow builds for you. They are built into the site and are public.</P>
- <Table
- head={['Name', 'Needed', 'Value']}
- rows={FRONTEND_VARS.map(([name, need, value]) => [<Code>{name}</Code>, NEED[need], value])}
- />
-
- <H2>GitHub Actions secrets</H2>
- <Table
- head={['Name', 'Used by']}
- rows={[
- [<Code>CLOUDFLARE_API_TOKEN</Code>, 'Both deploy workflows'],
- [<Code>CLOUDFLARE_ACCOUNT_ID</Code>, 'Both deploy workflows'],
- [<><Code>VITE_SUPABASE_URL</Code>, <Code>VITE_SUPABASE_ANON_KEY</Code>, <Code>VITE_API_URL</Code>, <Code>VITE_ADMIN_EMAIL</Code>, <Code>VITE_GOOGLE_CLIENT_ID</Code></>, 'Frontend deploy workflow'],
- [<><Code>SUPABASE_URL</Code>, <Code>SUPABASE_SERVICE_KEY</Code></>, 'Backup scheduler (publish-scheduled.yml)'],
- ]}
- />
-
- <H2>Not needed</H2>
- <UL>
- <li><Code>REDDIT_ENCRYPTION_KEY</Code> appears in older notes but is no longer read. Reddit cookies are stored server-side and never returned to the browser.</li>
- <li>A GitHub personal access token. Earlier versions asked for one in Settings; it was never used and has been removed.</li>
- <li>A Reddit API key. Members use their own session cookie.</li>
- </UL>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/reference/FAQ.tsx b/frontend/src/docs/pages/reference/FAQ.tsx
deleted file mode 100644
index 02b75bb..0000000
--- a/frontend/src/docs/pages/reference/FAQ.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from 'react';
-import { DocTitle, H3, P, A } from '../../components';
-
-export default function FAQ() {
- return (
- <>
- <DocTitle title="FAQ" lead="Short answers to the questions people ask most." />
-
- <H3>Do I need GitHub to schedule posts?</H3>
- <P>No. Members never do. Administrators only need the deployed Worker; the GitHub workflow is an optional backup.</P>
-
- <H3>Do I need my own Supabase project?</H3>
- <P>Only if you run your own instance. Members of someone else's instance use theirs.</P>
-
- <H3>Why can't I connect my Instagram account?</H3>
- <P>It must be a Business or Creator account, and while the instance's Meta app is in development mode it must be added as a tester. See <A to="/docs/use/connect-accounts">Connect your accounts</A>.</P>
-
- <H3>Can I connect a YouTube channel I do not own?</H3>
- <P>Yes. YouTube analytics use public data, so any public channel works.</P>
-
- <H3>Does Twiligent publish to YouTube or Reddit?</H3>
- <P>No. Publishing is Instagram only. YouTube and Reddit are analytics only.</P>
-
- <H3>What does running an instance cost?</H3>
- <P>For a small team, nothing. Supabase, Cloudflare, Cloudinary and Upstash free plans cover typical use, and the YouTube and Instagram APIs are free.</P>
-
- <H3>How fresh is the data?</H3>
- <P>Data is fetched when you open a page or choose Refresh, and cached for a short time when Redis is set up. Instagram tokens are renewed nightly.</P>
-
- <H3>Who do I contact for help?</H3>
- <P>The administrator of your instance. Their address is on the <A to="/docs/use/troubleshooting">Troubleshooting</A> page.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/reference/Scheduling.tsx b/frontend/src/docs/pages/reference/Scheduling.tsx
deleted file mode 100644
index 08f3a68..0000000
--- a/frontend/src/docs/pages/reference/Scheduling.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, H3, P, UL, Code, Table, Badge } from '../../components';
-
-export default function Scheduling() {
- return (
- <>
- <DocTitle title="How scheduling works" lead="What happens between choosing Schedule post and the post going live." />
-
- <H2>For members</H2>
- <P>Nothing to set up. Pick a time, choose <strong>Schedule post</strong>, and close the browser if you like. The server publishes the post within 15 minutes after the time you picked.</P>
-
- <H2>For administrators</H2>
- <P>Deploying the backend is all that is required. The Worker's cron trigger runs every 15 minutes and publishes every post that is due. The GitHub workflow is an optional second runner for extra reliability.</P>
-
- <H3>The lifecycle of a post</H3>
- <Table
- head={['Step', 'Status', 'What happens']}
- rows={[
- ['1', <Badge>pending</Badge>, 'The file is on Cloudinary and the post is saved with its time.'],
- ['2', <Badge>publishing</Badge>, 'A scheduler claims the post. Only one scheduler can claim it, so it is published once.'],
- ['3', <Badge>published</Badge>, 'Instagram accepted it. The Instagram media ID is saved.'],
- ['3', <Badge>failed</Badge>, 'Instagram rejected it. The reason is saved and shown in the Error column.'],
- ]}
- />
-
- <H3>Two schedulers, one post</H3>
- <P>Both schedulers claim a post by changing it from <Code>pending</Code> to <Code>publishing</Code> in a single database update that only succeeds while it is still pending. Whichever arrives second finds nothing to claim and skips it.</P>
-
- <H3>When posts stay pending</H3>
- <UL>
- <li>The Worker was never deployed, or its cron triggers were removed. Check <strong>Triggers</strong> on the Worker in the Cloudflare dashboard.</li>
- <li><Code>SUPABASE_SERVICE_KEY</Code> or <Code>SUPABASE_URL</Code> is wrong on the Worker.</li>
- <li>The connected Instagram account's access was removed. Reconnect it.</li>
- </UL>
- <P>Twiligent warns members when a post is more than 30 minutes overdue and tells them to contact the administrator.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/reference/Security.tsx b/frontend/src/docs/pages/reference/Security.tsx
deleted file mode 100644
index 0a3900f..0000000
--- a/frontend/src/docs/pages/reference/Security.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, UL, A, Table } from '../../components';
-
-export default function Security() {
- return (
- <>
- <DocTitle title="Security" lead="How member data is kept apart, and the settings an administrator must get right." />
-
- <H2>What members can rely on</H2>
- <UL>
- <li>Other members cannot see your accounts, scheduled posts or tracked content.</li>
- <li>Instagram access tokens and Reddit cookies are stored on the server and never sent to any browser, including yours.</li>
- <li>No member, including you, ever handles the instance's API keys.</li>
- </UL>
-
- <H2>How isolation works</H2>
- <P>The browser signs in with Supabase and sends its token with every request. The Worker verifies the token and takes the member's ID from it, never from anything the browser sends. Every database query is limited to that ID. Responses are stripped of tokens and cookies before they leave the Worker.</P>
-
- <H2>Administrator responsibilities</H2>
- <Table
- head={['Setting', 'Why it matters']}
- rows={[
- ['Row level security on all four tables', 'The publishable key ships in the website. With security off, anyone could use it to read every table directly.'],
- ['Secret key only in server secrets', 'It bypasses all database rules. Keep it in Worker secrets and GitHub Actions secrets only.'],
- ['Signups', 'Supabase allows anyone with the address to sign up. Turn signups off for a private instance.'],
- ['backend/.dev.vars never committed', 'It holds every secret for local development.'],
- ['Instagram testers', 'In development mode, only people you add can connect Instagram.'],
- ]}
- />
- <P>The SQL to turn on row level security is on the <A to="/docs/self-host/supabase">Supabase</A> page.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/Checklist.tsx b/frontend/src/docs/pages/selfHost/Checklist.tsx
deleted file mode 100644
index d8d79ed..0000000
--- a/frontend/src/docs/pages/selfHost/Checklist.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, A, Code, Table } from '../../components';
-
-export default function Checklist() {
- return (
- <>
- <DocTitle title="Launch checklist" lead="Confirm everything works before you invite anyone." />
- <Table
- head={['Check', 'How']}
- rows={[
- ['Backend is up', <><Code>/api/health</Code> on your backend URL returns status ok.</>],
- ['Sign-in works', 'Create an account on the site and sign in.'],
- ['Keys are detected', 'Settings, Server API keys shows YouTube, Instagram and Cloudinary as set.'],
- ['YouTube works', 'Add any public channel in Accounts.'],
- ['Instagram works', 'Connect your own tester account in Accounts.'],
- ['Publishing works', 'Schedule a post 5 minutes ahead. It shows Published within 20 minutes.'],
- ['Data is private', 'Row level security is on for all four tables (Supabase, Table Editor shows no "RLS disabled" warning).'],
- ['Signups match your plan', 'Turn off new signups in Supabase if the instance is private.'],
- ['Members can reach you', 'VITE_ADMIN_EMAIL is your address.'],
- ]}
- />
- <H2>Tell your members</H2>
- <P>Send them the site address and a link to <A to="/docs/use/getting-started">Using Twiligent</A>. They need nothing else. If they will connect Instagram, collect their usernames and add them as testers first.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/Cloudinary.tsx b/frontend/src/docs/pages/selfHost/Cloudinary.tsx
deleted file mode 100644
index 7375b85..0000000
--- a/frontend/src/docs/pages/selfHost/Cloudinary.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from 'react';
-import { DocTitle, P, A, Code, Callout, Steps, Step } from '../../components';
-
-export default function Cloudinary() {
- return (
- <>
- <DocTitle title="Cloudinary" lead="Instagram publishes from a public URL, so files are uploaded to Cloudinary first." />
- <Steps>
- <Step title="Create an account">
- <P>Sign up at <A href="https://cloudinary.com/users/register_free">cloudinary.com</A>. On the dashboard, copy the <strong>Cloud name</strong>. This is <Code>CLOUDINARY_CLOUD_NAME</Code>.</P>
- </Step>
- <Step title="Create an unsigned upload preset">
- <P>Open <strong>Settings</strong>, then <strong>Upload</strong>, then <strong>Upload presets</strong>, and choose <strong>Add upload preset</strong>. Set <strong>Signing mode</strong> to <strong>Unsigned</strong> and save. Copy the preset name. This is <Code>CLOUDINARY_UPLOAD_PRESET</Code>.</P>
- </Step>
- </Steps>
- <Callout type="note" title="Why unsigned">
- <p>Browsers upload large videos straight to Cloudinary so they never pass through the Worker. Unsigned presets allow this without exposing your Cloudinary API secret. Both values are only handed to signed-in members.</p>
- </Callout>
- <P>Without Cloudinary, everything works except publishing and uploading screenshots for tracked Reddit posts.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/DeployBackend.tsx b/frontend/src/docs/pages/selfHost/DeployBackend.tsx
deleted file mode 100644
index 05ff3ae..0000000
--- a/frontend/src/docs/pages/selfHost/DeployBackend.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, A, Code, CodeBlock, Steps, Step, Table } from '../../components';
-
-export default function DeployBackend() {
- return (
- <>
- <DocTitle title="Deploy the backend" lead="Put the Worker on Cloudflare and give it every secret." />
- <Steps>
- <Step title="Install and sign in">
- <P>Run these in the top folder of your copy of the project. One <Code>npm install</Code> there installs the backend and the website together; do not run it inside <Code>backend</Code> or <Code>frontend</Code>.</P>
- <CodeBlock>{`
-npm install
-cd backend
-npx wrangler login
-`}</CodeBlock>
- <P>A browser window opens to sign in to Cloudflare. Create a free account if you do not have one. Run the rest of the commands on this page from the <Code>backend</Code> folder.</P>
- </Step>
- <Step title="Deploy once to get your URL">
- <CodeBlock>{'npx wrangler deploy'}</CodeBlock>
- <P>Wrangler builds the Worker from <Code>server.ts</Code>, the entry file named in <Code>wrangler.toml</Code>, and prints the Worker address, for example <Code>https://twiligent.your-subdomain.workers.dev</Code>. This is your <strong>backend URL</strong>.</P>
- <P>If you changed the code, run <Code>npm run typecheck</Code> in the top folder first. Wrangler does not check TypeScript types, so this is the step that catches a type error before it reaches Cloudflare.</P>
- </Step>
- <Step title="Add the secrets">
- <P>Run each command and paste the value when asked. Values are encrypted by Cloudflare and never shown again.</P>
- <CodeBlock>{`
-npx wrangler secret put SUPABASE_URL
-npx wrangler secret put SUPABASE_SERVICE_KEY
-npx wrangler secret put SUPABASE_ANON_KEY
-npx wrangler secret put YOUTUBE_API_KEY
-npx wrangler secret put INSTAGRAM_APP_ID
-npx wrangler secret put INSTAGRAM_APP_SECRET
-npx wrangler secret put CLOUDINARY_CLOUD_NAME
-npx wrangler secret put CLOUDINARY_UPLOAD_PRESET
-npx wrangler secret put BACKEND_URL
-npx wrangler secret put FRONTEND_URL
-`}</CodeBlock>
- <P>If you use Redis, also add <Code>UPSTASH_REDIS_REST_URL</Code> and <Code>UPSTASH_REDIS_REST_TOKEN</Code>. Skip any platform you do not use. <Code>FRONTEND_URL</Code> is the address of the site from the next page; you can set it after deploying the frontend, but the site cannot reach the backend until you do. If the site is served from more than one address, list the others in <Code>ALLOWED_ORIGINS</Code>, separated by commas. To email verification codes, add the secrets in <A to="/docs/self-host/email-codes">Email verification codes</A>.</P>
- </Step>
- <Step title="Check it is running">
- <P>Open <Code>{'https://your-backend-url/api/health'}</Code>. It should return <Code>{'{"status":"ok"}'}</Code> with a timestamp. Every response also carries an <Code>X-Request-Id</Code> header; server error messages in the app show the same id, and you can find its log line with <Code>npx wrangler tail</Code>.</P>
- </Step>
- </Steps>
-
- <H2>Scheduled jobs</H2>
- <P>Deploying also registers two cron triggers from <Code>wrangler.toml</Code>. You do not need to set anything up.</P>
- <Table
- head={['Schedule', 'What it does']}
- rows={[
- [<Code>*/15 * * * *</Code>, 'Publishes scheduled Instagram posts that are due.'],
- [<Code>0 0 * * *</Code>, 'Renews Instagram access tokens before they expire.'],
- ]}
- />
-
- <H2>Run it locally</H2>
- <P>Create <Code>backend/.dev.vars</Code> with the same names and values, one per line as <Code>NAME=value</Code>, with <Code>{'BACKEND_URL=http://localhost:8787'}</Code> and <Code>{'FRONTEND_URL=http://localhost:5173'}</Code>. Then run <Code>npm run dev</Code> in the top folder of the project to start the backend on port 8787 and the website on port 5173 together, or <Code>npm run dev:backend</Code> for the backend alone. The file is ignored by Git; never commit it.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/DeployFrontend.tsx b/frontend/src/docs/pages/selfHost/DeployFrontend.tsx
deleted file mode 100644
index b971438..0000000
--- a/frontend/src/docs/pages/selfHost/DeployFrontend.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import React from 'react';
-import { DocTitle, P, Code, Callout, CodeBlock, Steps, Step } from '../../components';
-
-export default function DeployFrontend() {
- return (
- <>
- <DocTitle title="Deploy the frontend" lead="Build the website and host it on Cloudflare Pages." />
- <Callout type="note" title="These values are public">
- <p>Anything starting with <Code>VITE_</Code> is built into the website and visible to every visitor. Only use the publishable Supabase key here, never the secret one.</p>
- </Callout>
- <Steps>
- <Step title="Create frontend/.env">
- <CodeBlock title="frontend/.env">{`
-VITE_SUPABASE_URL=https://abcdefgh.supabase.co
-VITE_SUPABASE_ANON_KEY=sb_publishable_...
-VITE_API_URL=https://twiligent.your-subdomain.workers.dev/api
-`}</CodeBlock>
- <P><Code>VITE_API_URL</Code> is your backend URL followed by <Code>/api</Code>. Leaving off <Code>/api</Code> is the most common setup mistake.</P>
- </Step>
- <Step title="Build and deploy">
- <P>Run these in the top folder of the project. If you have not installed yet, run <Code>npm install</Code> there first; it covers the website too.</P>
- <CodeBlock>{`
-npm run build
-cd frontend
-npx wrangler pages deploy dist --project-name=twiligent
-`}</CodeBlock>
- <P><Code>npm run build</Code> runs Vite with <Code>frontend/vite.config.ts</Code> and writes the site to <Code>frontend/dist</Code>. The first time, Wrangler creates the Pages project and prints the address, for example <Code>https://twiligent.pages.dev</Code>.</P>
- </Step>
- <Step title="Point the backend at it">
- <P>Set <Code>FRONTEND_URL</Code> on the Worker to that address. The backend only answers requests from it, and Instagram sign-in returns members there:</P>
- <CodeBlock>{`
-cd ../backend
-npx wrangler secret put FRONTEND_URL
-`}</CodeBlock>
- </Step>
- </Steps>
- <P>Open the site, create your account and connect something. For a custom domain, add it under the Pages project's <strong>Custom domains</strong> tab and update <Code>FRONTEND_URL</Code> to match. To keep the <Code>pages.dev</Code> address working too, add it to <Code>ALLOWED_ORIGINS</Code> on the Worker.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/EmailCodes.tsx b/frontend/src/docs/pages/selfHost/EmailCodes.tsx
deleted file mode 100644
index cc09d33..0000000
--- a/frontend/src/docs/pages/selfHost/EmailCodes.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import React from 'react';
-import { DocTitle, P, A, Code, CodeBlock, Callout, Steps, Step } from '../../components';
-
-export default function EmailCodes() {
- return (
- <>
- <DocTitle title="Email verification codes (optional)" lead="Confirm each new email account with a 6-digit code, sent free through Resend, with a daily cap." />
-
- <Callout type="note" title="How it works">
- <p>Supabase Auth hands every sign-up, password reset and sign-in email to your backend instead of sending it. The backend checks that the request came from your Supabase project, counts the day&apos;s emails, and sends the code through Resend. Resend&apos;s free plan sends 100 emails a day, so the backend stops at 100. After that, the sign-up page tells people to sign in with Google instead, and email codes start again at midnight UTC.</p>
- </Callout>
-
- <Steps>
- <Step title="Create a Resend account and verify your domain">
- <P>Sign up at <A href="https://resend.com">resend.com</A>. Under <strong>Domains</strong>, add the domain you will send from, such as <Code>example.com</Code>, and add the DNS records Resend shows. Emails from an unverified domain are refused. The free plan allows one domain.</P>
- <P>Under the domain&apos;s <strong>Configuration</strong>, turn off <strong>Click tracking</strong> and <strong>Open tracking</strong>. Click tracking rewrites the confirmation links, and its tracking record must not reuse a name you already serve, such as the subdomain Twiligent runs on: Resend&apos;s record replaces it and takes the site offline. If Resend lists a <strong>Tracking</strong> record, skip it.</P>
- </Step>
- <Step title="Create an API key">
- <P>Under <strong>API Keys</strong>, create a key with <strong>Sending access</strong> for that domain. Copy it; Resend shows it once.</P>
- </Step>
- <Step title="Add the email secrets to the backend">
- <P>In <Code>backend/</Code>, run:</P>
- <CodeBlock>{`npx wrangler secret put RESEND_API_KEY
-npx wrangler secret put EMAIL_FROM`}</CodeBlock>
- <P><Code>EMAIL_FROM</Code> is the sender people see, on your verified domain, for example <Code>{'Twiligent <[email protected]>'}</Code>. If you pay for a Resend plan without a daily quota, also set <Code>EMAIL_DAILY_LIMIT</Code> to the number of emails a day you allow.</P>
- </Step>
- <Step title="Point Supabase at the backend">
- <P>In Supabase, open <strong>Authentication</strong>, <strong>Auth Hooks</strong>, and add a <strong>Send Email</strong> hook of type <strong>HTTPS</strong>. The URL is your backend address followed by <Code>/api/auth/email-hook</Code>, for example <Code>https://twiligent-api.example.workers.dev/api/auth/email-hook</Code>. Generate a secret, copy it, and save the hook.</P>
- <CodeBlock>{`npx wrangler secret put SEND_EMAIL_HOOK_SECRET`}</CodeBlock>
- <P>Paste the secret exactly as Supabase shows it, starting with <Code>v1,whsec_</Code>.</P>
- </Step>
- <Step title="Turn on email confirmation">
- <P>Open <strong>Sign In / Providers</strong>, <strong>Email</strong>. Turn on <strong>Confirm email</strong> and keep the email OTP length at 6. New members then enter the code on the sign-up page before they can sign in.</P>
- </Step>
- <Step title="Slow down bursts">
- <P>Open <strong>Rate Limits</strong> and set <strong>Rate limit for sending emails</strong> to about 30 an hour, so a burst of sign-ups cannot use the whole day at once. The backend also allows at most 5 emails a day to any one address. To stop automated sign-ups, turn on CAPTCHA under <strong>Attack Protection</strong>.</P>
- </Step>
- <Step title="Test it">
- <P>Create an account with an address you own. The code should arrive within a minute, from your <Code>EMAIL_FROM</Code> address. If it does not, run <Code>npx wrangler tail</Code> in <Code>backend/</Code> while you sign up: a <Code>request failed</Code> line explains why, for example an unverified domain.</P>
- </Step>
- </Steps>
-
- <Callout type="warning" title="Every email counts">
- <p>Password resets, email changes and security notices go through the same hook and count towards the 100. When the cap is reached, notices are skipped rather than blocking the change they report. Without Redis, the backend cannot count, and Resend&apos;s own daily quota is the only limit; the message people see is the same.</p>
- </Callout>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/GitHub.tsx b/frontend/src/docs/pages/selfHost/GitHub.tsx
deleted file mode 100644
index 6600319..0000000
--- a/frontend/src/docs/pages/selfHost/GitHub.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, A, Code, Callout, Steps, Step, Table } from '../../components';
-
-export default function GitHub() {
- return (
- <>
- <DocTitle title="GitHub automation" lead="Deploy on every push, and keep a second scheduler running in case the Worker misses a run." />
- <P>Both parts are optional. Fork <A href="https://github.com/spacesdrive/twiligent">spacesdrive/twiligent</A> to your own GitHub account first. Add secrets in your fork under <strong>Settings</strong>, <strong>Secrets and variables</strong>, <strong>Actions</strong>, <strong>New repository secret</strong>.</P>
-
- <H2>Deploy on push</H2>
- <P>The workflows <Code>deploy-backend.yml</Code> and <Code>deploy-frontend.yml</Code> deploy whenever <Code>backend/</Code> or <Code>frontend/</Code> changes on <Code>main</Code>. A change to <Code>shared/</Code>, <Code>tsconfig.base.json</Code>, <Code>package.json</Code> or <Code>package-lock.json</Code> in the top folder deploys both, because both parts use those files. Each workflow installs the packages itself, so there is nothing to install on GitHub. Before deploying, each one checks the TypeScript types and runs the tests, and stops if either fails. A third workflow, <Code>ci.yml</Code>, runs the same checks on every pull request and on pushes to other branches.</P>
- <Table
- head={['Secret', 'Where to get it']}
- rows={[
- [<Code>CLOUDFLARE_API_TOKEN</Code>, <>Cloudflare dashboard, <strong>My Profile</strong>, <strong>API Tokens</strong>, <strong>Create Token</strong>, template <strong>Edit Cloudflare Workers</strong>. Add the <strong>Cloudflare Pages: Edit</strong> permission.</>],
- [<Code>CLOUDFLARE_ACCOUNT_ID</Code>, 'Cloudflare dashboard, Workers and Pages overview, shown on the right as Account ID.'],
- [<Code>VITE_SUPABASE_URL</Code>, 'Same value as in frontend/.env.'],
- [<Code>VITE_SUPABASE_ANON_KEY</Code>, 'Same value as in frontend/.env.'],
- [<Code>VITE_API_URL</Code>, 'Same value as in frontend/.env, ending in /api.'],
- [<Code>VITE_ADMIN_EMAIL</Code>, 'Optional. Your contact address.'],
- [<Code>VITE_GOOGLE_CLIENT_ID</Code>, 'Optional. Shows Continue with Google on the sign-in page.'],
- ]}
- />
- <P>Worker secrets stay in Cloudflare; the backend workflow does not need them.</P>
-
- <H2>Backup scheduler</H2>
- <P>The Worker already publishes scheduled posts. <Code>publish-scheduled.yml</Code> runs the same job from GitHub every 15 minutes as a safety net, with <Code>node scripts/publish-scheduled.ts</Code> on Node 24. The script needs no packages, so the workflow installs nothing. Each post is claimed before publishing, so it is never posted twice even when both run at once.</P>
- <Steps>
- <Step title="Add two secrets">
- <P><Code>SUPABASE_URL</Code> and <Code>SUPABASE_SERVICE_KEY</Code>, with the same values the Worker uses.</P>
- </Step>
- <Step title="Enable workflows">
- <P>Forks start with Actions turned off. Open the <strong>Actions</strong> tab and choose <strong>I understand my workflows, go ahead and enable them</strong>. Then open <strong>Instagram Scheduled Publisher</strong> and choose <strong>Enable workflow</strong>.</P>
- </Step>
- <Step title="Run it once">
- <P>Choose <strong>Run workflow</strong>. It worked if the run finishes with a green check and the log says <Code>No posts due for publishing</Code> or shows a Results line.</P>
- </Step>
- </Steps>
- <Callout type="tip" title="Private forks">
- <p>Public repositories get unlimited Actions minutes. A private fork gets 2,000 free minutes a month; change the schedule in the workflow to every 30 minutes to stay inside it.</p>
- </Callout>
- <P>The in-app version of these steps, with links filled in for your GitHub username, is in <strong>Settings</strong>, <strong>Scheduled publishing</strong>.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/GoogleSignIn.tsx b/frontend/src/docs/pages/selfHost/GoogleSignIn.tsx
deleted file mode 100644
index c7ac968..0000000
--- a/frontend/src/docs/pages/selfHost/GoogleSignIn.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from 'react';
-import { DocTitle, P, A, Code, Callout, Steps, Step } from '../../components';
-
-export default function GoogleSignIn() {
- return (
- <>
- <DocTitle title="Sign in with Google (optional)" lead="Let members sign in with their Google account, with your name and logo on Google's sign-in screen." />
-
- <Callout type="note" title="How it works">
- <p>Twiligent shows Google's own sign-in button. Google returns a signed ID token to the browser, and Supabase verifies it directly. Nothing redirects through your Supabase address, so every domain Google sees is one you own, which is what lets Google approve your logo.</p>
- </Callout>
-
- <Steps>
- <Step title="Serve Twiligent from your own domain">
- <P>Google only verifies domains you prove you own in <A href="https://search.google.com/search-console">Search Console</A>. Addresses like <Code>twiligent.pages.dev</Code> cannot be verified, so add a custom domain such as <Code>twiligent.example.com</Code> to your Cloudflare Pages project under <strong>Custom domains</strong>, and update <Code>FRONTEND_URL</Code> on the Worker.</P>
- </Step>
- <Step title="Set up branding">
- <P>In <A href="https://console.cloud.google.com/auth/branding">Google Auth Platform, Branding</A>, enter the app name, support email and a 120 by 120 pixel logo. Set the home page and privacy policy links; both must be on your domain, and the home page must link to the privacy policy. Add your domain under <strong>Authorized domains</strong>. One entry covers all its subdomains.</P>
- </Step>
- <Step title="Choose the audience and scopes">
- <P>Under <strong>Audience</strong>, pick <strong>External</strong> and publish the app to production. Under <strong>Data access</strong>, add only <Code>openid</Code>, <Code>userinfo.email</Code> and <Code>userinfo.profile</Code>. These are not sensitive, so there is no user cap and no security review.</P>
- </Step>
- <Step title="Create the client">
- <P>Under <strong>Clients</strong>, create a <strong>Web application</strong>. Add your Twiligent address as an authorized JavaScript origin, plus <Code>http://localhost:5173</Code> for development. No redirect URI is needed. Copy the client ID.</P>
- </Step>
- <Step title="Turn on Google in Supabase">
- <P>In Supabase, open <strong>Authentication</strong>, <strong>Sign In / Providers</strong>, <strong>Google</strong>. Enable it and paste the client ID into <strong>Client IDs</strong>. Leave <strong>Skip nonce checks</strong> off; Twiligent sends a nonce with every sign-in.</P>
- </Step>
- <Step title="Add the client ID to the frontend">
- <P>Set <Code>VITE_GOOGLE_CLIENT_ID</Code> in <Code>frontend/.env</Code> and as a GitHub secret, then redeploy. The <strong>Continue with Google</strong> button appears on the sign-in page.</P>
- </Step>
- <Step title="Submit for brand verification">
- <P>Open <strong>Verification Center</strong> and submit. Google reviews brands with basic scopes in a few business days. Until then sign-in works, but Google shows your domain instead of your name and logo.</P>
- </Step>
- </Steps>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/Instagram.tsx b/frontend/src/docs/pages/selfHost/Instagram.tsx
deleted file mode 100644
index c5ec51d..0000000
--- a/frontend/src/docs/pages/selfHost/Instagram.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, A, Code, Callout, CodeBlock, Steps, Step, Table } from '../../components';
-
-export default function Instagram() {
- return (
- <>
- <DocTitle title="Instagram app" lead="A Meta app lets members sign in with Instagram so Twiligent can read insights and publish." />
-
- <Callout type="note" title="Before you start">
- <p>You need a Meta developer account (free, at <A href="https://developers.facebook.com">developers.facebook.com</A>) and an Instagram Business or Creator account to test with. You need your backend URL for the redirect; if you have not deployed yet, use <Code>http://localhost:8787</Code> now and add the real one later.</p>
- </Callout>
-
- <Steps>
- <Step title="Create the app">
- <P>In <A href="https://developers.facebook.com/apps">My Apps</A> choose <strong>Create app</strong>. When asked for a use case, pick <strong>Other</strong>, then app type <strong>Business</strong>. Give it a name your members will recognise; Instagram shows it on the sign-in screen.</P>
- </Step>
- <Step title="Add Instagram">
- <P>On the app dashboard, add the <strong>Instagram</strong> product and choose <strong>API setup with Instagram business login</strong>. Do not use the Facebook login variant.</P>
- </Step>
- <Step title="Copy the Instagram app ID and secret">
- <P>On the Instagram API setup page, copy the <strong>Instagram app ID</strong> and <strong>Instagram app secret</strong>. These are <Code>INSTAGRAM_APP_ID</Code> and <Code>INSTAGRAM_APP_SECRET</Code>.</P>
- <Callout type="warning" title="Use the Instagram values, not the Facebook ones">
- <p>The app dashboard also shows a Facebook App ID under Settings, Basic. That one does not work here and produces an "Invalid platform app" error.</p>
- </Callout>
- </Step>
- <Step title="Set the redirect URL">
- <P>In <strong>Set up Instagram business login</strong>, open <strong>Business login settings</strong> and add this OAuth redirect URI, replacing the address with your backend URL:</P>
- <CodeBlock title="Redirect URI">{'https://twiligent.your-subdomain.workers.dev/api/auth/instagram/callback'}</CodeBlock>
- <P>For local development, add <Code>{'http://localhost:8787/api/auth/instagram/callback'}</Code> as well. It must match <Code>BACKEND_URL</Code> exactly, with no trailing slash.</P>
- </Step>
- <Step title="Add testers">
- <P>While the app is in development mode, only Instagram accounts with a tester role can connect. Open <strong>App roles</strong>, then <strong>Roles</strong>, choose <strong>Add people</strong>, pick <strong>Instagram Tester</strong> and enter the Instagram username.</P>
- <P>The person then accepts the invite in Instagram under <A href="https://www.instagram.com/accounts/manage_access/">Apps and websites</A>, <strong>Tester invites</strong>. Members are told to email you for this; set your address with <Code>VITE_ADMIN_EMAIL</Code>.</P>
- </Step>
- </Steps>
-
- <H2>Permissions Twiligent asks for</H2>
- <Table
- head={['Permission', 'Why']}
- rows={[
- [<Code>instagram_business_basic</Code>, 'Read the profile, follower count and media list.'],
- [<Code>instagram_business_manage_insights</Code>, 'Read views, reach and other insights.'],
- [<Code>instagram_business_content_publish</Code>, 'Publish photos, Reels and Stories.'],
- [<Code>instagram_business_manage_comments</Code>, 'Read comment counts and comments.'],
- [<Code>instagram_business_manage_messages</Code>, 'Requested with the business login set; not used to send messages.'],
- ]}
- />
-
- <H2>Going live for everyone</H2>
- <P>To let any Instagram account connect without a tester role, submit the app for <strong>App Review</strong> with the permissions above, then switch it to <strong>Live</strong>. Meta asks for a privacy policy URL, a screencast of each permission in use, and business verification. For a private team, tester roles are usually simpler.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/Overview.tsx b/frontend/src/docs/pages/selfHost/Overview.tsx
deleted file mode 100644
index a112942..0000000
--- a/frontend/src/docs/pages/selfHost/Overview.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, UL, OL, A, Code, Callout, Table, Badge } from '../../components';
-
-export default function Overview() {
- return (
- <>
- <DocTitle title="Self-hosting overview" lead="What you need to run your own Twiligent, what it costs, and the order to set it up in." />
-
- <Callout type="note" title="Only the administrator follows this section">
- <p>If you signed in to a Twiligent link someone gave you, you do not need any of this. The server, the keys and scheduling are already handled. Read <A to="/docs/use/getting-started">Using Twiligent</A> instead.</p>
- </Callout>
-
- <H2>How the pieces fit</H2>
- <P>Twiligent has two parts. The <strong>frontend</strong> is the website people sign in to, hosted on Cloudflare Pages. The <strong>backend</strong> is a Cloudflare Worker that talks to YouTube, Instagram and Reddit, stores data in Supabase, and publishes scheduled posts every 15 minutes. All secrets live in the backend; the frontend only holds values that are safe to be public.</P>
-
- <H2>Accounts you need</H2>
- <Table
- head={['Service', 'Needed for', '', 'Cost']}
- rows={[
- ['Supabase', 'Sign-in and the database', <Badge tone="required">Required</Badge>, 'Free plan is enough'],
- ['Cloudflare', 'Hosting the backend and frontend', <Badge tone="required">Required</Badge>, 'Free plan is enough'],
- ['Google Cloud', 'YouTube analytics', <Badge tone="optional">For YouTube</Badge>, 'Free, 10,000 quota units a day'],
- ['Meta for Developers', 'Connecting Instagram and publishing', <Badge tone="optional">For Instagram</Badge>, 'Free'],
- ['Cloudinary', 'Hosting media before Instagram fetches it', <Badge tone="optional">For publishing</Badge>, 'Free plan is enough'],
- ['Upstash', 'Caching to save API quota and speed pages up', <Badge tone="optional">Optional</Badge>, 'Free plan is enough'],
- ['Resend', 'Emailing verification codes to new members', <Badge tone="optional">Optional</Badge>, 'Free, 100 emails a day'],
- ['GitHub', 'Deploy on every push, and a backup scheduler', <Badge tone="optional">Optional</Badge>, 'Free'],
- ]}
- />
- <P>Reddit needs no key. Each member pastes their own Reddit session cookie when they connect an account.</P>
-
- <H2>Order of setup</H2>
- <OL>
- <li><A to="/docs/self-host/supabase">Supabase</A>: create the project, the tables and turn on row level security.</li>
- <li><A to="/docs/self-host/youtube">YouTube API key</A>, <A to="/docs/self-host/instagram">Instagram app</A>, <A to="/docs/self-host/cloudinary">Cloudinary</A> and optionally <A to="/docs/self-host/redis">Upstash Redis</A>, in any order.</li>
- <li><A to="/docs/self-host/deploy-backend">Deploy the backend</A> and give it every secret.</li>
- <li><A to="/docs/self-host/deploy-frontend">Deploy the frontend</A>.</li>
- <li>Optionally connect <A to="/docs/self-host/github">GitHub</A>, then run through the <A to="/docs/self-host/checklist">launch checklist</A>.</li>
- </OL>
- <P>Keep a private note open while you work. Each page tells you which values to copy, and <A to="/docs/reference/environment">Environment variables</A> lists all of them in one table.</P>
-
- <H2>What you need on your computer</H2>
- <UL>
- <li>Node.js 22.18 or newer, and Git. The tests and the backup scheduler script are TypeScript files that Node runs directly, which older versions cannot do.</li>
- <li>A copy of the code: <Code>git clone https://github.com/spacesdrive/twiligent.git</Code></li>
- <li>The project's packages: run <Code>npm install</Code> once in the cloned <Code>twiligent</Code> folder. It installs the backend, the website and the Wrangler command used to deploy them.</li>
- </UL>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/Redis.tsx b/frontend/src/docs/pages/selfHost/Redis.tsx
deleted file mode 100644
index a674a1c..0000000
--- a/frontend/src/docs/pages/selfHost/Redis.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-import { DocTitle, P, A, Steps, Step } from '../../components';
-
-export default function Redis() {
- return (
- <>
- <DocTitle title="Upstash Redis (optional)" lead="A cache that saves YouTube and Instagram quota, makes pages load faster, and makes rate limits exact." />
- <P>Twiligent works fully without Redis. Every cache read falls back to a live API call, and Redis errors are ignored. If Redis stops answering, the backend gives up on it within a few seconds and stops trying for half a minute, so pages keep loading at the speed of the live APIs. Add it when you have several members or many YouTube channels.</P>
- <P>The backend also limits how fast each person and each network can call it, so one client cannot use up the shared YouTube quota. With Redis, those limits are counted once across every Cloudflare location. Without it, each Worker instance counts on its own, so the limits are looser but still apply. There is nothing to configure.</P>
- <Steps>
- <Step title="Create a database">
- <P>Sign in at <A href="https://console.upstash.com">console.upstash.com</A>, choose <strong>Create database</strong>, and pick the region closest to your Supabase project.</P>
- </Step>
- <Step title="Copy the REST values">
- <P>On the database page, in the <strong>REST API</strong> section, copy <strong>UPSTASH_REDIS_REST_URL</strong> and <strong>UPSTASH_REDIS_REST_TOKEN</strong>. They are used under exactly those names.</P>
- </Step>
- </Steps>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/Supabase.tsx b/frontend/src/docs/pages/selfHost/Supabase.tsx
deleted file mode 100644
index 659dfee..0000000
--- a/frontend/src/docs/pages/selfHost/Supabase.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, H3, P, UL, A, Code, Callout, CodeBlock, Steps, Step, Table, Badge } from '../../components';
-import { SCHEMA_SQL, UPGRADE_SQL } from './selfHostSql';
-
-export default function Supabase() {
- return (
- <>
- <DocTitle title="Supabase" lead="Supabase handles sign-in and stores every account, scheduled post and tracked item." />
-
- <Steps>
- <Step title="Create a project">
- <P>Sign in at <A href="https://supabase.com/dashboard">supabase.com/dashboard</A> and choose <strong>New project</strong>. Pick a name, a strong database password and the region closest to you. Wait about two minutes for it to start.</P>
- </Step>
- <Step title="Create the tables">
- <P>Open <strong>SQL Editor</strong>, choose <strong>New query</strong>, paste the SQL below and choose <strong>Run</strong>. It creates the four tables Twiligent uses and turns on row level security for each.</P>
- <CodeBlock title="schema.sql">{SCHEMA_SQL}</CodeBlock>
- </Step>
- <Step title="Configure sign-in">
- <P>Open <strong>Authentication</strong>, then <strong>Sign In / Providers</strong>, then <strong>Email</strong>.</P>
- <UL>
- <li>Turn off <strong>Confirm email</strong> unless you set up <A to="/docs/self-host/email-codes">email verification codes</A>. Otherwise new members never receive a code and cannot sign in.</li>
- <li>To keep the instance private, turn off <strong>Allow new users to sign up</strong> after you and your team have created accounts. You can also add members yourself under <strong>Authentication</strong>, <strong>Users</strong>, <strong>Add user</strong>.</li>
- </UL>
- </Step>
- <Step title="Copy the project URL">
- <P>Open <strong>Project Settings</strong>, then <strong>Data API</strong> (or <strong>Integrations</strong>, <strong>Data API</strong>). Copy the <strong>Project URL</strong>, which looks like <Code>{'https://abcdefgh.supabase.co'}</Code>. It is used as <Code>SUPABASE_URL</Code> and <Code>VITE_SUPABASE_URL</Code>.</P>
- </Step>
- <Step title="Copy the two keys">
- <P>Open <strong>Project Settings</strong>, then <strong>API Keys</strong>. Supabase shows either the new key format or the legacy one; both work.</P>
- <Table
- head={['Key', 'Looks like', 'Used as', 'Safety']}
- rows={[
- ['Publishable key (legacy: anon)', <Code>sb_publishable_...</Code>, <><Code>SUPABASE_ANON_KEY</Code> and <Code>VITE_SUPABASE_ANON_KEY</Code></>, <Badge>Safe in the browser</Badge>],
- ['Secret key (legacy: service_role)', <Code>sb_secret_...</Code>, <Code>SUPABASE_SERVICE_KEY</Code>, <Badge tone="secret">Server only</Badge>],
- ]}
- />
- <Callout type="danger" title="Never put the secret key in the frontend">
- <p>The secret key can read and change every row in the database. It belongs only in the Worker's secrets and, if you use the backup scheduler, in GitHub Actions secrets.</p>
- </Callout>
- </Step>
- </Steps>
-
- <H2>Already have the tables?</H2>
- <P>If you created the tables from an older README, make sure <Code>tracked_posts</Code> exists and has the <Code>content_type</Code> column, and that row level security is on. This is safe to run more than once:</P>
- <CodeBlock title="upgrade.sql">{UPGRADE_SQL}</CodeBlock>
-
- <H3>Why row level security with no policies</H3>
- <P>The backend uses the secret key, which bypasses row level security, and limits every query to the signed-in user itself. Turning security on with no policies means the public publishable key, which ships in the frontend, cannot read or change any table directly. Without it, anyone holding that public key could read other members' data.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/YouTube.tsx b/frontend/src/docs/pages/selfHost/YouTube.tsx
deleted file mode 100644
index 1a3f6f2..0000000
--- a/frontend/src/docs/pages/selfHost/YouTube.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import React from 'react';
-import { DocTitle, P, A, Code, Callout, Steps, Step } from '../../components';
-
-export default function YouTube() {
- return (
- <>
- <DocTitle title="YouTube API key" lead="One shared key lets every member add any public channel." />
- <Steps>
- <Step title="Create a Google Cloud project">
- <P>Open <A href="https://console.cloud.google.com/projectcreate">Google Cloud Console</A> and create a project, for example <Code>twiligent</Code>.</P>
- </Step>
- <Step title="Enable the YouTube Data API">
- <P>Open <A href="https://console.cloud.google.com/apis/library/youtube.googleapis.com">YouTube Data API v3</A> in the API Library, make sure your new project is selected, and choose <strong>Enable</strong>.</P>
- </Step>
- <Step title="Create the key">
- <P>Open <strong>APIs and Services</strong>, then <A href="https://console.cloud.google.com/apis/credentials">Credentials</A>. Choose <strong>Create credentials</strong>, then <strong>API key</strong>. Copy the key; it starts with <Code>AIza</Code>. This is <Code>YOUTUBE_API_KEY</Code>.</P>
- </Step>
- <Step title="Restrict the key">
- <P>Edit the key. Under <strong>API restrictions</strong> choose <strong>Restrict key</strong> and select only YouTube Data API v3. Leave <strong>Application restrictions</strong> at None, because the key is used by the Worker, not a browser.</P>
- </Step>
- </Steps>
- <Callout type="tip" title="Quota">
- <p>The free quota is 10,000 units a day, shared by all members. Most reads cost 1 unit. Adding <A to="/docs/self-host/redis">Upstash Redis</A> caches results and makes the quota go much further.</p>
- </Callout>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/selfHost/selfHostSql.ts b/frontend/src/docs/pages/selfHost/selfHostSql.ts
deleted file mode 100644
index 974752b..0000000
--- a/frontend/src/docs/pages/selfHost/selfHostSql.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-export const SCHEMA_SQL = `
-create table accounts (
- id text primary key,
- user_id uuid not null references auth.users(id) on delete cascade,
- platform text not null,
- data jsonb not null
-);
-create index accounts_user_id_idx on accounts(user_id);
-
-create table settings (
- user_id uuid not null references auth.users(id) on delete cascade,
- key text not null,
- value jsonb,
- primary key (user_id, key)
-);
-
-create table scheduled_posts (
- id text primary key,
- user_id uuid not null references auth.users(id) on delete cascade,
- account_id text not null references accounts(id) on delete cascade,
- status text not null default 'pending',
- scheduled_at timestamptz not null,
- data jsonb
-);
-create index scheduled_posts_due_idx on scheduled_posts(status, scheduled_at);
-
-create table tracked_posts (
- id text primary key,
- user_id uuid not null references auth.users(id) on delete cascade,
- account_id text references accounts(id) on delete set null,
- url text not null,
- label text not null default '',
- category text not null default '',
- content_type text not null default 'reddit',
- created_at timestamptz not null default now(),
- updated_at timestamptz not null default now(),
- data jsonb
-);
-create index tracked_posts_user_id_idx on tracked_posts(user_id);
-
-alter table accounts enable row level security;
-alter table settings enable row level security;
-alter table scheduled_posts enable row level security;
-alter table tracked_posts enable row level security;
-`;
-
-export const RLS_SQL = `
-alter table accounts enable row level security;
-alter table settings enable row level security;
-alter table scheduled_posts enable row level security;
-alter table tracked_posts enable row level security;
-`;
-
-export const UPGRADE_SQL = `
-alter table tracked_posts add column if not exists content_type text not null default 'reddit';
-${RLS_SQL.trim()}
-`;
diff --git a/frontend/src/docs/pages/use/AdminLink.tsx b/frontend/src/docs/pages/use/AdminLink.tsx
deleted file mode 100644
index fdd4340..0000000
--- a/frontend/src/docs/pages/use/AdminLink.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import React from 'react';
-import { ADMIN_EMAIL, adminMailto } from '@/lib/contact';
-import { A } from '../../components';
-
-interface AdminLinkProps {
- subject: string;
-}
-
-export default function AdminLink({ subject }: AdminLinkProps) {
- return <A href={adminMailto(subject)}>{ADMIN_EMAIL}</A>;
-}
diff --git a/frontend/src/docs/pages/use/Analytics.tsx b/frontend/src/docs/pages/use/Analytics.tsx
deleted file mode 100644
index ad1d254..0000000
--- a/frontend/src/docs/pages/use/Analytics.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, UL, Table } from '../../components';
-
-export default function Analytics() {
- return (
- <>
- <DocTitle title="Read your analytics" lead="What each number means and where it comes from." />
-
- <H2>Overview</H2>
- <P>The Overview has six tiles: <strong>Audience</strong>, <strong>Views</strong>, <strong>Content</strong>, <strong>Accounts</strong>, <strong>Comments</strong> and <strong>Likes</strong>. Select a tile to see its detail below. The first time you open it, Twiligent loads recent posts for each account in the background; the numbers fill in after a short wait.</P>
- <Table
- head={['Metric', 'How it is counted']}
- rows={[
- ['Audience', 'YouTube subscribers plus Instagram followers plus Reddit karma.'],
- ['Views', 'YouTube channel views, Instagram views where Instagram reports them, and views on tracked content.'],
- ['Likes', 'YouTube likes, Instagram likes and Reddit karma.'],
- ['Karma', 'Reddit calls a post\'s upvotes "score"; Twiligent always shows it as karma.'],
- ]}
- />
-
- <H2>Account pages</H2>
- <P>Select an account in the sidebar to open its own page. YouTube channels have tabs for videos, engagement, publishing times, growth, Shorts and tags. Instagram and Reddit pages show posting patterns, best days and hours, and top posts.</P>
-
- <H2>Why a number looks wrong</H2>
- <UL>
- <li><strong>Instagram views show a dash.</strong> Instagram does not report views for some older posts or when insights are unavailable. A dash means "not reported", not zero.</li>
- <li><strong>Reddit has no view counts.</strong> Reddit stopped publishing views in 2018. You can enter them by hand for tracked Reddit posts.</li>
- <li><strong>Numbers are a little old.</strong> Use <strong>Refresh</strong> on an account, or <strong>Refresh all</strong> in the top bar.</li>
- </UL>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/use/ConnectAccounts.tsx b/frontend/src/docs/pages/use/ConnectAccounts.tsx
deleted file mode 100644
index 3758d3a..0000000
--- a/frontend/src/docs/pages/use/ConnectAccounts.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react';
-import { INSTAGRAM_TESTER_INVITES_URL } from '@/lib/contact';
-import { DocTitle, H2, H3, P, OL, A, Code, Callout, Steps, Step } from '../../components';
-import AdminLink from './AdminLink';
-
-export default function ConnectAccounts() {
- return (
- <>
- <DocTitle title="Connect your accounts" lead="How to add YouTube channels, Instagram professional accounts and Reddit profiles." />
-
- <H2>YouTube</H2>
- <P>Open <strong>Accounts</strong>, choose <strong>Add account</strong>, then <strong>YouTube channel</strong>. Paste a channel link, an <Code>@handle</Code> or a channel ID starting with <Code>UC</Code>, choose <strong>Find</strong> to check it, then <strong>Add channel</strong>. Any public channel works; you do not need to own it.</P>
-
- <H2>Instagram</H2>
- <P>Instagram only connects <strong>Business</strong> or <strong>Creator</strong> accounts. You can switch a personal account to a professional one for free in the Instagram app under Settings, Account type and tools.</P>
-
- <H3>Get tester access first</H3>
- <P>Most instances run their Meta app in development mode. In that mode Instagram only lets accounts added as <strong>testers</strong> sign in. Without tester access, Instagram shows an error or a blank page.</P>
- <Steps>
- <Step title="Ask the administrator">
- <P>Email <AdminLink subject="Instagram tester request for Twiligent" /> with your Instagram username. The administrator adds you in the Meta app dashboard.</P>
- </Step>
- <Step title="Accept the invite">
- <P>Sign in to Instagram on the web and open <A href={INSTAGRAM_TESTER_INVITES_URL}>Apps and websites</A>, then the <strong>Tester invites</strong> tab, and accept the invite. In the Instagram app it is under Settings and privacy, Website permissions, Apps and websites, Tester invites.</P>
- </Step>
- <Step title="Connect">
- <P>In Twiligent, open <strong>Accounts</strong>, choose <strong>Add account</strong>, then <strong>Instagram account</strong>, then <strong>Continue to Instagram</strong>. Approve every requested permission. Instagram sends you back and the account appears in the list.</P>
- </Step>
- </Steps>
- <Callout type="note" title="Access lasts 60 days and renews itself">
- <p>Instagram access tokens last 60 days. Twiligent renews them automatically every night, so you only reconnect if you remove access in Instagram or change your password.</p>
- </Callout>
-
- <H2>Reddit</H2>
- <P>Reddit blocks most requests from servers, so Twiligent uses your browser session cookie to read your profile and posts.</P>
- <OL>
- <li>Sign in to reddit.com in your browser.</li>
- <li>Open the browser's developer tools (F12), then <strong>Application</strong>, then <strong>Cookies</strong>, then <Code>https://www.reddit.com</Code>.</li>
- <li>Find the cookie named <Code>reddit_session</Code> and copy its value.</li>
- <li>In Twiligent choose <strong>Add account</strong>, <strong>Reddit account</strong>, enter your username and paste the cookie.</li>
- </OL>
- <Callout type="warning" title="Treat the cookie like a password">
- <p>It signs in as you. Twiligent stores it on the server and never shows it again. If Reddit signs you out, the cookie stops working: remove the account and add it again with a fresh cookie.</p>
- </Callout>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/use/GettingStarted.tsx b/frontend/src/docs/pages/use/GettingStarted.tsx
deleted file mode 100644
index 8434c50..0000000
--- a/frontend/src/docs/pages/use/GettingStarted.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, A, Code, Callout, Steps, Step, Table } from '../../components';
-
-export default function GettingStarted() {
- return (
- <>
- <DocTitle title="Sign in and first steps" lead="Everything a member does in the first ten minutes. No installation or setup needed." />
-
- <Callout type="note" title="This guide is for members">
- <p>You are a member if someone gave you a Twiligent link to sign in to. The server, keys and scheduling are already handled by the administrator.</p>
- </Callout>
-
- <Steps>
- <Step title="Create your account">
- <P>Open your instance's link and choose <strong>Continue with Google</strong>, if your instance offers it. Otherwise choose <strong>Create an account</strong> and use your email and a password of at least 6 characters, then enter the 6-digit code we email you. If you sign in with Google using the same email as an existing account, both open the same account. If you joined with Google and also want a password, set one in <strong>Settings</strong>, <strong>Password</strong>. Forgot it? Choose <strong>Forgot password?</strong> on the sign-in page and enter the 6-digit code we email you with a new password.</P>
- </Step>
- <Step title="Connect an account">
- <P>Open <strong>Accounts</strong> in the sidebar and choose <strong>Add account</strong>. Pick YouTube, Instagram or Reddit. Each one is explained in <A to="/docs/use/connect-accounts">Connect your accounts</A>.</P>
- </Step>
- <Step title="Look around">
- <P>The <strong>Overview</strong> fills in within a minute or two. Use the search box at the top of the sidebar, or press <Code>Ctrl K</Code> (<Code>Cmd K</Code> on a Mac), to jump to any page or account.</P>
- </Step>
- <Step title="Choose a theme">
- <P>Twiligent has a light and a dark theme. Switch with the sun or moon button at the top right, or pick <strong>Match system</strong> in Settings.</P>
- </Step>
- </Steps>
-
- <H2>Where things are</H2>
- <Table
- head={['Page', 'Use it to']}
- rows={[
- [<strong>Overview</strong>, 'See audience, views, content, comments and likes across every account.'],
- [<strong>Videos, Shorts</strong>, 'Browse and sort every video from your YouTube channels.'],
- [<strong>Instagram content</strong>, 'Browse reels, posts and videos with views, likes and comments.'],
- [<strong>Reddit posts</strong>, 'See every post from your Reddit accounts with karma and comments.'],
- [<strong>Tracked content</strong>, 'Follow specific Reddit posts and YouTube videos by link.'],
- [<strong>Publish</strong>, 'Post or schedule to Instagram.'],
- [<strong>Accounts</strong>, 'Add, refresh and remove connected accounts.'],
- [<strong>Settings</strong>, 'Theme, server status and setup guides.'],
- ]}
- />
- </>
- );
-}
diff --git a/frontend/src/docs/pages/use/Publishing.tsx b/frontend/src/docs/pages/use/Publishing.tsx
deleted file mode 100644
index 622d983..0000000
--- a/frontend/src/docs/pages/use/Publishing.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, UL, Callout, Steps, Step, Table } from '../../components';
-import AdminLink from './AdminLink';
-
-export default function Publishing() {
- return (
- <>
- <DocTitle title="Publish and schedule" lead="Post photos, Reels and Stories to Instagram now or later." />
-
- <H2>Publish a single post</H2>
- <Steps>
- <Step title="Choose the type and file">
- <P>Open <strong>Publish</strong>, pick <strong>Photo</strong>, <strong>Reel</strong> or <strong>Story</strong>, then choose the file. Photos must be JPEG; Reels must be MP4 or MOV in 9:16; Stories accept either.</P>
- </Step>
- <Step title="Write the caption and settings">
- <P>Write the caption (up to 2,200 characters). In the panel on the right, pick the account and optionally add alt text, collaborators, tagged people, a location, and for Reels a cover image and audio name.</P>
- </Step>
- <Step title="Publish now or schedule">
- <P>Under <strong>When</strong>, keep <strong>Publish now</strong>, or pick <strong>Schedule</strong> and set a date and time. Then choose <strong>Publish now</strong> or <strong>Schedule post</strong>.</P>
- </Step>
- </Steps>
-
- <H2>What happens after you schedule</H2>
- <P>The file uploads straight away. The server publishes the post within 15 minutes after the time you picked, even when your browser is closed. There is nothing for a member to set up.</P>
- <Table
- head={['Status', 'Meaning']}
- rows={[
- [<strong>Pending</strong>, 'Waiting for its time. You can edit the caption and time, or delete it.'],
- [<strong>Publishing</strong>, 'The server is publishing it right now.'],
- [<strong>Published</strong>, 'Live on Instagram.'],
- [<strong>Failed</strong>, 'Instagram rejected it. The Error column says why.'],
- ]}
- />
- <Callout type="warning" title="Pending for more than 30 minutes past its time?">
- <p>The scheduler on the server is not running. Email the administrator at <AdminLink subject="Scheduled posts are not publishing on Twiligent" /> with the time of the post. Publish shows the same warning automatically.</p>
- </Callout>
-
- <H2>Bulk upload</H2>
- <P>Choose <strong>Bulk upload</strong> to add many files at once. Give each file its own caption or apply one caption to all, then either publish them one after another or <strong>spread them out</strong> from a start time at an interval such as once a day.</P>
-
- <H2>Limits</H2>
- <UL>
- <li>Instagram allows 100 posts per account in any 24 hours.</li>
- <li>Photos up to 8MB; videos up to 300MB and 15 minutes; Stories up to 60 seconds.</li>
- <li>Publishing needs Cloudinary set up by the administrator. If it is missing, Publish says so.</li>
- </UL>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/use/TrackedContent.tsx b/frontend/src/docs/pages/use/TrackedContent.tsx
deleted file mode 100644
index 02ab269..0000000
--- a/frontend/src/docs/pages/use/TrackedContent.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P } from '../../components';
-
-export default function TrackedContent() {
- return (
- <>
- <DocTitle title="Track content" lead="Follow any Reddit post or YouTube video by its link, even ones you did not make." />
- <H2>Add an item</H2>
- <P>Open <strong>Tracked content</strong> and choose <strong>Track content</strong>. Paste a Reddit post link or a YouTube video or Shorts link. Add an optional label and category, then choose <strong>Track</strong>.</P>
- <H2>Categories</H2>
- <P>Categories group items, for example by campaign. Each category gets its own page in the sidebar with combined views, karma and comments. To set a category on many items, select them with the checkboxes and use <strong>Assign category</strong>.</P>
- <H2>Views and images for Reddit posts</H2>
- <P>Reddit does not report views, so use <strong>Edit</strong> to enter the number from the post's insights page. Reddit posts also have no thumbnail; you can upload a screenshot so you recognise the post at a glance.</P>
- <H2>Keep numbers current</H2>
- <P>Use the refresh button on a row to fetch the latest karma, likes and comments for that item.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/pages/use/Troubleshooting.tsx b/frontend/src/docs/pages/use/Troubleshooting.tsx
deleted file mode 100644
index a0637be..0000000
--- a/frontend/src/docs/pages/use/Troubleshooting.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from 'react';
-import { DocTitle, H2, P, A, Table } from '../../components';
-import AdminLink from './AdminLink';
-
-export default function Troubleshooting() {
- return (
- <>
- <DocTitle title="Troubleshooting" lead="Common problems for members, and who to contact when you are stuck." />
- <Table
- head={['Problem', 'What to do']}
- rows={[
- ['Instagram shows an error or a blank page when connecting', <>Your account is probably not a tester yet. See <A to="/docs/use/connect-accounts">Get tester access first</A>.</>],
- ['"This Instagram account is already connected"', 'It is already in your Accounts list. Refresh it there instead.'],
- ['Instagram connection says the account type is wrong', 'Switch the Instagram account to Business or Creator, then connect again.'],
- ['Reddit says the session cookie is invalid or expired', 'Remove the Reddit account and add it again with a fresh reddit_session cookie.'],
- ['A scheduled post stays Pending', <>Email the administrator at <AdminLink subject="Scheduled posts are not publishing on Twiligent" />.</>],
- ['A scheduled post Failed', 'Read the Error column. Common causes are a file Instagram does not accept or an account whose access was removed.'],
- ['Publish says Cloudinary is not set up', 'Only the administrator can fix this. Let them know.'],
- ['Analytics will not load', 'Use Refresh on the account. If it keeps failing, contact the administrator; the platform key may be missing.'],
- ]}
- />
- <H2>Contact the administrator</H2>
- <P>For anything only the person running this instance can fix, email <AdminLink subject="Help with Twiligent" />. Include what you were doing, the account involved and the exact message you saw. If the message ends with a request id, include it; it lets the administrator find what happened.</P>
- </>
- );
-}
diff --git a/frontend/src/docs/routes.ts b/frontend/src/docs/routes.ts
deleted file mode 100644
index d63b915..0000000
--- a/frontend/src/docs/routes.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { createElement, lazy } from 'react';
-import type { ComponentType, LazyExoticComponent } from 'react';
-import { Navigate } from 'react-router-dom';
-import type { RouteObject } from 'react-router-dom';
-
-// Each section is one chunk; the pages inside it are named exports.
-const sections = {
- overview: () => import('./pages/Overview'),
- use: () => import('./pages/Use'),
- selfHost: () => import('./pages/SelfHost'),
- reference: () => import('./pages/Reference'),
-};
-
-type Sections = typeof sections;
-type SectionName = keyof Sections;
-type PageName<S extends SectionName> = keyof Awaited<ReturnType<Sections[S]>>;
-export type DocPageComponent = LazyExoticComponent<ComponentType>;
-
-function page<S extends SectionName>(section: S, name: PageName<S>): DocPageComponent {
- return lazy(() => sections[section]().then(m => ({ default: (m as unknown as Record<PageName<S>, ComponentType>)[name] })));
-}
-
-const PAGES: Record<string, DocPageComponent> = {
- '': page('overview', 'Introduction'),
- concepts: page('overview', 'Concepts'),
- 'use/getting-started': page('use', 'GettingStarted'),
- 'use/connect-accounts': page('use', 'ConnectAccounts'),
- 'use/analytics': page('use', 'Analytics'),
- 'use/publishing': page('use', 'Publishing'),
- 'use/tracked-content': page('use', 'TrackedContent'),
- 'use/troubleshooting': page('use', 'Troubleshooting'),
- 'self-host': page('selfHost', 'Overview'),
- 'self-host/supabase': page('selfHost', 'Supabase'),
- 'self-host/google-sign-in': page('selfHost', 'GoogleSignIn'),
- 'self-host/email-codes': page('selfHost', 'EmailCodes'),
- 'self-host/youtube': page('selfHost', 'YouTube'),
- 'self-host/instagram': page('selfHost', 'Instagram'),
- 'self-host/cloudinary': page('selfHost', 'Cloudinary'),
- 'self-host/redis': page('selfHost', 'Redis'),
- 'self-host/deploy-backend': page('selfHost', 'DeployBackend'),
- 'self-host/deploy-frontend': page('selfHost', 'DeployFrontend'),
- 'self-host/github': page('selfHost', 'GitHub'),
- 'self-host/checklist': page('selfHost', 'Checklist'),
- 'reference/environment': page('reference', 'Environment'),
- 'reference/scheduling': page('reference', 'Scheduling'),
- 'reference/security': page('reference', 'Security'),
- 'reference/faq': page('reference', 'FAQ'),
-};
-
-export const DOC_ROUTE_SLUGS: string[] = Object.keys(PAGES);
-
-export const docsChildRoutes: RouteObject[] = [
- ...Object.entries(PAGES).map(([slug, Component]) => (slug ? { path: slug, Component } : { index: true, Component })),
- { path: '*', element: createElement(Navigate, { to: '/docs', replace: true }) },
-];
diff --git a/frontend/src/docs/slug.ts b/frontend/src/docs/slug.ts
deleted file mode 100644
index f979915..0000000
--- a/frontend/src/docs/slug.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export function slugify(text: string | null | undefined): string {
- return String(text || '')
- .toLowerCase()
- .replace(/[^a-z0-9\s-]/g, '')
- .trim()
- .replace(/\s+/g, '-')
- .replace(/-+/g, '-');
-}
diff --git a/frontend/src/docs/useTableOfContents.ts b/frontend/src/docs/useTableOfContents.ts
deleted file mode 100644
index c97843e..0000000
--- a/frontend/src/docs/useTableOfContents.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import { useEffect, useState } from 'react';
-import type { RefObject } from 'react';
-
-export interface TocItem {
- id: string;
- text: string | null;
- level: number;
-}
-
-export interface TableOfContents {
- items: TocItem[];
- active: string | null;
-}
-
-export function useTableOfContents(articleRef: RefObject<HTMLElement | null>, pathname: string): TableOfContents {
- const [items, setItems] = useState<TocItem[]>([]);
- const [active, setActive] = useState<string | null>(null);
-
- useEffect(() => {
- const article = articleRef.current;
- if (!article) return undefined;
- const collect = () => {
- const headings = [...article.querySelectorAll<HTMLElement>('[data-toc]')];
- setItems(headings.map(heading => ({ id: heading.id, text: heading.textContent, level: Number(heading.dataset.toc) })));
- return headings;
- };
- let headings = collect();
- // pages are lazy-loaded, so headings can appear after the first render
- const mutations = new MutationObserver(() => { headings = collect(); observeAll(); });
- const spy = new IntersectionObserver(entries => {
- const visible = entries.filter(entry => entry.isIntersecting).sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top);
- if (visible[0]) setActive(visible[0].target.id);
- }, { rootMargin: '-120px 0px -65% 0px' });
- function observeAll() { spy.disconnect(); headings.forEach(heading => spy.observe(heading)); }
- observeAll();
- mutations.observe(article, { childList: true, subtree: true });
- return () => { mutations.disconnect(); spy.disconnect(); };
- }, [articleRef, pathname]);
-
- return { items, active };
-}
diff --git a/frontend/tests/docs/nav.test.ts b/frontend/tests/docs/nav.test.ts
deleted file mode 100644
index 7dc96a8..0000000
--- a/frontend/tests/docs/nav.test.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { test } from 'node:test';
-import assert from 'node:assert/strict';
-import { ALL_DOC_PAGES, neighbours, tabForPath } from '../../src/docs/nav.ts';
-import { DOC_ROUTE_SLUGS } from '../../src/docs/routes.ts';
-import { slugify } from '../../src/docs/slug.ts';
-
-test('every page in the navigation has a route, and every route is in the navigation', () => {
- const navSlugs = ALL_DOC_PAGES.map(p => p.slug).sort();
- assert.deepEqual([...DOC_ROUTE_SLUGS].sort(), navSlugs);
-});
-
-test('page paths are unique', () => {
- const paths = ALL_DOC_PAGES.map(p => p.path);
- assert.equal(new Set(paths).size, paths.length);
-});
-
-test('neighbours link the first and last pages correctly', () => {
- assert.equal(neighbours('/docs').prev, null);
- assert.equal(neighbours('/docs').next!.path, '/docs/concepts');
- assert.equal(neighbours(ALL_DOC_PAGES.at(-1)!.path).next, null);
-});
-
-test('tabForPath falls back to the first tab for unknown paths', () => {
- assert.equal(tabForPath('/docs/self-host/supabase').id, 'self-host');
- assert.equal(tabForPath('/docs/nope').id, 'overview');
-});
-
-test('slugify makes heading ids', () => {
- assert.equal(slugify('Why row level security, with no policies?'), 'why-row-level-security-with-no-policies');
-});
diff --git a/frontend/tests/docs/pages/selfHost/selfHostSql.test.ts b/frontend/tests/docs/pages/selfHost/selfHostSql.test.ts
deleted file mode 100644
index e6d36da..0000000
--- a/frontend/tests/docs/pages/selfHost/selfHostSql.test.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { test } from 'node:test';
-import assert from 'node:assert/strict';
-import { SCHEMA_SQL, RLS_SQL, UPGRADE_SQL } from '../../../../src/docs/pages/selfHost/selfHostSql.ts';
-
-const tablesIn = (sql: string) => [...sql.matchAll(/create table (\w+)/g)].map(match => match[1]);
-const secured = (sql: string) => [...sql.matchAll(/alter table (\w+) enable row level security;/g)].map(match => match[1]);
-
-test('every table in the schema turns on row level security', () => {
- const tables = tablesIn(SCHEMA_SQL);
- assert.deepEqual(tables, ['accounts', 'settings', 'scheduled_posts', 'tracked_posts']);
- assert.deepEqual(secured(SCHEMA_SQL).sort(), [...tables].sort());
-});
-
-test('the upgrade script secures the same tables as the schema', () => {
- assert.deepEqual(secured(RLS_SQL), secured(SCHEMA_SQL));
- assert.deepEqual(secured(UPGRADE_SQL), secured(SCHEMA_SQL));
- assert.ok(UPGRADE_SQL.includes('add column if not exists content_type'));
-});
diff --git a/site/public/brand/twiligent-app-icon-dusk-180.png b/site/public/brand/twiligent-app-icon-dusk-180.png
new file mode 100644
index 0000000..cf9f397
Binary files /dev/null and b/site/public/brand/twiligent-app-icon-dusk-180.png differ
diff --git a/site/public/brand/twiligent-app-icon-dusk-512.png b/site/public/brand/twiligent-app-icon-dusk-512.png
new file mode 100644
index 0000000..5abd10c
Binary files /dev/null and b/site/public/brand/twiligent-app-icon-dusk-512.png differ
diff --git a/site/public/brand/twiligent-favicon-32.png b/site/public/brand/twiligent-favicon-32.png
new file mode 100644
index 0000000..0e423b3
Binary files /dev/null and b/site/public/brand/twiligent-favicon-32.png differ
diff --git a/site/public/brand/twiligent-favicon.svg b/site/public/brand/twiligent-favicon.svg
new file mode 100644
index 0000000..2085fc3
--- /dev/null
+++ b/site/public/brand/twiligent-favicon.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024"><title>Twiligent favicon</title><defs><linearGradient id="twL" gradientUnits="userSpaceOnUse" x1="1018" y1="220" x2="219" y2="1580">
+<stop offset="0" stop-color="#5E0B14"/><stop offset=".22" stop-color="#7E101C"/><stop offset=".5" stop-color="#9A1423"/><stop offset=".8" stop-color="#7E101C"/><stop offset="1" stop-color="#5E0B14"/></linearGradient>
+<linearGradient id="twB" gradientUnits="userSpaceOnUse" x1="219" y1="1580" x2="1843" y2="1579">
+<stop offset="0" stop-color="#C11F2F"/><stop offset=".4" stop-color="#C11F2F"/><stop offset=".72" stop-color="#9A1423"/><stop offset="1" stop-color="#5E0B14"/></linearGradient></defs><rect width="1024" height="1024" rx="200" fill="#140E10"/><path transform="translate(194.56 252.55379489849042) scale(0.33049453409682455) translate(-70 -68)" fill="#C11F2F" d="M1014.1 520.8 L886.2 305.3 L884.1 301.6 L882.1 297.9 L880.1 294.1 L878.3 290.3 L876.5 286.4 L874.9 282.5 L873.3 278.5 L871.9 274.5 L870.5 270.5 L869.2 266.5 L868.1 262.4 L867.0 258.3 L866.0 254.1 L865.2 250.0 L864.4 245.8 L863.8 241.6 L863.2 237.4 L862.8 233.2 L862.4 228.9 L862.2 224.7 L862.0 220.5 L862.0 216.2 L862.1 212.0 L862.2 207.7 L862.5 203.5 L862.9 199.3 L863.4 195.0 L864.0 190.8 L864.6 186.9 L135.0 1428.7 L137.4 1427.5 L141.1 1425.5 L144.9 1423.7 L148.8 1421.9 L152.7 1420.2 L156.6 1418.6 L160.6 1417.1 L164.6 1415.8 L168.7 1414.5 L172.8 1413.3 L176.9 1412.2 L181.0 1411.2 L185.1 1410.3 L189.3 1409.6 L193.5 1408.9 L197.7 1408.3 L201.9 1407.8 L206.2 1407.5 L210.4 1407.2 L214.6 1407.1 L218.9 1407.0 L493.5 1406.8 L1014.1 520.8ZM218.9 1431.0 L215.3 1431.0 L211.6 1431.2 L207.9 1431.4 L204.3 1431.7 L200.7 1432.1 L197.0 1432.6 L193.4 1433.2 L189.8 1433.9 L186.3 1434.6 L182.7 1435.5 L179.2 1436.4 L175.7 1437.4 L172.2 1438.5 L168.7 1439.7 L165.3 1441.0 L161.9 1442.4 L158.5 1443.8 L155.2 1445.3 L151.9 1447.0 L148.7 1448.6 L145.5 1450.4 L142.3 1452.2 L139.2 1454.2 L136.1 1456.2 L133.1 1458.2 L130.2 1460.4 L127.3 1462.6 L124.4 1464.9 L121.6 1467.2 L118.9 1469.7 L116.2 1472.2 L113.6 1474.7 L111.0 1477.3 L108.5 1480.0 L106.1 1482.7 L103.8 1485.5 L101.5 1488.4 L99.3 1491.3 L97.1 1494.3 L95.1 1497.3 L93.1 1500.4 L91.2 1503.5 L89.3 1506.6 L87.6 1509.8 L85.9 1513.1 L84.3 1516.4 L82.7 1519.7 L81.3 1523.1 L80.0 1526.5 L78.7 1529.9 L77.5 1533.3 L76.4 1536.8 L75.4 1540.3 L74.4 1543.9 L73.6 1547.4 L72.8 1551.0 L72.2 1554.6 L71.6 1558.2 L71.1 1561.9 L70.7 1565.5 L70.4 1569.1 L70.2 1572.8 L70.0 1576.4 L70.0 1580.1 L70.0 1583.7 L70.2 1587.4 L70.4 1591.1 L70.7 1594.7 L71.1 1598.3 L71.6 1602.0 L72.2 1605.6 L72.9 1609.2 L73.6 1612.7 L74.5 1616.3 L75.4 1619.8 L76.4 1623.3 L77.5 1626.8 L78.7 1630.3 L80.0 1633.7 L81.4 1637.1 L82.8 1640.5 L84.3 1643.8 L86.0 1647.1 L87.6 1650.3 L89.4 1653.5 L91.2 1656.7 L93.2 1659.8 L95.2 1662.9 L97.2 1665.9 L99.4 1668.8 L101.6 1671.7 L103.9 1674.6 L106.2 1677.4 L108.7 1680.1 L111.2 1682.8 L113.7 1685.4 L116.3 1688.0 L119.0 1690.5 L121.7 1692.9 L124.5 1695.2 L127.4 1697.5 L130.3 1699.7 L133.3 1701.9 L136.3 1703.9 L139.4 1705.9 L142.5 1707.8 L145.6 1709.7 L148.8 1711.4 L152.1 1713.1 L155.4 1714.7 L158.7 1716.3 L162.1 1717.7 L165.5 1719.0 L168.9 1720.3 L172.3 1721.5 L175.8 1722.6 L179.3 1723.6 L182.9 1724.6 L186.4 1725.4 L190.0 1726.2 L193.6 1726.8 L197.2 1727.4 L200.9 1727.9 L204.5 1728.3 L208.1 1728.6 L211.8 1728.8 L215.4 1729.0 L219.1 1729.0 L1755.2 1728.1 L1753.4 1727.0 L1749.8 1724.7 L1746.2 1722.4 L1742.7 1720.0 L1739.3 1717.5 L1735.9 1714.9 L1732.6 1712.2 L1729.4 1709.5 L1726.2 1706.7 L1723.1 1703.8 L1720.1 1700.8 L1717.2 1697.7 L1714.3 1694.6 L1711.5 1691.4 L1708.8 1688.1 L1706.1 1684.8 L1703.6 1681.4 L1701.1 1678.0 L1698.7 1674.5 L1696.4 1670.9 L1694.2 1667.3 L1553.6 1430.2 L218.9 1431.0ZM1714.9 1655.0 L1716.8 1658.1 L1718.7 1661.2 L1720.8 1664.2 L1722.9 1667.2 L1725.1 1670.1 L1727.4 1673.0 L1729.7 1675.8 L1732.1 1678.6 L1734.6 1681.3 L1737.2 1683.9 L1739.8 1686.4 L1742.4 1688.9 L1745.2 1691.4 L1748.0 1693.7 L1750.8 1696.0 L1753.7 1698.3 L1756.7 1700.4 L1759.7 1702.5 L1762.7 1704.5 L1765.8 1706.5 L1769.0 1708.3 L1772.2 1710.1 L1775.4 1711.8 L1778.7 1713.4 L1782.0 1714.9 L1785.4 1716.4 L1788.7 1717.8 L1792.2 1719.1 L1795.6 1720.3 L1799.1 1721.4 L1802.6 1722.4 L1806.1 1723.4 L1809.7 1724.2 L1813.3 1725.0 L1816.9 1725.7 L1820.5 1726.3 L1824.1 1726.8 L1827.7 1727.2 L1831.4 1727.5 L1835.0 1727.8 L1838.7 1727.9 L1842.3 1728.0 L1846.0 1728.0 L1849.6 1727.9 L1853.3 1727.6 L1856.9 1727.3 L1860.6 1727.0 L1864.2 1726.5 L1867.8 1725.9 L1871.4 1725.3 L1875.0 1724.5 L1878.5 1723.7 L1882.1 1722.8 L1885.6 1721.8 L1889.1 1720.7 L1892.6 1719.5 L1896.0 1718.3 L1899.4 1716.9 L1902.8 1715.5 L1906.1 1714.0 L1909.4 1712.4 L1912.6 1710.7 L1915.9 1709.0 L1919.0 1707.1 L1922.1 1705.2 L1925.2 1703.3 L1928.2 1701.2 L1931.2 1699.1 L1934.1 1696.9 L1937.0 1694.6 L1939.8 1692.3 L1942.6 1689.9 L1945.3 1687.4 L1947.9 1684.8 L1950.4 1682.2 L1952.9 1679.6 L1955.4 1676.8 L1957.7 1674.0 L1960.0 1671.2 L1962.3 1668.3 L1964.4 1665.3 L1966.5 1662.3 L1968.5 1659.3 L1970.5 1656.2 L1972.3 1653.0 L1974.1 1649.8 L1975.8 1646.6 L1977.4 1643.3 L1978.9 1640.0 L1980.4 1636.6 L1981.8 1633.3 L1983.1 1629.8 L1984.3 1626.4 L1985.4 1622.9 L1986.4 1619.4 L1987.4 1615.9 L1988.2 1612.3 L1989.0 1608.7 L1989.7 1605.1 L1990.3 1601.5 L1990.8 1597.9 L1991.2 1594.3 L1991.5 1590.6 L1991.8 1587.0 L1991.9 1583.3 L1992.0 1579.7 L1992.0 1576.0 L1991.9 1572.4 L1991.6 1568.7 L1991.3 1565.1 L1991.0 1561.4 L1990.5 1557.8 L1989.9 1554.2 L1989.3 1550.6 L1988.5 1547.0 L1987.7 1543.5 L1986.8 1539.9 L1985.8 1536.4 L1984.7 1532.9 L1983.5 1529.4 L1982.3 1526.0 L1980.9 1522.6 L1979.5 1519.2 L1978.0 1515.9 L1976.4 1512.6 L1974.7 1509.4 L1973.0 1506.1 L1971.1 1503.0 L1163.1 141.0 L1161.2 137.9 L1159.3 134.8 L1157.2 131.8 L1155.1 128.8 L1152.9 125.9 L1150.6 123.0 L1148.3 120.2 L1145.9 117.4 L1143.4 114.7 L1140.8 112.1 L1138.2 109.6 L1135.6 107.1 L1132.8 104.6 L1130.0 102.3 L1127.2 100.0 L1124.3 97.7 L1121.3 95.6 L1118.3 93.5 L1115.3 91.5 L1112.2 89.5 L1109.0 87.7 L1105.8 85.9 L1102.6 84.2 L1099.3 82.6 L1096.0 81.1 L1092.6 79.6 L1089.3 78.2 L1085.8 76.9 L1082.4 75.7 L1078.9 74.6 L1075.4 73.6 L1071.9 72.6 L1068.3 71.8 L1064.7 71.0 L1061.1 70.3 L1057.5 69.7 L1053.9 69.2 L1050.3 68.8 L1046.6 68.5 L1043.0 68.2 L1039.3 68.1 L1035.7 68.0 L1032.0 68.0 L1028.4 68.1 L1024.7 68.4 L1021.1 68.7 L1017.4 69.0 L1013.8 69.5 L1010.2 70.1 L1006.6 70.7 L1003.0 71.5 L999.5 72.3 L995.9 73.2 L992.4 74.2 L988.9 75.3 L985.4 76.5 L982.0 77.7 L978.6 79.1 L975.2 80.5 L971.9 82.0 L968.6 83.6 L965.4 85.3 L962.1 87.0 L959.0 88.9 L955.9 90.8 L952.8 92.7 L949.8 94.8 L946.8 96.9 L943.9 99.1 L941.0 101.4 L938.2 103.7 L935.4 106.1 L932.7 108.6 L930.1 111.2 L927.6 113.8 L925.1 116.4 L922.6 119.2 L920.3 122.0 L918.0 124.8 L915.7 127.7 L913.6 130.7 L911.5 133.7 L909.5 136.7 L907.5 139.8 L905.7 143.0 L903.9 146.2 L902.2 149.4 L900.6 152.7 L899.1 156.0 L897.6 159.4 L896.2 162.7 L894.9 166.2 L893.7 169.6 L892.6 173.1 L891.6 176.6 L890.6 180.1 L889.8 183.7 L889.0 187.3 L888.3 190.9 L887.7 194.5 L887.2 198.1 L886.8 201.7 L886.5 205.4 L886.2 209.0 L886.1 212.7 L886.0 216.3 L886.0 220.0 L886.1 223.6 L886.4 227.3 L886.7 230.9 L887.0 234.6 L887.5 238.2 L888.1 241.8 L888.7 245.4 L889.5 249.0 L890.3 252.5 L891.2 256.1 L892.2 259.6 L893.3 263.1 L894.5 266.6 L895.7 270.0 L897.1 273.4 L898.5 276.8 L900.0 280.1 L901.6 283.4 L903.3 286.6 L905.0 289.9 L906.9 293.0 L1714.9 1655.0Z"/></svg>
\ No newline at end of file
diff --git a/site/public/brand/twiligent-lockup-horizontal-reversed.svg b/site/public/brand/twiligent-lockup-horizontal-reversed.svg
new file mode 100644
index 0000000..0f42062
--- /dev/null
+++ b/site/public/brand/twiligent-lockup-horizontal-reversed.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4090 1000" width="4090" height="1000"><title>Twiligent horizontal lockup</title><defs><linearGradient id="twL" gradientUnits="userSpaceOnUse" x1="1018" y1="220" x2="219" y2="1580">
+<stop offset="0" stop-color="#5E0B14"/><stop offset=".22" stop-color="#7E101C"/><stop offset=".5" stop-color="#9A1423"/><stop offset=".8" stop-color="#7E101C"/><stop offset="1" stop-color="#5E0B14"/></linearGradient>
+<linearGradient id="twB" gradientUnits="userSpaceOnUse" x1="219" y1="1580" x2="1843" y2="1579">
+<stop offset="0" stop-color="#C11F2F"/><stop offset=".4" stop-color="#C11F2F"/><stop offset=".72" stop-color="#9A1423"/><stop offset="1" stop-color="#5E0B14"/></linearGradient></defs><g transform="translate(0 0) scale(0.6013229104028863) translate(-70 -68)"><path fill="url(#twL)" d="M90.5 1504.5 L88.7 1507.7 L87.0 1510.9 L85.3 1514.2 L83.8 1517.5 L82.3 1520.8 L80.8 1524.2 L79.5 1527.6 L78.3 1531.0 L77.1 1534.5 L76.0 1538.0 L75.1 1541.5 L74.2 1545.1 L73.3 1548.6 L72.6 1552.2 L72.0 1555.8 L71.4 1559.4 L71.0 1563.1 L70.6 1566.7 L70.3 1570.3 L70.1 1574.0 L70.0 1577.7 L70.0 1581.3 L70.1 1585.0 L70.2 1588.6 L70.5 1592.3 L70.9 1595.9 L71.3 1599.5 L71.8 1603.2 L72.4 1606.8 L73.1 1610.4 L73.9 1613.9 L74.8 1617.5 L75.8 1621.0 L76.8 1624.5 L77.9 1628.0 L79.2 1631.4 L80.5 1634.8 L81.8 1638.2 L83.3 1641.6 L84.9 1644.9 L86.5 1648.2 L88.2 1651.4 L90.0 1654.6 L91.9 1657.7 L93.8 1660.8 L95.8 1663.9 L97.9 1666.9 L100.1 1669.8 L102.3 1672.7 L104.7 1675.5 L107.0 1678.3 L109.5 1681.0 L112.0 1683.7 L114.6 1686.3 L117.2 1688.8 L119.9 1691.3 L122.7 1693.7 L125.5 1696.0 L128.4 1698.3 L131.3 1700.5 L134.3 1702.6 L137.3 1704.6 L140.4 1706.6 L143.5 1708.5 L146.7 1710.3 L149.9 1712.0 L153.2 1713.7 L156.5 1715.2 L159.8 1716.7 L163.2 1718.2 L166.6 1719.5 L170.0 1720.7 L173.5 1721.9 L177.0 1723.0 L180.5 1723.9 L184.1 1724.8 L187.6 1725.7 L191.2 1726.4 L194.8 1727.0 L198.4 1727.6 L202.1 1728.0 L205.7 1728.4 L209.3 1728.7 L213.0 1728.9 L216.7 1729.0 L220.3 1729.0 L224.0 1728.9 L227.6 1728.8 L231.3 1728.5 L234.9 1728.1 L238.5 1727.7 L242.2 1727.2 L245.8 1726.6 L249.4 1725.9 L252.9 1725.1 L256.5 1724.2 L260.0 1723.2 L263.5 1722.2 L267.0 1721.1 L270.4 1719.8 L273.8 1718.5 L277.2 1717.2 L280.6 1715.7 L283.9 1714.1 L287.2 1712.5 L290.4 1710.8 L293.6 1709.0 L296.7 1707.1 L299.8 1705.2 L302.9 1703.2 L305.9 1701.1 L308.8 1698.9 L311.7 1696.7 L314.5 1694.3 L317.3 1692.0 L320.0 1689.5 L322.7 1687.0 L325.3 1684.4 L327.8 1681.8 L330.3 1679.1 L332.7 1676.3 L335.0 1673.5 L337.3 1670.6 L339.5 1667.7 L341.6 1664.7 L343.6 1661.7 L345.6 1658.6 L347.5 1655.5 L1146.5 295.5 L1148.3 292.3 L1150.0 289.1 L1151.7 285.8 L1153.2 282.5 L1154.7 279.2 L1156.2 275.8 L1157.5 272.4 L1158.7 269.0 L1159.9 265.5 L1161.0 262.0 L1161.9 258.5 L1162.8 254.9 L1163.7 251.4 L1164.4 247.8 L1165.0 244.2 L1165.6 240.6 L1166.0 236.9 L1166.4 233.3 L1166.7 229.7 L1166.9 226.0 L1167.0 222.3 L1167.0 218.7 L1166.9 215.0 L1166.8 211.4 L1166.5 207.7 L1166.1 204.1 L1165.7 200.5 L1165.2 196.8 L1164.6 193.2 L1163.9 189.6 L1163.1 186.1 L1162.2 182.5 L1161.2 179.0 L1160.2 175.5 L1159.1 172.0 L1157.8 168.6 L1156.5 165.2 L1155.2 161.8 L1153.7 158.4 L1152.1 155.1 L1150.5 151.8 L1148.8 148.6 L1147.0 145.4 L1145.1 142.3 L1143.2 139.2 L1141.2 136.1 L1139.1 133.1 L1136.9 130.2 L1134.7 127.3 L1132.3 124.5 L1130.0 121.7 L1127.5 119.0 L1125.0 116.3 L1122.4 113.7 L1119.8 111.2 L1117.1 108.7 L1114.3 106.3 L1111.5 104.0 L1108.6 101.7 L1105.7 99.5 L1102.7 97.4 L1099.7 95.4 L1096.6 93.4 L1093.5 91.5 L1090.3 89.7 L1087.1 88.0 L1083.8 86.3 L1080.5 84.8 L1077.2 83.3 L1073.8 81.8 L1070.4 80.5 L1067.0 79.3 L1063.5 78.1 L1060.0 77.0 L1056.5 76.1 L1052.9 75.2 L1049.4 74.3 L1045.8 73.6 L1042.2 73.0 L1038.6 72.4 L1034.9 72.0 L1031.3 71.6 L1027.7 71.3 L1024.0 71.1 L1020.3 71.0 L1016.7 71.0 L1013.0 71.1 L1009.4 71.2 L1005.7 71.5 L1002.1 71.9 L998.5 72.3 L994.8 72.8 L991.2 73.4 L987.6 74.1 L984.1 74.9 L980.5 75.8 L977.0 76.8 L973.5 77.8 L970.0 78.9 L966.6 80.2 L963.2 81.5 L959.8 82.8 L956.4 84.3 L953.1 85.9 L949.8 87.5 L946.6 89.2 L943.4 91.0 L940.3 92.9 L937.2 94.8 L934.1 96.8 L931.1 98.9 L928.2 101.1 L925.3 103.3 L922.5 105.7 L919.7 108.0 L917.0 110.5 L914.3 113.0 L911.7 115.6 L909.2 118.2 L906.7 120.9 L904.3 123.7 L902.0 126.5 L899.7 129.4 L897.5 132.3 L895.4 135.3 L893.4 138.3 L891.4 141.4 L889.5 144.5 L90.5 1504.5Z"/><path fill="url(#twB)" d="M1843.1 1728.0 L1846.7 1728.0 L1850.4 1727.8 L1854.1 1727.6 L1857.7 1727.3 L1861.3 1726.9 L1865.0 1726.4 L1868.6 1725.8 L1872.2 1725.1 L1875.7 1724.4 L1879.3 1723.5 L1882.8 1722.6 L1886.3 1721.6 L1889.8 1720.5 L1893.3 1719.3 L1896.7 1718.0 L1900.1 1716.6 L1903.5 1715.2 L1906.8 1713.7 L1910.1 1712.0 L1913.3 1710.4 L1916.5 1708.6 L1919.7 1706.8 L1922.8 1704.8 L1925.9 1702.8 L1928.9 1700.8 L1931.8 1698.6 L1934.7 1696.4 L1937.6 1694.1 L1940.4 1691.8 L1943.1 1689.3 L1945.8 1686.8 L1948.4 1684.3 L1951.0 1681.7 L1953.5 1679.0 L1955.9 1676.3 L1958.2 1673.5 L1960.5 1670.6 L1962.7 1667.7 L1964.9 1664.7 L1966.9 1661.7 L1968.9 1658.6 L1970.8 1655.5 L1972.7 1652.4 L1974.4 1649.2 L1976.1 1645.9 L1977.7 1642.6 L1979.3 1639.3 L1980.7 1635.9 L1982.0 1632.5 L1983.3 1629.1 L1984.5 1625.7 L1985.6 1622.2 L1986.6 1618.7 L1987.6 1615.1 L1988.4 1611.6 L1989.2 1608.0 L1989.8 1604.4 L1990.4 1600.8 L1990.9 1597.1 L1991.3 1593.5 L1991.6 1589.9 L1991.8 1586.2 L1992.0 1582.6 L1992.0 1578.9 L1992.0 1575.3 L1991.8 1571.6 L1991.6 1567.9 L1991.3 1564.3 L1990.9 1560.7 L1990.4 1557.0 L1989.8 1553.4 L1989.1 1549.8 L1988.4 1546.3 L1987.5 1542.7 L1986.6 1539.2 L1985.6 1535.7 L1984.5 1532.2 L1983.3 1528.7 L1982.0 1525.3 L1980.6 1521.9 L1979.2 1518.5 L1977.7 1515.2 L1976.0 1511.9 L1974.4 1508.7 L1972.6 1505.5 L1970.8 1502.3 L1968.8 1499.2 L1966.8 1496.1 L1964.8 1493.1 L1962.6 1490.2 L1960.4 1487.3 L1958.1 1484.4 L1955.8 1481.6 L1953.3 1478.9 L1950.8 1476.2 L1948.3 1473.6 L1945.7 1471.0 L1943.0 1468.5 L1940.3 1466.1 L1937.5 1463.8 L1934.6 1461.5 L1931.7 1459.3 L1928.7 1457.1 L1925.7 1455.1 L1922.6 1453.1 L1919.5 1451.2 L1916.4 1449.3 L1913.2 1447.6 L1909.9 1445.9 L1906.6 1444.3 L1903.3 1442.7 L1899.9 1441.3 L1896.5 1440.0 L1893.1 1438.7 L1889.7 1437.5 L1886.2 1436.4 L1882.7 1435.4 L1879.1 1434.4 L1875.6 1433.6 L1872.0 1432.8 L1868.4 1432.2 L1864.8 1431.6 L1861.1 1431.1 L1857.5 1430.7 L1853.9 1430.4 L1850.2 1430.2 L1846.6 1430.0 L1842.9 1430.0 L218.9 1431.0 L215.3 1431.0 L211.6 1431.2 L207.9 1431.4 L204.3 1431.7 L200.7 1432.1 L197.0 1432.6 L193.4 1433.2 L189.8 1433.9 L186.3 1434.6 L182.7 1435.5 L179.2 1436.4 L175.7 1437.4 L172.2 1438.5 L168.7 1439.7 L165.3 1441.0 L161.9 1442.4 L158.5 1443.8 L155.2 1445.3 L151.9 1447.0 L148.7 1448.6 L145.5 1450.4 L142.3 1452.2 L139.2 1454.2 L136.1 1456.2 L133.1 1458.2 L130.2 1460.4 L127.3 1462.6 L124.4 1464.9 L121.6 1467.2 L118.9 1469.7 L116.2 1472.2 L113.6 1474.7 L111.0 1477.3 L108.5 1480.0 L106.1 1482.7 L103.8 1485.5 L101.5 1488.4 L99.3 1491.3 L97.1 1494.3 L95.1 1497.3 L93.1 1500.4 L91.2 1503.5 L89.3 1506.6 L87.6 1509.8 L85.9 1513.1 L84.3 1516.4 L82.7 1519.7 L81.3 1523.1 L80.0 1526.5 L78.7 1529.9 L77.5 1533.3 L76.4 1536.8 L75.4 1540.3 L74.4 1543.9 L73.6 1547.4 L72.8 1551.0 L72.2 1554.6 L71.6 1558.2 L71.1 1561.9 L70.7 1565.5 L70.4 1569.1 L70.2 1572.8 L70.0 1576.4 L70.0 1580.1 L70.0 1583.7 L70.2 1587.4 L70.4 1591.1 L70.7 1594.7 L71.1 1598.3 L71.6 1602.0 L72.2 1605.6 L72.9 1609.2 L73.6 1612.7 L74.5 1616.3 L75.4 1619.8 L76.4 1623.3 L77.5 1626.8 L78.7 1630.3 L80.0 1633.7 L81.4 1637.1 L82.8 1640.5 L84.3 1643.8 L86.0 1647.1 L87.6 1650.3 L89.4 1653.5 L91.2 1656.7 L93.2 1659.8 L95.2 1662.9 L97.2 1665.9 L99.4 1668.8 L101.6 1671.7 L103.9 1674.6 L106.2 1677.4 L108.7 1680.1 L111.2 1682.8 L113.7 1685.4 L116.3 1688.0 L119.0 1690.5 L121.7 1692.9 L124.5 1695.2 L127.4 1697.5 L130.3 1699.7 L133.3 1701.9 L136.3 1703.9 L139.4 1705.9 L142.5 1707.8 L145.6 1709.7 L148.8 1711.4 L152.1 1713.1 L155.4 1714.7 L158.7 1716.3 L162.1 1717.7 L165.5 1719.0 L168.9 1720.3 L172.3 1721.5 L175.8 1722.6 L179.3 1723.6 L182.9 1724.6 L186.4 1725.4 L190.0 1726.2 L193.6 1726.8 L197.2 1727.4 L200.9 1727.9 L204.5 1728.3 L208.1 1728.6 L211.8 1728.8 L215.4 1729.0 L219.1 1729.0 L1843.1 1728.0Z"/><path fill="#C11F2F" d="M1714.9 1655.0 L1716.8 1658.1 L1718.7 1661.2 L1720.8 1664.2 L1722.9 1667.2 L1725.1 1670.1 L1727.4 1673.0 L1729.7 1675.8 L1732.1 1678.6 L1734.6 1681.3 L1737.2 1683.9 L1739.8 1686.4 L1742.4 1688.9 L1745.2 1691.4 L1748.0 1693.7 L1750.8 1696.0 L1753.7 1698.3 L1756.7 1700.4 L1759.7 1702.5 L1762.7 1704.5 L1765.8 1706.5 L1769.0 1708.3 L1772.2 1710.1 L1775.4 1711.8 L1778.7 1713.4 L1782.0 1714.9 L1785.4 1716.4 L1788.7 1717.8 L1792.2 1719.1 L1795.6 1720.3 L1799.1 1721.4 L1802.6 1722.4 L1806.1 1723.4 L1809.7 1724.2 L1813.3 1725.0 L1816.9 1725.7 L1820.5 1726.3 L1824.1 1726.8 L1827.7 1727.2 L1831.4 1727.5 L1835.0 1727.8 L1838.7 1727.9 L1842.3 1728.0 L1846.0 1728.0 L1849.6 1727.9 L1853.3 1727.6 L1856.9 1727.3 L1860.6 1727.0 L1864.2 1726.5 L1867.8 1725.9 L1871.4 1725.3 L1875.0 1724.5 L1878.5 1723.7 L1882.1 1722.8 L1885.6 1721.8 L1889.1 1720.7 L1892.6 1719.5 L1896.0 1718.3 L1899.4 1716.9 L1902.8 1715.5 L1906.1 1714.0 L1909.4 1712.4 L1912.6 1710.7 L1915.9 1709.0 L1919.0 1707.1 L1922.1 1705.2 L1925.2 1703.3 L1928.2 1701.2 L1931.2 1699.1 L1934.1 1696.9 L1937.0 1694.6 L1939.8 1692.3 L1942.6 1689.9 L1945.3 1687.4 L1947.9 1684.8 L1950.4 1682.2 L1952.9 1679.6 L1955.4 1676.8 L1957.7 1674.0 L1960.0 1671.2 L1962.3 1668.3 L1964.4 1665.3 L1966.5 1662.3 L1968.5 1659.3 L1970.5 1656.2 L1972.3 1653.0 L1974.1 1649.8 L1975.8 1646.6 L1977.4 1643.3 L1978.9 1640.0 L1980.4 1636.6 L1981.8 1633.3 L1983.1 1629.8 L1984.3 1626.4 L1985.4 1622.9 L1986.4 1619.4 L1987.4 1615.9 L1988.2 1612.3 L1989.0 1608.7 L1989.7 1605.1 L1990.3 1601.5 L1990.8 1597.9 L1991.2 1594.3 L1991.5 1590.6 L1991.8 1587.0 L1991.9 1583.3 L1992.0 1579.7 L1992.0 1576.0 L1991.9 1572.4 L1991.6 1568.7 L1991.3 1565.1 L1991.0 1561.4 L1990.5 1557.8 L1989.9 1554.2 L1989.3 1550.6 L1988.5 1547.0 L1987.7 1543.5 L1986.8 1539.9 L1985.8 1536.4 L1984.7 1532.9 L1983.5 1529.4 L1982.3 1526.0 L1980.9 1522.6 L1979.5 1519.2 L1978.0 1515.9 L1976.4 1512.6 L1974.7 1509.4 L1973.0 1506.1 L1971.1 1503.0 L1163.1 141.0 L1161.2 137.9 L1159.3 134.8 L1157.2 131.8 L1155.1 128.8 L1152.9 125.9 L1150.6 123.0 L1148.3 120.2 L1145.9 117.4 L1143.4 114.7 L1140.8 112.1 L1138.2 109.6 L1135.6 107.1 L1132.8 104.6 L1130.0 102.3 L1127.2 100.0 L1124.3 97.7 L1121.3 95.6 L1118.3 93.5 L1115.3 91.5 L1112.2 89.5 L1109.0 87.7 L1105.8 85.9 L1102.6 84.2 L1099.3 82.6 L1096.0 81.1 L1092.6 79.6 L1089.3 78.2 L1085.8 76.9 L1082.4 75.7 L1078.9 74.6 L1075.4 73.6 L1071.9 72.6 L1068.3 71.8 L1064.7 71.0 L1061.1 70.3 L1057.5 69.7 L1053.9 69.2 L1050.3 68.8 L1046.6 68.5 L1043.0 68.2 L1039.3 68.1 L1035.7 68.0 L1032.0 68.0 L1028.4 68.1 L1024.7 68.4 L1021.1 68.7 L1017.4 69.0 L1013.8 69.5 L1010.2 70.1 L1006.6 70.7 L1003.0 71.5 L999.5 72.3 L995.9 73.2 L992.4 74.2 L988.9 75.3 L985.4 76.5 L982.0 77.7 L978.6 79.1 L975.2 80.5 L971.9 82.0 L968.6 83.6 L965.4 85.3 L962.1 87.0 L959.0 88.9 L955.9 90.8 L952.8 92.7 L949.8 94.8 L946.8 96.9 L943.9 99.1 L941.0 101.4 L938.2 103.7 L935.4 106.1 L932.7 108.6 L930.1 111.2 L927.6 113.8 L925.1 116.4 L922.6 119.2 L920.3 122.0 L918.0 124.8 L915.7 127.7 L913.6 130.7 L911.5 133.7 L909.5 136.7 L907.5 139.8 L905.7 143.0 L903.9 146.2 L902.2 149.4 L900.6 152.7 L899.1 156.0 L897.6 159.4 L896.2 162.7 L894.9 166.2 L893.7 169.6 L892.6 173.1 L891.6 176.6 L890.6 180.1 L889.8 183.7 L889.0 187.3 L888.3 190.9 L887.7 194.5 L887.2 198.1 L886.8 201.7 L886.5 205.4 L886.2 209.0 L886.1 212.7 L886.0 216.3 L886.0 220.0 L886.1 223.6 L886.4 227.3 L886.7 230.9 L887.0 234.6 L887.5 238.2 L888.1 241.8 L888.7 245.4 L889.5 249.0 L890.3 252.5 L891.2 256.1 L892.2 259.6 L893.3 263.1 L894.5 266.6 L895.7 270.0 L897.1 273.4 L898.5 276.8 L900.0 280.1 L901.6 283.4 L903.3 286.6 L905.0 289.9 L906.9 293.0 L1714.9 1655.0Z"/></g><path transform="translate(1455.14 333.32) scale(0.57534) translate(-23.0 759.0)" fill="#FFFFFF" d="M234 0V-625H376V0ZM23 -605V-730H587V-605ZM812.0 0 915.0 -525H1075.0L1194.0 0H1084.0L963.0 -522H1021.0L914.0 0ZM771.0 0 770.0 -114H881.0V0ZM715.0 0 567.0 -543H702.0L843.0 0ZM1119.0 0V-114H1230.0L1229.0 0ZM1163.0 0 1288.0 -543H1414.0L1283.0 0ZM1529.0 0V-543H1668.0V0ZM1453.0 -439V-543H1668.0V-439ZM1580.0 -608Q1539.0 -608 1519.5 -629.5Q1500.0 -651 1500.0 -684Q1500.0 -717 1519.5 -738.0Q1539.0 -759 1580.0 -759Q1621.0 -759 1640.0 -738.0Q1659.0 -717 1659.0 -684Q1659.0 -651 1640.0 -629.5Q1621.0 -608 1580.0 -608ZM1815.0 0V-730H1954.0V0ZM1747.0 -626V-730H1954.0V-626ZM2119.0 0V-543H2258.0V0ZM2043.0 -439V-543H2258.0V-439ZM2170.0 -608Q2129.0 -608 2109.5 -629.5Q2090.0 -651 2090.0 -684Q2090.0 -717 2109.5 -738.0Q2129.0 -759 2170.0 -759Q2211.0 -759 2230.0 -738.0Q2249.0 -717 2249.0 -684Q2249.0 -651 2230.0 -629.5Q2211.0 -608 2170.0 -608ZM2610.0 214Q2571.0 214 2530.5 211.0Q2490.0 208 2455.0 203V87Q2491.0 91 2532.0 94.5Q2573.0 98 2609.0 98Q2676.0 98 2717.5 82.0Q2759.0 66 2778.5 31.5Q2798.0 -3 2798.0 -56V-163L2828.0 -231Q2825.0 -156 2797.0 -103.5Q2769.0 -51 2721.0 -23.5Q2673.0 4 2610.0 4Q2554.0 4 2508.5 -17.0Q2463.0 -38 2430.5 -75.0Q2398.0 -112 2380.0 -162.0Q2362.0 -212 2362.0 -269V-290Q2362.0 -347 2380.5 -396.5Q2399.0 -446 2433.0 -483.0Q2467.0 -520 2514.0 -540.0Q2561.0 -560 2618.0 -560Q2685.0 -560 2734.5 -531.0Q2784.0 -502 2812.0 -447.0Q2840.0 -392 2843.0 -312L2819.0 -308V-543H2929.0V-64Q2929.0 35 2895.0 96.0Q2861.0 157 2790.5 185.5Q2720.0 214 2610.0 214ZM2650.0 -115Q2690.0 -115 2723.0 -133.0Q2756.0 -151 2776.0 -185.0Q2796.0 -219 2796.0 -267V-302Q2796.0 -348 2775.5 -380.0Q2755.0 -412 2722.0 -428.5Q2689.0 -445 2650.0 -445Q2606.0 -445 2572.5 -424.5Q2539.0 -404 2520.0 -367.0Q2501.0 -330 2501.0 -279Q2501.0 -229 2520.0 -192.0Q2539.0 -155 2572.5 -135.0Q2606.0 -115 2650.0 -115ZM3304.0 19Q3234.0 19 3181.5 -5.0Q3129.0 -29 3094.5 -69.5Q3060.0 -110 3042.5 -160.0Q3025.0 -210 3025.0 -262V-281Q3025.0 -335 3042.5 -385.5Q3060.0 -436 3094.5 -475.5Q3129.0 -515 3180.0 -538.5Q3231.0 -562 3298.0 -562Q3386.0 -562 3445.5 -523.5Q3505.0 -485 3535.0 -422.5Q3565.0 -360 3565.0 -288V-238H3084.0V-323H3478.0L3435.0 -281Q3435.0 -333 3420.0 -370.0Q3405.0 -407 3374.5 -427.0Q3344.0 -447 3298.0 -447Q3252.0 -447 3220.0 -426.0Q3188.0 -405 3171.5 -365.5Q3155.0 -326 3155.0 -271Q3155.0 -220 3171.0 -180.5Q3187.0 -141 3220.0 -118.5Q3253.0 -96 3304.0 -96Q3355.0 -96 3387.0 -116.5Q3419.0 -137 3428.0 -167H3556.0Q3544.0 -111 3510.0 -69.0Q3476.0 -27 3423.5 -4.0Q3371.0 19 3304.0 19ZM3661.0 0V-543H3771.0V-310H3761.0Q3761.0 -393 3783.0 -448.5Q3805.0 -504 3848.5 -532.0Q3892.0 -560 3957.0 -560H3963.0Q4060.0 -560 4110.0 -497.5Q4160.0 -435 4160.0 -311V0H4021.0V-323Q4021.0 -373 3992.5 -404.0Q3964.0 -435 3914.0 -435Q3863.0 -435 3831.5 -403.5Q3800.0 -372 3800.0 -319V0ZM4525.0 7Q4450.0 7 4401.5 -12.5Q4353.0 -32 4329.0 -78.5Q4305.0 -125 4305.0 -204L4306.0 -696H4436.0L4435.0 -195Q4435.0 -155 4456.5 -133.5Q4478.0 -112 4518.0 -112H4603.0V7ZM4219.0 -441V-543H4603.0V-441Z"/></svg>
\ No newline at end of file
diff --git a/site/public/brand/twiligent-lockup-horizontal.svg b/site/public/brand/twiligent-lockup-horizontal.svg
new file mode 100644
index 0000000..01bab87
--- /dev/null
+++ b/site/public/brand/twiligent-lockup-horizontal.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4090 1000" width="4090" height="1000"><title>Twiligent horizontal lockup</title><defs><linearGradient id="twL" gradientUnits="userSpaceOnUse" x1="1018" y1="220" x2="219" y2="1580">
+<stop offset="0" stop-color="#5E0B14"/><stop offset=".22" stop-color="#7E101C"/><stop offset=".5" stop-color="#9A1423"/><stop offset=".8" stop-color="#7E101C"/><stop offset="1" stop-color="#5E0B14"/></linearGradient>
+<linearGradient id="twB" gradientUnits="userSpaceOnUse" x1="219" y1="1580" x2="1843" y2="1579">
+<stop offset="0" stop-color="#C11F2F"/><stop offset=".4" stop-color="#C11F2F"/><stop offset=".72" stop-color="#9A1423"/><stop offset="1" stop-color="#5E0B14"/></linearGradient></defs><g transform="translate(0 0) scale(0.6013229104028863) translate(-70 -68)"><path fill="url(#twL)" d="M90.5 1504.5 L88.7 1507.7 L87.0 1510.9 L85.3 1514.2 L83.8 1517.5 L82.3 1520.8 L80.8 1524.2 L79.5 1527.6 L78.3 1531.0 L77.1 1534.5 L76.0 1538.0 L75.1 1541.5 L74.2 1545.1 L73.3 1548.6 L72.6 1552.2 L72.0 1555.8 L71.4 1559.4 L71.0 1563.1 L70.6 1566.7 L70.3 1570.3 L70.1 1574.0 L70.0 1577.7 L70.0 1581.3 L70.1 1585.0 L70.2 1588.6 L70.5 1592.3 L70.9 1595.9 L71.3 1599.5 L71.8 1603.2 L72.4 1606.8 L73.1 1610.4 L73.9 1613.9 L74.8 1617.5 L75.8 1621.0 L76.8 1624.5 L77.9 1628.0 L79.2 1631.4 L80.5 1634.8 L81.8 1638.2 L83.3 1641.6 L84.9 1644.9 L86.5 1648.2 L88.2 1651.4 L90.0 1654.6 L91.9 1657.7 L93.8 1660.8 L95.8 1663.9 L97.9 1666.9 L100.1 1669.8 L102.3 1672.7 L104.7 1675.5 L107.0 1678.3 L109.5 1681.0 L112.0 1683.7 L114.6 1686.3 L117.2 1688.8 L119.9 1691.3 L122.7 1693.7 L125.5 1696.0 L128.4 1698.3 L131.3 1700.5 L134.3 1702.6 L137.3 1704.6 L140.4 1706.6 L143.5 1708.5 L146.7 1710.3 L149.9 1712.0 L153.2 1713.7 L156.5 1715.2 L159.8 1716.7 L163.2 1718.2 L166.6 1719.5 L170.0 1720.7 L173.5 1721.9 L177.0 1723.0 L180.5 1723.9 L184.1 1724.8 L187.6 1725.7 L191.2 1726.4 L194.8 1727.0 L198.4 1727.6 L202.1 1728.0 L205.7 1728.4 L209.3 1728.7 L213.0 1728.9 L216.7 1729.0 L220.3 1729.0 L224.0 1728.9 L227.6 1728.8 L231.3 1728.5 L234.9 1728.1 L238.5 1727.7 L242.2 1727.2 L245.8 1726.6 L249.4 1725.9 L252.9 1725.1 L256.5 1724.2 L260.0 1723.2 L263.5 1722.2 L267.0 1721.1 L270.4 1719.8 L273.8 1718.5 L277.2 1717.2 L280.6 1715.7 L283.9 1714.1 L287.2 1712.5 L290.4 1710.8 L293.6 1709.0 L296.7 1707.1 L299.8 1705.2 L302.9 1703.2 L305.9 1701.1 L308.8 1698.9 L311.7 1696.7 L314.5 1694.3 L317.3 1692.0 L320.0 1689.5 L322.7 1687.0 L325.3 1684.4 L327.8 1681.8 L330.3 1679.1 L332.7 1676.3 L335.0 1673.5 L337.3 1670.6 L339.5 1667.7 L341.6 1664.7 L343.6 1661.7 L345.6 1658.6 L347.5 1655.5 L1146.5 295.5 L1148.3 292.3 L1150.0 289.1 L1151.7 285.8 L1153.2 282.5 L1154.7 279.2 L1156.2 275.8 L1157.5 272.4 L1158.7 269.0 L1159.9 265.5 L1161.0 262.0 L1161.9 258.5 L1162.8 254.9 L1163.7 251.4 L1164.4 247.8 L1165.0 244.2 L1165.6 240.6 L1166.0 236.9 L1166.4 233.3 L1166.7 229.7 L1166.9 226.0 L1167.0 222.3 L1167.0 218.7 L1166.9 215.0 L1166.8 211.4 L1166.5 207.7 L1166.1 204.1 L1165.7 200.5 L1165.2 196.8 L1164.6 193.2 L1163.9 189.6 L1163.1 186.1 L1162.2 182.5 L1161.2 179.0 L1160.2 175.5 L1159.1 172.0 L1157.8 168.6 L1156.5 165.2 L1155.2 161.8 L1153.7 158.4 L1152.1 155.1 L1150.5 151.8 L1148.8 148.6 L1147.0 145.4 L1145.1 142.3 L1143.2 139.2 L1141.2 136.1 L1139.1 133.1 L1136.9 130.2 L1134.7 127.3 L1132.3 124.5 L1130.0 121.7 L1127.5 119.0 L1125.0 116.3 L1122.4 113.7 L1119.8 111.2 L1117.1 108.7 L1114.3 106.3 L1111.5 104.0 L1108.6 101.7 L1105.7 99.5 L1102.7 97.4 L1099.7 95.4 L1096.6 93.4 L1093.5 91.5 L1090.3 89.7 L1087.1 88.0 L1083.8 86.3 L1080.5 84.8 L1077.2 83.3 L1073.8 81.8 L1070.4 80.5 L1067.0 79.3 L1063.5 78.1 L1060.0 77.0 L1056.5 76.1 L1052.9 75.2 L1049.4 74.3 L1045.8 73.6 L1042.2 73.0 L1038.6 72.4 L1034.9 72.0 L1031.3 71.6 L1027.7 71.3 L1024.0 71.1 L1020.3 71.0 L1016.7 71.0 L1013.0 71.1 L1009.4 71.2 L1005.7 71.5 L1002.1 71.9 L998.5 72.3 L994.8 72.8 L991.2 73.4 L987.6 74.1 L984.1 74.9 L980.5 75.8 L977.0 76.8 L973.5 77.8 L970.0 78.9 L966.6 80.2 L963.2 81.5 L959.8 82.8 L956.4 84.3 L953.1 85.9 L949.8 87.5 L946.6 89.2 L943.4 91.0 L940.3 92.9 L937.2 94.8 L934.1 96.8 L931.1 98.9 L928.2 101.1 L925.3 103.3 L922.5 105.7 L919.7 108.0 L917.0 110.5 L914.3 113.0 L911.7 115.6 L909.2 118.2 L906.7 120.9 L904.3 123.7 L902.0 126.5 L899.7 129.4 L897.5 132.3 L895.4 135.3 L893.4 138.3 L891.4 141.4 L889.5 144.5 L90.5 1504.5Z"/><path fill="url(#twB)" d="M1843.1 1728.0 L1846.7 1728.0 L1850.4 1727.8 L1854.1 1727.6 L1857.7 1727.3 L1861.3 1726.9 L1865.0 1726.4 L1868.6 1725.8 L1872.2 1725.1 L1875.7 1724.4 L1879.3 1723.5 L1882.8 1722.6 L1886.3 1721.6 L1889.8 1720.5 L1893.3 1719.3 L1896.7 1718.0 L1900.1 1716.6 L1903.5 1715.2 L1906.8 1713.7 L1910.1 1712.0 L1913.3 1710.4 L1916.5 1708.6 L1919.7 1706.8 L1922.8 1704.8 L1925.9 1702.8 L1928.9 1700.8 L1931.8 1698.6 L1934.7 1696.4 L1937.6 1694.1 L1940.4 1691.8 L1943.1 1689.3 L1945.8 1686.8 L1948.4 1684.3 L1951.0 1681.7 L1953.5 1679.0 L1955.9 1676.3 L1958.2 1673.5 L1960.5 1670.6 L1962.7 1667.7 L1964.9 1664.7 L1966.9 1661.7 L1968.9 1658.6 L1970.8 1655.5 L1972.7 1652.4 L1974.4 1649.2 L1976.1 1645.9 L1977.7 1642.6 L1979.3 1639.3 L1980.7 1635.9 L1982.0 1632.5 L1983.3 1629.1 L1984.5 1625.7 L1985.6 1622.2 L1986.6 1618.7 L1987.6 1615.1 L1988.4 1611.6 L1989.2 1608.0 L1989.8 1604.4 L1990.4 1600.8 L1990.9 1597.1 L1991.3 1593.5 L1991.6 1589.9 L1991.8 1586.2 L1992.0 1582.6 L1992.0 1578.9 L1992.0 1575.3 L1991.8 1571.6 L1991.6 1567.9 L1991.3 1564.3 L1990.9 1560.7 L1990.4 1557.0 L1989.8 1553.4 L1989.1 1549.8 L1988.4 1546.3 L1987.5 1542.7 L1986.6 1539.2 L1985.6 1535.7 L1984.5 1532.2 L1983.3 1528.7 L1982.0 1525.3 L1980.6 1521.9 L1979.2 1518.5 L1977.7 1515.2 L1976.0 1511.9 L1974.4 1508.7 L1972.6 1505.5 L1970.8 1502.3 L1968.8 1499.2 L1966.8 1496.1 L1964.8 1493.1 L1962.6 1490.2 L1960.4 1487.3 L1958.1 1484.4 L1955.8 1481.6 L1953.3 1478.9 L1950.8 1476.2 L1948.3 1473.6 L1945.7 1471.0 L1943.0 1468.5 L1940.3 1466.1 L1937.5 1463.8 L1934.6 1461.5 L1931.7 1459.3 L1928.7 1457.1 L1925.7 1455.1 L1922.6 1453.1 L1919.5 1451.2 L1916.4 1449.3 L1913.2 1447.6 L1909.9 1445.9 L1906.6 1444.3 L1903.3 1442.7 L1899.9 1441.3 L1896.5 1440.0 L1893.1 1438.7 L1889.7 1437.5 L1886.2 1436.4 L1882.7 1435.4 L1879.1 1434.4 L1875.6 1433.6 L1872.0 1432.8 L1868.4 1432.2 L1864.8 1431.6 L1861.1 1431.1 L1857.5 1430.7 L1853.9 1430.4 L1850.2 1430.2 L1846.6 1430.0 L1842.9 1430.0 L218.9 1431.0 L215.3 1431.0 L211.6 1431.2 L207.9 1431.4 L204.3 1431.7 L200.7 1432.1 L197.0 1432.6 L193.4 1433.2 L189.8 1433.9 L186.3 1434.6 L182.7 1435.5 L179.2 1436.4 L175.7 1437.4 L172.2 1438.5 L168.7 1439.7 L165.3 1441.0 L161.9 1442.4 L158.5 1443.8 L155.2 1445.3 L151.9 1447.0 L148.7 1448.6 L145.5 1450.4 L142.3 1452.2 L139.2 1454.2 L136.1 1456.2 L133.1 1458.2 L130.2 1460.4 L127.3 1462.6 L124.4 1464.9 L121.6 1467.2 L118.9 1469.7 L116.2 1472.2 L113.6 1474.7 L111.0 1477.3 L108.5 1480.0 L106.1 1482.7 L103.8 1485.5 L101.5 1488.4 L99.3 1491.3 L97.1 1494.3 L95.1 1497.3 L93.1 1500.4 L91.2 1503.5 L89.3 1506.6 L87.6 1509.8 L85.9 1513.1 L84.3 1516.4 L82.7 1519.7 L81.3 1523.1 L80.0 1526.5 L78.7 1529.9 L77.5 1533.3 L76.4 1536.8 L75.4 1540.3 L74.4 1543.9 L73.6 1547.4 L72.8 1551.0 L72.2 1554.6 L71.6 1558.2 L71.1 1561.9 L70.7 1565.5 L70.4 1569.1 L70.2 1572.8 L70.0 1576.4 L70.0 1580.1 L70.0 1583.7 L70.2 1587.4 L70.4 1591.1 L70.7 1594.7 L71.1 1598.3 L71.6 1602.0 L72.2 1605.6 L72.9 1609.2 L73.6 1612.7 L74.5 1616.3 L75.4 1619.8 L76.4 1623.3 L77.5 1626.8 L78.7 1630.3 L80.0 1633.7 L81.4 1637.1 L82.8 1640.5 L84.3 1643.8 L86.0 1647.1 L87.6 1650.3 L89.4 1653.5 L91.2 1656.7 L93.2 1659.8 L95.2 1662.9 L97.2 1665.9 L99.4 1668.8 L101.6 1671.7 L103.9 1674.6 L106.2 1677.4 L108.7 1680.1 L111.2 1682.8 L113.7 1685.4 L116.3 1688.0 L119.0 1690.5 L121.7 1692.9 L124.5 1695.2 L127.4 1697.5 L130.3 1699.7 L133.3 1701.9 L136.3 1703.9 L139.4 1705.9 L142.5 1707.8 L145.6 1709.7 L148.8 1711.4 L152.1 1713.1 L155.4 1714.7 L158.7 1716.3 L162.1 1717.7 L165.5 1719.0 L168.9 1720.3 L172.3 1721.5 L175.8 1722.6 L179.3 1723.6 L182.9 1724.6 L186.4 1725.4 L190.0 1726.2 L193.6 1726.8 L197.2 1727.4 L200.9 1727.9 L204.5 1728.3 L208.1 1728.6 L211.8 1728.8 L215.4 1729.0 L219.1 1729.0 L1843.1 1728.0Z"/><path fill="#C11F2F" d="M1714.9 1655.0 L1716.8 1658.1 L1718.7 1661.2 L1720.8 1664.2 L1722.9 1667.2 L1725.1 1670.1 L1727.4 1673.0 L1729.7 1675.8 L1732.1 1678.6 L1734.6 1681.3 L1737.2 1683.9 L1739.8 1686.4 L1742.4 1688.9 L1745.2 1691.4 L1748.0 1693.7 L1750.8 1696.0 L1753.7 1698.3 L1756.7 1700.4 L1759.7 1702.5 L1762.7 1704.5 L1765.8 1706.5 L1769.0 1708.3 L1772.2 1710.1 L1775.4 1711.8 L1778.7 1713.4 L1782.0 1714.9 L1785.4 1716.4 L1788.7 1717.8 L1792.2 1719.1 L1795.6 1720.3 L1799.1 1721.4 L1802.6 1722.4 L1806.1 1723.4 L1809.7 1724.2 L1813.3 1725.0 L1816.9 1725.7 L1820.5 1726.3 L1824.1 1726.8 L1827.7 1727.2 L1831.4 1727.5 L1835.0 1727.8 L1838.7 1727.9 L1842.3 1728.0 L1846.0 1728.0 L1849.6 1727.9 L1853.3 1727.6 L1856.9 1727.3 L1860.6 1727.0 L1864.2 1726.5 L1867.8 1725.9 L1871.4 1725.3 L1875.0 1724.5 L1878.5 1723.7 L1882.1 1722.8 L1885.6 1721.8 L1889.1 1720.7 L1892.6 1719.5 L1896.0 1718.3 L1899.4 1716.9 L1902.8 1715.5 L1906.1 1714.0 L1909.4 1712.4 L1912.6 1710.7 L1915.9 1709.0 L1919.0 1707.1 L1922.1 1705.2 L1925.2 1703.3 L1928.2 1701.2 L1931.2 1699.1 L1934.1 1696.9 L1937.0 1694.6 L1939.8 1692.3 L1942.6 1689.9 L1945.3 1687.4 L1947.9 1684.8 L1950.4 1682.2 L1952.9 1679.6 L1955.4 1676.8 L1957.7 1674.0 L1960.0 1671.2 L1962.3 1668.3 L1964.4 1665.3 L1966.5 1662.3 L1968.5 1659.3 L1970.5 1656.2 L1972.3 1653.0 L1974.1 1649.8 L1975.8 1646.6 L1977.4 1643.3 L1978.9 1640.0 L1980.4 1636.6 L1981.8 1633.3 L1983.1 1629.8 L1984.3 1626.4 L1985.4 1622.9 L1986.4 1619.4 L1987.4 1615.9 L1988.2 1612.3 L1989.0 1608.7 L1989.7 1605.1 L1990.3 1601.5 L1990.8 1597.9 L1991.2 1594.3 L1991.5 1590.6 L1991.8 1587.0 L1991.9 1583.3 L1992.0 1579.7 L1992.0 1576.0 L1991.9 1572.4 L1991.6 1568.7 L1991.3 1565.1 L1991.0 1561.4 L1990.5 1557.8 L1989.9 1554.2 L1989.3 1550.6 L1988.5 1547.0 L1987.7 1543.5 L1986.8 1539.9 L1985.8 1536.4 L1984.7 1532.9 L1983.5 1529.4 L1982.3 1526.0 L1980.9 1522.6 L1979.5 1519.2 L1978.0 1515.9 L1976.4 1512.6 L1974.7 1509.4 L1973.0 1506.1 L1971.1 1503.0 L1163.1 141.0 L1161.2 137.9 L1159.3 134.8 L1157.2 131.8 L1155.1 128.8 L1152.9 125.9 L1150.6 123.0 L1148.3 120.2 L1145.9 117.4 L1143.4 114.7 L1140.8 112.1 L1138.2 109.6 L1135.6 107.1 L1132.8 104.6 L1130.0 102.3 L1127.2 100.0 L1124.3 97.7 L1121.3 95.6 L1118.3 93.5 L1115.3 91.5 L1112.2 89.5 L1109.0 87.7 L1105.8 85.9 L1102.6 84.2 L1099.3 82.6 L1096.0 81.1 L1092.6 79.6 L1089.3 78.2 L1085.8 76.9 L1082.4 75.7 L1078.9 74.6 L1075.4 73.6 L1071.9 72.6 L1068.3 71.8 L1064.7 71.0 L1061.1 70.3 L1057.5 69.7 L1053.9 69.2 L1050.3 68.8 L1046.6 68.5 L1043.0 68.2 L1039.3 68.1 L1035.7 68.0 L1032.0 68.0 L1028.4 68.1 L1024.7 68.4 L1021.1 68.7 L1017.4 69.0 L1013.8 69.5 L1010.2 70.1 L1006.6 70.7 L1003.0 71.5 L999.5 72.3 L995.9 73.2 L992.4 74.2 L988.9 75.3 L985.4 76.5 L982.0 77.7 L978.6 79.1 L975.2 80.5 L971.9 82.0 L968.6 83.6 L965.4 85.3 L962.1 87.0 L959.0 88.9 L955.9 90.8 L952.8 92.7 L949.8 94.8 L946.8 96.9 L943.9 99.1 L941.0 101.4 L938.2 103.7 L935.4 106.1 L932.7 108.6 L930.1 111.2 L927.6 113.8 L925.1 116.4 L922.6 119.2 L920.3 122.0 L918.0 124.8 L915.7 127.7 L913.6 130.7 L911.5 133.7 L909.5 136.7 L907.5 139.8 L905.7 143.0 L903.9 146.2 L902.2 149.4 L900.6 152.7 L899.1 156.0 L897.6 159.4 L896.2 162.7 L894.9 166.2 L893.7 169.6 L892.6 173.1 L891.6 176.6 L890.6 180.1 L889.8 183.7 L889.0 187.3 L888.3 190.9 L887.7 194.5 L887.2 198.1 L886.8 201.7 L886.5 205.4 L886.2 209.0 L886.1 212.7 L886.0 216.3 L886.0 220.0 L886.1 223.6 L886.4 227.3 L886.7 230.9 L887.0 234.6 L887.5 238.2 L888.1 241.8 L888.7 245.4 L889.5 249.0 L890.3 252.5 L891.2 256.1 L892.2 259.6 L893.3 263.1 L894.5 266.6 L895.7 270.0 L897.1 273.4 L898.5 276.8 L900.0 280.1 L901.6 283.4 L903.3 286.6 L905.0 289.9 L906.9 293.0 L1714.9 1655.0Z"/></g><path transform="translate(1455.14 333.32) scale(0.57534) translate(-23.0 759.0)" fill="#140E10" d="M234 0V-625H376V0ZM23 -605V-730H587V-605ZM812.0 0 915.0 -525H1075.0L1194.0 0H1084.0L963.0 -522H1021.0L914.0 0ZM771.0 0 770.0 -114H881.0V0ZM715.0 0 567.0 -543H702.0L843.0 0ZM1119.0 0V-114H1230.0L1229.0 0ZM1163.0 0 1288.0 -543H1414.0L1283.0 0ZM1529.0 0V-543H1668.0V0ZM1453.0 -439V-543H1668.0V-439ZM1580.0 -608Q1539.0 -608 1519.5 -629.5Q1500.0 -651 1500.0 -684Q1500.0 -717 1519.5 -738.0Q1539.0 -759 1580.0 -759Q1621.0 -759 1640.0 -738.0Q1659.0 -717 1659.0 -684Q1659.0 -651 1640.0 -629.5Q1621.0 -608 1580.0 -608ZM1815.0 0V-730H1954.0V0ZM1747.0 -626V-730H1954.0V-626ZM2119.0 0V-543H2258.0V0ZM2043.0 -439V-543H2258.0V-439ZM2170.0 -608Q2129.0 -608 2109.5 -629.5Q2090.0 -651 2090.0 -684Q2090.0 -717 2109.5 -738.0Q2129.0 -759 2170.0 -759Q2211.0 -759 2230.0 -738.0Q2249.0 -717 2249.0 -684Q2249.0 -651 2230.0 -629.5Q2211.0 -608 2170.0 -608ZM2610.0 214Q2571.0 214 2530.5 211.0Q2490.0 208 2455.0 203V87Q2491.0 91 2532.0 94.5Q2573.0 98 2609.0 98Q2676.0 98 2717.5 82.0Q2759.0 66 2778.5 31.5Q2798.0 -3 2798.0 -56V-163L2828.0 -231Q2825.0 -156 2797.0 -103.5Q2769.0 -51 2721.0 -23.5Q2673.0 4 2610.0 4Q2554.0 4 2508.5 -17.0Q2463.0 -38 2430.5 -75.0Q2398.0 -112 2380.0 -162.0Q2362.0 -212 2362.0 -269V-290Q2362.0 -347 2380.5 -396.5Q2399.0 -446 2433.0 -483.0Q2467.0 -520 2514.0 -540.0Q2561.0 -560 2618.0 -560Q2685.0 -560 2734.5 -531.0Q2784.0 -502 2812.0 -447.0Q2840.0 -392 2843.0 -312L2819.0 -308V-543H2929.0V-64Q2929.0 35 2895.0 96.0Q2861.0 157 2790.5 185.5Q2720.0 214 2610.0 214ZM2650.0 -115Q2690.0 -115 2723.0 -133.0Q2756.0 -151 2776.0 -185.0Q2796.0 -219 2796.0 -267V-302Q2796.0 -348 2775.5 -380.0Q2755.0 -412 2722.0 -428.5Q2689.0 -445 2650.0 -445Q2606.0 -445 2572.5 -424.5Q2539.0 -404 2520.0 -367.0Q2501.0 -330 2501.0 -279Q2501.0 -229 2520.0 -192.0Q2539.0 -155 2572.5 -135.0Q2606.0 -115 2650.0 -115ZM3304.0 19Q3234.0 19 3181.5 -5.0Q3129.0 -29 3094.5 -69.5Q3060.0 -110 3042.5 -160.0Q3025.0 -210 3025.0 -262V-281Q3025.0 -335 3042.5 -385.5Q3060.0 -436 3094.5 -475.5Q3129.0 -515 3180.0 -538.5Q3231.0 -562 3298.0 -562Q3386.0 -562 3445.5 -523.5Q3505.0 -485 3535.0 -422.5Q3565.0 -360 3565.0 -288V-238H3084.0V-323H3478.0L3435.0 -281Q3435.0 -333 3420.0 -370.0Q3405.0 -407 3374.5 -427.0Q3344.0 -447 3298.0 -447Q3252.0 -447 3220.0 -426.0Q3188.0 -405 3171.5 -365.5Q3155.0 -326 3155.0 -271Q3155.0 -220 3171.0 -180.5Q3187.0 -141 3220.0 -118.5Q3253.0 -96 3304.0 -96Q3355.0 -96 3387.0 -116.5Q3419.0 -137 3428.0 -167H3556.0Q3544.0 -111 3510.0 -69.0Q3476.0 -27 3423.5 -4.0Q3371.0 19 3304.0 19ZM3661.0 0V-543H3771.0V-310H3761.0Q3761.0 -393 3783.0 -448.5Q3805.0 -504 3848.5 -532.0Q3892.0 -560 3957.0 -560H3963.0Q4060.0 -560 4110.0 -497.5Q4160.0 -435 4160.0 -311V0H4021.0V-323Q4021.0 -373 3992.5 -404.0Q3964.0 -435 3914.0 -435Q3863.0 -435 3831.5 -403.5Q3800.0 -372 3800.0 -319V0ZM4525.0 7Q4450.0 7 4401.5 -12.5Q4353.0 -32 4329.0 -78.5Q4305.0 -125 4305.0 -204L4306.0 -696H4436.0L4435.0 -195Q4435.0 -155 4456.5 -133.5Q4478.0 -112 4518.0 -112H4603.0V7ZM4219.0 -441V-543H4603.0V-441Z"/></svg>
\ No newline at end of file
diff --git a/site/public/brand/twiligent-mark-color.svg b/site/public/brand/twiligent-mark-color.svg
new file mode 100644
index 0000000..4a84850
--- /dev/null
+++ b/site/public/brand/twiligent-mark-color.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1921 1663" width="1921" height="1663"><title>Twiligent mark, full colour</title><defs><linearGradient id="twL" gradientUnits="userSpaceOnUse" x1="1018" y1="220" x2="219" y2="1580">
+<stop offset="0" stop-color="#5E0B14"/><stop offset=".22" stop-color="#7E101C"/><stop offset=".5" stop-color="#9A1423"/><stop offset=".8" stop-color="#7E101C"/><stop offset="1" stop-color="#5E0B14"/></linearGradient>
+<linearGradient id="twB" gradientUnits="userSpaceOnUse" x1="219" y1="1580" x2="1843" y2="1579">
+<stop offset="0" stop-color="#C11F2F"/><stop offset=".4" stop-color="#C11F2F"/><stop offset=".72" stop-color="#9A1423"/><stop offset="1" stop-color="#5E0B14"/></linearGradient></defs><g transform="translate(0 0) scale(1) translate(-70 -68)"><path fill="url(#twL)" d="M90.5 1504.5 L88.7 1507.7 L87.0 1510.9 L85.3 1514.2 L83.8 1517.5 L82.3 1520.8 L80.8 1524.2 L79.5 1527.6 L78.3 1531.0 L77.1 1534.5 L76.0 1538.0 L75.1 1541.5 L74.2 1545.1 L73.3 1548.6 L72.6 1552.2 L72.0 1555.8 L71.4 1559.4 L71.0 1563.1 L70.6 1566.7 L70.3 1570.3 L70.1 1574.0 L70.0 1577.7 L70.0 1581.3 L70.1 1585.0 L70.2 1588.6 L70.5 1592.3 L70.9 1595.9 L71.3 1599.5 L71.8 1603.2 L72.4 1606.8 L73.1 1610.4 L73.9 1613.9 L74.8 1617.5 L75.8 1621.0 L76.8 1624.5 L77.9 1628.0 L79.2 1631.4 L80.5 1634.8 L81.8 1638.2 L83.3 1641.6 L84.9 1644.9 L86.5 1648.2 L88.2 1651.4 L90.0 1654.6 L91.9 1657.7 L93.8 1660.8 L95.8 1663.9 L97.9 1666.9 L100.1 1669.8 L102.3 1672.7 L104.7 1675.5 L107.0 1678.3 L109.5 1681.0 L112.0 1683.7 L114.6 1686.3 L117.2 1688.8 L119.9 1691.3 L122.7 1693.7 L125.5 1696.0 L128.4 1698.3 L131.3 1700.5 L134.3 1702.6 L137.3 1704.6 L140.4 1706.6 L143.5 1708.5 L146.7 1710.3 L149.9 1712.0 L153.2 1713.7 L156.5 1715.2 L159.8 1716.7 L163.2 1718.2 L166.6 1719.5 L170.0 1720.7 L173.5 1721.9 L177.0 1723.0 L180.5 1723.9 L184.1 1724.8 L187.6 1725.7 L191.2 1726.4 L194.8 1727.0 L198.4 1727.6 L202.1 1728.0 L205.7 1728.4 L209.3 1728.7 L213.0 1728.9 L216.7 1729.0 L220.3 1729.0 L224.0 1728.9 L227.6 1728.8 L231.3 1728.5 L234.9 1728.1 L238.5 1727.7 L242.2 1727.2 L245.8 1726.6 L249.4 1725.9 L252.9 1725.1 L256.5 1724.2 L260.0 1723.2 L263.5 1722.2 L267.0 1721.1 L270.4 1719.8 L273.8 1718.5 L277.2 1717.2 L280.6 1715.7 L283.9 1714.1 L287.2 1712.5 L290.4 1710.8 L293.6 1709.0 L296.7 1707.1 L299.8 1705.2 L302.9 1703.2 L305.9 1701.1 L308.8 1698.9 L311.7 1696.7 L314.5 1694.3 L317.3 1692.0 L320.0 1689.5 L322.7 1687.0 L325.3 1684.4 L327.8 1681.8 L330.3 1679.1 L332.7 1676.3 L335.0 1673.5 L337.3 1670.6 L339.5 1667.7 L341.6 1664.7 L343.6 1661.7 L345.6 1658.6 L347.5 1655.5 L1146.5 295.5 L1148.3 292.3 L1150.0 289.1 L1151.7 285.8 L1153.2 282.5 L1154.7 279.2 L1156.2 275.8 L1157.5 272.4 L1158.7 269.0 L1159.9 265.5 L1161.0 262.0 L1161.9 258.5 L1162.8 254.9 L1163.7 251.4 L1164.4 247.8 L1165.0 244.2 L1165.6 240.6 L1166.0 236.9 L1166.4 233.3 L1166.7 229.7 L1166.9 226.0 L1167.0 222.3 L1167.0 218.7 L1166.9 215.0 L1166.8 211.4 L1166.5 207.7 L1166.1 204.1 L1165.7 200.5 L1165.2 196.8 L1164.6 193.2 L1163.9 189.6 L1163.1 186.1 L1162.2 182.5 L1161.2 179.0 L1160.2 175.5 L1159.1 172.0 L1157.8 168.6 L1156.5 165.2 L1155.2 161.8 L1153.7 158.4 L1152.1 155.1 L1150.5 151.8 L1148.8 148.6 L1147.0 145.4 L1145.1 142.3 L1143.2 139.2 L1141.2 136.1 L1139.1 133.1 L1136.9 130.2 L1134.7 127.3 L1132.3 124.5 L1130.0 121.7 L1127.5 119.0 L1125.0 116.3 L1122.4 113.7 L1119.8 111.2 L1117.1 108.7 L1114.3 106.3 L1111.5 104.0 L1108.6 101.7 L1105.7 99.5 L1102.7 97.4 L1099.7 95.4 L1096.6 93.4 L1093.5 91.5 L1090.3 89.7 L1087.1 88.0 L1083.8 86.3 L1080.5 84.8 L1077.2 83.3 L1073.8 81.8 L1070.4 80.5 L1067.0 79.3 L1063.5 78.1 L1060.0 77.0 L1056.5 76.1 L1052.9 75.2 L1049.4 74.3 L1045.8 73.6 L1042.2 73.0 L1038.6 72.4 L1034.9 72.0 L1031.3 71.6 L1027.7 71.3 L1024.0 71.1 L1020.3 71.0 L1016.7 71.0 L1013.0 71.1 L1009.4 71.2 L1005.7 71.5 L1002.1 71.9 L998.5 72.3 L994.8 72.8 L991.2 73.4 L987.6 74.1 L984.1 74.9 L980.5 75.8 L977.0 76.8 L973.5 77.8 L970.0 78.9 L966.6 80.2 L963.2 81.5 L959.8 82.8 L956.4 84.3 L953.1 85.9 L949.8 87.5 L946.6 89.2 L943.4 91.0 L940.3 92.9 L937.2 94.8 L934.1 96.8 L931.1 98.9 L928.2 101.1 L925.3 103.3 L922.5 105.7 L919.7 108.0 L917.0 110.5 L914.3 113.0 L911.7 115.6 L909.2 118.2 L906.7 120.9 L904.3 123.7 L902.0 126.5 L899.7 129.4 L897.5 132.3 L895.4 135.3 L893.4 138.3 L891.4 141.4 L889.5 144.5 L90.5 1504.5Z"/><path fill="url(#twB)" d="M1843.1 1728.0 L1846.7 1728.0 L1850.4 1727.8 L1854.1 1727.6 L1857.7 1727.3 L1861.3 1726.9 L1865.0 1726.4 L1868.6 1725.8 L1872.2 1725.1 L1875.7 1724.4 L1879.3 1723.5 L1882.8 1722.6 L1886.3 1721.6 L1889.8 1720.5 L1893.3 1719.3 L1896.7 1718.0 L1900.1 1716.6 L1903.5 1715.2 L1906.8 1713.7 L1910.1 1712.0 L1913.3 1710.4 L1916.5 1708.6 L1919.7 1706.8 L1922.8 1704.8 L1925.9 1702.8 L1928.9 1700.8 L1931.8 1698.6 L1934.7 1696.4 L1937.6 1694.1 L1940.4 1691.8 L1943.1 1689.3 L1945.8 1686.8 L1948.4 1684.3 L1951.0 1681.7 L1953.5 1679.0 L1955.9 1676.3 L1958.2 1673.5 L1960.5 1670.6 L1962.7 1667.7 L1964.9 1664.7 L1966.9 1661.7 L1968.9 1658.6 L1970.8 1655.5 L1972.7 1652.4 L1974.4 1649.2 L1976.1 1645.9 L1977.7 1642.6 L1979.3 1639.3 L1980.7 1635.9 L1982.0 1632.5 L1983.3 1629.1 L1984.5 1625.7 L1985.6 1622.2 L1986.6 1618.7 L1987.6 1615.1 L1988.4 1611.6 L1989.2 1608.0 L1989.8 1604.4 L1990.4 1600.8 L1990.9 1597.1 L1991.3 1593.5 L1991.6 1589.9 L1991.8 1586.2 L1992.0 1582.6 L1992.0 1578.9 L1992.0 1575.3 L1991.8 1571.6 L1991.6 1567.9 L1991.3 1564.3 L1990.9 1560.7 L1990.4 1557.0 L1989.8 1553.4 L1989.1 1549.8 L1988.4 1546.3 L1987.5 1542.7 L1986.6 1539.2 L1985.6 1535.7 L1984.5 1532.2 L1983.3 1528.7 L1982.0 1525.3 L1980.6 1521.9 L1979.2 1518.5 L1977.7 1515.2 L1976.0 1511.9 L1974.4 1508.7 L1972.6 1505.5 L1970.8 1502.3 L1968.8 1499.2 L1966.8 1496.1 L1964.8 1493.1 L1962.6 1490.2 L1960.4 1487.3 L1958.1 1484.4 L1955.8 1481.6 L1953.3 1478.9 L1950.8 1476.2 L1948.3 1473.6 L1945.7 1471.0 L1943.0 1468.5 L1940.3 1466.1 L1937.5 1463.8 L1934.6 1461.5 L1931.7 1459.3 L1928.7 1457.1 L1925.7 1455.1 L1922.6 1453.1 L1919.5 1451.2 L1916.4 1449.3 L1913.2 1447.6 L1909.9 1445.9 L1906.6 1444.3 L1903.3 1442.7 L1899.9 1441.3 L1896.5 1440.0 L1893.1 1438.7 L1889.7 1437.5 L1886.2 1436.4 L1882.7 1435.4 L1879.1 1434.4 L1875.6 1433.6 L1872.0 1432.8 L1868.4 1432.2 L1864.8 1431.6 L1861.1 1431.1 L1857.5 1430.7 L1853.9 1430.4 L1850.2 1430.2 L1846.6 1430.0 L1842.9 1430.0 L218.9 1431.0 L215.3 1431.0 L211.6 1431.2 L207.9 1431.4 L204.3 1431.7 L200.7 1432.1 L197.0 1432.6 L193.4 1433.2 L189.8 1433.9 L186.3 1434.6 L182.7 1435.5 L179.2 1436.4 L175.7 1437.4 L172.2 1438.5 L168.7 1439.7 L165.3 1441.0 L161.9 1442.4 L158.5 1443.8 L155.2 1445.3 L151.9 1447.0 L148.7 1448.6 L145.5 1450.4 L142.3 1452.2 L139.2 1454.2 L136.1 1456.2 L133.1 1458.2 L130.2 1460.4 L127.3 1462.6 L124.4 1464.9 L121.6 1467.2 L118.9 1469.7 L116.2 1472.2 L113.6 1474.7 L111.0 1477.3 L108.5 1480.0 L106.1 1482.7 L103.8 1485.5 L101.5 1488.4 L99.3 1491.3 L97.1 1494.3 L95.1 1497.3 L93.1 1500.4 L91.2 1503.5 L89.3 1506.6 L87.6 1509.8 L85.9 1513.1 L84.3 1516.4 L82.7 1519.7 L81.3 1523.1 L80.0 1526.5 L78.7 1529.9 L77.5 1533.3 L76.4 1536.8 L75.4 1540.3 L74.4 1543.9 L73.6 1547.4 L72.8 1551.0 L72.2 1554.6 L71.6 1558.2 L71.1 1561.9 L70.7 1565.5 L70.4 1569.1 L70.2 1572.8 L70.0 1576.4 L70.0 1580.1 L70.0 1583.7 L70.2 1587.4 L70.4 1591.1 L70.7 1594.7 L71.1 1598.3 L71.6 1602.0 L72.2 1605.6 L72.9 1609.2 L73.6 1612.7 L74.5 1616.3 L75.4 1619.8 L76.4 1623.3 L77.5 1626.8 L78.7 1630.3 L80.0 1633.7 L81.4 1637.1 L82.8 1640.5 L84.3 1643.8 L86.0 1647.1 L87.6 1650.3 L89.4 1653.5 L91.2 1656.7 L93.2 1659.8 L95.2 1662.9 L97.2 1665.9 L99.4 1668.8 L101.6 1671.7 L103.9 1674.6 L106.2 1677.4 L108.7 1680.1 L111.2 1682.8 L113.7 1685.4 L116.3 1688.0 L119.0 1690.5 L121.7 1692.9 L124.5 1695.2 L127.4 1697.5 L130.3 1699.7 L133.3 1701.9 L136.3 1703.9 L139.4 1705.9 L142.5 1707.8 L145.6 1709.7 L148.8 1711.4 L152.1 1713.1 L155.4 1714.7 L158.7 1716.3 L162.1 1717.7 L165.5 1719.0 L168.9 1720.3 L172.3 1721.5 L175.8 1722.6 L179.3 1723.6 L182.9 1724.6 L186.4 1725.4 L190.0 1726.2 L193.6 1726.8 L197.2 1727.4 L200.9 1727.9 L204.5 1728.3 L208.1 1728.6 L211.8 1728.8 L215.4 1729.0 L219.1 1729.0 L1843.1 1728.0Z"/><path fill="#C11F2F" d="M1714.9 1655.0 L1716.8 1658.1 L1718.7 1661.2 L1720.8 1664.2 L1722.9 1667.2 L1725.1 1670.1 L1727.4 1673.0 L1729.7 1675.8 L1732.1 1678.6 L1734.6 1681.3 L1737.2 1683.9 L1739.8 1686.4 L1742.4 1688.9 L1745.2 1691.4 L1748.0 1693.7 L1750.8 1696.0 L1753.7 1698.3 L1756.7 1700.4 L1759.7 1702.5 L1762.7 1704.5 L1765.8 1706.5 L1769.0 1708.3 L1772.2 1710.1 L1775.4 1711.8 L1778.7 1713.4 L1782.0 1714.9 L1785.4 1716.4 L1788.7 1717.8 L1792.2 1719.1 L1795.6 1720.3 L1799.1 1721.4 L1802.6 1722.4 L1806.1 1723.4 L1809.7 1724.2 L1813.3 1725.0 L1816.9 1725.7 L1820.5 1726.3 L1824.1 1726.8 L1827.7 1727.2 L1831.4 1727.5 L1835.0 1727.8 L1838.7 1727.9 L1842.3 1728.0 L1846.0 1728.0 L1849.6 1727.9 L1853.3 1727.6 L1856.9 1727.3 L1860.6 1727.0 L1864.2 1726.5 L1867.8 1725.9 L1871.4 1725.3 L1875.0 1724.5 L1878.5 1723.7 L1882.1 1722.8 L1885.6 1721.8 L1889.1 1720.7 L1892.6 1719.5 L1896.0 1718.3 L1899.4 1716.9 L1902.8 1715.5 L1906.1 1714.0 L1909.4 1712.4 L1912.6 1710.7 L1915.9 1709.0 L1919.0 1707.1 L1922.1 1705.2 L1925.2 1703.3 L1928.2 1701.2 L1931.2 1699.1 L1934.1 1696.9 L1937.0 1694.6 L1939.8 1692.3 L1942.6 1689.9 L1945.3 1687.4 L1947.9 1684.8 L1950.4 1682.2 L1952.9 1679.6 L1955.4 1676.8 L1957.7 1674.0 L1960.0 1671.2 L1962.3 1668.3 L1964.4 1665.3 L1966.5 1662.3 L1968.5 1659.3 L1970.5 1656.2 L1972.3 1653.0 L1974.1 1649.8 L1975.8 1646.6 L1977.4 1643.3 L1978.9 1640.0 L1980.4 1636.6 L1981.8 1633.3 L1983.1 1629.8 L1984.3 1626.4 L1985.4 1622.9 L1986.4 1619.4 L1987.4 1615.9 L1988.2 1612.3 L1989.0 1608.7 L1989.7 1605.1 L1990.3 1601.5 L1990.8 1597.9 L1991.2 1594.3 L1991.5 1590.6 L1991.8 1587.0 L1991.9 1583.3 L1992.0 1579.7 L1992.0 1576.0 L1991.9 1572.4 L1991.6 1568.7 L1991.3 1565.1 L1991.0 1561.4 L1990.5 1557.8 L1989.9 1554.2 L1989.3 1550.6 L1988.5 1547.0 L1987.7 1543.5 L1986.8 1539.9 L1985.8 1536.4 L1984.7 1532.9 L1983.5 1529.4 L1982.3 1526.0 L1980.9 1522.6 L1979.5 1519.2 L1978.0 1515.9 L1976.4 1512.6 L1974.7 1509.4 L1973.0 1506.1 L1971.1 1503.0 L1163.1 141.0 L1161.2 137.9 L1159.3 134.8 L1157.2 131.8 L1155.1 128.8 L1152.9 125.9 L1150.6 123.0 L1148.3 120.2 L1145.9 117.4 L1143.4 114.7 L1140.8 112.1 L1138.2 109.6 L1135.6 107.1 L1132.8 104.6 L1130.0 102.3 L1127.2 100.0 L1124.3 97.7 L1121.3 95.6 L1118.3 93.5 L1115.3 91.5 L1112.2 89.5 L1109.0 87.7 L1105.8 85.9 L1102.6 84.2 L1099.3 82.6 L1096.0 81.1 L1092.6 79.6 L1089.3 78.2 L1085.8 76.9 L1082.4 75.7 L1078.9 74.6 L1075.4 73.6 L1071.9 72.6 L1068.3 71.8 L1064.7 71.0 L1061.1 70.3 L1057.5 69.7 L1053.9 69.2 L1050.3 68.8 L1046.6 68.5 L1043.0 68.2 L1039.3 68.1 L1035.7 68.0 L1032.0 68.0 L1028.4 68.1 L1024.7 68.4 L1021.1 68.7 L1017.4 69.0 L1013.8 69.5 L1010.2 70.1 L1006.6 70.7 L1003.0 71.5 L999.5 72.3 L995.9 73.2 L992.4 74.2 L988.9 75.3 L985.4 76.5 L982.0 77.7 L978.6 79.1 L975.2 80.5 L971.9 82.0 L968.6 83.6 L965.4 85.3 L962.1 87.0 L959.0 88.9 L955.9 90.8 L952.8 92.7 L949.8 94.8 L946.8 96.9 L943.9 99.1 L941.0 101.4 L938.2 103.7 L935.4 106.1 L932.7 108.6 L930.1 111.2 L927.6 113.8 L925.1 116.4 L922.6 119.2 L920.3 122.0 L918.0 124.8 L915.7 127.7 L913.6 130.7 L911.5 133.7 L909.5 136.7 L907.5 139.8 L905.7 143.0 L903.9 146.2 L902.2 149.4 L900.6 152.7 L899.1 156.0 L897.6 159.4 L896.2 162.7 L894.9 166.2 L893.7 169.6 L892.6 173.1 L891.6 176.6 L890.6 180.1 L889.8 183.7 L889.0 187.3 L888.3 190.9 L887.7 194.5 L887.2 198.1 L886.8 201.7 L886.5 205.4 L886.2 209.0 L886.1 212.7 L886.0 216.3 L886.0 220.0 L886.1 223.6 L886.4 227.3 L886.7 230.9 L887.0 234.6 L887.5 238.2 L888.1 241.8 L888.7 245.4 L889.5 249.0 L890.3 252.5 L891.2 256.1 L892.2 259.6 L893.3 263.1 L894.5 266.6 L895.7 270.0 L897.1 273.4 L898.5 276.8 L900.0 280.1 L901.6 283.4 L903.3 286.6 L905.0 289.9 L906.9 293.0 L1714.9 1655.0Z"/></g></svg>
\ No newline at end of file
diff --git a/site/public/brand/twiligent-mark-white.svg b/site/public/brand/twiligent-mark-white.svg
new file mode 100644
index 0000000..b52497c
--- /dev/null
+++ b/site/public/brand/twiligent-mark-white.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1921 1663" width="1921" height="1663"><title>Twiligent mark, white</title><path transform="translate(0 0) scale(1) translate(-70 -68)" fill="#FFFFFF" d="M1014.1 520.8 L886.2 305.3 L884.1 301.6 L882.1 297.9 L880.1 294.1 L878.3 290.3 L876.5 286.4 L874.9 282.5 L873.3 278.5 L871.9 274.5 L870.5 270.5 L869.2 266.5 L868.1 262.4 L867.0 258.3 L866.0 254.1 L865.2 250.0 L864.4 245.8 L863.8 241.6 L863.2 237.4 L862.8 233.2 L862.4 228.9 L862.2 224.7 L862.0 220.5 L862.0 216.2 L862.1 212.0 L862.2 207.7 L862.5 203.5 L862.9 199.3 L863.4 195.0 L864.0 190.8 L864.6 186.9 L135.0 1428.7 L137.4 1427.5 L141.1 1425.5 L144.9 1423.7 L148.8 1421.9 L152.7 1420.2 L156.6 1418.6 L160.6 1417.1 L164.6 1415.8 L168.7 1414.5 L172.8 1413.3 L176.9 1412.2 L181.0 1411.2 L185.1 1410.3 L189.3 1409.6 L193.5 1408.9 L197.7 1408.3 L201.9 1407.8 L206.2 1407.5 L210.4 1407.2 L214.6 1407.1 L218.9 1407.0 L493.5 1406.8 L1014.1 520.8ZM218.9 1431.0 L215.3 1431.0 L211.6 1431.2 L207.9 1431.4 L204.3 1431.7 L200.7 1432.1 L197.0 1432.6 L193.4 1433.2 L189.8 1433.9 L186.3 1434.6 L182.7 1435.5 L179.2 1436.4 L175.7 1437.4 L172.2 1438.5 L168.7 1439.7 L165.3 1441.0 L161.9 1442.4 L158.5 1443.8 L155.2 1445.3 L151.9 1447.0 L148.7 1448.6 L145.5 1450.4 L142.3 1452.2 L139.2 1454.2 L136.1 1456.2 L133.1 1458.2 L130.2 1460.4 L127.3 1462.6 L124.4 1464.9 L121.6 1467.2 L118.9 1469.7 L116.2 1472.2 L113.6 1474.7 L111.0 1477.3 L108.5 1480.0 L106.1 1482.7 L103.8 1485.5 L101.5 1488.4 L99.3 1491.3 L97.1 1494.3 L95.1 1497.3 L93.1 1500.4 L91.2 1503.5 L89.3 1506.6 L87.6 1509.8 L85.9 1513.1 L84.3 1516.4 L82.7 1519.7 L81.3 1523.1 L80.0 1526.5 L78.7 1529.9 L77.5 1533.3 L76.4 1536.8 L75.4 1540.3 L74.4 1543.9 L73.6 1547.4 L72.8 1551.0 L72.2 1554.6 L71.6 1558.2 L71.1 1561.9 L70.7 1565.5 L70.4 1569.1 L70.2 1572.8 L70.0 1576.4 L70.0 1580.1 L70.0 1583.7 L70.2 1587.4 L70.4 1591.1 L70.7 1594.7 L71.1 1598.3 L71.6 1602.0 L72.2 1605.6 L72.9 1609.2 L73.6 1612.7 L74.5 1616.3 L75.4 1619.8 L76.4 1623.3 L77.5 1626.8 L78.7 1630.3 L80.0 1633.7 L81.4 1637.1 L82.8 1640.5 L84.3 1643.8 L86.0 1647.1 L87.6 1650.3 L89.4 1653.5 L91.2 1656.7 L93.2 1659.8 L95.2 1662.9 L97.2 1665.9 L99.4 1668.8 L101.6 1671.7 L103.9 1674.6 L106.2 1677.4 L108.7 1680.1 L111.2 1682.8 L113.7 1685.4 L116.3 1688.0 L119.0 1690.5 L121.7 1692.9 L124.5 1695.2 L127.4 1697.5 L130.3 1699.7 L133.3 1701.9 L136.3 1703.9 L139.4 1705.9 L142.5 1707.8 L145.6 1709.7 L148.8 1711.4 L152.1 1713.1 L155.4 1714.7 L158.7 1716.3 L162.1 1717.7 L165.5 1719.0 L168.9 1720.3 L172.3 1721.5 L175.8 1722.6 L179.3 1723.6 L182.9 1724.6 L186.4 1725.4 L190.0 1726.2 L193.6 1726.8 L197.2 1727.4 L200.9 1727.9 L204.5 1728.3 L208.1 1728.6 L211.8 1728.8 L215.4 1729.0 L219.1 1729.0 L1755.2 1728.1 L1753.4 1727.0 L1749.8 1724.7 L1746.2 1722.4 L1742.7 1720.0 L1739.3 1717.5 L1735.9 1714.9 L1732.6 1712.2 L1729.4 1709.5 L1726.2 1706.7 L1723.1 1703.8 L1720.1 1700.8 L1717.2 1697.7 L1714.3 1694.6 L1711.5 1691.4 L1708.8 1688.1 L1706.1 1684.8 L1703.6 1681.4 L1701.1 1678.0 L1698.7 1674.5 L1696.4 1670.9 L1694.2 1667.3 L1553.6 1430.2 L218.9 1431.0ZM1714.9 1655.0 L1716.8 1658.1 L1718.7 1661.2 L1720.8 1664.2 L1722.9 1667.2 L1725.1 1670.1 L1727.4 1673.0 L1729.7 1675.8 L1732.1 1678.6 L1734.6 1681.3 L1737.2 1683.9 L1739.8 1686.4 L1742.4 1688.9 L1745.2 1691.4 L1748.0 1693.7 L1750.8 1696.0 L1753.7 1698.3 L1756.7 1700.4 L1759.7 1702.5 L1762.7 1704.5 L1765.8 1706.5 L1769.0 1708.3 L1772.2 1710.1 L1775.4 1711.8 L1778.7 1713.4 L1782.0 1714.9 L1785.4 1716.4 L1788.7 1717.8 L1792.2 1719.1 L1795.6 1720.3 L1799.1 1721.4 L1802.6 1722.4 L1806.1 1723.4 L1809.7 1724.2 L1813.3 1725.0 L1816.9 1725.7 L1820.5 1726.3 L1824.1 1726.8 L1827.7 1727.2 L1831.4 1727.5 L1835.0 1727.8 L1838.7 1727.9 L1842.3 1728.0 L1846.0 1728.0 L1849.6 1727.9 L1853.3 1727.6 L1856.9 1727.3 L1860.6 1727.0 L1864.2 1726.5 L1867.8 1725.9 L1871.4 1725.3 L1875.0 1724.5 L1878.5 1723.7 L1882.1 1722.8 L1885.6 1721.8 L1889.1 1720.7 L1892.6 1719.5 L1896.0 1718.3 L1899.4 1716.9 L1902.8 1715.5 L1906.1 1714.0 L1909.4 1712.4 L1912.6 1710.7 L1915.9 1709.0 L1919.0 1707.1 L1922.1 1705.2 L1925.2 1703.3 L1928.2 1701.2 L1931.2 1699.1 L1934.1 1696.9 L1937.0 1694.6 L1939.8 1692.3 L1942.6 1689.9 L1945.3 1687.4 L1947.9 1684.8 L1950.4 1682.2 L1952.9 1679.6 L1955.4 1676.8 L1957.7 1674.0 L1960.0 1671.2 L1962.3 1668.3 L1964.4 1665.3 L1966.5 1662.3 L1968.5 1659.3 L1970.5 1656.2 L1972.3 1653.0 L1974.1 1649.8 L1975.8 1646.6 L1977.4 1643.3 L1978.9 1640.0 L1980.4 1636.6 L1981.8 1633.3 L1983.1 1629.8 L1984.3 1626.4 L1985.4 1622.9 L1986.4 1619.4 L1987.4 1615.9 L1988.2 1612.3 L1989.0 1608.7 L1989.7 1605.1 L1990.3 1601.5 L1990.8 1597.9 L1991.2 1594.3 L1991.5 1590.6 L1991.8 1587.0 L1991.9 1583.3 L1992.0 1579.7 L1992.0 1576.0 L1991.9 1572.4 L1991.6 1568.7 L1991.3 1565.1 L1991.0 1561.4 L1990.5 1557.8 L1989.9 1554.2 L1989.3 1550.6 L1988.5 1547.0 L1987.7 1543.5 L1986.8 1539.9 L1985.8 1536.4 L1984.7 1532.9 L1983.5 1529.4 L1982.3 1526.0 L1980.9 1522.6 L1979.5 1519.2 L1978.0 1515.9 L1976.4 1512.6 L1974.7 1509.4 L1973.0 1506.1 L1971.1 1503.0 L1163.1 141.0 L1161.2 137.9 L1159.3 134.8 L1157.2 131.8 L1155.1 128.8 L1152.9 125.9 L1150.6 123.0 L1148.3 120.2 L1145.9 117.4 L1143.4 114.7 L1140.8 112.1 L1138.2 109.6 L1135.6 107.1 L1132.8 104.6 L1130.0 102.3 L1127.2 100.0 L1124.3 97.7 L1121.3 95.6 L1118.3 93.5 L1115.3 91.5 L1112.2 89.5 L1109.0 87.7 L1105.8 85.9 L1102.6 84.2 L1099.3 82.6 L1096.0 81.1 L1092.6 79.6 L1089.3 78.2 L1085.8 76.9 L1082.4 75.7 L1078.9 74.6 L1075.4 73.6 L1071.9 72.6 L1068.3 71.8 L1064.7 71.0 L1061.1 70.3 L1057.5 69.7 L1053.9 69.2 L1050.3 68.8 L1046.6 68.5 L1043.0 68.2 L1039.3 68.1 L1035.7 68.0 L1032.0 68.0 L1028.4 68.1 L1024.7 68.4 L1021.1 68.7 L1017.4 69.0 L1013.8 69.5 L1010.2 70.1 L1006.6 70.7 L1003.0 71.5 L999.5 72.3 L995.9 73.2 L992.4 74.2 L988.9 75.3 L985.4 76.5 L982.0 77.7 L978.6 79.1 L975.2 80.5 L971.9 82.0 L968.6 83.6 L965.4 85.3 L962.1 87.0 L959.0 88.9 L955.9 90.8 L952.8 92.7 L949.8 94.8 L946.8 96.9 L943.9 99.1 L941.0 101.4 L938.2 103.7 L935.4 106.1 L932.7 108.6 L930.1 111.2 L927.6 113.8 L925.1 116.4 L922.6 119.2 L920.3 122.0 L918.0 124.8 L915.7 127.7 L913.6 130.7 L911.5 133.7 L909.5 136.7 L907.5 139.8 L905.7 143.0 L903.9 146.2 L902.2 149.4 L900.6 152.7 L899.1 156.0 L897.6 159.4 L896.2 162.7 L894.9 166.2 L893.7 169.6 L892.6 173.1 L891.6 176.6 L890.6 180.1 L889.8 183.7 L889.0 187.3 L888.3 190.9 L887.7 194.5 L887.2 198.1 L886.8 201.7 L886.5 205.4 L886.2 209.0 L886.1 212.7 L886.0 216.3 L886.0 220.0 L886.1 223.6 L886.4 227.3 L886.7 230.9 L887.0 234.6 L887.5 238.2 L888.1 241.8 L888.7 245.4 L889.5 249.0 L890.3 252.5 L891.2 256.1 L892.2 259.6 L893.3 263.1 L894.5 266.6 L895.7 270.0 L897.1 273.4 L898.5 276.8 L900.0 280.1 L901.6 283.4 L903.3 286.6 L905.0 289.9 L906.9 293.0 L1714.9 1655.0Z"/></svg>
\ No newline at end of file
diff --git a/site/public/brand/twiligent-og.png b/site/public/brand/twiligent-og.png
new file mode 100644
index 0000000..926b72b
Binary files /dev/null and b/site/public/brand/twiligent-og.png differ
diff --git a/site/public/fonts/jetbrains-mono-latin-400-normal.woff2 b/site/public/fonts/jetbrains-mono-latin-400-normal.woff2
new file mode 100644
index 0000000..5858873
Binary files /dev/null and b/site/public/fonts/jetbrains-mono-latin-400-normal.woff2 differ
diff --git a/site/public/fonts/jetbrains-mono-latin-500-normal.woff2 b/site/public/fonts/jetbrains-mono-latin-500-normal.woff2
new file mode 100644
index 0000000..be878e6
Binary files /dev/null and b/site/public/fonts/jetbrains-mono-latin-500-normal.woff2 differ
diff --git a/site/public/fonts/manrope-latin-400-normal.woff2 b/site/public/fonts/manrope-latin-400-normal.woff2
new file mode 100644
index 0000000..7eaaa95
Binary files /dev/null and b/site/public/fonts/manrope-latin-400-normal.woff2 differ
diff --git a/site/public/fonts/manrope-latin-500-normal.woff2 b/site/public/fonts/manrope-latin-500-normal.woff2
new file mode 100644
index 0000000..70447ee
Binary files /dev/null and b/site/public/fonts/manrope-latin-500-normal.woff2 differ
diff --git a/site/public/fonts/manrope-latin-600-normal.woff2 b/site/public/fonts/manrope-latin-600-normal.woff2
new file mode 100644
index 0000000..7cc09a3
Binary files /dev/null and b/site/public/fonts/manrope-latin-600-normal.woff2 differ
diff --git a/site/public/fonts/manrope-latin-700-normal.woff2 b/site/public/fonts/manrope-latin-700-normal.woff2
new file mode 100644
index 0000000..84f7af5
Binary files /dev/null and b/site/public/fonts/manrope-latin-700-normal.woff2 differ
diff --git a/site/public/fonts/sora-latin-600-normal.woff2 b/site/public/fonts/sora-latin-600-normal.woff2
new file mode 100644
index 0000000..ca2cd81
Binary files /dev/null and b/site/public/fonts/sora-latin-600-normal.woff2 differ
diff --git a/site/public/fonts/sora-latin-700-normal.woff2 b/site/public/fonts/sora-latin-700-normal.woff2
new file mode 100644
index 0000000..930c60f
Binary files /dev/null and b/site/public/fonts/sora-latin-700-normal.woff2 differ