File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export const IndexPage: ComponentType = withGlobalErrorBoundary(() => {
18
18
const { isMD } = useCurrentSize ( )
19
19
return (
20
20
< div className = "flex flex-col md:flex-row px-4 mt-4 md:px-8 md:mt-8 max-w-[96rem] mx-auto" >
21
- < div className = "md:w-2/3 order-2 md:order-1 mr-0 md:mr-8" >
21
+ { isMD && < Ads /> }
22
+ < div className = "md:w-2/3 order-2 md:order-1 mr-0 md:mr-8 mt-4 md:mt-0" >
22
23
< Operations />
23
24
</ div >
24
25
{ ! isMD && (
@@ -36,7 +37,7 @@ export const IndexPage: ComponentType = withGlobalErrorBoundary(() => {
36
37
37
38
< AnnPanel className = "mb-4" />
38
39
39
- < div className = "flex flex-wrap leading-relaxed mb-8 section-social-links" >
40
+ < div className = "flex flex-wrap leading-relaxed mb-4 section-social-links" >
40
41
{ SOCIAL_LINKS . map ( ( link ) => (
41
42
< a
42
43
href = { link . href }
@@ -55,6 +56,8 @@ export const IndexPage: ComponentType = withGlobalErrorBoundary(() => {
55
56
</ >
56
57
) ) }
57
58
</ div >
59
+
60
+ < Ads />
58
61
</ div >
59
62
</ div >
60
63
) }
@@ -63,3 +66,17 @@ export const IndexPage: ComponentType = withGlobalErrorBoundary(() => {
63
66
</ div >
64
67
)
65
68
} )
69
+
70
+ const Ads = ( ) => (
71
+ < a
72
+ className = "block relative"
73
+ href = "https://gad.netease.com/gad/access?project_id=201005304& s = SppRGFTnJ1VxfSFEZWE6hY3pO4gn & code_type = 1 "
74
+ target = "_blank"
75
+ rel = "noreferrer"
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
+ )
You can’t perform that action at this time.
0 commit comments