Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat(web): revise landing page (#2046)
Elijah Potter685ba3adae86
diff --git a/packages/web/src/app.css b/packages/web/src/app.cssindex aa8e5a126..6bdaee1dc 100644--- a/packages/web/src/app.css+++ b/packages/web/src/app.css@@ -114,3 +114,11 @@ th[align="center"] {th[align="right"] {text-align: right;}++.skew-hover {+ @apply transition-all hover:rotate-3 hover:scale-105;+}++.skew-hover-left {+ @apply transition-all hover:-rotate-3 hover:scale-105;+}diff --git a/packages/web/src/lib/EmacsLogo.svelte b/packages/web/src/lib/EmacsLogo.sveltenew file mode 100644index 000000000..d3d526106--- /dev/null+++ b/packages/web/src/lib/EmacsLogo.svelte@@ -0,0 +1,12 @@+<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 128 128">+ <circle cx="64" cy="64" r="64" fill="#ffffff" />+ <path+ fill="#421f5f"+ d="M60.613 8.012a56.04 56.04 0 0 0-27.34 9.062c-3.437 2.262-5.847 4.238-8.91 7.29-4.652 4.66-8.011 9.363-10.863 15.198-7.938 16.313-7.375 35.938 1.488 51.75 2.598 4.626 5.512 8.461 9.375 12.325 3.063 3.05 5.473 5.039 8.899 7.277a56.014 56.014 0 0 0 61.476 0c3.426-2.238 5.836-4.227 8.899-7.277 3.863-3.864 6.777-7.7 9.375-12.325 8.863-15.812 9.425-35.437 1.488-51.75-2.852-5.835-6.21-10.539-10.863-15.199-3.063-3.05-5.473-5.027-8.91-7.289a55.965 55.965 0 0 0-34.114-9.062Zm27.325 21.914c4.574 1.187 7.55 4.523 7.773 8.699.187 3.336-1.563 5.96-4.625 6.95-.848.277-1.262.323-2.398.323-1.665.016-2.551-.109-6.665-.898-3.875-.75-5.41-.96-8.46-1.125-7.461-.398-11.461.262-12.387 2.023-.477.914.086 2.204 1.648 3.852.84.863 3.2 2.738 11.176 8.836 5.574 4.25 10.05 7.738 9.96 7.75-.073.027-4.698.203-10.272.414-10.227.387-11.239.46-13.551 1.012-4.285 1.011-8.364 2.925-10.035 4.715-2.227 2.375-1.551 4.734 2.023 7.136 3.5 2.336 9.313 4.301 19.688 6.637 9.726 2.188 14.062 3.602 16.949 5.477.988.648 1.55 1.21 1.812 1.859.688 1.613-1.836 3.176-6.597 4.102-3.188.613-5.29.75-11.727.75-10.336-.012-20.613-.836-26.46-2.137-2.767-.614-2.704-.664.71-.59 6.676.152 23.324-.586 26.05-1.148 1.575-.325 2.063-.864 1.337-1.477-.801-.672-2.098-.984-4.95-1.211-5.55-.438-11.726-1.852-17.148-3.95C43.637 84.79 37.352 80.314 34 75.274c-3.602-5.41-1.563-10.023 5.7-12.937 4.788-1.922 11.76-3 18.175-2.785 4.836.148 8.074.71 11.75 2.035.102.039-.512-.348-1.375-.86-10.324-6.124-16.188-11.5-19.313-17.714-.624-1.25-1.062-2.723-1.062-3.575 0-1.437.8-2.648 2.176-3.3 1.363-.649 2.472-.825 5.136-.825 2.637.012 3.239.075 8.188.876 4.512.726 7.398 1.136 9.625 1.363 4.773.5 9.602.562 10.96.148.79-.25 1.29-.785 1.29-1.398 0-1.664-4.96-3.54-13.875-5.239-3.54-.675-3.914-.789-2.75-.812.45-.012 3.762-.176 7.375-.375 7.938-.438 10.113-.426 11.938.05Zm0 0"+ />+</svg>diff --git a/packages/web/src/lib/HelixLogo.svelte b/packages/web/src/lib/HelixLogo.sveltenew file mode 100644index 000000000..b0a9bd2e8--- /dev/null+++ b/packages/web/src/lib/HelixLogo.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" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="663.38 37.57 575.35 903.75"><path d="m1083.58 1875.72 551.48 318.4a47.66 47.66 0 0 1 23.82 41.27v105.94c0 8.51-2.27 16.7-6.38 23.83 0 0-437.8-252.76-545.3-314.83a47.245 47.245 0 0 1-23.62-40.92z" style="fill:#706bc8" transform="translate(-420.173 -1838.145)"/><path d="M1635.26 2604.84a47.228 47.228 0 0 1 23.62 40.91v133.69l-551.47-318.39a47.66 47.66 0 0 1-23.83-41.27v-105.94c0-8.52 2.27-16.71 6.38-23.83 0 0 437.8 252.76 545.3 314.83" style="fill:#55c5e4" transform="translate(-420.173 -1838.145)"/><path d="M790.407 1432.56a35.033 35.033 0 0 0-12.898 12.9c-9.647 16.7-4.036 38.3 12.495 48.13h-.006l-28.825-16.64a47.644 47.644 0 0 1-23.829-41.27v-105.94c0-17.03 9.083-32.76 23.829-41.27l498.417-287.73.24-.14a34.962 34.962 0 0 0 12.65-12.756c9.65-16.708 4.04-38.3-12.49-48.137h.01l28.82 16.642a47.648 47.648 0 0 1 23.83 41.273v105.938c0 17.03-9.08 32.76-23.83 41.27l-29.63 17.11.4-.26z" style="fill:#84ddea" transform="translate(-73.938 -854.05)"/><path d="M790.407 1686.24a35.08 35.08 0 0 0-12.898 12.89c-9.647 16.71-4.036 38.3 12.495 48.14h-.006l-28.825-16.64a47.656 47.656 0 0 1-23.829-41.27v-105.94c0-17.03 9.083-32.76 23.829-41.27l498.417-287.73.24-.14c5.09-2.99 9.5-7.29 12.65-12.76 9.65-16.71 4.04-38.3-12.49-48.14h.01l28.82 16.65a47.636 47.636 0 0 1 23.83 41.27v105.94c0 17.02-9.08 32.76-23.83 41.27l-29.63 17.1.4-.25z" style="fill:#997bc8" transform="translate(-73.938 -854.05)"/></svg>diff --git a/packages/web/src/lib/NeovimLogo.svelte b/packages/web/src/lib/NeovimLogo.sveltenew file mode 100644index 000000000..0cbe180cf--- /dev/null+++ b/packages/web/src/lib/NeovimLogo.svelte@@ -0,0 +1,31 @@+<script lang="ts">+export let width = '100%';+export let height = '100%';+</script>++<svg {width} {height} viewBox="0 0 602 734" xmlns="http://www.w3.org/2000/svg">+ <defs>+ <linearGradient id="g1" x1="50%" y1="0%" x2="50%" y2="100%">+ <stop offset="0%" stop-color="#16B0ED" stop-opacity="0.80"/>+ <stop offset="100%" stop-color="#0F59B2" stop-opacity="0.84"/>+ </linearGradient>+ <linearGradient id="g2" x1="50%" y1="0%" x2="50%" y2="100%">+ <stop offset="0%" stop-color="#7DB643"/>+ <stop offset="100%" stop-color="#367533"/>+ </linearGradient>+ <linearGradient id="g3" x1="50%" y1="0%" x2="50%" y2="100%">+ <stop offset="0%" stop-color="#88C649" stop-opacity="0.8"/>+ <stop offset="100%" stop-color="#439240" stop-opacity="0.84"/>+ </linearGradient>+ </defs>+ <g fill="none" stroke="none" fill-rule="evenodd">+ <!-- left green section -->+ <path d="M0 155.57 155 0v733.43L0 578.24V155.57z" fill="url(#g1)"/>+ <!-- right green section -->+ <path d="M598 155.57 443 0v733.43l155-155.19V155.57z" fill="url(#g2)" transform="translate(598 366.71) scale(-1 1) translate(0px -366.71)"/>+ <!-- central cross -->+ <path d="M155 0l403 615.19-112.78 112.81L42 114.17z" fill="url(#g3)"/>+ <!-- subtle shadow -->+ <path d="M155 283.83l-.21 24.17L31 124.71l11.46-11.71z" fill="#000" opacity="0.13"/>+ </g>+</svg>diff --git a/packages/web/src/lib/Section.svelte b/packages/web/src/lib/Section.svelteindex 532b997de..42ea11e7d 100644--- a/packages/web/src/lib/Section.svelte+++ b/packages/web/src/lib/Section.svelte@@ -1,29 +1,59 @@<script lang="ts">-export let swapped = false;-export let noChild = false;+export let layout: 'single' | 'split' = 'single';+export let reverse = false;++const hasSubtitle = Boolean($$slots.subtitle);+const hasAside = Boolean($$slots.aside);++const { class: extraClass = '', ...restProps } = $$restProps;</script><section- class={`py-6 md:py-12 w-full px-4 md:px-6 grid ${noChild ? 'sm:grid-cols-1' : 'sm:grid-cols-2'} gap-8 dark:text-white`}+ {...restProps}+ class={`w-full px-4 md:px-6 ${extraClass}`.trim()}>- {#if swapped && !noChild}- <div>- <slot />+ {#if layout === 'split'}+ <div class={`grid gap-8 md:grid-cols-2 ${hasAside ? 'md:items-start' : ''}`}>+ <div class={`space-y-4 ${reverse ? 'md:order-2' : ''}`}>+ {#if $$slots.title}+ <h3 class="font-semibold">+ <slot name="title" />+ </h3>+ {/if}+ {#if hasSubtitle}+ <p class="text-gray-600 dark:text-gray-300">+ <slot name="subtitle" />+ </p>+ {/if}+ {#if $$slots.default}+ <div class="space-y-3">+ <slot />+ </div>+ {/if}+ </div>+ {#if hasAside}+ <div class={`${reverse ? 'md:order-1' : ''}`}>+ <slot name="aside" />+ </div>+ {/if}</div>- {/if}-- <div class={`justify-center space-y-2`}>- <h2 class="font-bold">- <slot name="title" />- </h2>- <p class="text-gray-500 dark:text-gray-400">- <slot name="subtitle" />- </p>- </div>-- {#if !swapped && !noChild}- <div>- <slot />+ {:else}+ <div class="space-y-4">+ {#if $$slots.title}+ <h3 class="font-semibold">+ <slot name="title" />+ </h3>+ {/if}+ {#if hasSubtitle}+ <p class="text-gray-600 dark:text-gray-300">+ <slot name="subtitle" />+ </p>+ {/if}+ {#if $$slots.default}+ <div class="space-y-3">+ <slot />+ </div>+ {/if}</div>{/if}</section>diff --git a/packages/web/src/lib/SublimeLogo.svelte b/packages/web/src/lib/SublimeLogo.sveltenew file mode 100644index 000000000..a8d274c39--- /dev/null+++ b/packages/web/src/lib/SublimeLogo.svelte@@ -0,0 +1,6 @@+<script lang="ts">+export let width = '100%';+export let height = '100%';+</script>++<svg {width} {height} id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512.23 512.12"><defs><style>.cls-1{fill:#4d4d4e;}.cls-2{fill:#f89820;}.cls-3{fill:url(#linear-gradient);}</style><linearGradient id="linear-gradient" x1="45.04" y1="421.1" x2="93.51" y2="437.87" gradientTransform="matrix(5.59, 0, 0, -5.59, -126.58, 2748.7)" gradientUnits="userSpaceOnUse"><stop offset="0.23" stop-color="#f89822"/><stop offset="1" stop-color="#c27818"/></linearGradient></defs><title>sublime-text</title><path class="cls-1" d="M492.17,511.79H19.6A19.91,19.91,0,0,1-.23,492V19.5A19.91,19.91,0,0,1,19.6-.33H492.17A19.91,19.91,0,0,1,512,19.5V492.07a19.89,19.89,0,0,1-19.83,19.72Z" transform="translate(0.23 0.33)"/><path class="cls-2" d="M117.85,154.33l268-85.07s19-10,14.45,8.48l.68,82s3.33,12-13.18,15L278.93,208.78Z" transform="translate(0.23 0.33)"/><path class="cls-2" d="M117.85,154.33s-10.55,2.52-7.45,20.52l-.57,79s-.92,10,18,14l265.64,85.52s8.94,3.55,7.91-7.45l.11-88s2.52-9.06-14-15L278.93,208.78Z" transform="translate(0.23 0.33)"/><path class="cls-3" d="M234.9,302.22l-113,34.51s-13.64.46-12,26-.12,77-.12,77,1.15,9.52,14.22,4l268-85.53s9.51-2.41,1.49-5S234.9,302.22,234.9,302.22Z" transform="translate(0.23 0.33)"/></svg>diff --git a/packages/web/src/lib/WordPressLogo.svelte b/packages/web/src/lib/WordPressLogo.sveltenew file mode 100644index 000000000..997e11028--- /dev/null+++ b/packages/web/src/lib/WordPressLogo.svelte@@ -0,0 +1,27 @@+<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"+ x="0px"+ y="0px"+ viewBox="0 0 122.88 122.88"+ style="enable-background:new 0 0 122.88 122.88"+ xml:space="preserve"+>+ <style type="text/css">.st0{fill:#32373C;}</style>+ <g>+ <circle cx="61.44" cy="61.44" r="61.44" fill="#ffffff" />+ <path+ class="st0"+ d="M61.44,0C27.51,0,0,27.51,0,61.44c0,33.93,27.51,61.44,61.44,61.44c33.93,0,61.44-27.51,61.44-61.44 C122.88,27.51,95.37,0,61.44,0L61.44,0z M106.37,36.88c0.22,1.63,0.34,3.38,0.34,5.26c0,5.19-0.97,11.03-3.89,18.34l-15.64,45.21 c15.22-8.87,25.46-25.37,25.46-44.25C112.64,52.54,110.37,44.17,106.37,36.88L106.37,36.88z M62.34,65.92l-15.36,44.64 c4.59,1.35,9.44,2.09,14.46,2.09c5.96,0,11.68-1.03,17-2.9c-0.14-0.22-0.26-0.45-0.37-0.71L62.34,65.92L62.34,65.92z M96,58.86 c0-6.33-2.27-10.71-4.22-14.12c-2.6-4.22-5.03-7.79-5.03-12.01c0-4.71,3.57-9.09,8.6-9.09c0.23,0,0.44,0.03,0.66,0.04 c-9.11-8.35-21.25-13.44-34.57-13.44c-17.89,0-33.62,9.18-42.78,23.08c1.2,0.04,2.33,0.06,3.3,0.06c5.35,0,13.65-0.65,13.65-0.65 c2.76-0.16,3.08,3.89,0.33,4.22c0,0-2.77,0.32-5.86,0.49l18.64,55.46l11.21-33.6l-7.98-21.86c-2.76-0.16-5.37-0.49-5.37-0.49 c-2.76-0.16-2.44-4.38,0.32-4.22c0,0,8.45,0.65,13.48,0.65c5.35,0,13.65-0.65,13.65-0.65c2.76-0.16,3.08,3.89,0.33,4.22 c0,0-2.78,0.32-5.86,0.49L87,92.47l5.28-16.74C94.63,68.42,96,63.24,96,58.86L96,58.86z M10.24,61.44 c0,20.27,11.78,37.78,28.86,46.08L14.67,40.6C11.83,46.97,10.24,54.01,10.24,61.44L10.24,61.44z M61.44,3.69 c7.8,0,15.36,1.53,22.48,4.54c3.42,1.45,6.72,3.24,9.81,5.32c3.06,2.07,5.94,4.44,8.55,7.05c2.61,2.61,4.99,5.49,7.05,8.55 c2.09,3.09,3.88,6.39,5.32,9.81c3.01,7.12,4.54,14.68,4.54,22.48c0,7.8-1.53,15.36-4.54,22.48c-1.45,3.42-3.24,6.72-5.32,9.81 c-2.07,3.06-4.44,5.94-7.05,8.55c-2.61,2.61-5.49,4.99-8.55,7.05c-3.09,2.09-6.39,3.88-9.81,5.32c-7.12,3.01-14.68,4.54-22.48,4.54 c-7.8,0-15.36-1.53-22.48-4.54c-3.42-1.45-6.72-3.24-9.81-5.32c-3.06-2.07-5.94-4.44-8.55-7.05c-2.61-2.61-4.99-5.49-7.05-8.55 c-2.09-3.09-3.88-6.39-5.32-9.81C5.21,76.8,3.69,69.24,3.69,61.44c0-7.8,1.53-15.36,4.54-22.48c1.45-3.42,3.24-6.72,5.32-9.81 c2.07-3.06,4.44-5.94,7.05-8.55c2.61-2.61,5.49-4.99,8.55-7.05c3.09-2.09,6.39-3.88,9.81-5.32C46.08,5.21,53.64,3.69,61.44,3.69 L61.44,3.69z"+ />+ </g>+</svg>diff --git a/packages/web/src/lib/ZedLogo.svelte b/packages/web/src/lib/ZedLogo.sveltenew file mode 100644index 000000000..6c3fcd843--- /dev/null+++ b/packages/web/src/lib/ZedLogo.svelte@@ -0,0 +1,26 @@+<script lang="ts">+export let width = '100%';+export let height = '100%';+</script>++<svg+ class="block dark:hidden"+ {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"/>+</svg>diff --git a/packages/web/src/routes/+page.svelte b/packages/web/src/routes/+page.svelteindex d0d1d000b..9bddcfbba 100644--- a/packages/web/src/routes/+page.svelte+++ b/packages/web/src/routes/+page.svelte@@ -1,150 +1,355 @@<script module>+export const frontmatter = {+ home: false,+};+</script>++<script lang="ts">import ChromeLogo from '$lib/ChromeLogo.svelte';import CodeLogo from '$lib/CodeLogo.svelte';-import EdgeLogo from '$lib/EdgeLogo.svelte';import Editor from '$lib/Editor.svelte';import FirefoxLogo from '$lib/FirefoxLogo.svelte';import GitHubLogo from '$lib/GitHubLogo.svelte';-import Graph from '$lib/Graph.svelte';-import Logo from '$lib/Logo.svelte';import ObsidianLogo from '$lib/ObsidianLogo.svelte';+import Logo from '$lib/Logo.svelte';+import Graph from '$lib/Graph.svelte';import Section from '$lib/Section.svelte';--export const frontmatter = {- home: false,-};--let width = $state(window.innerWidth);--window.addEventListener('resize', () => {- width = window.innerWidth;-});--let mobile = $derived(width < 640);+import EmacsLogo from '$lib/EmacsLogo.svelte';+import HelixLogo from '$lib/HelixLogo.svelte';+import NeovimLogo from '$lib/NeovimLogo.svelte';+import SublimeLogo from '$lib/SublimeLogo.svelte';+import WordPressLogo from '$lib/WordPressLogo.svelte';+import ZedLogo from '$lib/ZedLogo.svelte';+ import EdgeLogo from '$lib/EdgeLogo.svelte';/*** @param {string} keyword*/-function agentHas(keyword) {+function agentHas(keyword: string) {return navigator.userAgent.toLowerCase().search(keyword.toLowerCase()) > -1;}</script>-<div class="w-full flex flex-col items-center">- <Logo width="200px" />-</div>-<h1 class="font-bold text-center">Hi. I’m Harper.</h1>-<h2 class="text-center text-lg md:text-2xl lg:text-4xl">The <strong>Free</strong> Grammar Checker That Respects Your Privacy</h2>--<div- class="md:flex md:flex-row grid grid-cols-2 items-center justify-evenly mt-5 transition-all place-items-center"->- <a- href="https://github.com/automattic/harper"- class="flex flex-row items-center [&>*]:m-2 hover:scale-105"- ><GitHubLogo width="40px" height="40px" />GitHub</a- >+<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" />+ </div>+ <div class="space-y-2 text-center">+ <h1 class="font-bold">Hi. I'm Harper.</h1>+ <h2>+ The <strong>Free</strong> Grammar Checker That Respects Your Privacy+ </h2>+ </div>- {#if agentHas("firefox")}- <a href="https://addons.mozilla.org/en-US/firefox/addon/private-grammar-checker-harper/" class="flex flex-row items-center [&>*]:m-2 hover:scale-105"- ><FirefoxLogo width="40px" height="40px" />Add to Firefox</a- >- {:else if agentHas("Edg")}- <a href="https://microsoftedge.microsoft.com/addons/detail/private-grammar-checker-/ihjkkjfembmnjldmdchmadigpmapkpdh" class="flex flex-row items-center [&>*]:m-2 hover:scale-105"- ><EdgeLogo width="40px" height="40px" />Add to Edge</a- >- {:else}- <a href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb" class="flex flex-row items-center [&>*]:m-2 hover:scale-105"- ><ChromeLogo width="40px" height="40px" />Add to Chrome</a- >- {/if}+ <div+ class="md:flex md:flex-row grid grid-cols-2 items-center justify-evenly place-items-center gap-2 pt-2 text-center"+ >+ <a+ href="https://github.com/automattic/harper"+ class="flex flex-row items-center [&>*]:m-2 skew-hover-left"+ >+ <GitHubLogo width="40px" height="40px" />GitHub+ </a>- <a href="/docs/integrations/obsidian" class="flex flex-row items-center [&>*]:m-2 hover:scale-105"- ><ObsidianLogo width="40px" height="40px" />Install in Obsidian</a- >-- <a- href="https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper"- class="flex flex-row items-center [&>*]:m-2 hover:scale-105"- ><CodeLogo width="40px" height="40px" />Install in VS Code</a- >- <a href="https://elijahpotter.dev" class="flex flex-row items-center [&>*]:m-2 hover:scale-105"+ {#if agentHas("firefox")}+ <a 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</a+ >+ {:else if agentHas("Edg")}+ <a 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</a+ >+ {:else}+ <a href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb" class="flex flex-row items-center [&>*]:m-2 skew-hover"+ ><ChromeLogo width="40px" height="40px" />Add to Chrome</a+ >+ {/if}+ <a+ 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+ </a>+ <a+ href="/docs/integrations/obsidian"+ class="flex flex-row items-center [&>*]:m-2 skew-hover"+ >+ <ObsidianLogo width="40px" height="40px" />Install in Obsidian+ </a>+ <a href="https://elijahpotter.dev" class="flex flex-row items-center [&>*]:m-2 skew-hover-left"><imgwidth="40"height="40"- class="hover:scale-105 transition-all"src="/icons/profile.svg"alt="Author"/>Author</a>-</div>+ </div>-<div class="w-full h-[800px] overflow-hidden">- <Editor />-</div>+ <div class="h-[800px] w-full overflow-hidden rounded-xl border border-neutral-200 shadow-sm dark:border-neutral-800">+ <Editor />+ </div>+ </div>-<Section noChild>- <span slot="title"> What is it? </span>- <span slot="subtitle">- Harper is a free English grammar checker designed to be <em>just right</em>. 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.- </span>-</Section>+ <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>- <span slot="title">Private</span>- <span slot="subtitle"- >Harper is completely private, in every sense of the word. <br /><br />- Since Harper runs on-device, your data doesn't go anywhere you don't want it to. <br />- <br />That means you have 100% certainty we don't violate your copyright by training large- language models.- </span>+ <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>+ <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>- <img src="/images/camera.webp" class="rounded" alt="Graffiti of a camera." />-</Section>+ <Section layout="split" reverse>+ <svelte:fragment slot="title">Native Everywhere</svelte:fragment>+ <p>+ Harper is available as a+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/language-server">language server</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/harperjs/introduction">JavaScript library</a>+ through WebAssembly, and+ <a class="text-blue-600 underline dark:text-blue-400" href="https://crates.io/crates/harper-core">Rust crate</a>,+ so you can get fantastic grammar checking anywhere you work.+ </p>+ <p>+ That said, we take extra care to make sure the+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/visual-studio-code">Visual Studio Code</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/neovim">Neovim</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/obsidian">Obsidian</a>, and+ <a class="text-blue-600 underline dark:text-blue-400" href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb">Chrome</a>+ extensions are amazing.+ </p>+ <svelte:fragment slot="aside">+ <div class="grid gap-4 sm:grid-cols-2">+ <a+ href="/docs/integrations/obsidian"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover-left"+ >+ <ObsidianLogo width="40" height="40" />+ <span class="font-medium">Obsidian</span>+ </a>+ <a+ href="/docs/integrations/visual-studio-code"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover"+ >+ <CodeLogo width="40" height="40" />+ <span class="font-medium">Visual Studio Code</span>+ </a>+ <a+ href="/docs/integrations/neovim"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover"+ >+ <NeovimLogo width="40" height="40" />+ <span class="font-medium">Neovim</span>+ </a>+ <a+ href="https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover-left"+ >+ <ChromeLogo width="40" height="40" />+ <span class="font-medium">Chrome</span>+ </a>+ <a+ href="https://addons.mozilla.org/en-US/firefox/addon/private-grammar-checker-harper/"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover"+ >+ <FirefoxLogo width="40" height="40" />+ <span class="font-medium">Firefox</span>+ </a>+ <a+ href="/docs/integrations/helix"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover-left"+ >+ <HelixLogo width="40" height="40" />+ <span class="font-medium">Helix</span>+ </a>+ <a+ href="/docs/integrations/wordpress"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover-left"+ >+ <WordPressLogo width="40" height="40" />+ <span class="font-medium">WordPress</span>+ </a>+ <a+ href="/docs/integrations/zed"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover"+ >+ <ZedLogo width="40" height="40" />+ <span class="font-medium">Zed</span>+ </a>+ <a+ href="/docs/integrations/emacs"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover-left"+ >+ <EmacsLogo width="40" height="40" />+ <span class="font-medium">Emacs</span>+ </a>+ <a+ href="/docs/integrations/sublime-text"+ class="flex items-center gap-3 rounded-lg border border-neutral-200 px-4 py-3 shadow-sm transition hover:shadow-md dark:border-neutral-800 skew-hover"+ >+ <SublimeLogo width="40" height="40" />+ <span class="font-medium">Sublime Text</span>+ </a>+ </div>+ </svelte:fragment>+ </Section>-<Section swapped={!mobile}>- <span slot="title">Native Everywhere</span>- <span slot="subtitle"- >Harper is available as a <a- href="/docs/integrations/language-server">language server</a- >, <a href="/docs/harperjs/introduction">JavaScript library</a- > through WebAssembly, and <a- href="https://crates.io/crates/harper-core">Rust crate</a- >, so you can get fantastic grammar checking anywhere you work.- <br /><br /> That said, we take extra care to make sure the- <a href="/docs/integrations/visual-studio-code"- >Visual Studio Code</a- >, <a href="/docs/integrations/neovim">Neovim</a>,- <a href="/docs/integrations/obsidian">Obsidian</a>, and <a href="/docs/integrations/chrome-extension">Chrome</a> extensions are amazing.- </span>+ <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">+ <div class="rounded-xl border border-neutral-200 p-4 shadow-sm dark:border-neutral-800">+ <Graph />+ </div>+ </svelte:fragment>+ </Section>- <img- src={['/images/harper_wp_playground_screenshot.png', '/images/obsidian_screenshot.webp'][- Math.floor(Math.random() * 2)- ]}- class="dark:invert rounded"- alt="A screenshot of a text editor with Harper suggestions."- /></Section->--<Section>- <span slot="title">Wicked Fast</span>- <span slot="subtitle"- >Since Harper runs on <strong>your</strong> devices, it's able to serve up suggestions in under- 10 milliseconds.- <br />- <br />- No network request, no massive language models, no fuss.</span- >- <Graph /></Section->+ <Section id="faqs">+ <svelte:fragment slot="title">FAQs</svelte:fragment>+ <div class="space-y-4">+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ Is Harper Free?+ </summary>+ <p class="mt-3">+ 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 unde the Apache-2.0 license.+ </p>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ How Does Harper Work?+ </summary>+ <p class="mt-3">+ 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>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ Does Harper Change The Meaning of My Words?+ </summary>+ <p class="mt-3">+ 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>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ Is Harper Really Private?+ </summary>+ <p class="mt-3">+ 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>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ How Do I Use or Integrate Harper?+ </summary>+ <div class="mt-3">+ <p>+ That depends on your use case. Do you want to use it within Obsidian? We have an+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/obsidian">Obsidian plugin</a>. Do you want to use it within WordPress? We have a+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/wordpress">WordPress plugin</a>. Do you want to use it within your Browser? We have a+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/chrome-extension">Chrome extension</a> and a+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/firefox-extension">Firefox plugin</a>. Do you want to use it within your code editor? We have documentation on how you can integrate with+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/visual-studio-code">Visual Studio Code and its forks</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/neovim">Neovim</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/helix">Helix</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/emacs">Emacs</a>,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/zed">Zed</a> and+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/sublime-text">Sublime Text</a>. If you're using a different code editor, then you can integrate directly with our language server,+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/language-server">harper-ls</a>. Do you want to integrate it in your web app or your JavaScript/TypeScript codebase? You can use+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/harperjs/introduction">harper.js</a>. Do you want to integrate it in your Rust program or codebase? You can use+ <a class="text-blue-600 underline dark:text-blue-400" href="https://crates.io/crates/harper-core">harper-core</a>.+ </p>+ </div>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ What Human Languages Do You Support?+ </summary>+ <p class="mt-3">+ We currently only support English and its dialects British, American, Canadian, and+ Australian. Other languages are on the horizon, but we want our English support to be truly+ amazing before we diversify.+ </p>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ What Programming Languages Do You Support?+ </summary>+ <p class="mt-3">+ 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+ <a class="text-blue-600 underline dark:text-blue-400" href="/docs/integrations/language-server#Supported-Languages">harper-ls documentation</a>.+ 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+ <a class="text-blue-600 underline dark:text-blue-400" href="https://github.com/Automattic/harper/pull/332">this PR as a model for what to do</a>.+ </p>+ <p class="mt-3">+ For <code>harper.js</code> and those that use it under the hood like our Obsidian plugin, we+ support plaintext and/or Markdown.+ </p>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ Where Did the Name Harper Come From?+ </summary>+ <p class="mt-3">+ See <a class="text-blue-600 underline dark:text-blue-400" href="https://elijahpotter.dev/articles/naming_harper">this blog post</a>.+ </p>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ Do I Need a GPU?+ </summary>+ <div class="mt-3">+ <p>No. Harper runs on-device, no matter what. There are no special hardware requirements. No GPU, no additional memory, no fuss.</p>+ </div>+ </details>+ <details class="group rounded-lg border border-neutral-200 bg-white p-4 shadow-sm open:shadow-md dark:border-neutral-800 dark:bg-neutral-900">+ <summary class="cursor-pointer font-semibold marker:text-neutral-400">+ What Do I Do If My Question Isn't Here?+ </summary>+ <p class="mt-3">+ You can join our+ <a class="text-blue-600 underline dark:text-blue-400" href="https://discord.gg/invite/JBqcAaKrzQ">Discord</a>+ and ask your questions there or you can start a discussion over at+ <a class="text-blue-600 underline dark:text-blue-400" href="https://github.com/Automattic/harper/discussions">GitHub</a>.+ </p>+ </details>+ </div>+ </Section>-<Section noChild swapped={!mobile}>- <span slot="title">Open Source</span>- <span slot="subtitle"- >Harper is completely open source under the Apache-2.0 license. <br /><br /> Come pay us a visit- on <a href="https://github.com/automattic/harper">GitHub.</a>- </span>-</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+ <a class="text-blue-600 underline dark:text-blue-400" href="https://github.com/automattic/harper">GitHub</a>.+ </p>+ </Section>+</main>diff --git a/packages/web/src/routes/docs/faq/+page.md b/packages/web/src/routes/docs/faq/+page.mddeleted file mode 100644index e2a59b20d..000000000--- a/packages/web/src/routes/docs/faq/+page.md+++ /dev/null@@ -1,43 +0,0 @@-----title: Frequently Asked Questions------## How Do I Use or Integrate Harper?--That depends on your use case.--Do you want to use it within Obsidian? We have an [Obsidian plugin](/docs/integrations/obsidian).-Do you want to use it within WordPress? We have a [WordPress plugin](/docs/integrations/wordpress).-Do you want to use it within your Browser? We have a [Chrome extension](/docs/integrations/chrome-extension) and a [Firefox plugin](/docs/integrations/firefox-extension).--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](/docs/integrations/visual-studio-code), [Neovim](/docs/integrations/neovim), [Helix](/docs/integrations/helix), [Emacs](/docs/integrations/emacs), [Zed](/docs/integrations/zed) and [Sublime Text](/docs/integrations/sublime-text). If you're using a different code editor, then you can integrate directly with our language server, [`harper-ls`](/docs/integrations/language-server).--Do you want to integrate it in your web app or your JavaScript/TypeScript codebase? You can use [`harper.js`](./harperjs/introduction).--Do you want to integrate it in your Rust program or codebase? You can use [`harper-core`](https://crates.io/crates/harper-core).--## What Human Languages Do You Support?--We currently only support English and its dialects British, American, Canadian, and Australian. Other languages are on the horizon, but we want our English support to be truly amazing before we diversify.--## What Programming Languages Do You Support?--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](/docs/integrations/language-server#Supported-Languages). 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](https://github.com/Automattic/harper/pull/332).--For `harper.js` and those that use it under the hood like our Obsidian plugin, we support plaintext and/or Markdown.--## Where Did the Name Harper Come From?--See [this blog post](https://elijahpotter.dev/articles/naming_harper).--## Do I Need a GPU?--No.--Harper runs on-device, no matter what.-There are no special hardware requirements.-No GPU, no additional memory, no fuss.--## What Do I Do If My Question Isn't Here?--You can join our [Discord](https://discord.gg/invite/JBqcAaKrzQ) and ask your questions there or you can start a discussion over at [GitHub](https://github.com/Automattic/harper/discussions).diff --git a/packages/web/src/routes/docs/integrations/wordpress/+page.md b/packages/web/src/routes/docs/integrations/wordpress/+page.mdindex a5f8166a0..f0b5aa9e4 100644--- a/packages/web/src/routes/docs/integrations/wordpress/+page.md+++ b/packages/web/src/routes/docs/integrations/wordpress/+page.md@@ -6,28 +6,24 @@ title: Harper for WordPressimport {Button} from "flowbite-svelte"</script>-Harper is now ready to be installed to the nearest WordPress site near you.-It's still early days, so expect bugs.+Harper still works great with WordPress, but the recommended way to use it today is the+[Chrome extension](https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb).<br/>+Read the announcement: [The Chrome Extension Supersedes the WordPress Plugin](https://elijahpotter.dev/articles/the_chrome_extension_supersedes_the_wordpress_plugin).-Not ready to install it just yet?-Visit our online demo to try writing a blog post with Harper.--<Button href='/wpdemo' target="_blank">Go to the Demo</Button>--## Your Voice Means Something+The extension is faster to iterate on than the WordPress.com plugin review process, which means you get new+features and fixes right away. It also offers a more holistic experience by keeping your Harper preferences in+sync across the sites where you write.-Harper checks your work for grammatical errors. That's it.+<Button href='https://chromewebstore.google.com/detail/private-grammar-checking/lodbfhdipoipcjmlebjbgmmgekckhpfb' target="_blank">Install the Chrome Extension</Button>-Other grammar checkers try to strip out everything that makes your writing unique.-We believe you should have the freedom to write what's on your mind, not what an LLM thinks you want to hear.-Harper is designed to be fast and **get out of the way**.+Want to explore the classic workflow? Visit our online demo that runs inside the WordPress Playground.<Button href='/wpdemo' target="_blank">Go to the Demo</Button>-## Installation--For now, can install Harper into WordPress by downloading `harper.zip` from [GitHub releases](https://github.com/Automattic/harper/releases/latest) and uploading it to your site.+## Still using the plugin?-Harper will be coming to the WordPress.org plugin directory soon. Hang tight!+The existing Harper WordPress plugin will stick around, but it no longer receives regular updates and is already a+few months behind the Chrome extension. If you need a manual copy, you can still download `harper.zip` from+[GitHub releases](https://github.com/Automattic/harper/releases/latest) and upload it to your site.