1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-30 01:06:00 -04:00
Commit Graph

69 Commits

Author SHA1 Message Date
jake d119a98a0d major refactoring of preact components 🧩 (#689) 2021-12-15 08:35:18 -05:00
jake 0bc30f87d8 move to official hcaptcha react component 2021-12-12 06:47:38 -05:00
jake 8fe68b009b more sensical twemoji-in-js w/ svgr 2021-12-11 08:47:13 -05:00
jake 57ad6c1fd2 update octicons on /contact 2021-12-07 08:40:36 -05:00
jake 6d64ea647e okay preact is actually pretty cool tbh. (now using it for copy to clipboard buttons) 2021-12-07 08:11:38 -05:00
jake b4cd9eea59 contact form cleanup 2021-12-05 18:28:33 -05:00
jake a338a05ce8 preact-ify contact form 2021-12-05 11:26:56 -05:00
jake 9a247ddb8d improved touchscreen detection 2021-12-04 16:22:41 -05:00
jake fd1393b223 clean up self-hosted emoji code 2021-12-03 10:03:19 -05:00
jake ce1a24170a fix missing anchor link aria-label 2021-12-01 16:05:38 -05:00
jake f7632e0071 use much, much simpler logic for adding anchors to h[2-4] elements 2021-12-01 15:54:15 -05:00
jake 6f6de426da move dark mode code from module back to here for now 2021-12-01 14:43:22 -05:00
jake a3c2bbcab0 remove unnecessary dayjs plugins (prefer native Intl.DateTimeFormat) 2021-11-30 13:56:41 -05:00
jake 9165c59c61 Update clipboard.js 2021-11-26 22:02:57 -05:00
jake 037fff0841 fix window !== undefined checks 2021-11-24 18:02:58 -05:00
jake 3d445c5c8d dayjs timezone detection & link to stars/forks on GitHub from /projects 2021-11-24 17:30:23 -05:00
jake 74519b9266 cross-fetch -> unfetch (browser only) 2021-11-24 14:27:00 -05:00
jake b755b66d19 use preact for common components across site (#663)
* convert GitHub cards grid from lit-html to preact

* give hit counter the preact treatment

* extract loading spinner component to a shared location

* move *some* loading spinner styles to its JSX

* Update .percy.yml

* pick up images in JS w/ webpack

* pull star/fork icons straight from @primer/octicons

* a bit of cleanup

* check `typeof window !== "undefined"` before rendering

* bump misc. deps

* silence missing license warnings for preact-hooks and preact-compat

* add source-map-loader

* Update loading.js
2021-11-24 13:51:29 -05:00
jake be7b2a4bba bump some deps and fix some lints 2021-11-22 10:52:02 -05:00
jake 7851c417bf twemoji -> imagemoji (but still with twemoji SVGs)
https://github.com/jakejarvis/imagemoji
2021-11-10 10:46:35 -05:00
jake d7f90ae4b7 url-parse -> new URL() 2021-11-08 10:52:07 -05:00
jake 6ff4bc52e5 clean up serverless functions 2021-11-08 07:01:05 -05:00
jake 991f3db820 shave off some JS bytes by using more modern clipboard logic 2021-11-02 09:00:50 -04:00
jake 2f56906cb8 innerText -> textContent & other modernized DOM methods 2021-11-02 08:50:17 -04:00
jake c7fdda36af run prettier over every file 2021-10-31 16:51:19 -04:00
jake 257dff937c clean up some client JS 2021-10-31 12:48:50 -04:00
jake 25c0f2d59d date-fns -> dayjs (much smaller), numeral -> toLocaleString 2021-10-30 12:09:53 -04:00
jake 7fb02275ad giving yarn v3 a go... 2021-10-19 09:48:03 -04:00
jake a6a81df706 start testing /contact page with lighthouse & percy 2021-10-15 11:54:56 -04:00
jake 0b5c95ac42 some client-side validation on contact form
exactly identical errors to the one the server sends, but saves a few requests
2021-10-15 08:30:54 -04:00
jake 2106b3703d finally got myself a real contact form 📬 2021-10-14 08:12:40 -04:00
jake fafb4ab4a7 adjust /api/projects to allow custom number of results (max 24) 2021-10-09 08:50:04 -04:00
jake bb8e5e2248 fix canonical URL edge case 2021-10-03 12:28:27 -04:00
jake e588f7674c use get-canonical-url module: https://github.com/jakejarvis/get-canonical-url 2021-09-30 08:28:19 -04:00
jake 12db17b83c majorly refactor SCSS and pray nothing breaks 2021-09-29 09:42:36 -04:00
jake ddc0780fbd use lit-html v2 a *little* more properly on /projects 2021-09-28 09:33:08 -04:00
jake 441d062fdc remove some unused deps 2021-09-28 09:20:54 -04:00
jake 09c3af6630 bump some deps 2021-09-27 10:20:22 -04:00
jake d5088e1982 use safer CSS.insertRule instead of innerHTML for dark mode transition hack 2021-09-24 11:22:08 -04:00
jake 081864d091 fix dark/light transitions on syntax highlighting 2021-09-22 17:36:22 -04:00
jake 7353f0b95e add nice and soothing fade transition when dark/light mode is toggled 2021-09-22 12:27:59 -04:00
jake 2ca02c81fd bump some deps 2021-09-22 09:18:32 -04:00
jake c9fe78c147 @jakejarvis/dark-mode -> dark-mode-switcheroo 2021-09-09 18:00:23 -04:00
jake eace0683b4 broaden anchorjs heading selectors 2021-08-30 19:22:06 -04:00
jake 1ed75bb763 add anchor links to content sub-headings
forked anchor-js: https://github.com/jakejarvis/simple-anchor
2021-08-30 14:01:13 -04:00
jake 5e3507a594 undo eslint curly rule 2021-08-30 13:40:04 -04:00
jake 4a7c9d4d96 much stricter eslint'ing (adapted from eslint-config-google and some airbnb) 2021-08-18 10:58:20 -04:00
jake e245205265 fix copy button position on overflowed single-line blocks 2021-08-17 07:31:56 -04:00
jake 96d5ad5ff1 slightly faster attachment of clipboard.js to DOM 2021-08-16 09:22:51 -04:00
jake 6e27cecba1 trim surrounding newlines from copied code 2021-08-16 08:42:34 -04:00