Skip to content

Colota - Android GPS Location tracker

5.7 KB
Raw Blame
import { type ReactNode } from "react"
import clsx from "clsx"
import Link from "@docusaurus/Link"
import Layout from "@theme/Layout"
import Heading from "@theme/Heading"
import ScreenshotGallery from "../components/ScreenshotGallery"

import styles from "./index.module.css"

function HomepageHeader() {
  return (
    <header className={clsx("hero hero--primary", styles.heroBanner)}>
      <div className={clsx("container", styles.heroInner)}>
        <div className={styles.heroText}>
          <Heading as="h1" className="hero__title">
            Colota
          </Heading>
          <p className={styles.heroSubtitle}>
            Self-hosted GPS tracking for Android.
            <br />
            Your data, your server, your rules.
          </p>
          <div className={styles.buttons}>
            <Link className="button button--secondary button--lg" href="https://f-droid.org/packages/com.Colota/">
              Get it on F-Droid
            </Link>
            <Link className={clsx("button button--lg", styles.outlineButton)} to="/docs/introduction">
              Get Started
            </Link>
          </div>
          <div className={styles.downloadLinks}>
            <span className={styles.downloadLabel}>Also available on</span>
            <Link className={styles.downloadLink} href="https://apt.izzysoft.de/packages/com.Colota/">
              IzzyOnDroid
            </Link>{" "}
            and
            <Link
              className={styles.downloadLink}
              href="https://play.google.com/store/apps/details?id=com.Colota&hl=en-US"
            >
              Google Play
            </Link>
          </div>
        </div>
        <div className={styles.heroScreenshot}>
          <img src="/img/screenshots/Dashboard.png" alt="Colota Dashboard" />
        </div>
      </div>
    </header>
  )
}

const features = [
  {
    title: "Self-hosted and private",
    description: "No cloud, no analytics, no telemetry. Send data to your own server or any HTTPS endpoint. AGPL-3.0."
  },
  {
    title: "Bring your history",
    description:
      "Import from Google Maps Timeline, GPX, KML, GeoJSON or CSV. Move years of data off Google without losing it."
  },
  {
    title: "Works offline",
    description:
      "Locations queue locally and sync when connectivity returns. Download map areas for trips out of coverage."
  },
  {
    title: "On-device history",
    description:
      "Browse every trip on the phone itself, even without a backend configured. Elevation profiles, per-trip stats and a calendar with activity dots."
  },
  {
    title: "Tracking profiles",
    description:
      "Multiple GPS configs that auto-switch on charging, Android Auto, Wi-Fi, a Bluetooth device, speed or stationary detection. One profile for hiking, another for the commute."
  },
  {
    title: "Sync, backup and export",
    description:
      "Instant, batched, Wi-Fi-only or offline-first sync. Encrypted backups for moving to a new phone. Export as CSV, GeoJSON, GPX or KML."
  }
]

function HomepageFeatures(): ReactNode {
  return (
    <section className={styles.features}>
      <div className="container">
        <div className="row">
          {features.map(({ title, description }, idx) => (
            <div key={idx} className="col col--4" style={{ marginBottom: "1.5rem" }}>
              <div className={styles.featureCard}>
                <Heading as="h3">{title}</Heading>
                <p>{description}</p>
              </div>
            </div>
          ))}
        </div>
      </div>
    </section>
  )
}

const homepageScreenshots = [
  { src: "/img/screenshots/Dashboard.png", label: "Dashboard" },
  { src: "/img/screenshots/Geofences.png", label: "Geofences" },
  { src: "/img/screenshots/LocationHistory.png", label: "Location History" },
  { src: "/img/screenshots/ProfileEditor.png", label: "Profile Editor" },
  { src: "/img/screenshots/DarkMode.png", label: "Dark Mode" }
]

const integrations = [
  { label: "Dawarich", to: "/docs/integrations/dawarich" },
  { label: "GeoPulse", to: "/docs/integrations/geopulse" },
  { label: "Home Assistant", to: "/docs/integrations/home-assistant" },
  { label: "Overland", to: "/docs/integrations/overland" },
  { label: "OwnTracks", to: "/docs/integrations/owntracks" },
  { label: "PhoneTrack", to: "/docs/integrations/phonetrack" },
  { label: "Reitti", to: "/docs/integrations/reitti" },
  { label: "Traccar", to: "/docs/integrations/traccar" },
  { label: "Custom Backend", to: "/docs/integrations/custom-backend" }
]

function HomepageIntegrations(): ReactNode {
  return (
    <section className={styles.integrations}>
      <div className="container">
        <p className={styles.integrationsLabel}>Works with</p>
        <div className={styles.integrationsList}>
          {integrations.map(({ label, to }) => (
            <Link key={label} to={to} className={styles.integrationBadge}>
              {label}
            </Link>
          ))}
        </div>
      </div>
    </section>
  )
}

function HomepageScreenshots(): ReactNode {
  return (
    <section className={styles.screenshots}>
      <div className="container">
        <Heading as="h2" className={styles.sectionHeading}>
          Screenshots
        </Heading>
        <ScreenshotGallery screenshots={homepageScreenshots} />
      </div>
    </section>
  )
}

export default function Home(): ReactNode {
  return (
    <Layout
      title="Self-hosted GPS Tracking for Android"
      description="Colota is a self-hosted GPS tracking app for Android. Send your location to your own server, work offline, and keep your data private."
    >
      <HomepageHeader />
      <main>
        <HomepageFeatures />
        <HomepageIntegrations />
        <HomepageScreenshots />
      </main>
    </Layout>
  )
}