Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frontend/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export function Footer() {
>
Pricing
</a>
<a
href="/downloads"
className="text-[hsl(var(--marketing-text-muted))] hover:text-foreground transition-colors"
>
Downloads
</a>
<a
href="/proof"
className="text-[hsl(var(--marketing-text-muted))] hover:text-foreground transition-colors"
Expand Down
14 changes: 13 additions & 1 deletion frontend/src/components/Marketing.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from "@tanstack/react-router";
import { VerificationStatus } from "./VerificationStatus";
import { ArrowRight, Check, Lock, MessageSquareMore, Shield, Sparkles } from "lucide-react";
import { ArrowRight, Check, Lock, MessageSquareMore, Shield, Sparkles, Laptop } from "lucide-react";
import { Footer } from "./Footer";
import { useQuery } from "@tanstack/react-query";
import { getBillingService } from "@/billing/billingService";
Expand Down Expand Up @@ -310,6 +310,18 @@ export function Marketing() {
</div>
</div>
</div>

<div className="flex justify-center mt-8">
<Link
to="/downloads"
className="inline-flex items-center gap-2 py-2 px-4 rounded-lg text-center font-medium transition-all duration-300
border border-[hsl(var(--purple))]/30 hover:border-[hsl(var(--purple))]
text-[hsl(var(--marketing-text-muted))] hover:text-foreground"
>
<Laptop className="h-4 w-4" />
<span>Download</span>
</Link>
</div>
</section>

{/* Features Section */}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/components/SimplifiedFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export function SimplifiedFooter() {
</a>
</p>
<div className="flex justify-center gap-6 mt-2">
<a
href="/downloads"
className="text-[hsl(var(--marketing-text-muted))] hover:text-foreground text-sm transition-colors"
>
Downloads
</a>
<a
href="https://opensecret.cloud/terms"
target="_blank"
Expand Down
26 changes: 26 additions & 0 deletions frontend/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Route as ProofImport } from './routes/proof'
import { Route as PricingImport } from './routes/pricing'
import { Route as PasswordResetImport } from './routes/password-reset'
import { Route as LoginImport } from './routes/login'
import { Route as DownloadsImport } from './routes/downloads'
import { Route as DesktopAuthImport } from './routes/desktop-auth'
import { Route as AuthImport } from './routes/_auth'
import { Route as IndexImport } from './routes/index'
Expand Down Expand Up @@ -56,6 +57,12 @@ const LoginRoute = LoginImport.update({
getParentRoute: () => rootRoute,
} as any)

const DownloadsRoute = DownloadsImport.update({
id: '/downloads',
path: '/downloads',
getParentRoute: () => rootRoute,
} as any)

const DesktopAuthRoute = DesktopAuthImport.update({
id: '/desktop-auth',
path: '/desktop-auth',
Expand Down Expand Up @@ -122,6 +129,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof DesktopAuthImport
parentRoute: typeof rootRoute
}
'/downloads': {
id: '/downloads'
path: '/downloads'
fullPath: '/downloads'
preLoaderRoute: typeof DownloadsImport
parentRoute: typeof rootRoute
}
'/login': {
id: '/login'
path: '/login'
Expand Down Expand Up @@ -216,6 +230,7 @@ export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'': typeof AuthRouteWithChildren
'/desktop-auth': typeof DesktopAuthRoute
'/downloads': typeof DownloadsRoute
'/login': typeof LoginRoute
'/password-reset': typeof PasswordResetRouteWithChildren
'/pricing': typeof PricingRoute
Expand All @@ -231,6 +246,7 @@ export interface FileRoutesByTo {
'/': typeof IndexRoute
'': typeof AuthRouteWithChildren
'/desktop-auth': typeof DesktopAuthRoute
'/downloads': typeof DownloadsRoute
'/login': typeof LoginRoute
'/password-reset': typeof PasswordResetRouteWithChildren
'/pricing': typeof PricingRoute
Expand All @@ -247,6 +263,7 @@ export interface FileRoutesById {
'/': typeof IndexRoute
'/_auth': typeof AuthRouteWithChildren
'/desktop-auth': typeof DesktopAuthRoute
'/downloads': typeof DownloadsRoute
'/login': typeof LoginRoute
'/password-reset': typeof PasswordResetRouteWithChildren
'/pricing': typeof PricingRoute
Expand All @@ -264,6 +281,7 @@ export interface FileRouteTypes {
| '/'
| ''
| '/desktop-auth'
| '/downloads'
| '/login'
| '/password-reset'
| '/pricing'
Expand All @@ -278,6 +296,7 @@ export interface FileRouteTypes {
| '/'
| ''
| '/desktop-auth'
| '/downloads'
| '/login'
| '/password-reset'
| '/pricing'
Expand All @@ -292,6 +311,7 @@ export interface FileRouteTypes {
| '/'
| '/_auth'
| '/desktop-auth'
| '/downloads'
| '/login'
| '/password-reset'
| '/pricing'
Expand All @@ -308,6 +328,7 @@ export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AuthRoute: typeof AuthRouteWithChildren
DesktopAuthRoute: typeof DesktopAuthRoute
DownloadsRoute: typeof DownloadsRoute
LoginRoute: typeof LoginRoute
PasswordResetRoute: typeof PasswordResetRouteWithChildren
PricingRoute: typeof PricingRoute
Expand All @@ -321,6 +342,7 @@ const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AuthRoute: AuthRouteWithChildren,
DesktopAuthRoute: DesktopAuthRoute,
DownloadsRoute: DownloadsRoute,
LoginRoute: LoginRoute,
PasswordResetRoute: PasswordResetRouteWithChildren,
PricingRoute: PricingRoute,
Expand All @@ -343,6 +365,7 @@ export const routeTree = rootRoute
"/",
"/_auth",
"/desktop-auth",
"/downloads",
"/login",
"/password-reset",
"/pricing",
Expand All @@ -364,6 +387,9 @@ export const routeTree = rootRoute
"/desktop-auth": {
"filePath": "desktop-auth.tsx"
},
"/downloads": {
"filePath": "downloads.tsx"
},
"/login": {
"filePath": "login.tsx"
},
Expand Down
202 changes: 202 additions & 0 deletions frontend/src/routes/downloads.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
import { createFileRoute } from "@tanstack/react-router";
import { TopNav } from "@/components/TopNav";
import { FullPageMain } from "@/components/FullPageMain";
import { MarketingHeader } from "@/components/MarketingHeader";
import { Monitor, Apple, Terminal, Globe, Smartphone } from "lucide-react";
import packageJson from "../../package.json";

// Get version from package.json
const APP_VERSION = packageJson.version;
const CURRENT_VERSION = `v${APP_VERSION}`;
const BASE_DOWNLOAD_URL = `https://github.com/OpenSecretCloud/Maple/releases/download/${CURRENT_VERSION}`;

function DownloadPage() {
return (
<>
<TopNav />
<FullPageMain>
<MarketingHeader
title={
<span className="text-6xl font-light mb-0">
<span className="text-[hsl(var(--purple))]">Download</span> Maple
</span>
}
subtitle={
<div className="space-y-2">
<p>Available for macOS and Ubuntu Linux</p>
<p>Access your private AI chat with end-to-end encryption</p>
</div>
}
/>

{/* Desktop Downloads Section */}
<section className="w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<h2 className="text-3xl font-light mb-8 flex items-center gap-3">
<Monitor className="w-7 h-7" /> Desktop Apps
<span className="ml-3 text-xl text-[hsl(var(--marketing-text-muted))]">
A faster, more focused experience for your private AI chat
</span>
</h2>

<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-3xl mx-auto">
<div className="flex flex-col border border-[hsl(var(--marketing-card-border))] bg-[hsl(var(--marketing-card))]/75 text-foreground p-6 rounded-lg hover:border-foreground/30 transition-all duration-300">
<div className="p-3 rounded-full bg-[hsl(var(--marketing-card))]/50 border border-[hsl(var(--purple))]/30 w-fit mb-4">
<Apple className="w-6 h-6 text-[hsl(var(--purple))]" />
</div>
<h3 className="text-xl font-medium mb-2">macOS</h3>
<p className="text-[hsl(var(--marketing-text-muted))] mb-6 flex-grow">
For Apple Silicon and Intel-based Macs running macOS 11.0 or later.
</p>
<div className="flex flex-col gap-3">
<a
href={`${BASE_DOWNLOAD_URL}/Maple_${APP_VERSION}_universal.dmg`}
className="py-3 rounded-lg text-center font-medium transition-all duration-300
dark:bg-white/90 dark:text-black dark:hover:bg-[hsl(var(--purple))]/80 dark:hover:text-[hsl(var(--foreground))] dark:active:bg-white/80
bg-background text-foreground hover:bg-[hsl(var(--purple))] hover:text-[hsl(var(--foreground))] active:bg-background/80
border border-[hsl(var(--purple))]/30 hover:border-[hsl(var(--purple))]
shadow-[0_0_15px_rgba(var(--purple-rgb),0.2)] hover:shadow-[0_0_25px_rgba(var(--purple-rgb),0.3)]"
>
Download for macOS
</a>
<div className="text-center text-xs text-[hsl(var(--marketing-text-muted))]">
Universal for both Apple Silicon and Intel
</div>
</div>
</div>

<div className="flex flex-col border border-[hsl(var(--marketing-card-border))] bg-[hsl(var(--marketing-card))]/75 text-foreground p-6 rounded-lg hover:border-foreground/30 transition-all duration-300">
<div className="p-3 rounded-full bg-[hsl(var(--marketing-card))]/50 border border-[hsl(var(--purple))]/30 w-fit mb-4">
<Terminal className="w-6 h-6 text-[hsl(var(--purple))]" />
</div>
<h3 className="text-xl font-medium mb-2">Linux</h3>
<p className="text-[hsl(var(--marketing-text-muted))] mb-6 flex-grow">
For Ubuntu 24.04+ only. Other Linux distributions are not officially supported.
</p>
<div className="flex flex-col gap-3">
<a
href={`${BASE_DOWNLOAD_URL}/Maple_${APP_VERSION}_amd64.AppImage`}
className="py-3 rounded-lg text-center font-medium transition-all duration-300
dark:bg-white/90 dark:text-black dark:hover:bg-[hsl(var(--purple))]/80 dark:hover:text-[hsl(var(--foreground))] dark:active:bg-white/80
bg-background text-foreground hover:bg-[hsl(var(--purple))] hover:text-[hsl(var(--foreground))] active:bg-background/80
border border-[hsl(var(--purple))]/30 hover:border-[hsl(var(--purple))]
shadow-[0_0_15px_rgba(var(--purple-rgb),0.2)] hover:shadow-[0_0_25px_rgba(var(--purple-rgb),0.3)]"
>
Download AppImage
</a>
<div className="grid grid-cols-2 gap-2">
<a
href={`${BASE_DOWNLOAD_URL}/Maple_${APP_VERSION}_amd64.deb`}
className="py-2 rounded-lg text-center text-sm font-medium transition-all duration-300
dark:bg-white/90 dark:text-black dark:hover:bg-[hsl(var(--purple))]/80 dark:hover:text-[hsl(var(--foreground))] dark:active:bg-white/80
bg-background text-foreground hover:bg-[hsl(var(--purple))] hover:text-[hsl(var(--foreground))] active:bg-background/80
border border-[hsl(var(--purple))]/30 hover:border-[hsl(var(--purple))]"
>
.deb
</a>
<a
href={`${BASE_DOWNLOAD_URL}/Maple-${APP_VERSION}-1.x86_64.rpm`}
Comment thread
AnthonyRonning marked this conversation as resolved.
className="py-2 rounded-lg text-center text-sm font-medium transition-all duration-300
dark:bg-white/90 dark:text-black dark:hover:bg-[hsl(var(--purple))]/80 dark:hover:text-[hsl(var(--foreground))] dark:active:bg-white/80
bg-background text-foreground hover:bg-[hsl(var(--purple))] hover:text-[hsl(var(--foreground))] active:bg-background/80
border border-[hsl(var(--purple))]/30 hover:border-[hsl(var(--purple))]"
>
.rpm
</a>
</div>
</div>
</div>
</div>

<div className="text-center mt-8 space-y-2 text-[hsl(var(--marketing-text-muted))] max-w-2xl mx-auto">
<p>
Windows version coming soon. In the meantime, you can use the{" "}
<a href="/login" className="text-[hsl(var(--purple))] hover:underline">
web app
</a>{" "}
for full functionality.
</p>
<p className="text-sm">
Current version: <span className="font-mono text-foreground">{APP_VERSION}</span> •{" "}
<a
href={`https://github.com/OpenSecretCloud/Maple/releases/tag/${CURRENT_VERSION}`}
className="text-[hsl(var(--purple))] hover:underline"
target="_blank"
rel="noopener noreferrer"
>
Release notes
</a>
</p>
</div>
</section>
Comment thread
AnthonyRonning marked this conversation as resolved.

{/* Web Access Section */}
<section className="w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 mb-12">
<div className="flex flex-col p-4 sm:p-8 rounded-2xl bg-gradient-to-b from-[hsl(var(--marketing-card))] to-[hsl(var(--marketing-card))]/80 border-2 border-[hsl(var(--purple))] shadow-[0_0_30px_rgba(148,105,248,0.2)]">
<div className="flex flex-col md:flex-row items-center gap-6 md:gap-8">
<div className="flex-1">
<h3 className="text-3xl font-light mb-3">Web Version</h3>
<p className="text-[hsl(var(--marketing-text-muted))] text-lg mb-6">
Don't want to download anything? Use Maple directly in your browser with the same
end-to-end encryption.
</p>
<a
href="/login"
className="inline-flex items-center gap-2 py-3 px-6 rounded-lg text-center font-medium transition-all duration-300
dark:bg-white/90 dark:text-black dark:hover:bg-[hsl(var(--purple))]/80 dark:hover:text-[hsl(var(--foreground))] dark:active:bg-white/80
bg-background text-foreground hover:bg-[hsl(var(--purple))] hover:text-[hsl(var(--foreground))] active:bg-background/80
border border-[hsl(var(--purple))]/30 hover:border-[hsl(var(--purple))]
shadow-[0_0_15px_rgba(var(--purple-rgb),0.2)] hover:shadow-[0_0_25px_rgba(var(--purple-rgb),0.3)]"
>
<Globe className="w-5 h-5" />
Open Web App
</a>
</div>
<div className="flex-1 flex justify-center w-full mt-8 md:mt-0">
<div className="w-full max-w-[380px] aspect-video bg-[hsl(var(--background))] rounded-lg border border-[hsl(var(--border))] overflow-hidden shadow-xl mx-auto">
<div className="h-8 border-b border-[hsl(var(--border))] bg-[hsl(var(--background))] flex items-center px-4">
<div className="flex gap-1.5">
<div className="w-3 h-3 rounded-full bg-red-500/50"></div>
<div className="w-3 h-3 rounded-full bg-yellow-500/50"></div>
<div className="w-3 h-3 rounded-full bg-green-500/50"></div>
</div>
<div className="mx-auto text-xs text-[hsl(var(--muted-foreground))]">
trymaple.ai
</div>
</div>
<div className="p-2 h-[calc(100%-32px)] flex">
<div className="w-1/4 border-r border-[hsl(var(--border))]"></div>
<div className="w-3/4 p-2">
<div className="h-3 bg-[hsl(var(--muted))]/40 rounded-full w-3/4 mb-2"></div>
<div className="h-3 bg-[hsl(var(--muted))]/40 rounded-full w-1/2 mb-4"></div>
<div className="bg-[hsl(var(--purple))]/10 rounded p-2 mb-2">
<div className="h-2 bg-[hsl(var(--muted))]/40 rounded-full w-full mb-1"></div>
<div className="h-2 bg-[hsl(var(--muted))]/40 rounded-full w-3/4"></div>
</div>
<div className="bg-[hsl(var(--muted))]/10 rounded p-2">
<div className="h-2 bg-[hsl(var(--muted))]/40 rounded-full w-full mb-1"></div>
<div className="h-2 bg-[hsl(var(--muted))]/40 rounded-full w-1/2"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>

{/* Mobile Coming Soon Section */}
<section className="w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 mb-12">
<div className="flex items-center gap-3">
<Smartphone className="w-7 h-7" />
<span className="text-3xl font-light">Mobile Apps</span>
<span className="text-2xl text-[hsl(var(--marketing-text-muted))]">Coming soon!</span>
</div>
</section>
</FullPageMain>
</>
);
}

export const Route = createFileRoute("/downloads")({
component: DownloadPage
});
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ install:
dev:
cd frontend && bun run dev

build:
cd frontend && bun run build

# Test the frontend (needs local backend running)
test:
cd tests && bun test
Expand Down
Loading