diff --git a/apps/website/src/download-helper.ts b/apps/website/src/download-helper.ts index 8a4dc7442..db51f1729 100644 --- a/apps/website/src/download-helper.ts +++ b/apps/website/src/download-helper.ts @@ -4,7 +4,7 @@ export type App = "desktop" | "server"; export type Architecture = 'x64' | 'arm64'; -export type Platform = "macos" | "windows" | "linux" | "pikapod"; +export type Platform = "macos" | "windows" | "linux" | "pikapod" | "docker"; const version = rootPackageJson.version; @@ -107,17 +107,13 @@ export const downloadMatrix: DownloadMatrix = { }, server: { linux: { - title: "Self-hosted (Linux)", - description: "Deploy Trilium Notes on your own server or VPS, compatible with most Linux distributions.", + title: "Self-hosted on Linux", + description: "Deploy Trilium Notes on your own server or VPS, compatible with most distributions.", downloads: { - docker: { - recommended: true, - name: "View on Docker Hub", - url: "https://hub.docker.com/r/triliumnext/trilium" - }, tarX64: { + recommended: true, name: "x86 (.tar.xz)", - url: `https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-x64.tar.xz` + url: `https://github.com/TriliumNext/Trilium/releases/download/v${version}/TriliumNotes-Server-v${version}-linux-x64.tar.xz`, }, tarArm64: { name: "ARM (.tar.xz)", @@ -129,6 +125,21 @@ export const downloadMatrix: DownloadMatrix = { } } }, + docker: { + title: "Self-hosted using Docker", + description: "Easily deploy on Windows, Linux or macOS using a Docker container.", + downloads: { + dockerhub: { + recommended: true, + name: "View on Docker Hub", + url: "https://hub.docker.com/r/triliumnext/trilium" + }, + ghcr: { + name: "ghcr.io", + url: "https://github.com/TriliumNext/Trilium/pkgs/container/trilium" + } + } + }, pikapod: { title: "Paid hosting", description: "Trilium Notes hosted on PikaPods, a paid service for easy access and management.", diff --git a/apps/website/src/pages/Download/download.css b/apps/website/src/pages/Download/download.css index da6505894..7a4f4efa4 100644 --- a/apps/website/src/pages/Download/download.css +++ b/apps/website/src/pages/Download/download.css @@ -33,8 +33,10 @@ .download-desktop .download-card:nth-of-type(2) { --accent-color: var(--brand-2); } .download-desktop .download-card:last-of-type { --accent-color: var(--brand-3); } -.download-server .download-card:first-of-type { --accent-color: var(--brand-1); } -.download-server .download-card:last-of-type { --accent-color: var(--brand-3); } +.download-server .download-card { + --accent-color: var(--foreground-color); + --brand-foreground-color: var(--background-color); +} .architecture-switch { display: flex; @@ -63,10 +65,3 @@ background-color: var(--brand-1); color: var(--brand-foreground-color); } - -@media (min-width: 720px) { - .download-server { - width: 75%; - margin: auto; - } -} \ No newline at end of file diff --git a/apps/website/src/pages/Download/download.tsx b/apps/website/src/pages/Download/download.tsx index 7b51b6e0b..e340e2f28 100644 --- a/apps/website/src/pages/Download/download.tsx +++ b/apps/website/src/pages/Download/download.tsx @@ -32,7 +32,7 @@ export default function DownloadPage() {
-
+
{Object.entries(downloadMatrix.server).map(entry => )}