Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

Website redesign and Harper Desktop page (#3439)

Jason Adams662f461cd39a
diff --git a/AGENTS.md b/AGENTS.md
index 37b6c4e6a..64af60e3c 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -9,6 +9,7 @@ Use `packages/web/vite.config.ts` as the source of truth for documentation scope
If you're working on the Harper repository itself, please pay special attention to the `contributors/*` pages.
Importantly, all the tools available in this repository are available via `just`. To learn more, run `just --list`.
+Whenever agents are done making changes, they should run `just format` before handing work back to the user.
Human coders should periodically review this file and manually migrate stable, human-facing guidance into the real documentation website under `packages/web` so it is available outside agent workflows.
Agents should remind humans of this when possible.
diff --git a/packages/web/package.json b/packages/web/package.json
index 4375d7e7f..ad69cb309 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -31,6 +31,8 @@
},
"type": "module",
"dependencies": {
+ "@docsearch/css": "^3.9.0",
+ "@docsearch/js": "^3.9.0",
"@sveltepress/theme-default": "^5.0.7",
"@sveltepress/vite": "^1.1.5",
"brace": "^0.11.1",
diff --git a/packages/web/src/app.css b/packages/web/src/app.css
index 97e7f86ac..6635901e4 100644
--- a/packages/web/src/app.css
+++ b/packages/web/src/app.css
@@ -66,6 +66,39 @@
--color-white-950: #221502;
}
+:root {
+ --marketing-amber: #b06a1b;
+ --marketing-amber-soft: #d98b3a;
+ --marketing-amber-tint: #fbf3e6;
+ --marketing-amber-line: #e9d6b3;
+ --marketing-cream: #fbfaf6;
+ --marketing-page-bg: #f6f1e6;
+ --marketing-ink: #1c1a16;
+ --marketing-ink-2: #4a463e;
+ --marketing-ink-3: #807a6e;
+ --marketing-ink-4: #ada79a;
+ --marketing-line: rgba(28, 26, 22, 0.1);
+ --marketing-line-strong: rgba(28, 26, 22, 0.16);
+ --marketing-underline: #c96442;
+ --marketing-grass: #2f8a5b;
+
+ --docsearch-primary-color: var(--marketing-amber);
+ --docsearch-text-color: var(--marketing-ink);
+ --docsearch-muted-color: var(--marketing-ink-3);
+ --docsearch-searchbox-background: #fff;
+ --docsearch-searchbox-focus-background: #fff;
+ --docsearch-modal-background: #f6f1e6;
+ --docsearch-footer-background: #fbfaf6;
+ --docsearch-hit-background: #fff;
+ --docsearch-hit-color: var(--marketing-ink);
+ --docsearch-highlight-color: var(--marketing-amber);
+}
+
+html,
+body {
+ min-height: 100%;
+}
+
body {
@apply bg-white text-black dark:bg-black dark:text-white;
@@ -190,3 +223,31 @@ th[align="right"] {
.last-update {
display: none;
}
+
+.marketing-page {
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+}
+
+.marketing-page *,
+.marketing-page *::before,
+.marketing-page *::after {
+ box-sizing: border-box;
+}
+
+.marketing-page a {
+ color: inherit;
+}
+
+.DocSearch-Container {
+ z-index: 9999;
+}
+
+.DocSearch-Modal {
+ border-radius: 16px;
+ box-shadow: 0 30px 70px -24px rgba(28, 26, 22, 0.42);
+}
+
+.DocSearch-Hit a {
+ border-radius: 10px;
+}
diff --git a/packages/web/src/app.html b/packages/web/src/app.html
index 69c8c6aaa..dbcf8fee2 100644
--- a/packages/web/src/app.html
+++ b/packages/web/src/app.html
@@ -49,6 +49,16 @@
<meta name="algolia-site-verification" content="3129E6D505B8ED8A" />
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Domine:[email protected]&display=swap"
+ rel="stylesheet"
+ />
+ <link
+ href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap"
+ rel="stylesheet"
+ />
+
<script type="application/ld+json">
{
"@context":"https://schema.org",
@@ -70,15 +80,6 @@
<meta property="og:description" content="Harper checks your writing fast, without compromising your privacy." />
<meta property="og:url" content="https://writewithharper.com" />
- <link rel="preconnect" href="https://fonts.googleapis.com" />
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
- <link
- href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Domine:[email protected]&display=swap"
- rel="stylesheet" />
-
- <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap"
- rel="stylesheet" />
-
<script>
(() => {
var stored = localStorage.getItem('theme');
diff --git a/packages/web/src/lib/GitHubClient.ts b/packages/web/src/lib/GitHubClient.ts
index d1bc0c6c6..2f6087535 100644
--- a/packages/web/src/lib/GitHubClient.ts
+++ b/packages/web/src/lib/GitHubClient.ts
@@ -34,6 +34,26 @@ export class GithubClient {
);
}
+ public static async getLatestReleaseAssetUrlFromCache(
+ repoOwner: string,
+ repoName: string,
+ assetNamePattern: RegExp,
+ ): Promise<string | null> {
+ const release = await this.getLatestReleaseMetadataFromCache(repoOwner, repoName);
+
+ return this.findReleaseAssetUrl(release, assetNamePattern);
+ }
+
+ public static async getLatestReleaseAssetUrl(
+ repoOwner: string,
+ repoName: string,
+ assetNamePattern: RegExp,
+ ): Promise<string | null> {
+ const release = await this.getLatestReleaseMetadata(repoOwner, repoName);
+
+ return this.findReleaseAssetUrl(release, assetNamePattern);
+ }
+
/**
* Return a cached value when it is still fresh, otherwise load and cache a replacement.
*
@@ -88,4 +108,13 @@ export class GithubClient {
return (await resp.json()) as GitHubRelease;
}
+
+ private static findReleaseAssetUrl(
+ release: GitHubRelease,
+ assetNamePattern: RegExp,
+ ): string | null {
+ const asset = release.assets.find((asset) => assetNamePattern.test(asset.name));
+
+ return asset?.browser_download_url ?? null;
+ }
}
diff --git a/packages/web/src/lib/components/Arrow.svelte b/packages/web/src/lib/components/Arrow.svelte
new file mode 100644
index 000000000..967abd34b
--- /dev/null
+++ b/packages/web/src/lib/components/Arrow.svelte
@@ -0,0 +1,8 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
+ <path d="M3 6h6M6.5 3.5L9 6 6.5 8.5" />
+</svg>
diff --git a/packages/web/src/lib/components/DiscordLogo.svelte b/packages/web/src/lib/components/DiscordLogo.svelte
new file mode 100644
index 000000000..dd182e282
--- /dev/null
+++ b/packages/web/src/lib/components/DiscordLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 199"><path fill="#5865f2" d="M216.856 16.597A208.5 208.5 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046q-29.538-4.442-58.533 0c-1.832-4.4-4.55-9.933-6.846-14.046a207.8 207.8 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161 161 0 0 0 79.735 175.3a136.4 136.4 0 0 1-21.846-10.632a109 109 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a132 132 0 0 0 5.355 4.237a136 136 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848c21.142-6.58 42.646-16.637 64.815-33.213c5.316-56.288-9.08-105.09-38.056-148.36M85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2s23.236 11.804 23.015 26.2c.02 14.375-10.148 26.18-23.015 26.18m85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2c0 14.375-10.148 26.18-23.015 26.18"></path></svg>
diff --git a/packages/web/src/lib/components/GitHubLogo.svelte b/packages/web/src/lib/components/GitHubLogo.svelte
index 227a8f204..55fbe0716 100644
--- a/packages/web/src/lib/components/GitHubLogo.svelte
+++ b/packages/web/src/lib/components/GitHubLogo.svelte
@@ -3,9 +3,10 @@ export let width = '100%';
export let height = '100%';
</script>
-<svg {width} {height} viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
- <circle cx="16" cy="17" r="15" fill="#fff"></circle>
+<svg class="block" {width} {height} viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
+ <circle cx="16" cy="17" r="15" style="fill: white;" />
<path
d="M16 0.396c-8.839 0-16 7.167-16 16 0 7.073 4.584 13.068 10.937 15.183 0.803 0.151 1.093-0.344 1.093-0.772 0-0.38-0.009-1.385-0.015-2.719-4.453 0.964-5.391-2.151-5.391-2.151-0.729-1.844-1.781-2.339-1.781-2.339-1.448-0.989 0.115-0.968 0.115-0.968 1.604 0.109 2.448 1.645 2.448 1.645 1.427 2.448 3.744 1.74 4.661 1.328 0.14-1.031 0.557-1.74 1.011-2.135-3.552-0.401-7.287-1.776-7.287-7.907 0-1.751 0.62-3.177 1.645-4.297-0.177-0.401-0.719-2.031 0.141-4.235 0 0 1.339-0.427 4.4 1.641 1.281-0.355 2.641-0.532 4-0.541 1.36 0.009 2.719 0.187 4 0.541 3.043-2.068 4.381-1.641 4.381-1.641 0.859 2.204 0.317 3.833 0.161 4.235 1.015 1.12 1.635 2.547 1.635 4.297 0 6.145-3.74 7.5-7.296 7.891 0.556 0.479 1.077 1.464 1.077 2.959 0 2.14-0.020 3.864-0.020 4.385 0 0.416 0.28 0.916 1.104 0.755 6.4-2.093 10.979-8.093 10.979-15.156 0-8.833-7.161-16-16-16z"
+ style="fill: black;"
/>
</svg>
diff --git a/packages/web/src/lib/components/GmailLogo.svelte b/packages/web/src/lib/components/GmailLogo.svelte
new file mode 100644
index 000000000..56f3de5ce
--- /dev/null
+++ b/packages/web/src/lib/components/GmailLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 193"><path fill="#4285f4" d="M58.182 192.05V93.14L27.507 65.077L0 49.504v125.091c0 9.658 7.825 17.455 17.455 17.455z"></path><path fill="#34a853" d="M197.818 192.05h40.727c9.659 0 17.455-7.826 17.455-17.455V49.505l-31.156 17.837l-27.026 25.798z"></path><path fill="#ea4335" d="m58.182 93.14l-4.174-38.647l4.174-36.989L128 69.868l69.818-52.364l4.669 34.992l-4.669 40.644L128 145.504z"></path><path fill="#fbbc04" d="M197.818 17.504V93.14L256 49.504V26.231c0-21.585-24.64-33.89-41.89-20.945z"></path><path fill="#c5221f" d="m0 49.504l26.759 20.07L58.182 93.14V17.504L41.89 5.286C24.61-7.66 0 4.646 0 26.23z"></path></svg>
diff --git a/packages/web/src/lib/components/Graph.svelte b/packages/web/src/lib/components/Graph.svelte
index 1c82a05c4..6f6f3c1d1 100644
--- a/packages/web/src/lib/components/Graph.svelte
+++ b/packages/web/src/lib/components/Graph.svelte
@@ -14,7 +14,7 @@ for (let val of data.values()) {
}
}
-let scaledData = new Map();
+let scaledData = new Map<string, number>();
for (let [key, val] of data.entries()) {
scaledData.set(key, val / maxW);
@@ -32,18 +32,27 @@ function expand(_node: HTMLElement, { width, duration }: { width: number; durati
}
</script>
-<div class="flex flex-col justify-start w-full h-full">
+<div class="mt-auto flex flex-col gap-3">
{#each scaledData as [name, width] (name)}
<IntersectionObserver element={els[name]} let:intersecting>
<div bind:this={els[name]}>
{#if intersecting}
- <div class="relative w-full h-full">
- {name} - {width * maxW} ms
- <div
- class="rounded transition-all mb-4 p-2 font-bold bg-gray-200"
- in:expand={{ width, duration: width * maxW }}
- style={`width: ${width * 100}%;`}
- ></div>
+ <div
+ class='grid grid-cols-[1fr_3.5rem] items-center gap-x-3 gap-y-2 text-xs [font-family:"JetBrains_Mono",monospace] min-[421px]:grid-cols-[6.2rem_1fr_4rem]'
+ >
+ <span class="whitespace-nowrap text-current">{name}</span>
+ <b
+ class="col-span-full row-start-2 h-2 overflow-hidden rounded-full bg-white/10 dark:bg-black/10 min-[421px]:col-auto min-[421px]:row-auto"
+ >
+ <i
+ class={name === 'Harper'
+ ? 'block h-full rounded-full bg-primary'
+ : 'block h-full rounded-full bg-white/20 dark:bg-black/20'}
+ in:expand={{ width, duration: width * maxW }}
+ style={`width: ${width * 100}%;`}
+ ></i>
+ </b>
+ <em class="text-right not-italic text-white/75 dark:text-black/75">{width * maxW} ms</em>
</div>
{/if}
</div>
diff --git a/packages/web/src/lib/components/IMessageLogo.svelte b/packages/web/src/lib/components/IMessageLogo.svelte
new file mode 100644
index 000000000..75c74bba3
--- /dev/null
+++ b/packages/web/src/lib/components/IMessageLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#34DA51" d="M5.285 0A5.273 5.273 0 0 0 0 5.285v13.43A5.273 5.273 0 0 0 5.285 24h13.43A5.273 5.273 0 0 0 24 18.715V5.285A5.273 5.273 0 0 0 18.715 0ZM12 4.154a8.809 7.337 0 0 1 8.809 7.338A8.809 7.337 0 0 1 12 18.828a8.809 7.337 0 0 1-2.492-.303A8.656 7.337 0 0 1 5.93 19.93a9.929 7.337 0 0 0 1.54-2.155a8.809 7.337 0 0 1-4.279-6.283A8.809 7.337 0 0 1 12 4.154"></path></svg>
diff --git a/packages/web/src/lib/components/LinearLogo.svelte b/packages/web/src/lib/components/LinearLogo.svelte
new file mode 100644
index 000000000..ac4307e95
--- /dev/null
+++ b/packages/web/src/lib/components/LinearLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#222326" d="m8.174 102.613l145.213 145.213c2.12 2.12 1.097 5.72-1.85 6.27a128 128 0 0 1-15.02 1.896a3.78 3.78 0 0 1-2.92-1.109L1.117 122.403a3.78 3.78 0 0 1-1.109-2.92c.34-5.095.978-10.107 1.896-15.02c.55-2.947 4.15-3.97 6.27-1.85m-4.092 58.796c-.97-3.614 3.3-5.894 5.946-3.248l87.81 87.811c2.647 2.646.367 6.915-3.247 5.946c-44.03-11.805-78.704-46.478-90.51-90.509m12.727-97.245c1.233-2.135 4.147-2.463 5.89-.719L192.556 233.3c1.744 1.744 1.417 4.658-.72 5.891a128 128 0 0 1-11.1 5.705c-1.43.65-3.11.322-4.22-.79L11.893 79.487c-1.111-1.112-1.439-2.79-.79-4.221a128 128 0 0 1 5.706-11.1M127.86 0C198.63 0 256 57.37 256 128.14c0 37.57-16.168 71.362-41.926 94.8c-1.487 1.354-3.768 1.264-5.19-.157L33.217 47.116c-1.421-1.422-1.51-3.703-.158-5.19C56.498 16.168 90.291 0 127.86 0"></path></svg>
diff --git a/packages/web/src/lib/components/NotionLogo.svelte b/packages/web/src/lib/components/NotionLogo.svelte
new file mode 100644
index 000000000..7d8856f84
--- /dev/null
+++ b/packages/web/src/lib/components/NotionLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 268"><path fill="#fff" d="M16.092 11.538L164.09.608c18.179-1.56 22.85-.508 34.28 7.801l47.243 33.282C253.406 47.414 256 48.975 256 55.207v182.527c0 11.439-4.155 18.205-18.696 19.24L65.44 267.378c-10.913.517-16.11-1.043-21.825-8.327L8.826 213.814C2.586 205.487 0 199.254 0 191.97V29.726c0-9.352 4.155-17.153 16.092-18.188"></path><path d="M164.09.608L16.092 11.538C4.155 12.573 0 20.374 0 29.726v162.245c0 7.284 2.585 13.516 8.826 21.843l34.789 45.237c5.715 7.284 10.912 8.844 21.825 8.327l171.864-10.404c14.532-1.035 18.696-7.801 18.696-19.24V55.207c0-5.911-2.336-7.614-9.21-12.66l-1.185-.856L198.37 8.409C186.94.1 182.27-.952 164.09.608M69.327 52.22c-14.033.945-17.216 1.159-25.186-5.323L23.876 30.778c-2.06-2.086-1.026-4.69 4.163-5.207l142.274-10.395c11.947-1.043 18.17 3.12 22.842 6.758l24.401 17.68c1.043.525 3.638 3.637.517 3.637L71.146 52.095zm-16.36 183.954V81.222c0-6.767 2.077-9.887 8.3-10.413L230.02 60.93c5.724-.517 8.31 3.12 8.31 9.879v153.917c0 6.767-1.044 12.49-10.387 13.008l-161.487 9.361c-9.343.517-13.489-2.594-13.489-10.921M212.377 89.53c1.034 4.681 0 9.362-4.681 9.897l-7.783 1.542v114.404c-6.758 3.637-12.981 5.715-18.18 5.715c-8.308 0-10.386-2.604-16.609-10.396l-50.898-80.079v77.476l16.1 3.646s0 9.362-12.989 9.362l-35.814 2.077c-1.043-2.086 0-7.284 3.63-8.318l9.351-2.595V109.823l-12.98-1.052c-1.044-4.68 1.55-11.439 8.826-11.965l38.426-2.585l52.958 81.113v-71.76l-13.498-1.552c-1.043-5.733 3.111-9.896 8.3-10.404z"></path></svg>
diff --git a/packages/web/src/lib/components/RedditLogo.svelte b/packages/web/src/lib/components/RedditLogo.svelte
new file mode 100644
index 000000000..d11a52f39
--- /dev/null
+++ b/packages/web/src/lib/components/RedditLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><circle cx="128" cy="128" r="128" fill="#ff4500"></circle><path fill="#fff" d="M213.15 129.22c0-10.376-8.391-18.617-18.617-18.617a18.74 18.74 0 0 0-12.97 5.189c-12.818-9.157-30.368-15.107-49.9-15.87l8.544-39.981l27.773 5.95c.307 7.02 6.104 12.667 13.278 12.667c7.324 0 13.275-5.95 13.275-13.278c0-7.324-5.95-13.275-13.275-13.275c-5.188 0-9.768 3.052-11.904 7.478l-30.976-6.562c-.916-.154-1.832 0-2.443.458c-.763.458-1.22 1.22-1.371 2.136l-9.464 44.558c-19.837.612-37.692 6.562-50.662 15.872a18.74 18.74 0 0 0-12.971-5.188c-10.377 0-18.617 8.391-18.617 18.617c0 7.629 4.577 14.037 10.988 16.939a33.6 33.6 0 0 0-.458 5.646c0 28.686 33.42 52.036 74.621 52.036c41.202 0 74.622-23.196 74.622-52.036a35 35 0 0 0-.458-5.646c6.408-2.902 10.985-9.464 10.985-17.093M85.272 142.495c0-7.324 5.95-13.275 13.278-13.275c7.324 0 13.275 5.95 13.275 13.275s-5.95 13.278-13.275 13.278c-7.327.15-13.278-5.953-13.278-13.278m74.317 35.251c-9.156 9.157-26.553 9.768-31.588 9.768c-5.188 0-22.584-.765-31.59-9.768c-1.371-1.373-1.371-3.51 0-4.883c1.374-1.371 3.51-1.371 4.884 0c5.8 5.8 18.008 7.782 26.706 7.782s21.058-1.983 26.704-7.782c1.374-1.371 3.51-1.371 4.884 0c1.22 1.373 1.22 3.51 0 4.883m-2.443-21.822c-7.325 0-13.275-5.95-13.275-13.275s5.95-13.275 13.275-13.275c7.327 0 13.277 5.95 13.277 13.275c0 7.17-5.95 13.275-13.277 13.275"></path></svg>
diff --git a/packages/web/src/lib/components/ScrivenerLogo.svelte b/packages/web/src/lib/components/ScrivenerLogo.svelte
new file mode 100644
index 000000000..839e0b9b5
--- /dev/null
+++ b/packages/web/src/lib/components/ScrivenerLogo.svelte
@@ -0,0 +1,19 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
+ viewBox="0 0 48 48" style="enable-background:new 0 0 48 48;" xml:space="preserve">
+<path style="fill:#3E2723;" d="M7,10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28c0,2.209-1.791,4-4,4H11c-2.209,0-4-1.791-4-4
+ V10z"/>
+<path style="fill:#FFFFFF;" d="M35.327,15.801C36.653,12.35,31.625,9,31.625,9c1,1.231,1.335,2.222,1.447,2.805
+ c-0.95-0.182-1.97,0.094-2.706,0.829c-1.179,1.179-1.179,3.089,0,4.268c1.128,1.129,2.922,1.164,4.107,0.131
+ C34.473,17.033,35.063,16.488,35.327,15.801z"/>
+<path style="fill:#FFFFFF;" d="M13.24,31.978C11.809,35.429,17,39,17,39c-1.08-1.231-1.205-2.443-1.325-3.026
+ c1.025,0.182,2.127-0.094,2.921-0.829c1.272-1.179,1.272-3.089,0-4.268c-1.218-1.129-3.154-1.164-4.434-0.131
+ C14.162,30.746,13.525,31.291,13.24,31.978z"/>
+<path style="fill:#FFFFFF;" d="M23,6h-4c-3.638,1.722-8,5.499-8,9.897C11,25,19.731,26.794,23.577,27.941
+ C28.596,29.444,28.979,30.399,30,32c0.742,1.164,1.269,2.95,1.269,4.544c0,2.334-1.957,4.365-4.126,5.456H29c8-4,9-7.977,9-12
+ c0-6-4.096-8.203-6.731-9.381C23.722,17.246,18,18,17.731,12.456C17.514,7.997,22.702,6,23,6z"/>
+</svg>
diff --git a/packages/web/src/lib/components/SlackLogo.svelte b/packages/web/src/lib/components/SlackLogo.svelte
new file mode 100644
index 000000000..1310f4e21
--- /dev/null
+++ b/packages/web/src/lib/components/SlackLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#e01e5a" d="M53.841 161.32c0 14.832-11.987 26.82-26.819 26.82S.203 176.152.203 161.32c0-14.831 11.987-26.818 26.82-26.818H53.84zm13.41 0c0-14.831 11.987-26.818 26.819-26.818s26.819 11.987 26.819 26.819v67.047c0 14.832-11.987 26.82-26.82 26.82c-14.83 0-26.818-11.988-26.818-26.82z"></path><path fill="#36c5f0" d="M94.07 53.638c-14.832 0-26.82-11.987-26.82-26.819S79.239 0 94.07 0s26.819 11.987 26.819 26.819v26.82zm0 13.613c14.832 0 26.819 11.987 26.819 26.819s-11.987 26.819-26.82 26.819H26.82C11.987 120.889 0 108.902 0 94.069c0-14.83 11.987-26.818 26.819-26.818z"></path><path fill="#2eb67d" d="M201.55 94.07c0-14.832 11.987-26.82 26.818-26.82s26.82 11.988 26.82 26.82s-11.988 26.819-26.82 26.819H201.55zm-13.41 0c0 14.832-11.988 26.819-26.82 26.819c-14.831 0-26.818-11.987-26.818-26.82V26.82C134.502 11.987 146.489 0 161.32 0s26.819 11.987 26.819 26.819z"></path><path fill="#ecb22e" d="M161.32 201.55c14.832 0 26.82 11.987 26.82 26.818s-11.988 26.82-26.82 26.82c-14.831 0-26.818-11.988-26.818-26.82V201.55zm0-13.41c-14.831 0-26.818-11.988-26.818-26.82c0-14.831 11.987-26.818 26.819-26.818h67.25c14.832 0 26.82 11.987 26.82 26.819s-11.988 26.819-26.82 26.819z"></path></svg>
diff --git a/packages/web/src/lib/components/TelegramLogo.svelte b/packages/web/src/lib/components/TelegramLogo.svelte
new file mode 100644
index 000000000..bdb9f3c31
--- /dev/null
+++ b/packages/web/src/lib/components/TelegramLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><defs><linearGradient id="SVG6DaOZcwt" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#2aabee"></stop><stop offset="100%" stop-color="#229ed9"></stop></linearGradient></defs><path fill="url(#SVG6DaOZcwt)" d="M128 0C94.06 0 61.48 13.494 37.5 37.49A128.04 128.04 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51s-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0"></path><path fill="#fff" d="M57.94 126.648q55.98-24.384 74.64-32.152c35.56-14.786 42.94-17.354 47.76-17.441c1.06-.017 3.42.245 4.96 1.49c1.28 1.05 1.64 2.47 1.82 3.467c.16.996.38 3.266.2 5.038c-1.92 20.24-10.26 69.356-14.5 92.026c-1.78 9.592-5.32 12.808-8.74 13.122c-7.44.684-13.08-4.912-20.28-9.63c-11.26-7.386-17.62-11.982-28.56-19.188c-12.64-8.328-4.44-12.906 2.76-20.386c1.88-1.958 34.64-31.748 35.26-34.45c.08-.338.16-1.598-.6-2.262c-.74-.666-1.84-.438-2.64-.258c-1.14.256-19.12 12.152-54 35.686c-5.1 3.508-9.72 5.218-13.88 5.128c-4.56-.098-13.36-2.584-19.9-4.708c-8-2.606-14.38-3.984-13.82-8.41c.28-2.304 3.46-4.662 9.52-7.072"></path></svg>
diff --git a/packages/web/src/lib/components/Testimonial.svelte b/packages/web/src/lib/components/Testimonial.svelte
index 403fc7f41..6e3b3403e 100644
--- a/packages/web/src/lib/components/Testimonial.svelte
+++ b/packages/web/src/lib/components/Testimonial.svelte
@@ -1,17 +1,47 @@
<script lang="ts">
-import { Card } from 'components';
-
export let authorName: string;
export let authorSubtitle: string;
export let testimonial: string;
+export let accent = false;
+
+const baseFigureClasses =
+ 'm-0 flex min-h-64 flex-col justify-between gap-4 rounded-2xl border p-6 transition duration-150 ease-out group-hover:-translate-y-px group-hover:border-primary group-hover:shadow-[0_10px_24px_-16px_rgba(0,0,0,0.16)]';
+const regularFigureClasses =
+ 'border-black/10 bg-white text-black dark:border-white/10 dark:bg-black dark:text-white';
+const accentFigureClasses =
+ 'border-black bg-black text-white dark:border-white dark:bg-white dark:text-black';
+const baseBlockquoteClasses =
+ 'm-0 border-0 bg-transparent p-0 not-italic text-inherit dark:border-0 dark:bg-transparent dark:text-inherit';
+const regularBlockquoteClasses = 'text-sm leading-relaxed';
+const accentBlockquoteClasses = 'font-serif text-[1.3125rem] font-bold leading-snug';
+const baseCaptionClasses = 'flex items-center gap-3 border-t pt-3.5';
+const regularCaptionClasses = 'border-black/10 dark:border-white/10';
+const accentCaptionClasses = 'border-white/15 dark:border-black/15';
+const avatarClasses =
+ 'flex size-8 items-center justify-center rounded-full bg-primary-100 text-xs font-extrabold text-primary dark:bg-primary-900 dark:text-primary-200';
+
+$: figureClasses = `${baseFigureClasses} ${accent ? accentFigureClasses : regularFigureClasses}`;
+$: blockquoteClasses = `${baseBlockquoteClasses} ${accent ? accentBlockquoteClasses : regularBlockquoteClasses}`;
+$: captionClasses = `${baseCaptionClasses} ${accent ? accentCaptionClasses : regularCaptionClasses}`;
+
+function initials(name: string) {
+ return name
+ .split(' ')
+ .map((part) => part[0])
+ .slice(0, 2)
+ .join('');
+}
</script>
-<Card class="flex h-full flex-col justify-between gap-6">
- <p class="text-base text-neutral-700 dark:text-neutral-200">
- &ldquo;{testimonial}&rdquo;
- </p>
- <footer class="flex flex-col gap-1">
- <span class="font-semibold text-neutral-900 dark:text-neutral-50">{authorName}</span>
- <span class="text-sm text-neutral-600 dark:text-neutral-400">{authorSubtitle}</span>
- </footer>
-</Card>
+<figure class={figureClasses}>
+ <blockquote class={blockquoteClasses}>“{testimonial}”</blockquote>
+ <figcaption class={captionClasses}>
+ <span class={avatarClasses}>{initials(authorName)}</span>
+ <div class="flex flex-col">
+ <strong class="text-[0.82rem]">{authorName}</strong>
+ <small class={accent ? 'text-xs text-white/65 dark:text-black/65' : 'text-xs text-black/50 dark:text-white/50'}>
+ {authorSubtitle}
+ </small>
+ </div>
+ </figcaption>
+</figure>
diff --git a/packages/web/src/lib/components/TestimonialCollection.svelte b/packages/web/src/lib/components/TestimonialCollection.svelte
index 650b73a86..423188b39 100644
--- a/packages/web/src/lib/components/TestimonialCollection.svelte
+++ b/packages/web/src/lib/components/TestimonialCollection.svelte
@@ -1,5 +1,4 @@
<script lang="ts">
-import { Link } from 'components';
import Testimonial from './Testimonial.svelte';
type TestimonialItem = {
@@ -15,19 +14,17 @@ export let testimonials: TestimonialItem[] = [];
const { class: extraClass = '', ...restProps } = $$restProps;
</script>
-<section
- {...restProps}
- class={`mx-auto w-full max-w-6xl ${extraClass}`.trim()}
->
- <div class="columns-1 gap-6 sm:columns-2 lg:columns-3">
+<section {...restProps} class={extraClass}>
+ <div class="grid grid-cols-1 gap-4 min-[881px]:grid-cols-3">
{#each testimonials as item, index (item.authorName + index)}
- <Link href={item.source} class={`block mb-6 break-inside-avoid ${index % 2 == 0 ? "skew-hover" : "skew-hover-left"}`}>
+ <a class="group text-inherit no-underline hover:no-underline" href={item.source}>
<Testimonial
authorName={item.authorName}
authorSubtitle={item.authorSubtitle}
testimonial={item.testimonial}
+ accent={index === 4}
/>
- </Link>
+ </a>
{/each}
</div>
</section>
diff --git a/packages/web/src/lib/components/ThingsLogo.svelte b/packages/web/src/lib/components/ThingsLogo.svelte
new file mode 100644
index 000000000..9246c3bb1
--- /dev/null
+++ b/packages/web/src/lib/components/ThingsLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#1E72E2" d="m15.815 0l1.099.003c.492.01 1.138.013 1.856.165c.713.147 1.489.49 2.086 1.04a3.94 3.94 0 0 1 1.167 1.911c.178.664.193 1.264.211 1.722l.021 1.026l.016.905l.047 2.685l.049 2.71l.016.925l.016 1.055v.071c0 .338-.004.741-.062 1.193l-.636 4.978l-.089.495a3.8 3.8 0 0 1-1.064 1.902c-.56.55-1.303.896-1.99 1.044c-.693.153-1.32.158-1.796.167L15.698 24H8.3l-1.065-.003c-.477-.01-1.102-.014-1.795-.167c-.687-.148-1.43-.494-1.991-1.044a3.8 3.8 0 0 1-1.064-1.902l-.088-.495l-.637-4.978a9 9 0 0 1-.06-1.193v-.072l.015-1.054l.016-.926l.048-2.709l.047-2.685l.016-.905l.02-1.026c.019-.458.034-1.059.212-1.722c.173-.658.56-1.37 1.166-1.911c.6-.55 1.376-.893 2.089-1.04C5.947.016 6.593.012 7.085.003L8.183 0zm1.625 4.203H6.196c-.149.003-.346.005-.566.051a1.35 1.35 0 0 0-.636.32c-.173.157-.295.36-.353.584c-.055.203-.058.386-.063.526l-.005.335l-.129 10.284l-.003.16l.018.017q.135.127.292.229l.039.025l.198.105l.359.139l.344.084l.397.064l.396.049l.257.031l.25.035l.408.076l.188.046l.173.052l.102.036l.098.037c.258.104.421.228.507.341c.106.143.114.27.124.368l.011.217l.012.255l.038.887l.039.86l.009.2l.005.103c.005.046.009.105.06.17s.16.138.335.19l.043.013q.276.072.561.09l.537.017h3.514l.537-.016c.19-.014.397-.044.563-.092l.039-.012c.176-.052.288-.124.337-.19c.051-.065.055-.124.06-.17l.006-.104l.008-.2l.038-.859l.038-.887l.01-.255l.013-.217c.01-.098.018-.225.125-.368c.085-.114.25-.238.51-.342l.095-.037l.102-.035l.174-.052l.186-.047l.411-.075l.247-.035l.256-.03l.399-.051l.399-.063l.341-.083l.358-.138l.195-.104l.042-.026q.168-.11.314-.249l-.002-.159l-.131-10.284l-.006-.335c-.005-.141-.008-.323-.061-.526a1.2 1.2 0 0 0-.353-.584c-.18-.162-.4-.272-.636-.32c-.22-.046-.418-.048-.567-.05zm-2.941 13.986l-.009.182l-.082 1.893h-.003l-.138.017l-.023.001l-.505.016h-3.485l-.504-.016l-.161-.018h-.004l-.082-1.893l-.01-.182zm1.427-11.177a.78.78 0 0 1 .722.093a.67.67 0 0 1 .251.641c-.045.229-.232.421-.48.723a50 50 0 0 0-3.836 5.257c-.308.575-.593.808-.9.844c-.308.037-.64-.123-1.087-.613l-1.824-1.755c-.29-.28-.488-.456-.57-.692a.66.66 0 0 1 .175-.72c.2-.182.512-.233.764-.16c.253.074.445.27.741.539l1.546 1.417a51 51 0 0 1 3.844-4.982c.261-.293.425-.502.654-.592"></path></svg>
diff --git a/packages/web/src/lib/components/WhatsAppLogo.svelte b/packages/web/src/lib/components/WhatsAppLogo.svelte
new file mode 100644
index 000000000..d2b6486bd
--- /dev/null
+++ b/packages/web/src/lib/components/WhatsAppLogo.svelte
@@ -0,0 +1,6 @@
+<script lang="ts">
+export let width = '100%';
+export let height = '100%';
+</script>
+
+<svg {width} {height} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 258"><defs><linearGradient id="SVGK3KZq49U" x1="50%" x2="50%" y1="100%" y2="0%"><stop offset="0%" stop-color="#1faf38"></stop><stop offset="100%" stop-color="#60d669"></stop></linearGradient><linearGradient id="SVGefMkoEOd" x1="50%" x2="50%" y1="100%" y2="0%"><stop offset="0%" stop-color="#f9f9f9"></stop><stop offset="100%" stop-color="#fff"></stop></linearGradient></defs><path fill="url(#SVGK3KZq49U)" d="M5.463 127.456c-.006 21.677 5.658 42.843 16.428 61.499L4.433 252.697l65.232-17.104a123 123 0 0 0 58.8 14.97h.054c67.815 0 123.018-55.183 123.047-123.01c.013-32.867-12.775-63.773-36.009-87.025c-23.23-23.25-54.125-36.061-87.043-36.076c-67.823 0-123.022 55.18-123.05 123.004"></path><path fill="url(#SVGefMkoEOd)" d="M1.07 127.416c-.007 22.457 5.86 44.38 17.014 63.704L0 257.147l67.571-17.717c18.618 10.151 39.58 15.503 60.91 15.511h.055c70.248 0 127.434-57.168 127.464-127.423c.012-34.048-13.236-66.065-37.3-90.15C194.633 13.286 162.633.014 128.536 0C58.276 0 1.099 57.16 1.071 127.416m40.24 60.376l-2.523-4.005c-10.606-16.864-16.204-36.352-16.196-56.363C22.614 69.029 70.138 21.52 128.576 21.52c28.3.012 54.896 11.044 74.9 31.06c20.003 20.018 31.01 46.628 31.003 74.93c-.026 58.395-47.551 105.91-105.943 105.91h-.042c-19.013-.01-37.66-5.116-53.922-14.765l-3.87-2.295l-40.098 10.513z"></path><path fill="#fff" d="M96.678 74.148c-2.386-5.303-4.897-5.41-7.166-5.503c-1.858-.08-3.982-.074-6.104-.074c-2.124 0-5.575.799-8.492 3.984c-2.92 3.188-11.148 10.892-11.148 26.561s11.413 30.813 13.004 32.94c1.593 2.123 22.033 35.307 54.405 48.073c26.904 10.609 32.379 8.499 38.218 7.967c5.84-.53 18.844-7.702 21.497-15.139c2.655-7.436 2.655-13.81 1.859-15.142c-.796-1.327-2.92-2.124-6.105-3.716s-18.844-9.298-21.763-10.361c-2.92-1.062-5.043-1.592-7.167 1.597c-2.124 3.184-8.223 10.356-10.082 12.48c-1.857 2.129-3.716 2.394-6.9.801c-3.187-1.598-13.444-4.957-25.613-15.806c-9.468-8.442-15.86-18.867-17.718-22.056c-1.858-3.184-.199-4.91 1.398-6.497c1.431-1.427 3.186-3.719 4.78-5.578c1.588-1.86 2.118-3.187 3.18-5.311c1.063-2.126.531-3.986-.264-5.579c-.798-1.593-6.987-17.343-9.819-23.64"></path></svg>
diff --git a/packages/web/src/lib/components/ZedLogo.svelte b/packages/web/src/lib/components/ZedLogo.svelte
index 6c3fcd843..a43dd1a93 100644
--- a/packages/web/src/lib/components/ZedLogo.svelte
+++ b/packages/web/src/lib/components/ZedLogo.svelte
@@ -4,23 +4,17 @@ export let height = '100%';
</script>
<svg
- class="block dark:hidden"
+ class="block text-black"
{width}
{height}
viewBox="0 0 90 90"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
-<path fill-rule="evenodd" clip-rule="evenodd" d="M8.4375 5.625C6.8842 5.625 5.625 6.8842 5.625 8.4375V70.3125H0V8.4375C0 3.7776 3.7776 0 8.4375 0H83.7925C87.551 0 89.4333 4.5442 86.7756 7.20186L40.3642 53.6133H53.4375V47.8125H59.0625V55.0195C59.0625 57.3495 57.1737 59.2383 54.8438 59.2383H34.7392L25.0712 68.9062H68.9062V33.75H74.5312V68.9062C74.5312 72.0128 72.0128 74.5312 68.9062 74.5312H19.4462L9.60248 84.375H81.5625C83.1158 84.375 84.375 83.1158 84.375 81.5625V19.6875H90V81.5625C90 86.2224 86.2224 90 81.5625 90H6.20749C2.44898 90 0.566723 85.4558 3.22438 82.7981L49.46 36.5625H36.5625V42.1875H30.9375V35.1562C30.9375 32.8263 32.8263 30.9375 35.1562 30.9375H55.085L64.9288 21.0938H21.0938V56.25H15.4688V21.0938C15.4688 17.9871 17.9871 15.4688 21.0938 15.4688H70.5538L80.3975 5.625H8.4375Z" fill="black"/>
-</svg>
-
-<svg
- class="hidden dark:block"
- {width}
- {height}
- viewBox="0 0 90 90"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
->
-<path fill-rule="evenodd" clip-rule="evenodd" d="M8.4375 5.625C6.8842 5.625 5.625 6.8842 5.625 8.4375V70.3125H0V8.4375C0 3.7776 3.7776 0 8.4375 0H83.7925C87.551 0 89.4333 4.5442 86.7756 7.20186L40.3642 53.6133H53.4375V47.8125H59.0625V55.0195C59.0625 57.3495 57.1737 59.2383 54.8438 59.2383H34.7392L25.0712 68.9062H68.9062V33.75H74.5312V68.9062C74.5312 72.0128 72.0128 74.5312 68.9062 74.5312H19.4462L9.60248 84.375H81.5625C83.1158 84.375 84.375 83.1158 84.375 81.5625V19.6875H90V81.5625C90 86.2224 86.2224 90 81.5625 90H6.20749C2.44898 90 0.566723 85.4558 3.22438 82.7981L49.46 36.5625H36.5625V42.1875H30.9375V35.1562C30.9375 32.8263 32.8263 30.9375 35.1562 30.9375H55.085L64.9288 21.0938H21.0938V56.25H15.4688V21.0938C15.4688 17.9871 17.9871 15.4688 21.0938 15.4688H70.5538L80.3975 5.625H8.4375Z" fill="white"/>
+ <path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M8.4375 5.625C6.8842 5.625 5.625 6.8842 5.625 8.4375V70.3125H0V8.4375C0 3.7776 3.7776 0 8.4375 0H83.7925C87.551 0 89.4333 4.5442 86.7756 7.20186L40.3642 53.6133H53.4375V47.8125H59.0625V55.0195C59.0625 57.3495 57.1737 59.2383 54.8438 59.2383H34.7392L25.0712 68.9062H68.9062V33.75H74.5312V68.9062C74.5312 72.0128 72.0128 74.5312 68.9062 74.5312H19.4462L9.60248 84.375H81.5625C83.1158 84.375 84.375 83.1158 84.375 81.5625V19.6875H90V81.5625C90 86.2224 86.2224 90 81.5625 90H6.20749C2.44898 90 0.566723 85.4558 3.22438 82.7981L49.46 36.5625H36.5625V42.1875H30.9375V35.1562C30.9375 32.8263 32.8263 30.9375 35.1562 30.9375H55.085L64.9288 21.0938H21.0938V56.25H15.4688V21.0938C15.4688 17.9871 17.9871 15.4688 21.0938 15.4688H70.5538L80.3975 5.625H8.4375Z"
+ fill="currentColor"
+ />
</svg>
diff --git a/packages/web/src/lib/marketing/AppLogoTile.svelte b/packages/web/src/lib/marketing/AppLogoTile.svelte
new file mode 100644
index 000000000..15e837325
--- /dev/null
+++ b/packages/web/src/lib/marketing/AppLogoTile.svelte
@@ -0,0 +1,53 @@
+<script lang="ts">
+import DiscordLogo from '$lib/components/DiscordLogo.svelte';
+import GitHubLogo from '$lib/components/GitHubLogo.svelte';
+import GmailLogo from '$lib/components/GmailLogo.svelte';
+import IMessageLogo from '$lib/components/IMessageLogo.svelte';
+import LinearLogo from '$lib/components/LinearLogo.svelte';
+import NotionLogo from '$lib/components/NotionLogo.svelte';
+import ObsidianLogo from '$lib/components/ObsidianLogo.svelte';
+import RedditLogo from '$lib/components/RedditLogo.svelte';
+import ScrivenerLogo from '$lib/components/ScrivenerLogo.svelte';
+import SlackLogo from '$lib/components/SlackLogo.svelte';
+import TelegramLogo from '$lib/components/TelegramLogo.svelte';
+import ThingsLogo from '$lib/components/ThingsLogo.svelte';
+import WhatsAppLogo from '$lib/components/WhatsAppLogo.svelte';
+
+export let id: string;
+export let size = 40;
+
+const tileClasses =
+ 'inline-flex shrink-0 items-center justify-center bg-white shadow-[0_0_0_0.5px_rgba(0,0,0,0.08),0_1px_2px_rgba(0,0,0,0.04)] dark:bg-white [&_svg]:block [&_svg]:h-[68%] [&_svg]:w-[68%]';
+
+$: tileStyle = `width: ${size}px; height: ${size}px; border-radius: ${Math.round(size * 0.235)}px;`;
+</script>
+
+<span class={tileClasses} style={tileStyle} aria-hidden="true">
+ {#if id === 'gmail'}
+ <GmailLogo />
+ {:else if id === 'imessage'}
+ <IMessageLogo />
+ {:else if id === 'whatsapp'}
+ <WhatsAppLogo />
+ {:else if id === 'slack'}
+ <SlackLogo />
+ {:else if id === 'discord'}
+ <DiscordLogo />
+ {:else if id === 'telegram'}
+ <TelegramLogo />
+ {:else if id === 'notion'}
+ <NotionLogo />
+ {:else if id === 'obsidian'}
+ <ObsidianLogo />
+ {:else if id === 'linear'}
+ <LinearLogo />
+ {:else if id === 'github'}
+ <GitHubLogo />
+ {:else if id === 'things'}
+ <ThingsLogo />
+ {:else if id === 'scrivener'}
+ <ScrivenerLogo />
+ {:else if id === 'reddit'}
+ <RedditLogo />
+ {/if}
+</span>
diff --git a/packages/web/src/lib/marketing/DesktopMockups.svelte b/packages/web/src/lib/marketing/DesktopMockups.svelte
new file mode 100644
index 000000000..e8adbe057
--- /dev/null
+++ b/packages/web/src/lib/marketing/DesktopMockups.svelte
@@ -0,0 +1,16 @@
+<script lang="ts">
+import DiscordDesktopMockupWindow from './DiscordDesktopMockupWindow.svelte';
+import MailDesktopMockupWindow from './MailDesktopMockupWindow.svelte';
+import NotesDesktopMockupWindow from './NotesDesktopMockupWindow.svelte';
+import SlackDesktopMockupWindow from './SlackDesktopMockupWindow.svelte';
+</script>
+
+<div
+ class="absolute inset-0 max-[1040px]:relative max-[1040px]:mx-auto max-[1040px]:h-128 max-[1040px]:max-w-168 max-[620px]:grid max-[620px]:h-auto max-[620px]:gap-3.5"
+ aria-label="Harper Desktop working in several macOS apps"
+>
+ <SlackDesktopMockupWindow />
+ <MailDesktopMockupWindow />
+ <NotesDesktopMockupWindow />
+ <DiscordDesktopMockupWindow />
+</div>
diff --git a/packages/web/src/lib/marketing/DiscordDesktopMockupWindow.svelte b/packages/web/src/lib/marketing/DiscordDesktopMockupWindow.svelte
new file mode 100644
index 000000000..0058c5d6a
--- /dev/null
+++ b/packages/web/src/lib/marketing/DiscordDesktopMockupWindow.svelte
@@ -0,0 +1,23 @@
+<script lang="ts">
+import MacWindow from './MacWindow.svelte';
+import Squiggle from './Squiggle.svelte';
+import Suggestion from './Suggestion.svelte';
+</script>
+
+<div class="absolute right-0 bottom-[1.9rem] z-4 w-[21.25rem] max-[620px]:static max-[620px]:w-full max-[620px]:transform-none" style="transform: rotate(-2deg);">
+ <MacWindow title="Discord - #design-crit" dark>
+ <div class="flex min-h-[9.6rem] gap-2.5 p-3 pr-3.5 pb-12 text-[0.82rem]">
+ <div
+ class="flex size-[1.65rem] shrink-0 items-center justify-center rounded-full bg-[#5865f2] text-xs font-extrabold text-white"
+ >
+ R
+ </div>
+ <p class="!m-0 leading-[1.55]">
+ <b class="mr-1.5">riley</b><small class="text-[#8a8d93]">Today at 2:14 PM</small><br />
+ not sure if its <Squiggle>worht</Squiggle> shipping yet, the copy still needs another
+ <Squiggle>passs</Squiggle> imo
+ </p>
+ <Suggestion word="worht" fix="worth" />
+ </div>
+ </MacWindow>
+</div>
diff --git a/packages/web/src/lib/marketing/FaqSection.svelte b/packages/web/src/lib/marketing/FaqSection.svelte
new file mode 100644
index 000000000..fe15293cf
--- /dev/null
+++ b/packages/web/src/lib/marketing/FaqSection.svelte
@@ -0,0 +1,80 @@
+<script lang="ts">
+import Arrow from '$lib/components/Arrow.svelte';
+
+type FaqItem = {
+ q: string;
+ a: string;
+};
+
+export let items: FaqItem[] = [];
+export let title = 'FAQs';
+export let intro = '';
+export let introHref = '';
+export let introLinkText = '';
+export let collapsible = false;
+export let layout: 'grid' | 'narrow' = 'narrow';
+
+$: innerClass =
+ layout === 'grid'
+ ? 'mx-auto grid max-w-[68.75rem] grid-cols-1 gap-12 px-4 md:px-14 min-[881px]:grid-cols-[18.75rem_1fr]'
+ : 'mx-auto max-w-180 px-4 text-center md:px-14';
+</script>
+
+<section class="border-t border-black/10 bg-cream py-20 dark:border-white/10 dark:bg-black">
+ <div class={innerClass}>
+ <div>
+ <h2
+ class="m-0 py-0 text-[clamp(2.2rem,5vw,2.5rem)] leading-[1.08] font-semibold tracking-normal text-black dark:text-white"
+ >
+ {title}
+ </h2>
+ {#if intro}
+ <p class="!mt-4 !mb-0 text-base leading-relaxed text-black/70 dark:text-white/70">
+ {intro}
+ {#if introHref && introLinkText}
+ <a
+ class="inline-flex items-center gap-1 font-bold text-primary no-underline dark:text-primary-300 [&_path]:fill-none [&_path]:stroke-current [&_path]:stroke-[1.5] [&_path]:[stroke-linecap:round] [&_path]:[stroke-linejoin:round] [&_svg]:h-3 [&_svg]:w-3"
+ href={introHref}>{introLinkText}<Arrow /></a
+ >
+ {/if}
+ </p>
+ {/if}
+ </div>
+
+ <div class={collapsible ? 'border-t border-black/10 dark:border-white/10' : ''}>
+ {#if collapsible}
+ {#each items as item}
+ <details class="group border-b border-black/10 dark:border-white/10">
+ <summary
+ class="flex cursor-pointer list-none items-center justify-between py-4 font-bold text-black [&::-webkit-details-marker]:hidden dark:text-white"
+ >
+ <span>{item.q}</span>
+ <span
+ class="inline-flex size-6 items-center justify-center rounded-full bg-black/5 text-black/70 group-open:hidden dark:bg-white/10 dark:text-white/70"
+ aria-hidden="true">+</span
+ >
+ <span
+ class="hidden size-6 items-center justify-center rounded-full bg-black text-primary-100 group-open:inline-flex dark:bg-white dark:text-black"
+ aria-hidden="true">-</span
+ >
+ </summary>
+ <p class="!m-0 max-w-152 pb-5 text-base leading-relaxed text-black/70 dark:text-white/70">
+ {item.a}
+ </p>
+ </details>
+ {/each}
+ {:else}
+ {#each items as item}
+ <div class="border-t border-black/10 py-5 text-left last:border-b dark:border-white/10">
+ <h3 class="!m-0 py-0 text-base font-semibold tracking-normal text-black dark:text-white">
+ {item.q}
+ </h3>
+ <p class="!mt-1.5 !mb-0 text-base leading-relaxed text-black/70 dark:text-white/70">
+ {item.a}
+ </p>
+ </div>
+ {/each}
+ {/if}
+ </div>
+ </div>
+</section>
diff --git a/packages/web/src/lib/marketing/HarperMark.svelte b/packages/web/src/lib/marketing/HarperMark.svelte
new file mode 100644
index 000000000..f97295c3f
--- /dev/null
+++ b/packages/web/src/lib/marketing/HarperMark.svelte
@@ -0,0 +1,62 @@
+<script lang="ts">
+export let size = 32;
+export let title = 'Harper';
+
+$: width = Math.round(size * (695 / 411));
+</script>
+
+<svg
+ {width}
+ height={size}
+ viewBox="0 0 695 411"
+ role="img"
+ aria-label={title}
+ xmlns="http://www.w3.org/2000/svg"
+ class="harper-mark"
+>
+ <g transform="matrix(1,0,0,1,-5,-1720)">
+ <g transform="matrix(0.824576,0,0,0.749254,0.365685,430.856)">
+ <rect x="5.62" y="1720.57" width="842.425" height="547.24" fill="none" stroke="none" />
+ <g transform="matrix(1.21274,0,0,1.33466,-2183.71,393.157)">
+ <g transform="matrix(1,0,0,1,-22.3927,1.08043)">
+ <path
+ d="M1930.93,1121.75C1930.93,1121.75 1974.66,1080.73 2041.34,1094.1C2086.61,1103.18 2122.83,1145.4 2122.83,1145.4"
+ />
+ </g>
+ <g transform="matrix(1,0,0,1,-47.3485,12.3935)">
+ <path
+ d="M2250.3,1107.1C2250.3,1107.1 2261.8,1065.58 2311.59,1047.05C2361.62,1028.44 2422.42,1051.13 2422.42,1051.13"
+ />
+ </g>
+ <g transform="matrix(1.10085,0,0,1.10085,-212.096,-122.054)">
+ <g transform="matrix(1,0,0,1,14.3186,-0.853887)">
+ <ellipse cx="1981.62" cy="1247.49" rx="87.401" ry="87.881" />
+ </g>
+ <rect x="2083.34" y="1231.11" width="66.702" height="15.521" />
+ <rect x="1892.23" y="1208.69" width="16.306" height="30.182" />
+ <g transform="matrix(-1,0,0,1,4281.79,-0.853887)">
+ <ellipse cx="1981.62" cy="1247.49" rx="87.401" ry="87.881" />
+ </g>
+ <g transform="matrix(-1,0,0,1,4296.11,0)">
+ <rect x="2083.34" y="1231.11" width="66.702" height="15.521" />
+ </g>
+ <g transform="matrix(-1,0,0,1,4296.11,0)">
+ <rect x="1892.23" y="1208.69" width="16.306" height="30.182" />
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg>
+
+<style>
+.harper-mark {
+ display: block;
+ fill: none;
+ stroke: currentColor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ stroke-miterlimit: 1.5;
+ stroke-width: 22.92px;
+}
+</style>
diff --git a/packages/web/src/lib/marketing/IntegrationTile.svelte b/packages/web/src/lib/marketing/IntegrationTile.svelte
new file mode 100644
index 000000000..6258a6601
--- /dev/null
+++ b/packages/web/src/lib/marketing/IntegrationTile.svelte
@@ -0,0 +1,84 @@
+<script lang="ts">
+import ChromeLogo from '$lib/components/ChromeLogo.svelte';
+import CodeLogo from '$lib/components/CodeLogo.svelte';
+import EmacsLogo from '$lib/components/EmacsLogo.svelte';
+import FirefoxLogo from '$lib/components/FirefoxLogo.svelte';
+import HelixLogo from '$lib/components/HelixLogo.svelte';
+import NeovimLogo from '$lib/components/NeovimLogo.svelte';
+import ObsidianLogo from '$lib/components/ObsidianLogo.svelte';
+import SublimeLogo from '$lib/components/SublimeLogo.svelte';
+import WordPressLogo from '$lib/components/WordPressLogo.svelte';
+import ZedLogo from '$lib/components/ZedLogo.svelte';
+import type { Integration } from './data';
+import HarperMark from './HarperMark.svelte';
+
+export let integration: Integration;
+export let size = 40;
+
+const baseTileClasses =
+ 'inline-flex shrink-0 items-center justify-center shadow-[0_0_0_0.5px_rgba(0,0,0,0.08),0_1px_2px_rgba(0,0,0,0.04)]';
+const desktopTileClasses = `${baseTileClasses} border border-black bg-white text-black shadow-none dark:border-white dark:bg-black dark:text-white`;
+const logoTileClasses = `${baseTileClasses} bg-white dark:bg-white [&_svg]:h-[68%] [&_svg]:w-[68%]`;
+const monogramTileClasses = `${baseTileClasses} bg-[var(--tile-bg)] text-[length:var(--tile-font)] font-extrabold tracking-normal text-[var(--tile-fg)]`;
+
+$: tileStyle = `width: ${size}px; height: ${size}px; border-radius: ${Math.round(size * 0.235)}px;`;
+$: markSize = Math.round(size * 0.55);
+$: fontSize =
+ integration.initial && integration.initial.length > 1
+ ? Math.round(size * 0.36)
+ : Math.round(size * 0.48);
+</script>
+
+{#if integration.id === 'desktop'}
+ <span class={desktopTileClasses} style={tileStyle} aria-hidden="true">
+ <HarperMark size={markSize} title="" />
+ </span>
+{:else if integration.id === 'chrome'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <ChromeLogo />
+ </span>
+{:else if integration.id === 'firefox'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <FirefoxLogo />
+ </span>
+{:else if integration.id === 'vscode'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <CodeLogo />
+ </span>
+{:else if integration.id === 'neovim'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <NeovimLogo />
+ </span>
+{:else if integration.id === 'wordpress'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <WordPressLogo />
+ </span>
+{:else if integration.id === 'obsidian'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <ObsidianLogo />
+ </span>
+{:else if integration.id === 'zed'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <ZedLogo />
+ </span>
+{:else if integration.id === 'helix'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <HelixLogo />
+ </span>
+{:else if integration.id === 'emacs'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <EmacsLogo />
+ </span>
+{:else if integration.id === 'sublime'}
+ <span class={logoTileClasses} style={tileStyle} aria-hidden="true">
+ <SublimeLogo />
+ </span>
+{:else}
+ <span
+ class={monogramTileClasses}
+ style={`${tileStyle} --tile-bg: ${integration.color ?? '#1c1a16'}; --tile-fg: ${integration.fg ?? '#fff'}; --tile-font: ${fontSize}px;`}
+ aria-hidden="true"
+ >
+ {integration.initial ?? integration.name[0]}
+ </span>
+{/if}
diff --git a/packages/web/src/lib/marketing/MacWindow.svelte b/packages/web/src/lib/marketing/MacWindow.svelte
new file mode 100644
index 000000000..b9a219deb
--- /dev/null
+++ b/packages/web/src/lib/marketing/MacWindow.svelte
@@ -0,0 +1,28 @@
+<script lang="ts">
+export let title: string;
+export let dark = false;
+
+const windowBaseClasses =
+ 'relative overflow-hidden rounded-xl border shadow-[0_22px_50px_-18px_rgba(0,0,0,0.35),0_4px_10px_rgba(0,0,0,0.1),0_0_0_0.5px_rgba(0,0,0,0.04)]';
+$: windowClasses = dark
+ ? `${windowBaseClasses} border-white/10 bg-[#2b2d31] text-[#dcddde]`
+ : `${windowBaseClasses} border-black/20 bg-white text-black`;
+$: titlebarClasses = dark
+ ? 'flex h-[1.65rem] items-center gap-2 border-b border-white/10 bg-[#1e1f22] px-2.5'
+ : 'flex h-[1.65rem] items-center gap-2 border-b border-black/10 bg-linear-to-b from-[#fafafa] to-[#efece7] px-2.5';
+$: titleClasses = dark
+ ? 'mr-[2.1rem] flex-1 text-center text-[0.68rem] text-white/70'
+ : 'mr-[2.1rem] flex-1 text-center text-[0.68rem] text-black/55';
+</script>
+
+<div class={windowClasses}>
+ <div class={titlebarClasses}>
+ <div class="flex gap-1.5">
+ <span class="size-[0.55rem] rounded-full bg-[#ff5f57]"></span>
+ <span class="size-[0.55rem] rounded-full bg-[#febc2e]"></span>
+ <span class="size-[0.55rem] rounded-full bg-[#28c840]"></span>
+ </div>
+ <strong class={titleClasses}>{title}</strong>
+ </div>
+ <div class="relative min-h-40"><slot /></div>
+</div>
diff --git a/packages/web/src/lib/marketing/MailDesktopMockupWindow.svelte b/packages/web/src/lib/marketing/MailDesktopMockupWindow.svelte
new file mode 100644
index 000000000..83dc1315b
--- /dev/null
+++ b/packages/web/src/lib/marketing/MailDesktopMockupWindow.svelte
@@ -0,0 +1,26 @@
+<script lang="ts">
+import MacWindow from './MacWindow.svelte';
+import Squiggle from './Squiggle.svelte';
+import Suggestion from './Suggestion.svelte';
+</script>
+
+<div class="absolute top-[1.9rem] left-[4.4rem] z-3 w-[23.75rem] max-[620px]:static max-[620px]:w-full max-[620px]:transform-none" style="transform: rotate(1.5deg);">
+ <MacWindow title="Mail - Compose">
+ <div class="p-3.5 pb-12 text-[0.82rem]">
+ <div class="mb-1.5 flex gap-1.5 text-[0.72rem] text-black/70">
+ <span class="text-black/45">To:</span> [email protected]
+ </div>
+ <h3
+ class="!mt-0 !mb-2.5 border-b border-black/10 pb-2 text-[0.84rem] font-semibold text-black"
+ >
+ Re: Q3 marketing review
+ </h3>
+ <p class="!m-0 leading-[1.55]">
+ Thanks for sending these over, really <Squiggle>apreciate</Squiggle> the detail. I'll
+ loop in the design team and we can have a draft back to you by
+ <Squiggle color="#3a8dde">friday</Squiggle>.
+ </p>
+ <Suggestion word="apreciate" fix="appreciate" />
+ </div>
+ </MacWindow>
+</div>
diff --git a/packages/web/src/lib/marketing/MarketingDocSearch.svelte b/packages/web/src/lib/marketing/MarketingDocSearch.svelte
new file mode 100644
index 000000000..4455d37eb
--- /dev/null
+++ b/packages/web/src/lib/marketing/MarketingDocSearch.svelte
@@ -0,0 +1,128 @@
+<script lang="ts">
+import '@docsearch/css/dist/style.css';
+import docsearch from '@docsearch/js';
+import { onMount } from 'svelte';
+import { docSearchConfig } from './data';
+
+let container: HTMLDivElement;
+
+onMount(() => {
+ if (!container) {
+ return;
+ }
+
+ docsearch({
+ container,
+ ...docSearchConfig,
+ });
+});
+</script>
+
+<div class="marketing-docsearch" bind:this={container}></div>
+
+<style>
+.marketing-docsearch {
+ min-width: 11rem;
+}
+
+:global(.marketing-docsearch .DocSearch-Button) {
+ height: 2.5rem;
+ margin: 0;
+ border: 0.5px solid var(--marketing-line);
+ border-radius: 999px;
+ background: rgba(28, 26, 22, 0.04);
+ color: var(--marketing-ink-3);
+ box-shadow: none;
+ font-family: inherit;
+ padding: 0 0.75rem;
+}
+
+:global(.marketing-docsearch .DocSearch-Button:hover) {
+ background: rgba(28, 26, 22, 0.07);
+ box-shadow: none;
+ color: var(--marketing-ink);
+}
+
+:global(.marketing-docsearch .DocSearch-Button-Placeholder) {
+ padding: 0 0.65rem 0 0.15rem;
+ font-size: 1rem;
+ font-weight: 400;
+}
+
+:global(.marketing-docsearch .DocSearch-Search-Icon) {
+ width: 1.05rem;
+ height: 1.05rem;
+ color: var(--marketing-ink-3);
+ stroke-width: 2;
+}
+
+:global(.marketing-docsearch .DocSearch-Button-Keys) {
+ display: inline-flex;
+ align-items: center;
+ min-width: 2.25rem;
+ height: 1.35rem;
+ justify-content: center;
+ border: 0.5px solid var(--marketing-line);
+ border-radius: 0.3rem;
+ background: #fff;
+ color: var(--marketing-ink-2);
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.68rem;
+ font-weight: 700;
+}
+
+:global(.marketing-docsearch .DocSearch-Button-Keys::before) {
+ content: '⌘K';
+}
+
+:global(.marketing-docsearch .DocSearch-Button-Key) {
+ display: none;
+ top: 0;
+ width: auto;
+ min-width: 1.35rem;
+ height: 1.25rem;
+ padding: 0 0.32rem;
+ border: 0.5px solid var(--marketing-line);
+ border-radius: 0.25rem;
+ background: #fff;
+ box-shadow: none;
+ color: var(--marketing-ink-2);
+ font-family: "JetBrains Mono", monospace;
+ font-size: 0.62rem;
+}
+
+:global(.DocSearch-SearchBar) {
+ padding-bottom: calc(var(--docsearch-spacing) / 2);
+}
+
+:global(.DocSearch-Form:focus-within) {
+ outline: 2px solid #2a6bd8;
+ outline-offset: 2px;
+ box-shadow: none;
+}
+
+:global(.DocSearch-Input:focus),
+:global(.DocSearch-Input:focus-visible) {
+ border: 0 !important;
+ outline: 0 !important;
+ box-shadow: none !important;
+ -webkit-appearance: none;
+ appearance: none;
+}
+
+@media (max-width: 760px) {
+ .marketing-docsearch {
+ min-width: 0;
+ }
+
+ :global(.marketing-docsearch .DocSearch-Button) {
+ width: 2rem;
+ padding: 0;
+ }
+
+ :global(.marketing-docsearch .DocSearch-Button-Placeholder),
+ :global(.marketing-docsearch .DocSearch-Button-Keys) {
+ display: none;
+ }
+}
+</style>
diff --git a/packages/web/src/lib/marketing/MarketingFooter.svelte b/packages/web/src/lib/marketing/MarketingFooter.svelte
new file mode 100644
index 000000000..172618c4d
--- /dev/null
+++ b/packages/web/src/lib/marketing/MarketingFooter.svelte
@@ -0,0 +1,62 @@
+<script lang="ts">
+import { marketingLinks } from './data';
+import HarperMark from './HarperMark.svelte';
+</script>
+
+<footer class="border-t border-black/10 bg-cream text-black/50 dark:border-white/10 dark:bg-black dark:text-white/50">
+ <div class="mx-auto grid max-w-[77.5rem] grid-cols-[1.4fr_1fr_1fr_1fr] gap-10 px-10 pt-12 pb-7 max-[820px]:grid-cols-2 max-[820px]:px-4 max-[560px]:grid-cols-1">
+ <div>
+ <div class="flex items-center gap-2.5 text-black dark:text-white">
+ <HarperMark size={26} />
+ <strong class="text-sm">Harper</strong>
+ </div>
+ <p class="!mt-3.5 !mb-4 max-w-72 text-[0.84rem] leading-[1.55] text-black/70 dark:text-white/70">
+ The free, private, open-source grammar checker that lives on your device.
+ </p>
+ <div
+ class='inline-flex items-center gap-2 rounded-full border border-black/10 bg-white px-2.5 py-1.5 text-[0.68rem] text-black/70 dark:border-white/10 dark:bg-white/10 dark:text-white/70 [font-family:"JetBrains_Mono",monospace]'
+ >
+ <span class="size-2 rounded-full bg-green-700"></span>Apache-2.0 · v1.0
+ </div>
+ </div>
+
+ <div class="flex flex-col gap-2.5">
+ <h2 class='!m-0 py-0 text-[0.66rem] font-extrabold tracking-[0.14em] text-primary uppercase dark:text-primary-300 [font-family:"JetBrains_Mono",monospace]'>
+ Get Harper
+ </h2>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/desktop">Harper Desktop</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href={marketingLinks.chrome}>Chrome extension</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href={marketingLinks.vscode}>VS Code</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/integrations/obsidian">Obsidian plugin</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/get">All integrations</a>
+ </div>
+
+ <div class="flex flex-col gap-2.5">
+ <h2 class='!m-0 py-0 text-[0.66rem] font-extrabold tracking-[0.14em] text-primary uppercase dark:text-primary-300 [font-family:"JetBrains_Mono",monospace]'>
+ Resources
+ </h2>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/about">Documentation</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/rules">Rule reference</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/integrations/language-server">harper-ls</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/harperjs/introduction">harper.js</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href={marketingLinks.crates}>harper-core</a>
+ </div>
+
+ <div class="flex flex-col gap-2.5">
+ <h2 class='!m-0 py-0 text-[0.66rem] font-extrabold tracking-[0.14em] text-primary uppercase dark:text-primary-300 [font-family:"JetBrains_Mono",monospace]'>
+ Community
+ </h2>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href={marketingLinks.github}>GitHub</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href={marketingLinks.discord}>Discord</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/contributors/introduction">Contributing</a>
+ </div>
+ </div>
+
+ <div class="mx-auto flex max-w-[77.5rem] items-center justify-between gap-4 border-t border-black/10 px-10 py-4 text-[0.78rem] dark:border-white/10 max-[820px]:flex-col max-[820px]:items-start max-[820px]:px-4">
+ <span>An <a class="!text-black/70 hover:!text-black dark:!text-white/70 dark:hover:!text-white" href="https://automattic.com/">Automattic</a> open-source project.</span>
+ <div class="flex gap-4">
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href="/docs/about">Privacy</a>
+ <a class="!text-black/70 no-underline hover:!text-black hover:no-underline dark:!text-white/70 dark:hover:!text-white" href={marketingLinks.github}>License</a>
+ </div>
+ </div>
+</footer>
diff --git a/packages/web/src/lib/marketing/MarketingHeader.svelte b/packages/web/src/lib/marketing/MarketingHeader.svelte
new file mode 100644
index 000000000..67b2ff04f
--- /dev/null
+++ b/packages/web/src/lib/marketing/MarketingHeader.svelte
@@ -0,0 +1,146 @@
+<script lang="ts">
+import { onMount } from 'svelte';
+import Arrow from '$lib/components/Arrow.svelte';
+import DiscordLogo from '$lib/components/DiscordLogo.svelte';
+import GitHubLogo from '$lib/components/GitHubLogo.svelte';
+import { marketingLinks } from './data';
+import HarperMark from './HarperMark.svelte';
+import MarketingDocSearch from './MarketingDocSearch.svelte';
+
+export let active: 'home' | 'get' | 'desktop' | 'docs' | '' = '';
+
+let compact = false;
+let ctaPrimary = false;
+let mobileOpen = false;
+
+onMount(() => {
+ const compactAfter = 36;
+ const expandAtTop = 0;
+
+ const update = () => {
+ const y = window.scrollY;
+ if (!compact && y > compactAfter) {
+ compact = true;
+ } else if (compact && y <= expandAtTop) {
+ compact = false;
+ }
+ ctaPrimary = y > 360;
+ };
+
+ update();
+ window.addEventListener('scroll', update, { passive: true });
+ return () => window.removeEventListener('scroll', update);
+});
+</script>
+
+<header
+ class={`sticky top-0 z-40 border-b backdrop-blur-md transition duration-200 ease-out motion-reduce:transition-none ${
+ compact
+ ? 'border-black/10 bg-cream/90 shadow-[0_1px_0_rgba(0,0,0,0.04),0_8px_24px_-20px_rgba(0,0,0,0.18)] dark:border-white/10 dark:bg-black/90'
+ : 'border-transparent bg-cream/75 dark:bg-black/75'
+ }`}
+>
+ <div
+ class={`mx-auto grid max-w-[87.5rem] grid-cols-[1fr_auto_1fr] items-center gap-6 px-10 transition-[padding] duration-200 motion-reduce:transition-none max-[900px]:grid-cols-[1fr_auto] max-[900px]:px-4 ${
+ compact ? 'py-1.5' : 'py-[1.15rem]'
+ }`}
+ >
+ <a
+ class="inline-flex items-center gap-3 !text-black no-underline transition-[gap] duration-200 motion-reduce:transition-none dark:!text-white [&_.harper-mark]:transition-[width,height] [&_.harper-mark]:duration-200"
+ href="/"
+ aria-label="Harper home"
+ >
+ <HarperMark size={compact ? 24 : 30} />
+ <strong class="text-lg font-bold tracking-normal transition-[font-size] duration-200 motion-reduce:transition-none">Harper</strong>
+ </a>
+
+ <nav
+ class="flex items-center gap-3 justify-self-center transition-[gap] duration-200 motion-reduce:transition-none max-[900px]:hidden"
+ aria-label="Marketing navigation"
+ >
+ <a
+ class={`rounded-lg px-3 py-2 text-[0.94rem] font-semibold !text-black no-underline transition-[background,padding,font-size] duration-200 hover:bg-black/5 hover:no-underline motion-reduce:transition-none dark:!text-white dark:hover:bg-white/10 ${
+ compact ? 'py-1.5' : ''
+ } ${active === 'docs' ? 'font-bold' : ''}`}
+ href="/docs/about">Documentation</a
+ >
+ <a
+ class={`inline-flex h-[2.125rem] items-center gap-2 rounded-lg border-[0.5px] border-black/25 px-3.5 py-0 !text-black no-underline transition-[background,border-color,color,height,padding,gap,transform] duration-200 hover:translate-y-[-0.5px] hover:no-underline motion-reduce:transition-none dark:border-white/25 dark:!text-white [&_path]:fill-none [&_path]:stroke-current [&_path]:stroke-[1.5] [&_path]:[stroke-linecap:round] [&_path]:[stroke-linejoin:round] [&_svg]:size-3 ${
+ compact ? 'h-8 px-3' : ''
+ } ${
+ ctaPrimary
+ ? 'border-primary bg-primary !text-white hover:!text-white dark:border-primary-300 dark:bg-primary-300 dark:!text-black dark:hover:!text-black'
+ : ''
+ } ${active === 'get' ? 'font-bold' : ''}`}
+ href="/get"
+ >
+ <span>Get Harper</span>
+ <Arrow />
+ </a>
+ </nav>
+
+ <div
+ class={`flex items-center justify-end gap-1.5 transition-[gap] duration-200 motion-reduce:transition-none [&_.marketing-docsearch]:transition-[min-width] [&_.marketing-docsearch]:duration-200 [&_.marketing-docsearch]:motion-reduce:transition-none [&_.marketing-docsearch_.DocSearch-Button]:transition-[background,color,height,padding,min-width] [&_.marketing-docsearch_.DocSearch-Button]:duration-200 [&_.marketing-docsearch_.DocSearch-Button-Keys]:transition-[width,height,min-width,font-size] [&_.marketing-docsearch_.DocSearch-Button-Keys]:duration-200 [&_.marketing-docsearch_.DocSearch-Button-Placeholder]:transition-[padding,font-size] [&_.marketing-docsearch_.DocSearch-Button-Placeholder]:duration-200 [&_.marketing-docsearch_.DocSearch-Search-Icon]:transition-[width,height,min-width,font-size] [&_.marketing-docsearch_.DocSearch-Search-Icon]:duration-200 max-[900px]:[&_.marketing-docsearch]:hidden ${
+ compact
+ ? '[&_.marketing-docsearch]:min-w-[10.25rem] [&_.marketing-docsearch_.DocSearch-Button]:h-[2.125rem] [&_.marketing-docsearch_.DocSearch-Button]:px-2.5 [&_.marketing-docsearch_.DocSearch-Button-Keys]:h-[1.18rem] [&_.marketing-docsearch_.DocSearch-Button-Keys]:min-w-8 [&_.marketing-docsearch_.DocSearch-Button-Keys]:text-[0.62rem] [&_.marketing-docsearch_.DocSearch-Button-Placeholder]:pr-2 [&_.marketing-docsearch_.DocSearch-Button-Placeholder]:text-[0.92rem] [&_.marketing-docsearch_.DocSearch-Search-Icon]:size-[0.95rem]'
+ : ''
+ }`}
+ >
+ <a
+ class="inline-flex size-8 items-center justify-center rounded-full !text-black/70 no-underline transition-[background,color,width,height] duration-200 hover:bg-black/5 hover:!text-black hover:no-underline motion-reduce:transition-none dark:!text-white/70 dark:hover:bg-white/10 dark:hover:!text-white max-[900px]:hidden [&_svg]:size-4 [&_svg]:fill-current [&_svg]:transition-[width,height] [&_svg]:duration-200"
+ href={marketingLinks.github}
+ aria-label="GitHub"
+ >
+ <GitHubLogo />
+ </a>
+ <a
+ class="inline-flex size-8 items-center justify-center rounded-full !text-black/70 no-underline transition-[background,color,width,height] duration-200 hover:bg-black/5 hover:!text-black hover:no-underline motion-reduce:transition-none dark:!text-white/70 dark:hover:bg-white/10 dark:hover:!text-white max-[900px]:hidden [&_svg]:size-4 [&_svg]:fill-current [&_svg]:transition-[width,height] [&_svg]:duration-200"
+ href={marketingLinks.discord}
+ aria-label="Discord"
+ >
+ <DiscordLogo />
+ </a>
+ <MarketingDocSearch />
+ <button
+ class="hidden size-8 flex-col items-center justify-center gap-1 rounded-full border-0 bg-transparent text-black transition-[width,height,gap] duration-200 motion-reduce:transition-none dark:text-white max-[900px]:inline-flex [&_span]:h-[1.5px] [&_span]:w-4 [&_span]:rounded-full [&_span]:bg-current [&_span]:transition-[width,height] [&_span]:duration-200"
+ type="button"
+ aria-label="Toggle navigation"
+ aria-expanded={mobileOpen}
+ on:click={() => (mobileOpen = !mobileOpen)}
+ >
+ <span></span>
+ <span></span>
+ </button>
+ </div>
+ </div>
+
+ {#if mobileOpen}
+ <div class="hidden gap-1 px-4 pb-4 max-[900px]:grid">
+ <a
+ class="rounded-xl bg-white/65 px-4 py-3 font-bold !text-black no-underline hover:no-underline dark:bg-white/10 dark:!text-white"
+ href="/docs/about"
+ on:click={() => (mobileOpen = false)}>Documentation</a
+ >
+ <a
+ class="rounded-xl bg-white/65 px-4 py-3 font-bold !text-black no-underline hover:no-underline dark:bg-white/10 dark:!text-white"
+ href="/get"
+ on:click={() => (mobileOpen = false)}>Get Harper</a
+ >
+ <a
+ class="rounded-xl bg-white/65 px-4 py-3 font-bold !text-black no-underline hover:no-underline dark:bg-white/10 dark:!text-white"
+ href="/desktop"
+ on:click={() => (mobileOpen = false)}>Harper Desktop</a
+ >
+ <a
+ class="rounded-xl bg-white/65 px-4 py-3 font-bold !text-black no-underline hover:no-underline dark:bg-white/10 dark:!text-white"
+ href={marketingLinks.github}
+ on:click={() => (mobileOpen = false)}>GitHub</a
+ >
+ <a
+ class="rounded-xl bg-white/65 px-4 py-3 font-bold !text-black no-underline hover:no-underline dark:bg-white/10 dark:!text-white"
+ href={marketingLinks.discord}
+ on:click={() => (mobileOpen = false)}>Discord</a
+ >
+ </div>
+ {/if}
+</header>
diff --git a/packages/web/src/lib/marketing/NotesDesktopMockupWindow.svelte b/packages/web/src/lib/marketing/NotesDesktopMockupWindow.svelte
new file mode 100644
index 000000000..f3a76879c
--- /dev/null
+++ b/packages/web/src/lib/marketing/NotesDesktopMockupWindow.svelte
@@ -0,0 +1,31 @@
+<script lang="ts">
+import MacWindow from './MacWindow.svelte';
+import Squiggle from './Squiggle.svelte';
+import Suggestion from './Suggestion.svelte';
+</script>
+
+<div class="absolute top-2.5 right-[-0.6rem] z-2 w-70 max-[620px]:static max-[620px]:w-full max-[620px]:transform-none" style="transform: rotate(3.5deg);">
+ <MacWindow title="Notes">
+ <div class="flex min-h-46 bg-[#fffdf5] text-black">
+ <aside
+ class="flex w-23 shrink-0 flex-col gap-1 border-r border-black/10 bg-[#f6f0d8] p-2 text-[0.62rem]"
+ >
+ <strong class="rounded-sm bg-[#febc2e] p-1.5 text-[#3a2a08]">Birthday dinner</strong>
+ <span class="text-black/50">Reserve table at Aug...</span>
+ </aside>
+ <section class="relative p-3 pb-12 text-[0.78rem]">
+ <h3
+ class="!mt-0 !mb-2.5 border-b border-black/10 pb-2 text-[0.84rem] font-semibold text-black"
+ >
+ Birthday dinner - saturday
+ </h3>
+ <small class="mb-2 block text-black/45">Today at 11:08 AM</small>
+ <p class="!m-0 leading-[1.55]">
+ Reserve table at Augusto's for 8 pm. Pick up a cake on the way,
+ <Squiggle>noone</Squiggle> is allergic to nuts.
+ </p>
+ <Suggestion word="noone" fix="no one" />
+ </section>
+ </div>
+ </MacWindow>
+</div>
diff --git a/packages/web/src/lib/marketing/PillButton.svelte b/packages/web/src/lib/marketing/PillButton.svelte
new file mode 100644
index 000000000..13869995b
--- /dev/null
+++ b/packages/web/src/lib/marketing/PillButton.svelte
@@ -0,0 +1,38 @@
+<script lang="ts">
+export let href = '';
+export let kind: 'primary' | 'secondary' = 'primary';
+export let size: 'md' | 'lg' = 'md';
+export let disabled = false;
+export let label = '';
+
+const baseClasses =
+ 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full font-bold no-underline transition duration-150 ease-out hover:-translate-y-px hover:no-underline';
+const disabledClasses = 'cursor-default opacity-70 hover:translate-y-0';
+const iconClasses = '[&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:fill-current';
+
+const sizes = {
+ md: 'h-9 px-4 text-[0.82rem]',
+ lg: 'h-11 px-5 text-sm',
+};
+
+const variants = {
+ primary:
+ 'border border-black/40 bg-black !text-white dark:border-white/40 dark:bg-white dark:!text-black',
+ secondary:
+ 'border border-black/10 bg-black/5 !text-black dark:border-white/15 dark:bg-white/10 dark:!text-white',
+};
+
+$: classes = `${baseClasses} ${sizes[size]} ${variants[kind]} ${disabled ? disabledClasses : ''} ${iconClasses}`;
+</script>
+
+{#if disabled}
+ <span class={classes} role="link" aria-disabled="true" aria-label={label || undefined}>
+ <slot name="icon" />
+ <slot />
+ </span>
+{:else}
+ <a class={classes} {href} aria-label={label || undefined}>
+ <slot name="icon" />
+ <slot />
+ </a>
+{/if}
diff --git a/packages/web/src/lib/marketing/PrivacySpeedCards.svelte b/packages/web/src/lib/marketing/PrivacySpeedCards.svelte
new file mode 100644
index 000000000..3196b2af1
--- /dev/null
+++ b/packages/web/src/lib/marketing/PrivacySpeedCards.svelte
@@ -0,0 +1,63 @@
+<script lang="ts">
+import Graph from '$lib/components/Graph.svelte';
+
+export let desktop = false;
+</script>
+
+<div class="grid grid-cols-1 gap-7 md:grid-cols-2">
+ <article
+ class="flex min-h-92 flex-col gap-4 overflow-hidden rounded-2xl border border-black/10 bg-white p-6 text-black dark:border-white/10 dark:bg-black dark:text-white md:p-8"
+ >
+ <h2 class="m-0 py-0 text-[clamp(2rem,4vw,2.25rem)] leading-[1.08] font-semibold tracking-normal">
+ {desktop ? 'Your words never leave your device.' : 'Harper is completely private.'}
+ </h2>
+ <p class="!m-0 text-sm leading-relaxed text-black/70 dark:text-white/70">
+ {#if desktop}
+ Like the rest of Harper, Harper Desktop runs entirely on your Mac. No cloud round-trips,
+ no telemetry, no account, no LLM in the loop.
+ {:else}
+ Every check happens locally. No cloud round-trips, no telemetry, no LLM in the loop.
+ That means certainty that we never train models on your writing.
+ {/if}
+ </p>
+ <div
+ class='mt-auto flex flex-wrap items-center gap-3 text-xs text-black/50 dark:text-white/50 [font-family:"JetBrains_Mono",monospace] md:flex-nowrap'
+ aria-label="Your writing stays on your device"
+ >
+ <span
+ class="inline-flex whitespace-nowrap rounded-full border border-primary bg-primary-100 px-3.5 py-2 text-black"
+ >
+ Your {desktop ? 'Mac' : 'device'}
+ </span>
+ <svg
+ class="h-6 w-16 shrink-0 fill-none stroke-current stroke-[1.4] [stroke-linecap:round] [stroke-linejoin:round]"
+ viewBox="0 0 62 22"
+ aria-hidden="true"
+ >
+ <path d="M2 11 H22" />
+ <path d="M40 11 H54" />
+ <path d="M50 6 L56 11 L50 16" />
+ <circle class="fill-white stroke-primary stroke-[1.6] dark:fill-black" cx="31" cy="11" r="9" />
+ <path class="stroke-primary stroke-[1.6]" d="M25 17 L37 5" />
+ </svg>
+ <span
+ class="inline-flex whitespace-nowrap rounded-full border border-black/10 bg-transparent px-3.5 py-2 text-black/70 line-through dark:border-white/15 dark:text-white/70"
+ >
+ The cloud
+ </span>
+ </div>
+ </article>
+
+ <article
+ class="flex min-h-92 flex-col gap-4 overflow-hidden rounded-2xl bg-black p-6 text-white dark:bg-white dark:text-black md:p-8"
+ >
+ <h2 class="m-0 py-0 text-[clamp(2rem,4vw,2.25rem)] leading-[1.08] font-semibold tracking-normal">
+ Suggestions in under 10ms.
+ </h2>
+ <p class="!m-0 text-sm leading-relaxed text-white/70 dark:text-black/70">
+ Harper runs locally and is built for speed. You get a feedback loop that keeps up with
+ your typing, without waiting for a server.
+ </p>
+ <Graph />
+ </article>
+</div>
diff --git a/packages/web/src/lib/marketing/SimpleFAQ.svelte b/packages/web/src/lib/marketing/SimpleFAQ.svelte
new file mode 100644
index 000000000..9b42ce3b2
--- /dev/null
+++ b/packages/web/src/lib/marketing/SimpleFAQ.svelte
@@ -0,0 +1,31 @@
+<script lang="ts">
+type FaqItem = {
+ q: string;
+ a: string;
+};
+
+export let items: FaqItem[] = [];
+export let title = 'FAQs';
+</script>
+
+<section class="border-t border-black/10 bg-cream py-20 dark:border-white/10 dark:bg-black">
+ <div class="mx-auto max-w-180 px-4 text-center md:px-14">
+ <h2
+ class="m-0 py-0 text-[clamp(2.2rem,5vw,2.5rem)] leading-[1.08] font-semibold tracking-normal text-black dark:text-white"
+ >
+ {title}
+ </h2>
+ <div class="mt-8">
+ {#each items as item}
+ <div class="border-t border-black/10 py-5 text-left last:border-b dark:border-white/10">
+ <h3 class="!m-0 py-0 text-base font-semibold tracking-normal text-black dark:text-white">
+ {item.q}
+ </h3>
+ <p class="!mt-1.5 !mb-0 text-base leading-relaxed text-black/70 dark:text-white/70">
+ {item.a}
+ </p>
+ </div>
+ {/each}
+ </div>
+ </div>
+</section>
diff --git a/packages/web/src/lib/marketing/SlackDesktopMockupWindow.svelte b/packages/web/src/lib/marketing/SlackDesktopMockupWindow.svelte
new file mode 100644
index 000000000..96e2922e4
--- /dev/null
+++ b/packages/web/src/lib/marketing/SlackDesktopMockupWindow.svelte
@@ -0,0 +1,23 @@
+<script lang="ts">
+import MacWindow from './MacWindow.svelte';
+import Squiggle from './Squiggle.svelte';
+import Suggestion from './Suggestion.svelte';
+</script>
+
+<div class="absolute bottom-0 left-[-0.6rem] w-80 max-[620px]:static max-[620px]:w-full max-[620px]:transform-none" style="transform: rotate(-4deg);">
+ <MacWindow title="Slack - #launches" dark>
+ <div class="flex min-h-[9.6rem] gap-2.5 p-3 pr-3.5 pb-12 text-[0.82rem]">
+ <div
+ class="flex size-[1.65rem] shrink-0 items-center justify-center rounded-[0.45rem] bg-[#4a154b] text-xs font-extrabold text-white"
+ >
+ J
+ </div>
+ <p class="!m-0 leading-[1.55]">
+ <b class="mr-1.5">Jordan</b><small class="text-white/45">2:14 PM</small><br />
+ heads up: the deploy is taking <Squiggle>alot</Squiggle> longer
+ <Squiggle>then</Squiggle> expected. might push to <Squiggle>tommorrow</Squiggle>.
+ </p>
+ <Suggestion word="alot" fix="a lot" />
+ </div>
+ </MacWindow>
+</div>
diff --git a/packages/web/src/lib/marketing/Squiggle.svelte b/packages/web/src/lib/marketing/Squiggle.svelte
new file mode 100644
index 000000000..138aa5d2c
--- /dev/null
+++ b/packages/web/src/lib/marketing/Squiggle.svelte
@@ -0,0 +1,44 @@
+<script lang="ts">
+export let color = '#c96442';
+export let thickness = 2;
+</script>
+
+<span
+ class="squiggle"
+ style:--squiggle-color={color}
+ style:--squiggle-thickness={`${thickness}px`}
+>
+ <slot />
+</span>
+
+<style>
+.squiggle {
+ --squiggle-color: #c96442;
+ --squiggle-thickness: 2px;
+ position: relative;
+ display: inline-block;
+ color: inherit;
+ padding-bottom: 0.16em;
+ text-decoration: none;
+ vertical-align: baseline;
+}
+
+.squiggle::after {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ height: max(4px, calc(var(--squiggle-thickness) * 2));
+ background: var(--squiggle-color);
+ content: '';
+ pointer-events: none;
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q1 0 2 3 T4 3 T6 3 T8 3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q1 0 2 3 T4 3 T6 3 T8 3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
+ -webkit-mask-position: left bottom;
+ mask-position: left bottom;
+ -webkit-mask-repeat: repeat-x;
+ mask-repeat: repeat-x;
+ -webkit-mask-size: 8px 100%;
+ mask-size: 8px 100%;
+}
+</style>
diff --git a/packages/web/src/lib/marketing/Suggestion.svelte b/packages/web/src/lib/marketing/Suggestion.svelte
new file mode 100644
index 000000000..234297aba
--- /dev/null
+++ b/packages/web/src/lib/marketing/Suggestion.svelte
@@ -0,0 +1,15 @@
+<script lang="ts">
+import HarperMark from './HarperMark.svelte';
+
+export let word: string;
+export let fix: string;
+</script>
+
+<div
+ class='absolute right-3 bottom-2.5 inline-flex items-center gap-1.5 rounded-lg border border-black/10 bg-white px-2 py-1 text-[0.68rem] text-black shadow-[0_6px_16px_rgba(0,0,0,0.16)] dark:border-white/10 dark:bg-black dark:text-white'
+>
+ <HarperMark size={11} />
+ <del class='text-black/50 [font-family:"JetBrains_Mono",monospace] dark:text-white/50'>{word}</del>
+ <span class="text-black/50 dark:text-white/50">→</span>
+ <strong class='[font-family:"JetBrains_Mono",monospace]'>{fix}</strong>
+</div>
diff --git a/packages/web/src/lib/marketing/SveltePressGlobalLayout.svelte b/packages/web/src/lib/marketing/SveltePressGlobalLayout.svelte
new file mode 100644
index 000000000..26cdf68d7
--- /dev/null
+++ b/packages/web/src/lib/marketing/SveltePressGlobalLayout.svelte
@@ -0,0 +1,19 @@
+<script>
+import DefaultGlobalLayout from '@sveltepress/theme-default/GlobalLayout.svelte';
+import { page } from '$app/stores';
+
+const { children, ...rest } = $props();
+
+const marketingRoutes = new Set(['/', '/get', '/desktop']);
+const isMarketingRoute = $derived(
+ marketingRoutes.has($page.url.pathname.replace(/\/$/, '') || '/'),
+);
+</script>
+
+{#if isMarketingRoute}
+ {@render children?.()}
+{:else}
+ <DefaultGlobalLayout {...rest}>
+ {@render children?.()}
+ </DefaultGlobalLayout>
+{/if}
diff --git a/packages/web/src/lib/marketing/SveltePressPageLayout.svelte b/packages/web/src/lib/marketing/SveltePressPageLayout.svelte
new file mode 100644
index 000000000..808fa8387
--- /dev/null
+++ b/packages/web/src/lib/marketing/SveltePressPageLayout.svelte
@@ -0,0 +1,19 @@
+<script>
+import DefaultPageLayout from '@sveltepress/theme-default/PageLayout.svelte';
+import { page } from '$app/stores';
+
+const { fm, children, heroImage, ...rest } = $props();
+
+const marketingRoutes = new Set(['/', '/get', '/desktop']);
+const isMarketingRoute = $derived(
+ marketingRoutes.has($page.url.pathname.replace(/\/$/, '') || '/'),
+);
+</script>
+
+{#if isMarketingRoute}
+ {@render children?.()}
+{:else}
+ <DefaultPageLayout {fm} {heroImage} {...rest}>
+ {@render children?.()}
+ </DefaultPageLayout>
+{/if}
diff --git a/packages/web/src/lib/marketing/data.ts b/packages/web/src/lib/marketing/data.ts
new file mode 100644
index 000000000..d7b0016d8
--- /dev/null
+++ b/packages/web/src/lib/marketing/data.ts
@@ -0,0 +1,259 @@
+export const marketingLinks = {
+ github: 'https://github.com/automattic/harper',
+ discord: 'https://discord.gg/invite/JBqcAaKrzQ',
+ chrome:
+ 'https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb?utm_source=harper-website&utm_medium=referral',
+ firefox: 'https://addons.mozilla.org/en-US/firefox/addon/private-grammar-checker-harper/',
+ vscode: 'https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper',
+ crates: 'https://crates.io/crates/harper-core',
+};
+
+export type Integration = {
+ id: string;
+ name: string;
+ desc: string;
+ href: string;
+ category: string;
+ categoryLabel: string;
+ tag?: string;
+ platform?: string;
+ cta: 'install' | 'docs';
+ color?: string;
+ fg?: string;
+ initial?: string;
+ community?: boolean;
+};
+
+export type IntegrationCategory = {
+ id: string;
+ label: string;
+ blurb: string;
+ items: Omit<Integration, 'category' | 'categoryLabel'>[];
+};
+
+export const integrationCategories: IntegrationCategory[] = [
+ {
+ id: 'apps',
+ label: 'Apps',
+ blurb: 'Use Harper in the apps you write in.',
+ items: [
+ {
+ id: 'desktop',
+ name: 'Harper Desktop',
+ tag: 'BETA',
+ desc: 'macOS, every text field, system-wide.',
+ href: '/desktop',
+ platform: 'macOS 14+',
+ cta: 'install',
+ color: '#1c1a16',
+ fg: '#fbe8c2',
+ initial: 'H',
+ },
+ {
+ id: 'obsidian',
+ name: 'Obsidian',
+ desc: 'Inline checks in your vault.',
+ href: '/docs/integrations/obsidian',
+ platform: 'Obsidian plugin',
+ cta: 'install',
+ },
+ {
+ id: 'wordpress',
+ name: 'WordPress',
+ desc: 'Block-editor plugin.',
+ href: '/docs/integrations/wordpress',
+ platform: 'WordPress 6.2+',
+ cta: 'install',
+ color: '#21759b',
+ fg: '#fff',
+ initial: 'W',
+ },
+ ],
+ },
+ {
+ id: 'browsers',
+ label: 'Browsers',
+ blurb: 'Checks every textarea on the web.',
+ items: [
+ {
+ id: 'chrome',
+ name: 'Chrome',
+ desc: 'Chrome Web Store extension.',
+ href: marketingLinks.chrome,
+ platform: 'Chrome, Edge, Brave',
+ cta: 'install',
+ color: '#4285f4',
+ fg: '#fff',
+ initial: 'C',
+ },
+ {
+ id: 'firefox',
+ name: 'Firefox',
+ desc: 'AMO add-on.',
+ href: marketingLinks.firefox,
+ platform: 'Firefox 102+',
+ cta: 'install',
+ color: '#ff7139',
+ fg: '#fff',
+ initial: 'F',
+ },
+ ],
+ },
+ {
+ id: 'editors',
+ label: 'Code editors',
+ blurb: 'Real grammar checking for prose-in-code.',
+ items: [
+ {
+ id: 'vscode',
+ name: 'Visual Studio Code',
+ desc: 'Marketplace extension.',
+ href: marketingLinks.vscode,
+ platform: 'VS Code, Cursor',
+ cta: 'install',
+ color: '#3e8cff',
+ fg: '#fff',
+ initial: 'V',
+ },
+ {
+ id: 'neovim',
+ name: 'Neovim',
+ desc: 'LSP plugin.',
+ href: '/docs/integrations/neovim',
+ platform: 'Neovim 0.10+',
+ cta: 'docs',
+ color: '#57a143',
+ fg: '#fff',
+ initial: 'N',
+ },
+ {
+ id: 'zed',
+ name: 'Zed',
+ desc: 'Native language server.',
+ href: '/docs/integrations/zed',
+ platform: 'Zed editor',
+ cta: 'docs',
+ color: '#ce5b1a',
+ fg: '#fff',
+ initial: 'Z',
+ community: true,
+ },
+ {
+ id: 'helix',
+ name: 'Helix',
+ desc: 'LSP integration.',
+ href: '/docs/integrations/helix',
+ platform: 'Helix editor',
+ cta: 'docs',
+ color: '#5b6e83',
+ fg: '#fff',
+ initial: 'H',
+ community: true,
+ },
+ {
+ id: 'emacs',
+ name: 'Emacs',
+ desc: 'flycheck-harper.',
+ href: '/docs/integrations/emacs',
+ platform: 'Emacs 28+',
+ cta: 'docs',
+ color: '#7356a5',
+ fg: '#fff',
+ initial: 'E',
+ community: true,
+ },
+ {
+ id: 'sublime',
+ name: 'Sublime Text',
+ desc: 'Package Control package.',
+ href: '/docs/integrations/sublime-text',
+ platform: 'Sublime Text 4',
+ cta: 'docs',
+ color: '#ff9800',
+ fg: '#1c1a16',
+ initial: 'S',
+ community: true,
+ },
+ ],
+ },
+ {
+ id: 'developers',
+ label: 'For developers',
+ blurb: 'Embed Harper anywhere you ship code.',
+ items: [
+ {
+ id: 'ls',
+ name: 'Language server',
+ desc: 'harper-ls, talks LSP.',
+ href: '/docs/integrations/language-server',
+ platform: 'LSP, any editor',
+ cta: 'docs',
+ color: '#1c1a16',
+ fg: '#d0c7b3',
+ initial: '{}',
+ },
+ {
+ id: 'js',
+ name: 'JavaScript library',
+ desc: 'npm i harper.js',
+ href: '/docs/harperjs/introduction',
+ platform: 'Node, Bun, Browser',
+ cta: 'docs',
+ color: '#f7df1e',
+ fg: '#1c1a16',
+ initial: 'JS',
+ },
+ {
+ id: 'rust',
+ name: 'Rust crate',
+ desc: 'crates.io / harper-core',
+ href: marketingLinks.crates,
+ platform: 'Rust crate',
+ cta: 'docs',
+ color: '#b06a1b',
+ fg: '#fff',
+ initial: 'R',
+ },
+ ],
+ },
+];
+
+export const integrations: Integration[] = integrationCategories.flatMap((category) =>
+ category.items.map((item) => ({
+ ...item,
+ category: category.id,
+ categoryLabel: category.label,
+ })),
+);
+
+export const featuredIntegrationIds = [
+ 'desktop',
+ 'chrome',
+ 'vscode',
+ 'obsidian',
+ 'firefox',
+ 'neovim',
+ 'wordpress',
+ 'zed',
+];
+
+export const compatibilityApps = [
+ { id: 'gmail', name: 'Gmail' },
+ { id: 'imessage', name: 'iMessage' },
+ { id: 'whatsapp', name: 'WhatsApp' },
+ { id: 'slack', name: 'Slack' },
+ { id: 'discord', name: 'Discord' },
+ { id: 'telegram', name: 'Telegram' },
+ { id: 'notion', name: 'Notion' },
+ { id: 'obsidian', name: 'Obsidian' },
+ { id: 'linear', name: 'Linear' },
+ { id: 'github', name: 'GitHub' },
+ { id: 'things', name: 'Things' },
+ { id: 'scrivener', name: 'Scrivener' },
+];
+
+export const docSearchConfig = {
+ indexName: 'Documentation',
+ appId: 'YIV4D9QMR0',
+ apiKey: 'ff521ad7f129e4f4defe97dce3c923ad',
+};
diff --git a/packages/web/src/routes/+layout.svelte b/packages/web/src/routes/+layout.svelte
index 3788e6bda..54a1aead6 100644
--- a/packages/web/src/routes/+layout.svelte
+++ b/packages/web/src/routes/+layout.svelte
@@ -5,6 +5,7 @@ import { Link } from 'components';
import posthog from 'posthog-js';
import { onMount } from 'svelte';
import { browser } from '$app/environment';
+import { page } from '$app/stores';
import AutomatticLogo from '$lib/components/AutomatticLogo.svelte';
import GutterCenter from '$lib/components/GutterCenter.svelte';
@@ -20,22 +21,30 @@ onMount(() => {
let names = ['Grammar Guru', 'Grammar Checker', 'Grammar Savior'];
let displayName = names[Math.floor(Math.random() * names.length)];
+
+$: isMarketingRoute = ['/', '/get', '/desktop'].includes(
+ $page.url.pathname.replace(/\/$/, '') || '/',
+);
</script>
-<div class="flex flex-col h-full">
- <div class="flex-1">
- <GutterCenter>
- <slot />
- </GutterCenter>
- </div>
+{#if isMarketingRoute}
+ <slot />
+{:else}
+ <div class="flex flex-col h-full">
+ <div class="flex-1">
+ <GutterCenter>
+ <slot />
+ </GutterCenter>
+ </div>
- <div class="w-full flex flex-row justify-center h-12">
- <Link href="https://automattic.com/">
- <div class="flex items-center">
- An
- <div class="inline-block"><AutomatticLogo height="32px" width="140px" /></div>
- {displayName}
- </div>
- </Link>
+ <div class="w-full flex flex-row justify-center h-12">
+ <Link href="https://automattic.com/">
+ <div class="flex items-center">
+ An
+ <div class="inline-block"><AutomatticLogo height="32px" width="140px" /></div>
+ {displayName}
+ </div>
+ </Link>
+ </div>
</div>
-</div>
+{/if}
diff --git a/packages/web/src/routes/+page.svelte b/packages/web/src/routes/+page.svelte
index adc323812..cb5ec021d 100644
--- a/packages/web/src/routes/+page.svelte
+++ b/packages/web/src/routes/+page.svelte
@@ -5,435 +5,300 @@ export const frontmatter = {
</script>
<script lang="ts">
-import ChromeLogo from '$lib/components/ChromeLogo.svelte';
-import CodeLogo from '$lib/components/CodeLogo.svelte';
-import { LazyEditor } from 'harper-editor';
-import FirefoxLogo from '$lib/components/FirefoxLogo.svelte';
-import GitHubLogo from '$lib/components/GitHubLogo.svelte';
-import ObsidianLogo from '$lib/components/ObsidianLogo.svelte';
-import Logo from '$lib/components/Logo.svelte';
-import Graph from '$lib/components/Graph.svelte';
-import Section from '$lib/components/Section.svelte';
-import TestimonialCollection from '$lib/components/TestimonialCollection.svelte';
-import EmacsLogo from '$lib/components/EmacsLogo.svelte';
-import HelixLogo from '$lib/components/HelixLogo.svelte';
-import NeovimLogo from '$lib/components/NeovimLogo.svelte';
-import SublimeLogo from '$lib/components/SublimeLogo.svelte';
-import WordPressLogo from '$lib/components/WordPressLogo.svelte';
-import ZedLogo from '$lib/components/ZedLogo.svelte';
-import EdgeLogo from '$lib/components/EdgeLogo.svelte';
-import { Card, Collapsible, Link } from 'components';
import { browser } from '$app/environment';
-import demoText from '../../../../demo.md?raw';
+import Arrow from '$lib/components/Arrow.svelte';
+import TestimonialCollection from '$lib/components/TestimonialCollection.svelte';
+import { createEditorLinter } from '$lib/createEditorLinter';
+import FaqSection from '$lib/marketing/FaqSection.svelte';
+import HarperMark from '$lib/marketing/HarperMark.svelte';
+import IntegrationTile from '$lib/marketing/IntegrationTile.svelte';
+import MarketingFooter from '$lib/marketing/MarketingFooter.svelte';
+import MarketingHeader from '$lib/marketing/MarketingHeader.svelte';
+import PillButton from '$lib/marketing/PillButton.svelte';
+import PrivacySpeedCards from '$lib/marketing/PrivacySpeedCards.svelte';
+import { featuredIntegrationIds, integrations, marketingLinks } from '$lib/marketing/data';
+import { LazyEditor } from 'harper-editor';
import type { Linter } from 'harper.js';
import { onMount } from 'svelte';
-import { createEditorLinter } from '$lib/createEditorLinter';
-
-/**
- * @param {string} keyword
- */
-function agentHas(keyword: string): boolean | undefined {
- if (!browser) {
- return false;
- }
-
- return navigator.userAgent.toLowerCase().includes(keyword.toLowerCase());
-}
+import demoText from '../../../../demo.md?raw';
+const editorContent = demoText.trim();
+let linter: Linter | null = null;
const testimonials = [
- {
- authorName: "Rich Edmonds",
- authorSubtitle: "Lead PC Hardware Editor, XDA Developers",
- testimonial: "Written in Rust, everything is processed in an instant and I find it neat to see the browser extension highlight words as I type, effectively checking per letter. And no account is required, allowing me to get up and running in no time.",
- source: "https://www.xda-developers.com/ditched-grammarly-for-this-amazing-open-source-alternative/"
- },
- {
- authorName: "Justin Pot",
- authorSubtitle: "Tech journalist, Lifehacker",
- testimonial: "Obsidian is my favorite productivity app, and Harper is a grammar checking tool that works well with it.",
- source: "https://lifehacker.com/tech/harper-offline-alternative-to-grammarly?test_uuid=02DN02BmbRCcASIX6xMQtY9&test_variant=B"
- },
- {
- authorName: "Filip Cujanovic",
- authorSubtitle: "Chrome Extension Review",
- testimonial: "Awesome extension! It's privacy focused, that means that every check it done locally on your computer, there is no server where your data goes! And because of that it's blazingly fast compared to Grammarly.",
- source: "https://chromewebstore.google.com/detail/private-grammar-checker-h/lodbfhdipoipcjmlebjbgmmgekckhpfb/reviews"
- },
- {
- authorName: "Tim Miller",
- authorSubtitle: "Author, Obsidian Rocks",
- testimonial: "Harper is great: it is discreet, fast, powerful, and private.",
- source: "https://obsidian.rocks/resource-harper/"
- },
- {
- authorName: "Prakash Joshi Pax",
- authorSubtitle: "Writer, Medium",
- testimonial: "What I loved about this tool is that it's private, and open source and really fast.",
- source: "https://beingpax.medium.com/9-new-obsidian-plugins-you-need-to-check-out-today-d55dba29bfb8"
- },
- {
- authorName: "imbolc",
- authorSubtitle: "Chrome Extension Review",
- testimonial: "I've been using Harper in Neovim for a long time and am glad to see it as an extension!",
- source: "https://chromewebstore.google.com/detail/private-grammar-checker-h/lodbfhdipoipcjmlebjbgmmgekckhpfb/reviews"
-
- },
- {
- authorName: "Martijn Gribnau",
- authorSubtitle: "Software Engineer",
- testimonial: "What a delightful way to check for flagrant spelling errors in markdown files. Thanks Harper authors!",
- source: "https://gribnau.dev/posts/harper-cli/"
- },
- {
- authorName: "Chloe Ferguson",
- authorSubtitle: "Writer, We Are Founders",
- testimonial: "Harper excels at catching the kinds of mistakes that matter in technical writing – improper capitalization, misspelled words, and awkward phrasing that can make documentation unclear.",
- source: "https://www.wearefounders.uk/the-grammar-checker-that-actually-gets-developers-meet-harper/"
- },
- {
- authorName: "Rogerio Taques",
- authorSubtitle: "Chrome Extension Review",
- testimonial: "I've been using Harper instead of Grammarly for a few months already, and I can't be happier! I can't wait to see the great improvement when this tool reaches version 1.0.0! Great job! I hope that, eventually, it will also support languages other than English.",
- source: "https://chromewebstore.google.com/detail/private-grammar-checker-h/lodbfhdipoipcjmlebjbgmmgekckhpfb/reviews"
- },
+ {
+ authorName: 'Rich Edmonds',
+ authorSubtitle: 'Lead PC Hardware Editor, XDA Developers',
+ testimonial:
+ 'Written in Rust, everything is processed in an instant and I find it neat to see the browser extension highlight words as I type, effectively checking per letter. And no account is required, allowing me to get up and running in no time.',
+ source:
+ 'https://www.xda-developers.com/ditched-grammarly-for-this-amazing-open-source-alternative/',
+ },
+ {
+ authorName: 'Justin Pot',
+ authorSubtitle: 'Tech journalist, Lifehacker',
+ testimonial:
+ 'Obsidian is my favorite productivity app, and Harper is a grammar checking tool that works well with it.',
+ source:
+ 'https://lifehacker.com/tech/harper-offline-alternative-to-grammarly?test_uuid=02DN02BmbRCcASIX6xMQtY9&test_variant=B',
+ },
+ {
+ authorName: 'Filip Cujanovic',
+ authorSubtitle: 'Chrome Extension Review',
+ testimonial:
+ "Awesome extension! It’s privacy focused, that means that every check it done locally on your computer, there is no server where your data goes! And because of that it’s blazingly fast compared to Grammarly.",
+ source:
+ 'https://chromewebstore.google.com/detail/private-grammar-checker-h/lodbfhdipoipcjmlebjbgmmgekckhpfb/reviews',
+ },
+ {
+ authorName: 'Prakash Joshi Pax',
+ authorSubtitle: 'Writer, Medium',
+ testimonial: "What I loved about this tool is that it’s private, and open source and really fast.",
+ source: 'https://beingpax.medium.com/9-new-obsidian-plugins-you-need-to-check-out-today-d55dba29bfb8',
+ },
+ {
+ authorName: 'Tim Miller',
+ authorSubtitle: 'Author, Obsidian Rocks',
+ testimonial: 'Harper is great: it is discreet, fast, powerful, and private.',
+ source: 'https://obsidian.rocks/resource-harper/',
+ },
+ {
+ authorName: 'imbolc',
+ authorSubtitle: 'Chrome Extension Review',
+ testimonial: "I’ve been using Harper in Neovim for a long time and am glad to see it as an extension!",
+ source:
+ 'https://chromewebstore.google.com/detail/private-grammar-checker-h/lodbfhdipoipcjmlebjbgmmgekckhpfb/reviews',
+ },
+ {
+ authorName: 'Martijn Gribnau',
+ authorSubtitle: 'Software Engineer',
+ testimonial:
+ 'What a delightful way to check for flagrant spelling errors in markdown files. Thanks Harper authors!',
+ source: 'https://gribnau.dev/posts/harper-cli/',
+ },
+ {
+ authorName: 'Chloe Ferguson',
+ authorSubtitle: 'Writer, We Are Founders',
+ testimonial:
+ 'Harper excels at catching the kinds of mistakes that matter in technical writing – improper capitalization, misspelled words, and awkward phrasing that can make documentation unclear.',
+ source:
+ 'https://www.wearefounders.uk/the-grammar-checker-that-actually-gets-developers-meet-harper/',
+ },
+ {
+ authorName: 'Rogerio Taques',
+ authorSubtitle: 'Chrome Extension Review',
+ testimonial:
+ "I’ve been using Harper instead of Grammarly for a few months already, and I can’t be happier! I can’t wait to see the great improvement when this tool reaches version 1.0.0! Great job! I hope that, eventually, it will also support languages other than English.",
+ source:
+ 'https://chromewebstore.google.com/detail/private-grammar-checker-h/lodbfhdipoipcjmlebjbgmmgekckhpfb/reviews',
+ },
];
-const editorContent = demoText.trim();
-let linter: Linter | null = null;
+const faqs = [
+ {
+ q: 'Is Harper Free?',
+ a: "Yes. Harper is free in every sense of the word. You don’t need a credit card to start using Harper, and the source code is freely available under the Apache-2.0 license.",
+ },
+ {
+ q: 'How Does Harper Work?',
+ a: "Harper watches your writing and provides instant suggestions when it notices a grammatical error. When you see an underline, it’s probably because Harper has something to say.",
+ },
+ {
+ q: 'Does Harper Change The Meaning of My Words?',
+ a: 'No. Harper will never intentionally suggest an edit that might change your meaning. Harper strives to never make it harder to express your creativity.',
+ },
+ {
+ q: 'Is Harper Really Private?',
+ a: 'Harper is the only widespread and comprehensive grammar checker that is truly private. Your data never leaves your device. Your writing should remain just that: yours.',
+ },
+ {
+ q: 'How Do I Use or Integrate Harper?',
+ a: "That depends on your use case. Do you want to use it within Obsidian? We have an Obsidian plugin. Do you want to use it within WordPress? We have a WordPress plugin. Do you want to use it within your Browser? We have a Chrome extension and a Firefox plugin. Do you want to use it within your code editor? We have documentation on how you can integrate with Visual Studio Code and its forks, Neovim, Helix, Emacs, Zed and Sublime Text. If you’re using a different code editor, then you can integrate directly with our language server, harper-ls. Do you want to integrate it in your web app or your JavaScript/TypeScript codebase? You can use harper.js. Do you want to integrate it in your Rust program or codebase? You can use harper-core.",
+ },
+ {
+ q: 'What Human Languages Do You Support?',
+ a: 'We currently only support English and its dialects British, American, Canadian, Australian, and Indian. Other languages are on the horizon, but we want our English support to be truly amazing before we diversify.',
+ },
+ {
+ q: 'What Programming Languages Do You Support?',
+ a: "For harper-ls and our code editor integrations, we support a wide variety of programming languages. You can view all of them over at the harper-ls documentation. We are entirely open to PRs that add support. If you just want to be able to run grammar checking on your code’s comments, you can use this PR as a model for what to do. For harper.js and those that use it under the hood like our Obsidian plugin, we support plaintext and/or Markdown.",
+ },
+ {
+ q: 'Where Did the Name Harper Come From?',
+ a: 'See this blog post.',
+ },
+ {
+ q: 'Do I Need a GPU?',
+ a: 'No. Harper runs on-device, no matter what. There are no special hardware requirements. No GPU, no additional memory, no fuss.',
+ },
+ {
+ q: "What Do I Do If My Question Isn’t Here?",
+ a: 'You can join our Discord and ask your questions there or you can start a discussion over at GitHub.',
+ },
+ {
+ q: "Why Isn’t Harper Working in Gmail?",
+ a: 'Harper will not run in Gmail unless the built-in grammar checker is disabled. If you wish to use Harper in Gmail, please disable the built-in grammar checker.',
+ },
+];
onMount(() => {
- (async () => {
+ void (async () => {
linter = await createEditorLinter();
})();
});
+
</script>
-<main class="mx-auto flex w-full max-w-5xl flex-col gap-12 py-12">
- <div class="space-y-6 px-4 md:px-6">
- <div class="flex w-full flex-col items-center">
- <Logo width="200px" />
+<svelte:head>
+ <title>Harper: The Private Grammar Checker</title>
+ <meta
+ name="description"
+ content="Harper is the free, private, open-source grammar checker that runs on your device."
+ />
+</svelte:head>
+
+<div class="min-h-screen bg-[#f6f1e6] text-[#1c1a16] dark:bg-black dark:text-white">
+ <MarketingHeader active="home" />
+
+ <section class="bg-[#fbfaf6] px-10 pt-[4.4rem] pb-20 text-center dark:bg-black max-[880px]:px-4">
+ <div class="mx-auto flex max-w-[44rem] flex-col items-center">
+ <HarperMark size={108} />
+ <h1 class="!mt-7 !mb-0 py-0 font-serif text-[clamp(3.4rem,8vw,4rem)] font-[650] leading-[1.02] tracking-normal text-inherit">
+ Hi. I’m Harper.
+ </h1>
+ <p class="!mt-[1.35rem] !mb-0 font-serif text-[1.38rem] leading-[1.35]">
+ The <strong class="inline-block -rotate-1 bg-primary-100 p-1 text-black">Free</strong> Grammar Checker
+ That Respects Your Privacy
+ </p>
+ <p class="!mt-3 !mb-0 font-serif text-[1.12rem] leading-[1.35] text-[#807a6e] italic dark:text-white/55">
+ I make you look like a grammar genius.
+ </p>
+ <div class="mt-7 flex flex-wrap gap-[0.65rem] max-[620px]:flex-col max-[620px]:items-stretch">
+ <PillButton href="/get" size="lg">Get Harper</PillButton>
+ <PillButton href={marketingLinks.github} kind="secondary" size="lg">Star on GitHub</PillButton>
+ </div>
</div>
- <div class="space-y-2 text-center">
- <h1 class="font-bold">Hi. I'm Harper.</h1>
- <h2>
- The <strong class="bg-primary-100 dark:bg-primary-800 p-1 inline-block -rotate-1">Free</strong> Grammar Checker That Respects Your Privacy
- </h2>
+ </section>
+
+ <section class="bg-[#fbfaf6] pt-2 pb-[5.6rem] dark:bg-black" aria-labelledby="try-editor-title">
+ <div class="mx-auto max-w-[73.75rem] px-10 max-[880px]:px-4">
+ <div class="mb-[1.1rem] flex items-baseline justify-between gap-4 max-[620px]:flex-col max-[620px]:items-stretch">
+ <h2 id="try-editor-title" class="!m-0 py-0 font-serif text-[1.38rem] font-semibold leading-[1.3] tracking-normal text-inherit">
+ Try Harper
+ </h2>
+ <a
+ class="inline-flex items-center gap-1 !text-[#b06a1b] font-bold no-underline hover:no-underline dark:!text-primary-300 [&_path]:fill-none [&_path]:stroke-current [&_path]:stroke-[1.5] [&_path]:[stroke-linecap:round] [&_path]:[stroke-linejoin:round] [&_svg]:size-[0.7rem]"
+ href="/editor">Open the full editor <Arrow /></a
+ >
+ </div>
+ <div class="h-[35rem] overflow-hidden rounded-[0.9rem] border-[0.5px] border-[rgba(28,26,22,0.16)] bg-[#fbfaf6] shadow-[0_30px_60px_-24px_rgba(28,26,22,0.22),0_6px_14px_rgba(28,26,22,0.06),0_0_0_0.5px_rgba(0,0,0,0.04)] dark:border-white/15 dark:bg-black max-[620px]:h-[40rem]">
+ {#if browser && linter}
+ <LazyEditor content={editorContent} {linter} />
+ {:else}
+ <div class='flex h-full items-center justify-center text-[0.82rem] text-[#807a6e] dark:text-white/55 [font-family:"JetBrains_Mono",monospace]'>
+ Loading Harper’s grammar engine...
+ </div>
+ {/if}
+ </div>
</div>
+ </section>
- <div
- class="md:flex md:flex-row grid grid-cols-2 items-center justify-evenly place-items-center gap-2 pt-2 text-center"
- >
- <Link
- href="https://github.com/automattic/harper"
- class="flex flex-row items-center [&>*]:m-2 skew-hover-left"
- >
- <GitHubLogo width="40px" height="40px" />GitHub
- </Link>
+ <section id="about" class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fdfbf5] py-[4.8rem] dark:border-white/10 dark:bg-black">
+ <div class="mx-auto max-w-[45rem] px-10 max-[880px]:px-4">
+ <p class="!m-0 font-serif text-[clamp(1.6rem,4vw,1.75rem)] font-[550] leading-[1.35] text-[#1c1a16] dark:text-white">
+ Harper is a free, open-source grammar checker designed to be just right. Think of it as
+ the private alternative to Grammarly, built after years of dealing with the shortcomings
+ of the competition.
+ </p>
+ <p class="!mt-5 !mb-0 text-base leading-[1.65] text-[#4a463e] dark:text-white/70">
+ Harper catches the kinds of mistakes that matter: improper capitalization, misspelled
+ words, awkward phrasing, and broken grammar. Your writing never leaves your computer.
+ </p>
+ </div>
+ </section>
- {#if agentHas("firefox")}
- <Link href="https://addons.mozilla.org/en-US/firefox/addon/private-grammar-checker-harper/" class="flex flex-row items-center [&>*]:m-2 skew-hover"
- ><FirefoxLogo width="40px" height="40px" />Add to Firefox</Link
- >
- {:else if agentHas("Edg")}
- <Link href="https://microsoftedge.microsoft.com/addons/detail/private-grammar-checker-/ihjkkjfembmnjldmdchmadigpmapkpdh" class="flex flex-row items-center [&>*]:m-2 skew-hover-left"
- ><EdgeLogo width="40px" height="40px" />Add to Edge</Link
- >
- {:else}
- <Link href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb?utm_source=harper-homepage&utm_medium=referral" class="flex flex-row items-center [&>*]:m-2 skew-hover"
- ><ChromeLogo width="40px" height="40px" />Add to Chrome</Link
- >
- {/if}
- <Link
- href="https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper"
- class="flex flex-row items-center [&>*]:m-2 skew-hover-left"
- >
- <CodeLogo width="40px" height="40px" />Install in VS Code
- </Link>
- <Link
- href="/docs/integrations/obsidian"
- class="flex flex-row items-center [&>*]:m-2 skew-hover"
+ <section class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fdfbf5] py-[4.8rem] dark:border-white/10 dark:bg-black">
+ <div class="mx-auto grid max-w-[68.75rem] grid-cols-[minmax(0,1fr)_minmax(20rem,1fr)] items-center gap-14 px-10 max-[880px]:grid-cols-1 max-[880px]:px-4">
+ <div>
+ <h2 class="!mt-3 !mb-0 py-0 font-serif text-[clamp(2.2rem,5vw,2.5rem)] font-[650] leading-[1.08] tracking-normal text-inherit">
+ One grammar checker.<br />Every place you write.
+ </h2>
+ <p class="!mt-6 !mb-0 text-base leading-[1.65] text-[#4a463e] dark:text-white/70">
+ Harper is available as a language server, a JavaScript library, a Rust crate, browser
+ extensions, editor extensions, and native apps. Pick the integration that matches your
+ workflow or build your own.
+ </p>
+ <div class="mt-7 flex flex-wrap gap-[0.65rem] max-[620px]:flex-col max-[620px]:items-stretch">
+ <PillButton href="/get">See all integrations</PillButton>
+ <PillButton href="/docs/about" kind="secondary">Read the docs</PillButton>
+ </div>
+ </div>
+ <div
+ class="grid grid-cols-[repeat(2,minmax(10rem,13.5rem))] justify-center gap-[0.4rem] rounded-2xl border-[0.5px] border-[rgba(28,26,22,0.1)] bg-white p-[1.1rem] dark:border-white/10 dark:bg-white/5 max-[620px]:grid-cols-1"
+ aria-label="Featured Harper integrations"
>
- <ObsidianLogo width="40px" height="40px" />Install in Obsidian
- </Link>
- <Link href="https://elijahpotter.dev" class="flex flex-row items-center [&>*]:m-2 skew-hover-left"
- ><img
- width="40"
- height="40"
- src="/icons/profile.svg"
- alt="Author"
- />Author</Link
- >
+ {#each featuredIntegrationIds as id}
+ {@const integration = integrations.find((item) => item.id === id)}
+ {#if integration}
+ <a
+ class="flex items-center gap-3 rounded-[0.65rem] px-3 py-[0.65rem] !text-[#1c1a16] no-underline hover:bg-black/[0.04] hover:no-underline dark:!text-white dark:hover:bg-white/10"
+ href={integration.href}
+ >
+ <IntegrationTile {integration} size={32} />
+ <span class="flex min-w-0 flex-col">
+ <strong class="overflow-hidden text-ellipsis whitespace-nowrap text-[0.84rem]">{integration.name}</strong>
+ <small class="overflow-hidden text-ellipsis whitespace-nowrap text-[0.72rem] text-[#807a6e] dark:text-white/55">{integration.desc}</small>
+ </span>
+ </a>
+ {/if}
+ {/each}
+ </div>
</div>
+ </section>
- <div class="h-[800px] w-full">
- {#if browser && linter}
- <LazyEditor content={editorContent} {linter} />
- {/if}
+ <section class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fbfaf6] py-[4.5rem] dark:border-white/10 dark:bg-black">
+ <div class="mx-auto max-w-[73.75rem] px-10 max-[880px]:px-4">
+ <PrivacySpeedCards />
</div>
- </div>
-
- <Section>
- <svelte:fragment slot="title">What is it?</svelte:fragment>
- <p>
- Harper is a free English grammar checker designed to be just right. You can think of it as an
- open-source alternative to Grammarly. I created it after years of dealing with the shortcomings
- of the competition.
- </p>
- </Section>
+ </section>
- <Section layout="split">
- <svelte:fragment slot="title">Private</svelte:fragment>
- <p>Harper is completely private, in every sense of the word.</p>
- <p>Since Harper runs on-device, your data doesn't go anywhere you don't want it to.</p>
- <p>
- That means you have 100% certainty we don't violate your copyright by training large language
- models.
- </p>
- <p>
- Harper also intentionally avoids including any kind of generative AI in any part of our processing pipeline.
- </p>
- <svelte:fragment slot="aside">
- <img
- src="/images/camera.webp"
- class="w-full rounded-xl object-cover shadow-sm"
- alt="Graffiti of a camera."
- />
- </svelte:fragment>
- </Section>
-
- <Section layout="split" reverse>
- <svelte:fragment slot="title">Native Everywhere</svelte:fragment>
- <p>
- Harper is available as a
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/language-server">language server</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/harperjs/introduction">JavaScript library</Link>
- through WebAssembly, and
- <Link class="text-blue-600 dark:text-blue-400" href="https://crates.io/crates/harper-core">Rust crate</Link>,
- so you can get fantastic grammar checking anywhere you work.
- </p>
- <p>
- That said, we take extra care to make sure the
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/visual-studio-code">Visual Studio Code</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/neovim">Neovim</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/obsidian">Obsidian</Link>, and
- <Link class="text-blue-600 dark:text-blue-400" href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb">Chrome</Link>
- extensions are amazing.
- </p>
- <svelte:fragment slot="aside">
- <div class="grid gap-2 sm:grid-cols-2">
- <Link
- href="/docs/integrations/obsidian"
- class="skew-hover-left"
- >
- <Card class="flex items-center gap-3">
- <ObsidianLogo width="40" height="40" />
- <span class="font-medium">Obsidian</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/visual-studio-code"
- class="skew-hover"
- >
- <Card class="flex items-center gap-3">
- <CodeLogo width="40" height="40" />
- <span class="font-medium">Visual Studio Code</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/neovim"
- class="skew-hover"
- >
- <Card class="flex items-center gap-3">
- <NeovimLogo width="40" height="40" />
- <span class="font-medium">Neovim</span>
- </Card>
- </Link>
- <Link
- href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb"
- class="skew-hover-left"
- >
- <Card class="flex items-center gap-3">
- <ChromeLogo width="40" height="40" />
- <span class="font-medium">Chrome</span>
- </Card>
- </Link>
- <Link
- href="https://addons.mozilla.org/en-US/firefox/addon/private-grammar-checker-harper/"
- class="skew-hover"
- >
- <Card class="flex items-center gap-3">
- <FirefoxLogo width="40" height="40" />
- <span class="font-medium">Firefox</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/helix"
- class="skew-hover-left"
- >
- <Card class="flex items-center gap-3">
- <HelixLogo width="40" height="40" />
- <span class="font-medium">Helix</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/wordpress"
- class="skew-hover-left"
- >
- <Card class="flex items-center gap-3">
- <WordPressLogo width="40" height="40" />
- <span class="font-medium">WordPress</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/zed"
- class="skew-hover"
- >
- <Card class="flex items-center gap-3">
- <ZedLogo width="40" height="40" />
- <span class="font-medium">Zed</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/emacs"
- class="skew-hover-left"
- >
- <Card class="flex items-center gap-3">
- <EmacsLogo width="40" height="40" />
- <span class="font-medium">Emacs</span>
- </Card>
- </Link>
- <Link
- href="/docs/integrations/sublime-text"
- class="skew-hover"
- >
- <Card class="flex items-center gap-3">
- <SublimeLogo width="40" height="40" />
- <span class="font-medium">Sublime Text</span>
- </Card>
- </Link>
+ <section class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fbfaf6] py-[4.5rem] dark:border-white/10 dark:bg-black">
+ <div class="mx-auto max-w-[73.75rem] px-10 max-[880px]:px-4">
+ <div class="mb-11 text-center">
+ <h2 class="!mt-3 !mb-0 py-0 font-serif text-[clamp(2.2rem,5vw,2.5rem)] font-[650] leading-[1.08] tracking-normal text-inherit">
+ Loved by writers, journalists, and devs.
+ </h2>
</div>
- </svelte:fragment>
- </Section>
-
- <Section layout="split">
- <svelte:fragment slot="title">Wicked Fast</svelte:fragment>
- <p>
- Since Harper runs on your devices, it's able to serve up suggestions in under 10 milliseconds.
- </p>
- <p>No network request, no massive language models, no fuss.</p>
- <svelte:fragment slot="aside">
- <Card>
- <Graph />
- </Card>
- </svelte:fragment>
- </Section>
+ <TestimonialCollection {testimonials} />
+ </div>
+ </section>
- <Section>
- <svelte:fragment slot="title">Loved by Thousands</svelte:fragment>
- <TestimonialCollection testimonials={testimonials} />
- </Section>
+ <FaqSection
+ items={faqs}
+ title="Questions, answered."
+ intro="Don’t see yours?"
+ introHref={marketingLinks.discord}
+ introLinkText="Ask on Discord"
+ collapsible
+ layout="grid"
+ />
- <Section id="faqs">
- <svelte:fragment slot="title">FAQs</svelte:fragment>
- <div class="space-y-4">
- <Collapsible title="Is Harper Free?">
- <p>
- Yes. Harper is free in every sense of the word. You don't need a credit card to start using
- Harper, and the source code is freely available under the Apache-2.0 license.
- </p>
- </Collapsible>
- <Collapsible title="How Does Harper Work?">
- <p>
- Harper watches your writing and provides instant suggestions when it notices a grammatical
- error. When you see an underline, it's probably because Harper has something to say.
- </p>
- </Collapsible>
- <Collapsible title="Does Harper Change The Meaning of My Words?">
- <p>
- No. Harper will never intentionally suggest an edit that might change your meaning. Harper
- strives to never make it harder to express your creativity.
- </p>
- </Collapsible>
- <Collapsible title="Is Harper Really Private?">
- <p>
- Harper is the only widespread and comprehensive grammar checker that is truly private. Your
- data never leaves your device. Your writing should remain just that: <strong>yours.</strong>
- </p>
- </Collapsible>
- <Collapsible title="How Do I Use or Integrate Harper?">
- <div class="space-y-3">
- <p>
- That depends on your use case. Do you want to use it within Obsidian? We have an
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/obsidian">Obsidian plugin</Link>. Do you want to use it within WordPress? We have a
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/wordpress">WordPress plugin</Link>. Do you want to use it within your Browser? We have a
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/chrome-extension">Chrome extension</Link> and a
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/firefox-extension">Firefox plugin</Link>. Do you want to use it within your code editor? We have documentation on how you can integrate with
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/visual-studio-code">Visual Studio Code and its forks</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/neovim">Neovim</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/helix">Helix</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/emacs">Emacs</Link>,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/zed">Zed</Link> and
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/sublime-text">Sublime Text</Link>. If you're using a different code editor, then you can integrate directly with our language server,
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/language-server">harper-ls</Link>. Do you want to integrate it in your web app or your JavaScript/TypeScript codebase? You can use
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/harperjs/introduction">harper.js</Link>. Do you want to integrate it in your Rust program or codebase? You can use
- <Link class="text-blue-600 dark:text-blue-400" href="https://crates.io/crates/harper-core">harper-core</Link>.
- </p>
- </div>
- </Collapsible>
- <Collapsible title="What Human Languages Do You Support?">
- <p>
- We currently only support English and its dialects British, American, Canadian,
- Australian, and Indian. Other languages are on the horizon, but we want our English support to be truly
- amazing before we diversify.
- </p>
- </Collapsible>
- <Collapsible title="What Programming Languages Do You Support?">
- <div class="space-y-3">
- <p>
- For <code>harper-ls</code> and our code editor integrations, we support a wide variety of
- programming languages. You can view all of them over at the
- <Link class="text-blue-600 dark:text-blue-400" href="/docs/integrations/language-server#Supported-Languages">harper-ls documentation</Link>.
- We are entirely open to PRs that add support. If you just want to be able to run grammar checking
- on your code's comments, you can use
- <Link class="text-blue-600 dark:text-blue-400" href="https://github.com/Automattic/harper/pull/332">this PR as a model for what to do</Link>.
- </p>
- <p>
- For <code>harper.js</code> and those that use it under the hood like our Obsidian plugin, we
- support plaintext and/or Markdown.
- </p>
- </div>
- </Collapsible>
- <Collapsible title="Where Did the Name Harper Come From?">
- <p>
- See <Link class="text-blue-600 dark:text-blue-400" href="https://elijahpotter.dev/articles/naming_harper">this blog post</Link>.
- </p>
- </Collapsible>
- <Collapsible title="Do I Need a GPU?">
- <p>No. Harper runs on-device, no matter what. There are no special hardware requirements. No GPU, no additional memory, no fuss.</p>
- </Collapsible>
- <Collapsible title="What Do I Do If My Question Isn't Here?">
- <p>
- You can join our
- <Link class="text-blue-600 dark:text-blue-400" href="https://discord.gg/invite/JBqcAaKrzQ">Discord</Link>
- and ask your questions there or you can start a discussion over at
- <Link class="text-blue-600 dark:text-blue-400" href="https://github.com/Automattic/harper/discussions">GitHub</Link>.
- </p>
- </Collapsible>
- <Collapsible title="Why Isn't Harper Working in Gmail?">
- <p>
- Harper will not run in Gmail unless the built-in grammar checker is disabled. If you wish to use Harper in Gmail, please <Link class="text-blue-600 dark:text-blue-400" href="https://support.google.com/mail/answer/7987?hl=en">disable the built-in grammar checker.</Link>
- </p>
- </Collapsible>
+ <section class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#1c1a16] py-[5.6rem] pb-[6.25rem] text-center text-[#fbfaf6] dark:border-white/10">
+ <div class="mx-auto max-w-[45rem] px-10 max-[880px]:px-4 [&_.harper-mark]:mx-auto [&_.harper-mark]:mb-[1.4rem] [&_.harper-mark]:text-[#fbe8c2]">
+ <HarperMark size={56} />
+ <h2 class="!mt-3 !mb-0 py-0 font-serif text-[clamp(2.5rem,6vw,3.25rem)] font-[650] leading-[1.05] tracking-normal text-inherit">
+ Pay us a visit on GitHub.
+ </h2>
+ <p class="!mt-6 !mb-0 text-base leading-[1.65] text-[#fbfaf6]/70">
+ Fork it, file an issue, add a rule, port it to a new editor. Harper is free software,
+ and we’d love your help.
+ </p>
+ <div class="mt-7 flex flex-col flex-wrap items-center justify-center gap-[0.65rem]">
+ <PillButton href={marketingLinks.github} size="lg">Star on GitHub</PillButton>
+ <PillButton href="/docs/contributors/introduction" size="lg">Contribute</PillButton>
+ </div>
</div>
- </Section>
+ </section>
- <Section>
- <svelte:fragment slot="title">Open Source</svelte:fragment>
- <p>Harper is completely open source under the Apache-2.0 license.</p>
- <p>
- Come pay us a visit on
- <Link class="text-blue-600 dark:text-blue-400" href="https://github.com/automattic/harper">GitHub</Link>.
- </p>
- </Section>
-</main>
+ <MarketingFooter />
+</div>
diff --git a/packages/web/src/routes/desktop/+page.svelte b/packages/web/src/routes/desktop/+page.svelte
new file mode 100644
index 000000000..a13871e6e
--- /dev/null
+++ b/packages/web/src/routes/desktop/+page.svelte
@@ -0,0 +1,143 @@
+<script lang="ts">
+import AppLogoTile from '$lib/marketing/AppLogoTile.svelte';
+import DesktopMockups from '$lib/marketing/DesktopMockups.svelte';
+import { compatibilityApps } from '$lib/marketing/data';
+import HarperMark from '$lib/marketing/HarperMark.svelte';
+import MarketingFooter from '$lib/marketing/MarketingFooter.svelte';
+import MarketingHeader from '$lib/marketing/MarketingHeader.svelte';
+import PillButton from '$lib/marketing/PillButton.svelte';
+import PrivacySpeedCards from '$lib/marketing/PrivacySpeedCards.svelte';
+import SimpleFAQ from '$lib/marketing/SimpleFAQ.svelte';
+
+const faqs = [
+ {
+ q: 'Does Harper Desktop send my writing anywhere?',
+ a: 'No. Like the rest of Harper, everything runs locally. No accounts, no telemetry, no snooping servers.',
+ },
+ {
+ q: 'What are the system requirements?',
+ a: 'macOS 14 Sonoma or later. Apple Silicon and Intel are both supported.',
+ },
+ {
+ q: 'Is it really free?',
+ a: 'Yes. Harper Desktop is free, like the rest of Harper. The source is on GitHub under Apache-2.0.',
+ },
+ {
+ q: 'What about Windows and Linux?',
+ a: 'Not yet. We started on macOS to get the system-wide integration right; other platforms are on the roadmap.',
+ },
+];
+</script>
+
+<svelte:head>
+ <title>Harper Desktop</title>
+ <meta
+ name="description"
+ content="Harper Desktop brings private grammar checking to text fields across macOS."
+ />
+</svelte:head>
+
+<div class="min-h-screen bg-[#f6efe2] text-[#1c1a16] dark:bg-black dark:text-white">
+ <MarketingHeader active="desktop" />
+
+ <section class="relative overflow-hidden px-14 pt-3 pb-14 after:pointer-events-none after:absolute after:inset-[-20%_-10%] after:content-[''] after:bg-[radial-gradient(ellipse_at_70%_20%,#fbf3e6_0%,transparent_60%)] dark:after:opacity-10 max-[700px]:px-4">
+ <div class="relative z-[1] mx-auto grid max-w-[77.5rem] grid-cols-[minmax(0,1fr)_minmax(32rem,1.2fr)] items-center gap-8 pt-[1.9rem] max-[1040px]:grid-cols-1">
+ <div>
+ <h1 class="!mt-[0.85rem] !mb-0 py-0 font-serif text-[clamp(3.2rem,6vw,3.9rem)] font-[650] leading-[1.02] tracking-normal text-inherit">
+ Works in every app.
+ </h1>
+ <p class="!mt-5 !mb-0 max-w-[28.75rem] text-base leading-[1.6] text-[#4a463e] dark:text-white/70">
+ Use Harper Desktop in the apps you use every day such as Mail, Slack, Notes, Pages,
+ and Discord.
+ </p>
+ <div class="mt-6 flex flex-col items-start gap-[0.6rem] [&_svg]:size-[0.95rem] [&_svg]:fill-current">
+ <PillButton href="/desktop/download" size="lg">
+ <svg slot="icon" viewBox="0 0 24 24" aria-hidden="true">
+ <path
+ d="M17.05 12.4c-.04-3.1 2.53-4.6 2.65-4.66-1.45-2.1-3.69-2.4-4.49-2.43-1.91-.2-3.73 1.13-4.7 1.13-.97 0-2.46-1.1-4.06-1.07-2.09.03-4.02 1.22-5.09 3.08-2.17 3.76-.55 9.31 1.55 12.37 1.03 1.5 2.24 3.17 3.84 3.12 1.56-.06 2.14-1 4.02-1s2.42 1 4.06.97c1.68-.02 2.74-1.5 3.76-3.02 1.19-1.73 1.67-3.4 1.7-3.5-.04-.02-3.27-1.26-3.3-4.99zM14.05 3.95c.85-1.04 1.43-2.48 1.27-3.91-1.23.05-2.72.82-3.6 1.86-.79.92-1.49 2.4-1.3 3.81 1.37.1 2.78-.7 3.63-1.76z"
+ />
+ </svg>
+ Download for macOS
+ </PillButton>
+ <span class="text-xs text-[#807a6e] dark:text-white/55">macOS 14+ · Apple Silicon &amp; Intel</span>
+ </div>
+ </div>
+ <div class="relative h-[33.75rem] max-[1040px]:h-auto">
+ <DesktopMockups />
+ </div>
+ </div>
+ </section>
+
+ <section class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fdfbf5] py-[4.5rem] pb-20 dark:border-white/10 dark:bg-black">
+ <div class="mx-auto max-w-[68.75rem] px-14 max-[700px]:px-4">
+ <div class="mx-auto max-w-[40rem] text-center">
+ <h2 class="!mt-3 !mb-0 py-0 font-serif text-[clamp(2.1rem,5vw,2.45rem)] font-[650] leading-[1.1] tracking-normal text-inherit">
+ Every text field. Same Harper.
+ </h2>
+ <p class="!mt-6 !mb-0 text-base leading-[1.6] text-[#4a463e] dark:text-white/70">
+ If your cursor is blinking, Harper is watching. Harper Desktop hooks into macOS text
+ inputs so the same suggestions follow you across the apps where you write.
+ </p>
+ </div>
+ <div class="mt-11 grid grid-cols-6 justify-items-center gap-[1.4rem] max-[1040px]:grid-cols-4 max-[700px]:grid-cols-3 max-[700px]:gap-4" aria-label="Apps where Harper Desktop works">
+ {#each compatibilityApps as app}
+ <div class="flex flex-col items-center gap-2">
+ <AppLogoTile id={app.id} size={60} />
+ <strong class="text-xs text-[#4a463e] dark:text-white/70">{app.name}</strong>
+ </div>
+ {/each}
+ </div>
+ <p class="!mt-9 !mb-0 text-center text-[0.82rem] text-[#807a6e] dark:text-white/55">...and every other text field on macOS. If you can type in it, Harper helps.</p>
+ </div>
+ </section>
+
+ <section class="relative overflow-hidden border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fbfaf6] py-[4.5rem] dark:border-white/10 dark:bg-black">
+ <div class="relative z-[1] mx-auto max-w-[68.75rem] px-14 max-[700px]:px-4">
+ <PrivacySpeedCards desktop />
+ </div>
+ </section>
+
+ <section class="border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fdfbf5] py-[4.5rem] pb-20 dark:border-white/10 dark:bg-black">
+ <div class="mx-auto grid max-w-[68.75rem] grid-cols-[minmax(0,1fr)_minmax(22rem,1.1fr)] items-center gap-14 px-14 max-[1040px]:grid-cols-1 max-[700px]:px-4">
+ <div>
+ <h2 class="!mt-3 !mb-0 py-0 font-serif text-[clamp(2.1rem,5vw,2.45rem)] font-[650] leading-[1.1] tracking-normal text-inherit">
+ Tune the rules. Build your own dictionary.
+ </h2>
+ <p class="!mt-6 !mb-0 text-base leading-[1.6] text-[#4a463e] dark:text-white/70">
+ Every rule in Harper is toggleable. Add team jargon, product names, and favorite
+ phrases to your personal dictionary, and they stop being underlined everywhere on your
+ Mac.
+ </p>
+ <ul class="mt-5 flex !list-none flex-col gap-[0.65rem] !p-0">
+ <li class="flex gap-[0.65rem] leading-[1.5] text-[#4a463e] dark:text-white/70"><span class="mt-[0.55rem] size-[0.4rem] shrink-0 rounded-full bg-[#b06a1b]"></span><span><b class="text-[#1c1a16] dark:text-white">Pick your English.</b> British, American, Canadian, Australian, or Indian.</span></li>
+ <li class="flex gap-[0.65rem] leading-[1.5] text-[#4a463e] dark:text-white/70"><span class="mt-[0.55rem] size-[0.4rem] shrink-0 rounded-full bg-[#b06a1b]"></span><span><b class="text-[#1c1a16] dark:text-white">Enable per app.</b> Grammar checking only where you want it.</span></li>
+ <li class="flex gap-[0.65rem] leading-[1.5] text-[#4a463e] dark:text-white/70"><span class="mt-[0.55rem] size-[0.4rem] shrink-0 rounded-full bg-[#b06a1b]"></span><span><b class="text-[#1c1a16] dark:text-white">Make the rules.</b> Build custom rules using Weirpacks.</span></li>
+ </ul>
+ </div>
+ <div class="overflow-hidden rounded-[0.85rem] border-[0.5px] border-[rgba(28,26,22,0.18)] bg-white shadow-[0_22px_50px_-18px_rgba(28,26,22,0.35),0_4px_10px_rgba(28,26,22,0.1)] dark:border-white/15 dark:bg-white/5">
+ <div class="flex h-[1.65rem] items-center gap-[0.35rem] border-b-[0.5px] border-[rgba(28,26,22,0.08)] bg-[linear-gradient(180deg,#fafafa,#efece7)] px-[0.65rem]">
+ <span class="size-[0.55rem] rounded-full bg-[#ff5f57]"></span><span class="size-[0.55rem] rounded-full bg-[#febc2e]"></span><span class="size-[0.55rem] rounded-full bg-[#28c840]"></span><strong class="mr-8 flex-1 text-center text-[0.68rem] text-[rgba(28,26,22,0.56)]">Harper - Settings</strong>
+ </div>
+ <img class="block h-auto w-full" src="/marketing/screenshots/settings-rules.png" alt="Harper Desktop settings showing rule toggles" />
+ </div>
+ </div>
+ </section>
+
+ <section class="relative overflow-hidden border-t-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fbfaf6] py-[4.5rem] after:pointer-events-none after:absolute after:inset-[-20%_-10%] after:content-[''] after:bg-[radial-gradient(ellipse_at_70%_20%,#fbf3e6_0%,transparent_60%)] dark:border-white/10 dark:bg-black dark:after:opacity-10">
+ <div class="relative z-[1] mx-auto max-w-[45rem] px-14 text-center max-[700px]:px-4 [&_.harper-mark]:mx-auto">
+ <HarperMark size={64} />
+ <h2 class="!mt-3 !mb-0 py-0 font-serif text-[clamp(2.1rem,5vw,2.45rem)] font-[650] leading-[1.1] tracking-normal text-inherit">
+ Free. Forever. Yours.
+ </h2>
+ <p class="!mt-6 !mb-[1.6rem] text-base leading-[1.6] text-[#4a463e] dark:text-white/70">
+ Harper Desktop is free, like the rest of Harper. No account or credit card necessary.
+ </p>
+ <PillButton href="/desktop/download" size="lg">Download for macOS</PillButton>
+ <div class='mt-4 text-xs text-[#807a6e] dark:text-white/55 [font-family:"JetBrains_Mono",monospace]'>macOS 14 Sonoma or later · Apple Silicon &amp; Intel</div>
+ </div>
+ </section>
+
+ <SimpleFAQ items={faqs} title="FAQs" />
+
+ <MarketingFooter />
+</div>
diff --git a/packages/web/src/routes/desktop/download/+server.ts b/packages/web/src/routes/desktop/download/+server.ts
new file mode 100644
index 000000000..631742399
--- /dev/null
+++ b/packages/web/src/routes/desktop/download/+server.ts
@@ -0,0 +1,22 @@
+import { redirect } from '@sveltejs/kit';
+import { GithubClient } from '$lib/GitHubClient';
+import type { RequestHandler } from './$types';
+
+const latestReleaseUrl = 'https://github.com/Automattic/harper/releases/latest';
+const desktopDmgPattern = /^harper-desktop_.*_universal\.dmg$/;
+
+export const GET: RequestHandler = async () => {
+ let downloadUrl: string | null = null;
+
+ try {
+ downloadUrl = await GithubClient.getLatestReleaseAssetUrlFromCache(
+ 'Automattic',
+ 'harper',
+ desktopDmgPattern,
+ );
+ } catch (error) {
+ console.error('Unable to resolve latest Harper Desktop download URL.', error);
+ }
+
+ throw redirect(302, downloadUrl ?? latestReleaseUrl);
+};
diff --git a/packages/web/src/routes/get/+page.svelte b/packages/web/src/routes/get/+page.svelte
new file mode 100644
index 000000000..e51b64b44
--- /dev/null
+++ b/packages/web/src/routes/get/+page.svelte
@@ -0,0 +1,185 @@
+<script lang="ts">
+import {
+ type Integration,
+ integrationCategories,
+ integrations,
+ marketingLinks,
+} from '$lib/marketing/data';
+import IntegrationTile from '$lib/marketing/IntegrationTile.svelte';
+import MarketingFooter from '$lib/marketing/MarketingFooter.svelte';
+import MarketingHeader from '$lib/marketing/MarketingHeader.svelte';
+
+let activeCategory = 'all';
+let query = '';
+
+$: filtered = integrations.filter((integration) => {
+ if (activeCategory === 'community' && !integration.community) {
+ return false;
+ }
+
+ if (
+ activeCategory !== 'all' &&
+ activeCategory !== 'community' &&
+ integration.category !== activeCategory
+ ) {
+ return false;
+ }
+
+ const term = query.trim().toLowerCase();
+ if (!term) {
+ return true;
+ }
+
+ return [integration.name, integration.desc, integration.categoryLabel, integration.platform ?? '']
+ .join(' ')
+ .toLowerCase()
+ .includes(term);
+});
+
+$: communityCount = integrations.filter((integration) => integration.community).length;
+
+function ctaLabel(integration: Integration) {
+ return integration.cta === 'install' ? 'Install' : 'View docs';
+}
+
+function clearFilters() {
+ query = '';
+ activeCategory = 'all';
+}
+</script>
+
+<svelte:head>
+ <title>Get Harper</title>
+ <meta
+ name="description"
+ content="Install Harper for desktop apps, browsers, code editors, and developer workflows."
+ />
+</svelte:head>
+
+<div class="min-h-screen bg-[#f6f1e6] text-[#1c1a16] dark:bg-black dark:text-white">
+ <MarketingHeader active="get" />
+
+ <section class="border-b-[0.5px] border-[rgba(28,26,22,0.1)] bg-[#fdfbf5] px-10 py-16 pb-[4.25rem] text-center dark:border-white/10 dark:bg-black max-[860px]:px-4">
+ <div class="mx-auto max-w-[58rem]">
+ <h1 class="!mt-[0.85rem] !mb-0 py-0 font-serif text-[clamp(3.2rem,7vw,3.5rem)] font-[650] leading-[1.02] tracking-normal text-inherit">
+ Take Harper with you.
+ </h1>
+ <p class="mx-auto !mt-3 !mb-[2.2rem] max-w-[35rem] font-serif text-[1.2rem] leading-[1.45] text-[#4a463e] dark:text-white/70">
+ Use Harper in your favorite apps and browsers. Good grammar goes where you are.
+ </p>
+ <div class="mx-auto grid max-w-[47.5rem] grid-cols-2 gap-[0.85rem] text-left max-[640px]:grid-cols-1">
+ {#each ['desktop', 'chrome'] as id}
+ {@const integration = integrations.find((item) => item.id === id)}
+ {#if integration}
+ <a
+ class="grid grid-cols-[2.5rem_1fr_auto] items-center gap-[0.9rem] rounded-xl border-[0.5px] border-[rgba(28,26,22,0.1)] bg-white px-[1.1rem] py-[0.9rem] !text-[#1c1a16] no-underline transition-[transform,box-shadow,border-color] duration-150 hover:-translate-y-px hover:border-[#b06a1b] hover:shadow-[0_10px_24px_-16px_rgba(28,26,22,0.16)] hover:no-underline dark:border-white/10 dark:bg-white/5 dark:!text-white dark:hover:border-primary-300 max-[640px]:grid-cols-[2.5rem_1fr] [&_em]:max-[640px]:col-start-2"
+ href={integration.href}
+ >
+ <IntegrationTile {integration} size={40} />
+ <span class="flex min-w-0 flex-col">
+ <strong class="text-[0.94rem] leading-[1.25]">{integration.name}</strong>
+ <small class="overflow-hidden text-ellipsis whitespace-nowrap text-[0.8rem] leading-[1.4] text-[#807a6e] dark:text-white/55">{integration.desc}</small>
+ </span>
+ <em class="whitespace-nowrap text-[0.78rem] font-extrabold text-[#b06a1b] not-italic dark:text-primary-300">{ctaLabel(integration)} →</em>
+ </a>
+ {/if}
+ {/each}
+ </div>
+ <div class="mt-[1.1rem] text-[0.82rem] text-[#807a6e] dark:text-white/55">Or browse {integrations.length - 2} other integrations ↓</div>
+ </div>
+ </section>
+
+ <section class="px-10 pt-[3.25rem] pb-20 max-[860px]:px-4" aria-label="Harper integrations">
+ <div class="mx-auto grid max-w-[77.5rem] grid-cols-[14.5rem_1fr] items-start gap-9 max-[860px]:grid-cols-1">
+ <aside class="sticky top-[5.6rem] flex flex-col gap-[1.1rem] max-[860px]:static">
+ <label
+ class="flex h-[2.4rem] items-center gap-[0.55rem] rounded-[0.65rem] border-[0.5px] border-[rgba(28,26,22,0.1)] bg-white px-3 transition-[border-color,outline-color] duration-150 focus-within:border-transparent focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-[#2a6bd8] dark:border-white/10 dark:bg-white/5"
+ aria-label="Search integrations"
+ >
+ <svg class="size-[0.88rem] fill-none stroke-[#807a6e] stroke-[1.6] [stroke-linecap:round] dark:stroke-white/55" viewBox="0 0 16 16" aria-hidden="true">
+ <circle cx="7" cy="7" r="4.5" />
+ <path d="M10.5 10.5L14 14" />
+ </svg>
+ <input
+ class="min-w-0 flex-1 appearance-none border-0! bg-transparent text-[0.84rem] text-[#1c1a16] shadow-none! outline-0! dark:text-white"
+ bind:value={query}
+ type="search"
+ placeholder="Search..."
+ />
+ </label>
+
+ <nav class="flex flex-col gap-[0.15rem] max-[860px]:grid max-[860px]:grid-cols-2 max-[640px]:grid-cols-1" aria-label="Filter integrations">
+ <button
+ class={`flex cursor-pointer items-center gap-2 rounded-lg border-0 bg-transparent px-[0.6rem] py-[0.45rem] text-left text-[#4a463e] hover:bg-white hover:text-[#1c1a16] hover:shadow-[0_0_0_0.5px_rgba(28,26,22,0.1),0_1px_2px_rgba(28,26,22,0.04)] dark:text-white/70 dark:hover:bg-white/10 dark:hover:text-white ${
+ activeCategory === 'all'
+ ? 'bg-white text-[#1c1a16] shadow-[0_0_0_0.5px_rgba(28,26,22,0.1),0_1px_2px_rgba(28,26,22,0.04)] dark:bg-white/10 dark:text-white'
+ : ''
+ }`}
+ type="button"
+ on:click={() => (activeCategory = 'all')}
+ >
+ <span class="flex-1 text-[0.84rem] font-[650]">All integrations</span><b class='text-[0.68rem] font-semibold text-[#807a6e] dark:text-white/55 [font-family:"JetBrains_Mono",monospace]'>{integrations.length}</b>
+ </button>
+ {#each integrationCategories as category}
+ <button
+ class={`flex cursor-pointer items-center gap-2 rounded-lg border-0 bg-transparent px-[0.6rem] py-[0.45rem] text-left text-[#4a463e] hover:bg-white hover:text-[#1c1a16] hover:shadow-[0_0_0_0.5px_rgba(28,26,22,0.1),0_1px_2px_rgba(28,26,22,0.04)] dark:text-white/70 dark:hover:bg-white/10 dark:hover:text-white ${
+ activeCategory === category.id
+ ? 'bg-white text-[#1c1a16] shadow-[0_0_0_0.5px_rgba(28,26,22,0.1),0_1px_2px_rgba(28,26,22,0.04)] dark:bg-white/10 dark:text-white'
+ : ''
+ }`}
+ type="button"
+ on:click={() => (activeCategory = category.id)}
+ >
+ <span class="flex-1 text-[0.84rem] font-[650]">{category.label}</span><b class='text-[0.68rem] font-semibold text-[#807a6e] dark:text-white/55 [font-family:"JetBrains_Mono",monospace]'>{category.items.length}</b>
+ </button>
+ {/each}
+ <button
+ class={`flex cursor-pointer items-center gap-2 rounded-lg border-0 bg-transparent px-[0.6rem] py-[0.45rem] text-left text-[#4a463e] hover:bg-white hover:text-[#1c1a16] hover:shadow-[0_0_0_0.5px_rgba(28,26,22,0.1),0_1px_2px_rgba(28,26,22,0.04)] dark:text-white/70 dark:hover:bg-white/10 dark:hover:text-white ${
+ activeCategory === 'community'
+ ? 'bg-white text-[#1c1a16] shadow-[0_0_0_0.5px_rgba(28,26,22,0.1),0_1px_2px_rgba(28,26,22,0.04)] dark:bg-white/10 dark:text-white'
+ : ''
+ }`}
+ type="button"
+ on:click={() => (activeCategory = 'community')}
+ >
+ <span class="flex-1 text-[0.84rem] font-[650]">From the community</span><b class='text-[0.68rem] font-semibold text-[#807a6e] dark:text-white/55 [font-family:"JetBrains_Mono",monospace]'>{communityCount}</b>
+ </button>
+ </nav>
+
+ {#if query || activeCategory !== 'all'}
+ <p class='!m-0 text-[0.7rem] text-[#807a6e] dark:text-white/55 [font-family:"JetBrains_Mono",monospace]'>
+ {filtered.length} {filtered.length === 1 ? 'match' : 'matches'} ·
+ <button class="cursor-pointer border-0 bg-transparent font-extrabold text-[#b06a1b] dark:text-primary-300" type="button" on:click={clearFilters}>Clear</button>
+ </p>
+ {/if}
+ </aside>
+
+ <div class="grid grid-cols-[repeat(auto-fill,minmax(20rem,1fr))] gap-3 max-[640px]:grid-cols-1">
+ {#if filtered.length === 0}
+ <div class="col-span-full rounded-[0.9rem] border-[0.5px] border-dashed border-[rgba(28,26,22,0.16)] bg-white px-6 py-[3.75rem] text-center dark:border-white/15 dark:bg-white/5">
+ <h2 class="!mt-0 !mb-1.5 py-0 font-serif text-[1.4rem]">No match for "{query}"</h2>
+ <p class="!m-0 text-[#807a6e] dark:text-white/55">
+ Don’t see your editor? <a class="font-extrabold !text-[#b06a1b] no-underline hover:no-underline dark:!text-primary-300" href={marketingLinks.github}>Help us build it →</a>
+ </p>
+ </div>
+ {:else}
+ {#each filtered as integration}
+ <a
+ class="grid grid-cols-[2.5rem_1fr_auto] items-center gap-[0.9rem] rounded-xl border-[0.5px] border-[rgba(28,26,22,0.1)] bg-white px-[1.1rem] py-[0.9rem] !text-[#1c1a16] no-underline transition-[transform,box-shadow,border-color] duration-150 hover:-translate-y-px hover:border-[#b06a1b] hover:shadow-[0_10px_24px_-16px_rgba(28,26,22,0.16)] hover:no-underline dark:border-white/10 dark:bg-white/5 dark:!text-white dark:hover:border-primary-300 max-[640px]:grid-cols-[2.5rem_1fr] [&_em]:max-[640px]:col-start-2"
+ href={integration.href}
+ >
+ <IntegrationTile {integration} size={40} />
+ <span class="flex min-w-0 flex-col">
+ <strong class="text-[0.94rem] leading-[1.25]">{integration.name}</strong>
+ <small class="overflow-hidden text-ellipsis whitespace-nowrap text-[0.8rem] leading-[1.4] text-[#807a6e] dark:text-white/55">{integration.platform}</small>
+ </span>
+ <em class="whitespace-nowrap text-[0.78rem] font-extrabold text-[#b06a1b] not-italic dark:text-primary-300">{ctaLabel(integration)} →</em>
+ </a>
+ {/each}
+ {/if}
+ </div>
+ </div>
+ </section>
+
+ <MarketingFooter />
+</div>
diff --git a/packages/web/static/marketing/screenshots/settings-rules.png b/packages/web/static/marketing/screenshots/settings-rules.png
new file mode 100644
index 000000000..a94160554
Binary files /dev/null and b/packages/web/static/marketing/screenshots/settings-rules.png differ
diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.ts
index 82e2062a2..92219fee9 100644
--- a/packages/web/vite.config.ts
+++ b/packages/web/vite.config.ts
@@ -27,226 +27,231 @@ export default defineConfig(async () => {
title: 'Harper: The Private Grammar Checker',
description: 'The Free Grammar Checker That Respects Your Privacy',
},
- theme: defaultTheme({
- editLink:
- 'https://github.com/automattic/harper/edit/master/packages/web/src/routes/:route',
- logo: '/circle-logo.png',
- github: 'https://github.com/automattic/harper',
- discord: 'https://discord.gg/invite/JBqcAaKrzQ',
- themeColor: {
- primary: '#f1920e',
- dark: '#301d03',
- gradient: {
- start: '#355280',
- end: '#818eae',
- },
- },
- navbar: [
- { title: 'Documentation', to: '/docs/about' },
- { title: 'Obsidian', to: '/docs/integrations/obsidian' },
- {
- title: 'Chrome Extension',
- to: 'https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb',
- },
- ],
- docsearch: {
- indexName: 'Documentation',
- appId: 'YIV4D9QMR0',
- apiKey: 'ff521ad7f129e4f4defe97dce3c923ad',
- },
- sidebar: {
- '/docs/': [
- {
- items: [
- {
- title: 'About',
- to: '/docs/about',
- },
- ],
- },
- {
- items: [
- {
- title: 'Weir',
- to: '/docs/weir',
- },
- ],
- },
- {
- title: 'Integrations',
- items: [
- {
- title: 'Obsidian',
- to: '/docs/integrations/obsidian',
- },
- {
- title: 'Chrome Extension',
- to: '/docs/integrations/chrome-extension',
- },
- {
- title: 'Firefox Extension',
- to: '/docs/integrations/firefox-extension',
- },
- {
- title: 'WordPress',
- to: '/docs/integrations/wordpress',
- },
- {
- title: 'Language Server',
- to: '/docs/integrations/language-server',
- },
- {
- title: 'Visual Studio Code',
- to: '/docs/integrations/visual-studio-code',
- },
- {
- title: 'Neovim',
- to: '/docs/integrations/neovim',
- },
- {
- title: 'Helix',
- to: '/docs/integrations/helix',
- },
- {
- title: 'Emacs',
- to: '/docs/integrations/emacs',
- },
- {
- title: 'Zed',
- to: '/docs/integrations/zed',
- },
- {
- title: 'Sublime Text',
- to: '/docs/integrations/sublime-text',
- },
- ],
- },
- {
- title: 'harper.js',
- items: [
- {
- title: 'Introduction',
- to: '/docs/harperjs/introduction',
- },
- {
- title: 'Linting',
- to: '/docs/harperjs/linting',
- },
- {
- title: 'Spans',
- to: '/docs/harperjs/spans',
- },
- {
- title: 'Configure Rules',
- to: '/docs/harperjs/configurerules',
- },
- {
- title: 'Node.js',
- to: '/docs/harperjs/node',
- },
- {
- title: 'CDN',
- to: '/docs/harperjs/CDN',
- },
- {
- title: 'API Reference',
- to: '/docs/harperjs/ref/index.html',
- },
- ],
- },
- {
- title: 'Contributors',
- items: [
- {
- title: 'Introduction',
- to: '/docs/contributors/introduction',
- },
- {
- title: 'Environment',
- to: '/docs/contributors/environment',
- },
- {
- title: 'Committing',
- to: '/docs/contributors/committing',
- },
- {
- title: 'Architecture',
- to: '/docs/contributors/architecture',
- },
- {
- title: 'Dictionary',
- to: '/docs/contributors/dictionary',
- },
- {
- title: 'Test Suite',
- to: '/docs/contributors/tests',
- },
- {
- title: 'Author a Rule',
- to: '/docs/contributors/author-a-rule',
- },
- {
- title: 'Visual Studio Code',
- to: '/docs/contributors/visual-studio-code',
- },
- {
- title: 'Chrome Extension',
- to: '/docs/contributors/chrome-extension',
- },
- {
- title: 'WordPress',
- to: '/docs/contributors/wordpress',
- },
- {
- title: 'Obsidian',
- to: '/docs/contributors/obsidian',
- },
- {
- title: 'Reviewing Pull Requests',
- to: '/docs/contributors/review',
- },
- {
- title: 'Local Statistics',
- to: '/docs/contributors/local-stats',
- },
- {
- title: 'Brill Tagging',
- to: '/docs/contributors/brill',
- },
- {
- title: 'FAQ',
- to: '/docs/contributors/faq',
- },
- ],
- },
- {
- title: 'Rust Reference',
- to: 'https://docs.rs/harper-core/latest/harper_core/',
+ theme: {
+ ...defaultTheme({
+ editLink:
+ 'https://github.com/automattic/harper/edit/master/packages/web/src/routes/:route',
+ logo: '/circle-logo.png',
+ github: 'https://github.com/automattic/harper',
+ discord: 'https://discord.gg/invite/JBqcAaKrzQ',
+ themeColor: {
+ primary: '#f1920e',
+ dark: '#301d03',
+ gradient: {
+ start: '#355280',
+ end: '#818eae',
},
+ },
+ navbar: [
+ { title: 'Documentation', to: '/docs/about' },
+ { title: 'Get Harper', to: '/get' },
+ { title: 'Obsidian', to: '/docs/integrations/obsidian' },
{
- title: 'Rules',
- to: '/docs/rules',
+ title: 'Chrome Extension',
+ to: 'https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb',
},
],
- },
- highlighter: {
- languages: [
- 'svelte',
- 'sh',
- 'js',
- 'html',
- 'ts',
- 'md',
- 'css',
- 'scss',
- 'toml',
- 'rust',
- 'lua',
- 'json',
- 'elisp',
- ],
- },
- }),
+ docsearch: {
+ indexName: 'Documentation',
+ appId: 'YIV4D9QMR0',
+ apiKey: 'ff521ad7f129e4f4defe97dce3c923ad',
+ },
+ sidebar: {
+ '/docs/': [
+ {
+ items: [
+ {
+ title: 'About',
+ to: '/docs/about',
+ },
+ ],
+ },
+ {
+ items: [
+ {
+ title: 'Weir',
+ to: '/docs/weir',
+ },
+ ],
+ },
+ {
+ title: 'Integrations',
+ items: [
+ {
+ title: 'Obsidian',
+ to: '/docs/integrations/obsidian',
+ },
+ {
+ title: 'Chrome Extension',
+ to: '/docs/integrations/chrome-extension',
+ },
+ {
+ title: 'Firefox Extension',
+ to: '/docs/integrations/firefox-extension',
+ },
+ {
+ title: 'WordPress',
+ to: '/docs/integrations/wordpress',
+ },
+ {
+ title: 'Language Server',
+ to: '/docs/integrations/language-server',
+ },
+ {
+ title: 'Visual Studio Code',
+ to: '/docs/integrations/visual-studio-code',
+ },
+ {
+ title: 'Neovim',
+ to: '/docs/integrations/neovim',
+ },
+ {
+ title: 'Helix',
+ to: '/docs/integrations/helix',
+ },
+ {
+ title: 'Emacs',
+ to: '/docs/integrations/emacs',
+ },
+ {
+ title: 'Zed',
+ to: '/docs/integrations/zed',
+ },
+ {
+ title: 'Sublime Text',
+ to: '/docs/integrations/sublime-text',
+ },
+ ],
+ },
+ {
+ title: 'harper.js',
+ items: [
+ {
+ title: 'Introduction',
+ to: '/docs/harperjs/introduction',
+ },
+ {
+ title: 'Linting',
+ to: '/docs/harperjs/linting',
+ },
+ {
+ title: 'Spans',
+ to: '/docs/harperjs/spans',
+ },
+ {
+ title: 'Configure Rules',
+ to: '/docs/harperjs/configurerules',
+ },
+ {
+ title: 'Node.js',
+ to: '/docs/harperjs/node',
+ },
+ {
+ title: 'CDN',
+ to: '/docs/harperjs/CDN',
+ },
+ {
+ title: 'API Reference',
+ to: '/docs/harperjs/ref/index.html',
+ },
+ ],
+ },
+ {
+ title: 'Contributors',
+ items: [
+ {
+ title: 'Introduction',
+ to: '/docs/contributors/introduction',
+ },
+ {
+ title: 'Environment',
+ to: '/docs/contributors/environment',
+ },
+ {
+ title: 'Committing',
+ to: '/docs/contributors/committing',
+ },
+ {
+ title: 'Architecture',
+ to: '/docs/contributors/architecture',
+ },
+ {
+ title: 'Dictionary',
+ to: '/docs/contributors/dictionary',
+ },
+ {
+ title: 'Test Suite',
+ to: '/docs/contributors/tests',
+ },
+ {
+ title: 'Author a Rule',
+ to: '/docs/contributors/author-a-rule',
+ },
+ {
+ title: 'Visual Studio Code',
+ to: '/docs/contributors/visual-studio-code',
+ },
+ {
+ title: 'Chrome Extension',
+ to: '/docs/contributors/chrome-extension',
+ },
+ {
+ title: 'WordPress',
+ to: '/docs/contributors/wordpress',
+ },
+ {
+ title: 'Obsidian',
+ to: '/docs/contributors/obsidian',
+ },
+ {
+ title: 'Reviewing Pull Requests',
+ to: '/docs/contributors/review',
+ },
+ {
+ title: 'Local Statistics',
+ to: '/docs/contributors/local-stats',
+ },
+ {
+ title: 'Brill Tagging',
+ to: '/docs/contributors/brill',
+ },
+ {
+ title: 'FAQ',
+ to: '/docs/contributors/faq',
+ },
+ ],
+ },
+ {
+ title: 'Rust Reference',
+ to: 'https://docs.rs/harper-core/latest/harper_core/',
+ },
+ {
+ title: 'Rules',
+ to: '/docs/rules',
+ },
+ ],
+ },
+ highlighter: {
+ languages: [
+ 'svelte',
+ 'sh',
+ 'js',
+ 'html',
+ 'ts',
+ 'md',
+ 'css',
+ 'scss',
+ 'toml',
+ 'rust',
+ 'lua',
+ 'json',
+ 'elisp',
+ ],
+ },
+ }),
+ globalLayout: '$lib/marketing/SveltePressGlobalLayout.svelte',
+ pageLayout: '$lib/marketing/SveltePressPageLayout.svelte',
+ },
}),
wasm(),
topLevelAwait(),
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1a28da356..aae8c3df8 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -500,6 +500,12 @@ importers:
packages/web:
dependencies:
+ '@docsearch/css':
+ specifier: ^3.9.0
+ version: 3.9.0
+ '@docsearch/js':
+ specifier: ^3.9.0
'@sveltepress/theme-default':
specifier: ^5.0.7
version: 5.0.8(4268f9b38bc0513d36dd7ea806650b17)