-
Notifications
You must be signed in to change notification settings - Fork 7
Add download page #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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`} | ||
| 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> | ||
|
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 | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.