Skip to content

Commit e1392d3

Browse files
authored
remove query.gg sale countdown, revert to previous banners (#418)
1 parent ffb06b6 commit e1392d3

File tree

6 files changed

+8
-254
lines changed

6 files changed

+8
-254
lines changed

src/components/CountdownTimer.tsx

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/components/CountdownTimerSmall.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/components/DocsCalloutQueryGG.tsx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { LogoQueryGGSmall } from '~/components/LogoQueryGGSmall'
2-
import CountdownTimerSmall from '~/components/CountdownTimerSmall'
32
import { useQueryGGPPPDiscount } from '~/hooks/useQueryGGPPPDiscount'
43

54
export function DocsCalloutQueryGG() {
@@ -18,21 +17,13 @@ export function DocsCalloutQueryGG() {
1817
</h6>
1918
<LogoQueryGGSmall className="w-full" />
2019

21-
{/*<blockquote className="text-sm -indent-[.45em] pl-2">
22-
“If you're serious about *really* understanding React Query, there's
20+
<blockquote className="text-sm -indent-[.45em] pl-2">
21+
“If youre serious about *really* understanding React Query, theres
2322
no better way than with query.gg”
2423
<cite className="italic block text-right">—Tanner Linsley</cite>
25-
</blockquote>*/}
24+
</blockquote>
2625

27-
{/*<div className="grid justify-center bg-gray-800 dark:bg-gray-100 text-gray-100 dark:text-gray-800 z-10">*/}
28-
<div className="p-2 uppercase text-center place-self-center">
29-
<h2 className="mt-1 mb-1 px-2 text-md font-semibold">
30-
Launch week sale
31-
</h2>
32-
<p className="normal-case mb-4 text-sm text-balance">
33-
Get 30% off through May 22nd
34-
</p>
35-
<CountdownTimerSmall targetDate="2025-05-23" />
26+
<div className="grid justify-center bg-gray-800 dark:bg-gray-100 text-gray-100 dark:text-gray-800 z-10">
3627
</div>
3728

3829
{ppp && (

src/components/QueryGGBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function QueryGGBanner() {
1010
let body = (
1111
<>
1212
<p className="text-lg">
13-
“If you're serious about *really* understanding React Query, there's no
13+
“If youre serious about *really* understanding React Query, theres no
1414
better way than with query.gg”
1515
</p>
1616
<p className="mt-2"> —Tanner Linsley</p>

src/components/QueryGGBannerSale.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/routes/_libraries/query.$version.index.tsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { Carbon } from '~/components/Carbon'
77
import { Footer } from '~/components/Footer'
88
import { TbHeartHandshake } from 'react-icons/tb'
99
import SponsorPack from '~/components/SponsorPack'
10-
// import { QueryGGBanner } from '~/components/QueryGGBanner'
11-
import { QueryGGBannerSale } from '~/components/QueryGGBannerSale'
10+
import { QueryGGBanner } from '~/components/QueryGGBanner'
1211
import { queryProject } from '~/libraries/query'
1312
import { Framework, getBranch, getLibrary } from '~/libraries'
1413
import { seo } from '~/utils/seo'
@@ -48,7 +47,6 @@ export default function VersionIndex() {
4847
<div className="flex flex-1 min-h-0 relative justify-center overflow-x-hidden">
4948
<div className="flex flex-col gap-20 md:gap-32 max-w-full py-32">
5049
<div className="flex flex-col items-center gap-8 text-center px-4">
51-
<QueryGGBannerSale />
5250
<h1 className="font-black flex gap-3 items-center text-4xl md:text-6xl lg:text-7xl xl:text-8xl uppercase [letter-spacing:-.05em]">
5351
<span>TanStack</span>
5452
<span className={twMerge(gradientText)}>Query</span>
@@ -84,18 +82,9 @@ export default function VersionIndex() {
8482
>
8583
Read the Docs
8684
</Link>
87-
<p>
88-
(or{' '}
89-
<a
90-
href="https://query.gg?s=tanstack"
91-
className="font-semibold underline"
92-
>
93-
check out our official course
94-
</a>
95-
. It’s on sale!)
96-
</p>
85+
<p>(or chek out our official course 👇)</p>
9786
</div>
98-
{/* <QueryGGBanner /> */}
87+
<QueryGGBanner />
9988
</div>
10089
<LibraryFeatureHighlights
10190
featureHighlights={library.featureHighlights}

0 commit comments

Comments
 (0)