Skip to content

Commit 4d3379b

Browse files
committed
chore: enable ads for temporary showcase
1 parent 5bad3cc commit 4d3379b

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

src/pages/index.tsx

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Card } from '@blueprintjs/core'
22

3-
import dayjs from 'dayjs'
43
import { ComponentType } from 'react'
54

65
import { CardTitle } from 'components/CardTitle'
@@ -68,20 +67,16 @@ export const IndexPage: ComponentType = withGlobalErrorBoundary(() => {
6867
)
6968
})
7069

71-
const Ads =
72-
dayjs().isAfter('2025-03-02 00:00:00+8') &&
73-
dayjs().isBefore('2025-04-02 00:00:00+8')
74-
? () => (
75-
// eslint-disable-next-line react/jsx-no-target-blank
76-
<a
77-
className="block relative dark:brightness-[85%]"
78-
href="https://adl.netease.com/d/g/mmwb/c/ad_MAA_cpa"
79-
target="_blank"
80-
>
81-
<img src="/ads_mumu.jpg" alt="MuMu模拟器" />
82-
<div className="absolute bottom-2 right-2 border border-current rounded text-[10px] text-zinc-300 px-1 ">
83-
广告
84-
</div>
85-
</a>
86-
)
87-
: () => null
70+
const Ads = () => (
71+
// eslint-disable-next-line react/jsx-no-target-blank
72+
<a
73+
className="block relative dark:brightness-[85%]"
74+
href="https://adl.netease.com/d/g/mmwb/c/ad_MAA_cpa"
75+
target="_blank"
76+
>
77+
<img src="/ads_mumu.jpg" alt="MuMu模拟器" />
78+
<div className="absolute bottom-2 right-2 border border-current rounded text-[10px] text-zinc-300 px-1 ">
79+
广告
80+
</div>
81+
</a>
82+
)

0 commit comments

Comments
 (0)