1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 15:48:31 -04:00

16 Commits

Author SHA1 Message Date
78593b03ca
even more useLocalStorage fixes 2022-07-27 18:00:51 -04:00
d0c21c6bd4
clean up useLocalStorage hook 2022-07-25 18:00:04 -04:00
cf106e46da
refactor more hooks 2022-07-25 13:11:40 -04:00
37feb305ff
move useMedia hook here but without SSR warning 2022-07-24 22:41:02 -04:00
2ea6495fd8
fix prefers-reduced-motion detection 2022-05-03 14:57:32 -04:00
6ab0c5a97f
more deprecated addListeners 2022-04-26 12:48:38 -04:00
831139c132
actually listen to react-hooks/exhaustive-deps warning 2022-04-21 18:10:03 -04:00
a632246975
fix hcaptcha bugginess 2022-04-17 14:52:59 -04:00
f684babb95
Update use-local-storage.ts 2022-04-10 10:43:39 -04:00
6f2018bd6e
reduce theme context's unnecessary crap even more 2022-04-08 18:15:06 -04:00
d09cf7ab26
consolidate theme context/provider types 2022-04-08 12:36:19 -04:00
25aed87b21
separate ThemeContext and useTheme code 2022-04-06 17:40:16 -04:00
eccf2108c7
React 18 (#863)
* gymnastics to make theme script work with react 18 hydration

* try next 12.1.3 canary to fix SSG head tags?

* revert theme script changes

* next 12.1.3-canary.3

* double-revert some of the use-theme.tsx changes

* separate theme restoration script & move to _document

* bump next

* bump next (again)

* clean up some theme stuff

* use hashed image URLs in webmanifest and feeds

* text experimental react config

* Update ThemeScript.tsx

* switch selfie image to `layout="raw"`

* use `layout="raw"` for all non-imported images

* revert raw images in some places, messes up responsiveness

* fix nitpicky "no divs inside buttons" html validation error

* fix react-player hydration errors

* fix hydration errors from server/client time zone differences

* clean up hydration fixes

* Update format-date.ts

* last-minute cleanup
2022-04-06 09:37:16 -04:00
87848cc697
just some refactoring 2022-03-09 14:07:06 -05:00
f5c8a7a21a animated dark mode toggle 🌓 2022-03-07 20:08:38 -05:00
a917b5f81d fork next-themes into use-theme hook 2022-03-07 16:32:38 -05:00