Skip to content

Commit 16a66f7

Browse files
update banner
1 parent 30b855b commit 16a66f7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app/components/Banner.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import { cx } from "~/utils/cva"
99
export const Banner = ({ className, ...props }: ComponentProps<typeof Container>) => {
1010
const sponsor = BANNER_SPONSOR
1111

12+
if (new Date() < new Date("2024-09-05T09:00:00Z")) {
13+
return null
14+
}
15+
1216
return (
1317
<Container
1418
className={cx(

app/root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ export function Layout({ children }: PropsWithChildren) {
119119
enableSystem
120120
disableTransitionOnChange
121121
>
122-
{false && <Banner />}
123-
122+
<Banner />
124123
<Header />
125124

126125
<Container className="flex min-h-[calc(100dvh-var(--header-height))] flex-col py-8 gap-8 md:gap-10 md:py-10 lg:gap-12 lg:py-12">

app/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const HOSTING_SPONSOR: SponsoringOne = {
5454
export const BANNER_SPONSOR: SponsoringOne = {
5555
name: "Polar",
5656
description: "An open source Lemon Squeezy alternative with 20% lower fees",
57-
website: "https://polar.sh",
57+
website: "https://polar.sh/?utm_source=openalternative.co",
5858
faviconUrl: "https://s3.us-east-1.amazonaws.com/openalternative/polar/favicon.png",
5959
}
6060

0 commit comments

Comments
 (0)