Skip to content

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

feat: added footer to all pages + removed redundancy

Elijah Potterf60e5053cd9f
diff --git a/packages/web/src/lib/AutomatticLogo.svelte b/packages/web/src/lib/AutomatticLogo.svelte
new file mode 100644
index 000000000..4333949ab
--- /dev/null
+++ b/packages/web/src/lib/AutomatticLogo.svelte
@@ -0,0 +1,51 @@
+<script lang="ts">
+ export let width = '100%';
+ export let height = '100%';
+</script>
+
+<svg {width} {height} viewBox="0 0 1080 200" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path
+ d="M414.223 134.241C390.908 134.241 375.797 117.463 375.797 99.9815V97.7964C375.797 80.0186 390.908 63.5371 414.223 63.5371C437.538 63.5371 452.741 80.0186 452.741 97.7964V99.9815C452.741 117.407 437.63 134.241 414.223 134.241ZM440.297 98.0001C440.297 85.2593 431.038 73.926 414.223 73.926C397.408 73.926 388.297 85.2778 388.297 98.0001V99.5741C388.297 112.315 397.556 123.87 414.223 123.87C430.889 123.87 440.297 112.315 440.297 99.5741V98.0001Z"
+ fill="white"
+ />
+ <path
+ d="M151.112 131.682L142.408 115.386H103.704L95.2969 131.682H82.334L117.778 65.9043H128.056L164.204 131.682H151.112ZM122.667 78.7376L108.353 106.386H137.482L122.667 78.7376Z"
+ fill="white"
+ />
+ <path
+ d="M220.333 134.238C196.74 134.238 185.777 121.404 185.777 104.312V65.9043H198.018V104.441C198.018 116.589 206.018 123.793 221.222 123.793C236.833 123.793 243.259 116.589 243.259 104.441V65.9043H255.592V104.312C255.592 120.608 245.129 134.238 220.333 134.238Z"
+ fill="white"
+ />
+ <path
+ d="M324.352 76.1636V131.719H312.001V76.1636H283.26V65.9043H353.093V76.1636H324.352Z"
+ fill="white"
+ />
+ <path
+ d="M562.759 131.682V79.6265L559.5 85.3487L531.944 131.645H525.926L498.666 85.3487L495.407 79.6265V131.682H483.352V65.9043H500.444L526.37 111.034L529.426 116.589L532.481 111.034L558.166 65.9043H575.185V131.682H562.759Z"
+ fill="white"
+ />
+ <path
+ d="M668.444 131.682L659.759 115.386H621.129L612.74 131.682H599.777L635.333 65.9043H645.555L681.703 131.682H668.444ZM640.092 78.7376L625.777 106.386H654.907L640.092 78.7376Z"
+ fill="white"
+ />
+ <path
+ d="M731.464 76.1636V131.719H719.112V76.1636H690.371V65.9043H760.204V76.1636H731.464Z"
+ fill="white"
+ />
+ <path
+ d="M822.019 76.1636V131.719H809.686V76.1636H780.945V65.9043H850.779V76.1636H822.019Z"
+ fill="white"
+ />
+ <path
+ d="M881.186 131.682V72.1265C886.13 72.1265 888.093 69.4599 888.093 65.9043H893.334V131.682H881.186Z"
+ fill="white"
+ />
+ <path
+ d="M990 84.462C982.881 77.7046 973.446 73.9278 963.63 73.9065C946.037 73.9065 936.167 85.9435 936.167 98.4991V99.7768C936.167 112.221 946.13 123.851 964.5 123.851C974.115 123.676 983.317 119.911 990.297 113.295L997.704 121.092C988.477 129.66 976.313 134.359 963.723 134.221C938.834 134.221 923.723 118.036 923.723 100.258V98.0731C923.723 80.2953 940.204 63.5176 964.315 63.5176C978.241 63.5176 990.889 69.3324 997.649 76.6472L990 84.462Z"
+ fill="white"
+ />
+ <path
+ d="M415.726 87.83L404.415 105.348C402.984 107.564 403.62 110.522 405.837 111.953L405.853 111.963C408.069 113.394 411.027 112.758 412.458 110.541L423.769 93.0234C425.2 90.8066 424.564 87.8493 422.347 86.418L422.331 86.4079C420.115 84.9766 417.157 85.6133 415.726 87.83Z"
+ fill="white"
+ />
+</svg>
diff --git a/packages/web/src/routes/+layout.svelte b/packages/web/src/routes/+layout.svelte
index cfc44065b..196523a9c 100644
--- a/packages/web/src/routes/+layout.svelte
+++ b/packages/web/src/routes/+layout.svelte
@@ -2,6 +2,10 @@
import '../app.css';
import GutterCenter from '$lib/GutterCenter.svelte';
import { DarkMode } from 'flowbite-svelte';
+ import AutomatticLogo from '$lib/AutomatticLogo.svelte';
+
+ let names = ['Grammar Guru', 'Grammar Checker', 'Grammar Savior'];
+ let displayName = names[Math.floor(Math.random() * names.length)];
</script>
<link
@@ -14,3 +18,11 @@
<GutterCenter>
<slot />
</GutterCenter>
+
+<div class="w-full flex flex-row justify-center">
+ <h2 class="dark:text-white flex items-center">
+ An
+ <div class="inline-block"><AutomatticLogo height="32px" width="140px" /></div>
+ {displayName}
+ </h2>
+</div>
diff --git a/packages/web/src/routes/+page.svelte b/packages/web/src/routes/+page.svelte
index bae65ee1f..6fc051bcb 100644
--- a/packages/web/src/routes/+page.svelte
+++ b/packages/web/src/routes/+page.svelte
@@ -3,7 +3,6 @@
import CodeLogo from '$lib/CodeLogo.svelte';
import Editor from '$lib/Editor.svelte';
import Section from '$lib/Section.svelte';
- import GutterCenter from '$lib/GutterCenter.svelte';
import Logo from '$lib/Logo.svelte';
import GitHubLogo from '$lib/GitHubLogo.svelte';
import { DarkMode } from 'flowbite-svelte';
@@ -21,109 +20,107 @@
<div class="h-16" />
<div class="absolute top-8 right-8"><DarkMode /></div>
-<GutterCenter>
- <div class="w-full flex flex-col items-center">
- <Logo width="200px" />
- </div>
- <h1 class="text-5xl font-bold text-center dark:text-white">Hi. I’m Harper.</h1>
- <h2 class="text-3xl text-center dark:text-white">The Grammar Checker for Developers</h2>
+<div class="w-full flex flex-col items-center">
+ <Logo width="200px" />
+</div>
+<h1 class="text-5xl font-bold text-center dark:text-white">Hi. I’m Harper.</h1>
+<h2 class="text-3xl text-center dark:text-white">The Grammar Checker for Developers</h2>
- <div
- class="md:flex md:flex-row grid grid-cols-2 items-center justify-evenly mt-5 transition-all place-items-center"
+<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/elijah-potter/harper"
+ class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
+ ><GitHubLogo width="40px" height="40px" />GitHub</a
>
- <a
- href="https://github.com/elijah-potter/harper"
- class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
- ><GitHubLogo width="40px" height="40px" />GitHub</a
- >
- <a href="/obsidian" class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
- ><ObsidianLogo width="40px" height="40px" />Obsidian Plugin</a
- >
- <a
- href="https://elijahpotter.dev"
- class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
- ><img
- width="40"
- height="40"
- class="hover:scale-105 transition-all"
- src="/icons/profile.svg"
- alt="Author"
- />Author</a
- >
- <a
- href="https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper"
- class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
- ><CodeLogo width="40px" height="40px" />Code Plugin</a
- >
- </div>
+ <a href="/obsidian" class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
+ ><ObsidianLogo width="40px" height="40px" />Obsidian Plugin</a
+ >
+ <a
+ href="https://elijahpotter.dev"
+ class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
+ ><img
+ width="40"
+ height="40"
+ class="hover:scale-105 transition-all"
+ src="/icons/profile.svg"
+ alt="Author"
+ />Author</a
+ >
+ <a
+ href="https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper"
+ class="flex flex-row items-center [&>*]:m-2 dark:text-white hover:scale-105"
+ ><CodeLogo width="40px" height="40px" />Code Plugin</a
+ >
+</div>
- <Section noChild>
- <span slot="title"> What is it? </span>
- <span slot="subtitle">
- Harper is an 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 noChild>
+ <span slot="title"> What is it? </span>
+ <span slot="subtitle">
+ Harper is an 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>
- <div class="w-full h-[800px] overflow-hidden">
- <Editor />
- </div>
+<div class="w-full h-[800px] overflow-hidden">
+ <Editor />
+</div>
- <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>
+ <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>
- <img src="/images/camera.webp" class="rounded" alt="Graffiti of a camera." />
- </Section>
+ <img src="/images/camera.webp" class="rounded" alt="Graffiti of a camera." />
+</Section>
- <Section swapped={!mobile}>
- <span slot="title">Native Everywhere</span>
- <span slot="subtitle"
- >Harper is both available as a <a
- class="underline"
- href="https://github.com/elijah-potter/harper/tree/master/harper-ls">language server</a
- >, and through WebAssembly, so you can get fantastic grammar checking anywhere you work.
- <br /><br /> That said, we take extra care to make sure the
- <a
- class="underline"
- href="https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper"
- >Visual Studio Code</a
- >, Neovim,
- <a class="underline" href="https://github.com/Stef16Robbe/harper_zed">Zed</a>
- and
- <a class="underline" href="/obsidian">Obsidian</a> integration is amazing.
- </span>
+<Section swapped={!mobile}>
+ <span slot="title">Native Everywhere</span>
+ <span slot="subtitle"
+ >Harper is both available as a <a
+ class="underline"
+ href="https://github.com/elijah-potter/harper/tree/master/harper-ls">language server</a
+ >, and through WebAssembly, so you can get fantastic grammar checking anywhere you work.
+ <br /><br /> That said, we take extra care to make sure the
+ <a
+ class="underline"
+ href="https://marketplace.visualstudio.com/items?itemName=elijah-potter.harper"
+ >Visual Studio Code</a
+ >, Neovim,
+ <a class="underline" href="https://github.com/Stef16Robbe/harper_zed">Zed</a>
+ and
+ <a class="underline" href="/obsidian">Obsidian</a> integration is amazing.
+ </span>
- <img
- src="/images/example_nvim.webp"
- class="dark:invert rounded"
- alt="A screenshot of Neovim with Harper suggestions."
- /></Section
- >
+ <img
+ src="/images/example_nvim.webp"
+ class="dark:invert rounded"
+ alt="A screenshot of Neovim with Harper suggestions."
+ /></Section
+>
- <Section>
- <span slot="title">Wicked Fast</span>
- <span slot="subtitle"
- >Since Harper runs on <strong>your</strong> devices, its able to serve up suggestions in under
- 10 milliseconds.
- <br />
- <br />
- No network request, no massive language models, no fuss.</span
- >
- <Graph /></Section
+<Section>
+ <span slot="title">Wicked Fast</span>
+ <span slot="subtitle"
+ >Since Harper runs on <strong>your</strong> devices, its able to serve up suggestions in under
+ 10 milliseconds.
+ <br />
+ <br />
+ No network request, no massive language models, no fuss.</span
>
+ <Graph /></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 class="underline" href="https://github.com/elijah-potter/harper">GitHub.</a>
- </span>
- </Section>
-</GutterCenter>
+<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 class="underline" href="https://github.com/automattic/harper">GitHub.</a>
+ </span>
+</Section>
diff --git a/packages/web/src/routes/obsidian/+page.svelte b/packages/web/src/routes/obsidian/+page.svelte
index 78e1c9a92..df15af4b2 100644
--- a/packages/web/src/routes/obsidian/+page.svelte
+++ b/packages/web/src/routes/obsidian/+page.svelte
@@ -12,7 +12,7 @@
class="flex flex-row items-center md:border-4 justify-evenly p-8 rounded-2xl hover:scale-105 transition-all"
>
<div class="w-1/3 md:w-64"><Logo /></div>
- <div class="text-5xl md:m-8">+</div>
+ <div class="text-5xl md:m-8 dark:text-white">+</div>
<div class="w-1/3 md:w-64"><ObsidianLogo /></div>
</div>
</div>