Colota - Android GPS Location tracker
docs(landing): draw cards and chips as fills, take radii from the shared tokens and keep hero text white in dark mode (#880)
Max Dietriche7e177bbfe74
diff --git a/apps/docs/src/components/ScreenshotGallery.module.css b/apps/docs/src/components/ScreenshotGallery.module.cssindex 2baac29a..06952063 100644--- a/apps/docs/src/components/ScreenshotGallery.module.css+++ b/apps/docs/src/components/ScreenshotGallery.module.css@@ -15,7 +15,7 @@}.item img {- border-radius: 12px;+ border-radius: var(--colota-card-radius);box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);width: 100%;transition: transform 0.2s;@@ -55,7 +55,7 @@.lightboxInner > img {max-height: 85vh;max-width: 80vw;- border-radius: 16px;+ border-radius: var(--colota-radius-lg);}/* Nav arrows */diff --git a/apps/docs/src/pages/index.module.css b/apps/docs/src/pages/index.module.cssindex 6113b325..2b316a89 100644--- a/apps/docs/src/pages/index.module.css+++ b/apps/docs/src/pages/index.module.css@@ -20,7 +20,7 @@.heroScreenshot img {width: 100%;- border-radius: 20px;+ border-radius: var(--colota-radius-lg);box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);}@@ -83,14 +83,7 @@padding: var(--colota-card-padding);border-radius: var(--colota-card-radius);background: var(--colota-card-bg);- border: 1px solid var(--colota-border);height: 100%;- transition: border-color 0.2s, box-shadow 0.2s;-}--.featureCard:hover {- border-color: var(--ifm-color-primary);- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);}.featureCard h3 {@@ -112,9 +105,8 @@}.integrationsLabel {- font-size: 0.8rem;- text-transform: uppercase;- letter-spacing: 0.08em;+ font-size: 0.875rem;+ font-weight: 600;color: var(--ifm-font-color-secondary);margin-bottom: 1rem;}@@ -129,16 +121,14 @@.integrationBadge {padding: 0.35rem 0.85rem;border-radius: 999px;- border: 1px solid var(--colota-border);font-size: 0.875rem;color: var(--ifm-font-color-base);- background: var(--colota-card-bg);+ background: var(--colota-well);text-decoration: none;- transition: border-color 0.2s, color 0.2s;+ transition: color 0.2s;}.integrationBadge:hover {- border-color: var(--ifm-color-primary);color: var(--ifm-color-primary);text-decoration: none;}diff --git a/apps/docs/src/pages/index.tsx b/apps/docs/src/pages/index.tsxindex 9c8d034d..bd5cdb86 100644--- a/apps/docs/src/pages/index.tsx+++ b/apps/docs/src/pages/index.tsx@@ -52,31 +52,31 @@ function HomepageHeader() {const features = [{- title: "Self-Hosted & Private",+ 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",+ 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",+ title: "Works offline",description:"Locations queue locally and sync when connectivity returns. Download map areas for trips out of coverage."},{- title: "On-Device History",+ 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",+ title: "Tracking profiles",description:"Multiple GPS configs that auto-switch on charging, Android Auto, speed or stationary detection. One profile for hiking, another for the commute."},{- title: "Sync, Backup, Export",+ 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."}diff --git a/apps/docs/src/theme/Root.tsx b/apps/docs/src/theme/Root.tsxindex 306b05de..6c465ddb 100644--- a/apps/docs/src/theme/Root.tsx+++ b/apps/docs/src/theme/Root.tsx@@ -5,7 +5,7 @@*/import React from "react"-import { lightColors, darkColors, fontFamily } from "@colota/shared"+import { lightColors, darkColors, fontFamily, radius } from "@colota/shared"import type { ThemeColors } from "@colota/shared"function colorVars(colors: ThemeColors) {@@ -20,8 +20,10 @@ function colorVars(colors: ThemeColors) {--ifm-link-color: ${colors.link};--ifm-font-family-base: '${fontFamily}', system-ui, -apple-system, sans-serif;--colota-card-bg: ${colors.card};+ --colota-well: ${colors.well};--colota-border: ${colors.border};- --colota-card-radius: 12px;+ --colota-card-radius: ${radius.md}px;+ --colota-radius-lg: ${radius.lg}px;--colota-card-padding: 16px;`}@@ -30,10 +32,11 @@ const themeStyles = `:root { ${colorVars(lightColors)} }[data-theme='dark'] { ${colorVars(darkColors)} }.hero--primary {+ --ifm-hero-text-color: #fff;background: linear-gradient(135deg, ${lightColors.primary} 0%, ${lightColors.primaryDark} 100%);}[data-theme='dark'] .hero--primary {- background: linear-gradient(135deg, ${darkColors.primaryDark} 0%, ${darkColors.background} 100%);+ background: linear-gradient(135deg, ${darkColors.primaryContainer} 0%, ${darkColors.background} 100%);}`