From dfa6623fcc2dcad3b466def4e0495b3f38af962b Mon Sep 17 00:00:00 2001 From: Tyler McGinnis Date: Mon, 13 Nov 2023 11:09:45 -0700 Subject: [PATCH 01/17] Fix useHistoryState link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48c7715..c7a83f4 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Compatible with React v18.0.0+. - [useDocumentTitle](https://usehooks.com/usedocumenttitle) - [useFavicon](https://usehooks.com/usefavicon) - [useGeolocation](https://usehooks.com/usegeolocation) -- [useHistoryState](https://usehooks.com/usehistoryState) +- [useHistoryState](https://usehooks.com/usehistorystate) - [useHover](https://usehooks.com/usehover) - [useIdle](https://usehooks.com/useidle) - [useIntersectionObserver](https://usehooks.com/useintersectionobserver) From f1ab8c455f8c42d4c0ba38682bc8432e753e1bd4 Mon Sep 17 00:00:00 2001 From: Lynn Fisher Date: Tue, 21 May 2024 11:19:00 -0700 Subject: [PATCH 02/17] add QueryGGBanner --- .../img/querygg/corner-fish-bottom-right.svg | 1 + .../public/img/querygg/corner-top-left.svg | 1 + .../public/img/querygg/corner-top-right.svg | 1 + .../public/img/querygg/header-course.svg | 1 + .../src/components/QueryGGBanner.astro | 94 +++++++++++++++++++ usehooks.com/src/pages/index.astro | 2 + 6 files changed, 100 insertions(+) create mode 100644 usehooks.com/public/img/querygg/corner-fish-bottom-right.svg create mode 100644 usehooks.com/public/img/querygg/corner-top-left.svg create mode 100644 usehooks.com/public/img/querygg/corner-top-right.svg create mode 100644 usehooks.com/public/img/querygg/header-course.svg create mode 100644 usehooks.com/src/components/QueryGGBanner.astro diff --git a/usehooks.com/public/img/querygg/corner-fish-bottom-right.svg b/usehooks.com/public/img/querygg/corner-fish-bottom-right.svg new file mode 100644 index 0000000..21ca01c --- /dev/null +++ b/usehooks.com/public/img/querygg/corner-fish-bottom-right.svg @@ -0,0 +1 @@ +three-eyed fish \ No newline at end of file diff --git a/usehooks.com/public/img/querygg/corner-top-left.svg b/usehooks.com/public/img/querygg/corner-top-left.svg new file mode 100644 index 0000000..5db5839 --- /dev/null +++ b/usehooks.com/public/img/querygg/corner-top-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/usehooks.com/public/img/querygg/corner-top-right.svg b/usehooks.com/public/img/querygg/corner-top-right.svg new file mode 100644 index 0000000..987be57 --- /dev/null +++ b/usehooks.com/public/img/querygg/corner-top-right.svg @@ -0,0 +1 @@ +moon with a face \ No newline at end of file diff --git a/usehooks.com/public/img/querygg/header-course.svg b/usehooks.com/public/img/querygg/header-course.svg new file mode 100644 index 0000000..959fedb --- /dev/null +++ b/usehooks.com/public/img/querygg/header-course.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/usehooks.com/src/components/QueryGGBanner.astro b/usehooks.com/src/components/QueryGGBanner.astro new file mode 100644 index 0000000..39ca664 --- /dev/null +++ b/usehooks.com/src/components/QueryGGBanner.astro @@ -0,0 +1,94 @@ +--- +import Button from "./Button.astro"; +--- + + + + diff --git a/usehooks.com/src/pages/index.astro b/usehooks.com/src/pages/index.astro index d9846b7..79a0229 100644 --- a/usehooks.com/src/pages/index.astro +++ b/usehooks.com/src/pages/index.astro @@ -5,6 +5,7 @@ import NavMain from "../sections/NavMain.astro"; import HomeHero from "../sections/HomeHero.astro"; import HooksList from "../components/search/HooksList"; import Footer from "../sections/Footer.astro"; +import QueryGGBanner from "../components/QueryGGBanner.astro"; const hooks = await getCollection("hooks"); --- @@ -13,6 +14,7 @@ const hooks = await getCollection("hooks"); title="useHooks – The React Hooks Library" description="A collection of modern, server-safe React hooks – from the ui.dev team" > + From 8a43266b6699f70d26af812314f8c33953556554 Mon Sep 17 00:00:00 2001 From: Lynn Fisher Date: Tue, 21 May 2024 11:26:02 -0700 Subject: [PATCH 03/17] sizing --- usehooks.com/src/components/QueryGGBanner.astro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usehooks.com/src/components/QueryGGBanner.astro b/usehooks.com/src/components/QueryGGBanner.astro index 39ca664..7ba8bba 100644 --- a/usehooks.com/src/components/QueryGGBanner.astro +++ b/usehooks.com/src/components/QueryGGBanner.astro @@ -8,7 +8,7 @@ import Button from "./Button.astro"; > minutes

-