Skip to content

Commit c914638

Browse files
committed
mod: banner and links
1 parent 6dd610c commit c914638

File tree

5 files changed

+62
-30
lines changed

5 files changed

+62
-30
lines changed

app/patch/[id]/resource/page.tsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { generateKunMetadataTemplate } from './metadata'
44
import { kunGetPatchActions } from '../actions'
55
import { kunGetActions } from './actions'
66
import { ErrorComponent } from '~/components/error/ErrorComponent'
7-
import { Image } from '@heroui/image'
87
import { kunMoyuMoe } from '~/config/moyu-moe'
98
import type { Metadata } from 'next'
109

@@ -68,12 +67,23 @@ export default async function Kun({
6867
</div>
6968

7069
{(!response.payload || response.payload.role < 2) && (
71-
<Link target="_blank" href={kunMoyuMoe.ad[0].url}>
72-
<Image
73-
className="pointer-events-none select-none"
74-
src="/a/moyumoe1.avif"
75-
/>
76-
</Link>
70+
<div className="shadow-xl rounded-2xl">
71+
<a
72+
target="_blank"
73+
className="w-full max-h-64 flex items-center justify-center overflow-hidden rounded-2xl bg-black"
74+
href={kunMoyuMoe.ad[0].url}
75+
>
76+
<video
77+
className="pointer-events-none select-none w-full"
78+
controls
79+
autoPlay
80+
muted
81+
loop
82+
>
83+
<source src="/a/moyumoe.mp4" type="video/mp4" />
84+
</video>
85+
</a>
86+
</div>
7787
)}
7888

7989
<Resources initialResources={response.response} id={Number(id)} />

components/home/Container.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Button } from '@heroui/button'
2-
import { Image } from '@heroui/image'
32
import { ChevronRight } from 'lucide-react'
43
import { GalgameCard } from '~/components/galgame/Card'
54
import { ResourceCard } from '~/components/resource/ResourceCard'
@@ -31,13 +30,18 @@ export const HomeContainer = ({
3130
<div className="shadow-xl rounded-2xl">
3231
<a
3332
target="_blank"
34-
className="h-full w-full"
33+
className="w-full max-h-64 flex items-center justify-center overflow-hidden rounded-2xl bg-black"
3534
href={kunMoyuMoe.ad[0].url}
3635
>
37-
<Image
38-
className="pointer-events-none select-none"
39-
src="/a/moyumoe1.avif"
40-
/>
36+
<video
37+
className="pointer-events-none select-none w-full"
38+
controls
39+
autoPlay
40+
muted
41+
loop
42+
>
43+
<source src="/a/moyumoe.mp4" type="video/mp4" />
44+
</video>
4145
</a>
4246
</div>
4347
)}

components/resource/detail/ResourceDetail.tsx

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,23 @@ export const KunResourceDetail = ({ detail, payload }: Props) => {
3030

3131
{(!payload || payload.role < 2) && (
3232
<div className="shadow-xl rounded-2xl hidden sm:block">
33-
<a
34-
target="_blank"
35-
className="h-full w-full"
36-
href={kunMoyuMoe.ad[0].url}
37-
>
38-
<Image
39-
className="pointer-events-none select-none"
40-
src="/a/moyumoe1.avif"
41-
/>
42-
</a>
33+
<div className="shadow-xl rounded-2xl">
34+
<a
35+
target="_blank"
36+
className="w-full max-h-64 flex items-center justify-center overflow-hidden rounded-2xl bg-black"
37+
href={kunMoyuMoe.ad[0].url}
38+
>
39+
<video
40+
className="pointer-events-none select-none w-full"
41+
controls
42+
autoPlay
43+
muted
44+
loop
45+
>
46+
<source src="/a/moyumoe.mp4" type="video/mp4" />
47+
</video>
48+
</a>
49+
</div>
4350
</div>
4451
)}
4552

@@ -104,12 +111,23 @@ export const KunResourceDetail = ({ detail, payload }: Props) => {
104111

105112
{(!payload || payload.role < 2) && (
106113
<div className="shadow-xl rounded-2xl block sm:hidden">
107-
<a target="_blank" href={kunMoyuMoe.ad[0].url}>
108-
<Image
109-
className="pointer-events-none select-none"
110-
src="/a/moyumoe1.avif"
111-
/>
112-
</a>
114+
<div className="shadow-xl rounded-2xl">
115+
<a
116+
target="_blank"
117+
className="w-full max-h-64 flex items-center justify-center overflow-hidden rounded-2xl bg-black"
118+
href={kunMoyuMoe.ad[0].url}
119+
>
120+
<video
121+
className="pointer-events-none select-none w-full"
122+
controls
123+
autoPlay
124+
muted
125+
loop
126+
>
127+
<source src="/a/moyumoe.mp4" type="video/mp4" />
128+
</video>
129+
</a>
130+
</div>
113131
</div>
114132
)}
115133

config/moyu-moe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const kunMoyuMoe: KunSiteConfig = {
6060
ad: [
6161
{
6262
name: 'DZMM',
63-
url: 'https://www.xn--i8s951di30azba.com/?rf=8e6ec4cf'
63+
url: 'https://s.iloveren.link/s/moyumoe2'
6464
}
6565
]
6666
}

public/a/moyumoe.mp4

1.52 MB
Binary file not shown.

0 commit comments

Comments
 (0)