Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

879 B
Raw Blame
/**
 * Placeholder while a route chunk is in flight — the phone counterpart to
 * RouteFallback in App.tsx. It carries m-root itself, because it renders outside
 * MobileShell and the --m-* tokens would not resolve otherwise.
 *
 * An outline rather than a spinner: on a phone an empty screen is the loudest
 * state the app has, and a pulsing silhouette of what is about to arrive reads
 * as "loading" instead of "broken".
 */
export default function MRouteFallback() {
  return (
    <div data-route-fallback className="m-root flex h-dvh flex-col gap-3 px-4 pt-14 bg-[color:var(--m-bg)]">
      <div className="h-7 w-40 animate-pulse rounded-lg bg-m-card" />
      <div className="h-28 animate-pulse rounded-xl bg-m-card" />
      <div className="h-28 animate-pulse rounded-xl bg-m-card" />
      <div className="h-28 animate-pulse rounded-xl bg-m-card" />
    </div>
  )
}