Skip to content

Commit 03637d2

Browse files
committed
chore: add anchor ads into docs in mobile screen
1 parent a2b3edf commit 03637d2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/src/theme/Footer/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ export default function FooterWrapper(props) {
2323

2424
return (
2525
<>
26+
{window && window.document.body.clientWidth <= 768 && (
27+
<ins
28+
className="adsbygoogle"
29+
style={{
30+
bottom: 0,
31+
display: 'block',
32+
position: 'fixed',
33+
width: '100%',
34+
maxHeight: '100px',
35+
height: '75px',
36+
}}
37+
data-ad-client="ca-pub-7420210265158247"
38+
data-ad-slot="8159529807"
39+
data-full-width-responsive="true"
40+
/>
41+
)}
2642
<Footer {...props} />
2743
{/* <AdsContainerElement id="mobile-anchor-ads" /> */}
2844
</>

0 commit comments

Comments
 (0)