Skip to content

Commit

Permalink
feat: added logo to README.md and web client
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Feb 16, 2024
1 parent aea25e4 commit adc6686
Show file tree
Hide file tree
Showing 17 changed files with 235 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div id="header" align="center">
<img src="logo.svg" width="400px" />
<h1>Harper</h1>
</div>

Expand Down
1 change: 1 addition & 0 deletions harper-core/dictionary.dict
Original file line number Diff line number Diff line change
Expand Up @@ -12894,6 +12894,7 @@ attendant/SM
attended/U
attendee/SM
attention/IM
attentional
attentions
attentive/IPY
attentiveness/IM
Expand Down
2 changes: 2 additions & 0 deletions harper-core/src/linting/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ impl Matcher {
// This match list needs to be automatically expanded instead of explicitly defined
// like it is now.
let mut triggers = pt! {
"human","live" => "human life",
"eight","grade" => "eighth grade",
"and","also" => "and",
"todo" => "to-do",
"To-Do" => "To-do",
Expand Down
34 changes: 34 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion web/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Write With Harper</title>
%sveltekit.head%
Expand Down
105 changes: 105 additions & 0 deletions web/src/lib/Logo.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<script lang="ts">
export let width = '100%';
export let height = '100%';
</script>

<svg
{width}
{height}
viewBox="0 0 695 411"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:space="preserve"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"
class="dark:text-white text-black"
>
<g transform="matrix(1,0,0,1,-5,-1720)">
<g id="Artboard1" 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" style="fill: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"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
</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"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
/>
</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"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
</g>
<rect
x="2083.34"
y="1231.11"
width="66.702"
height="15.521"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
<rect
x="1892.23"
y="1208.69"
width="16.306"
height="30.182"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
<g transform="matrix(-1,0,0,1,4281.79,-0.853887)">
<ellipse
cx="1981.62"
cy="1247.49"
rx="87.401"
ry="87.881"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
</g>
<g transform="matrix(-1,0,0,1,4296.11,0)">
<rect
x="2083.34"
y="1231.11"
width="66.702"
height="15.521"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
</g>
<g transform="matrix(-1,0,0,1,4296.11,0)">
<rect
x="1892.23"
y="1208.69"
width="16.306"
height="30.182"
stroke="currentcolor"
fill="transparent"
stroke-width="22.92px"
/>
</g>
</g>
</g>
</g>
</g>
</svg>
14 changes: 10 additions & 4 deletions web/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import Editor from '$lib/Editor.svelte';
import GutterCenter from '$lib/GutterCenter.svelte';
import Logo from '$lib/Logo.svelte';
import { DarkMode } from 'flowbite-svelte';
let width = window.innerWidth;
Expand All @@ -13,30 +14,35 @@
<div class="h-16" />

<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>
<h2 class="text-2xl font-light italic text-center dark:text-white">
Private. Free. Unobtrusive.
</h2>

<div class="flex flex-row justify-evenly mt-5">
<a href="https://github.com/chilipepperhott/harper"
<a
href="https://github.com/chilipepperhott/harper"
class="flex flex-row items-center [&>*]:m-2 dark:text-white"
><img
width="40"
height="40"
class="hover:scale-105 transition-all bg-white rounded-full"
src="/icons/github.svg"
alt="Project Repository"
/></a
/>GitHub</a
>
<a href="https://elijahpotter.dev"
<a href="https://elijahpotter.dev" class="flex flex-row items-center [&>*]:m-2 dark:text-white"
><img
width="40"
height="40"
class="hover:scale-105 transition-all"
src="/icons/profile.svg"
alt="Author"
/></a
/>Author</a
>
</div>

Expand Down
Binary file added web/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions web/static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added web/static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/static/favicon.ico
Binary file not shown.
Binary file added web/static/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions web/static/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions web/static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

0 comments on commit adc6686

Please sign in to comment.