mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
chore: improved ad
This commit is contained in:
parent
e8de895ab2
commit
41be85017f
@ -3,7 +3,7 @@ import Logger from '@utils/Logger'
|
|||||||
|
|
||||||
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (true) {
|
||||||
window.adsbygoogle = window.adsbygoogle || []
|
window.adsbygoogle = window.adsbygoogle || []
|
||||||
try {
|
try {
|
||||||
window.adsbygoogle.push({})
|
window.adsbygoogle.push({})
|
||||||
@ -19,17 +19,17 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
|||||||
return <div className='py-5'>
|
return <div className='py-5'>
|
||||||
<div
|
<div
|
||||||
className={`z-0 mx-auto w-full text-center text-white ${
|
className={`z-0 mx-auto w-full text-center text-white ${
|
||||||
process.env.NODE_ENV === 'production' ? '' : 'py-12 bg-gray-700'
|
true ? '' : 'py-12 bg-gray-700'
|
||||||
}`}
|
}`}
|
||||||
style={size === 'short' ? { height: '90px' } : { height: '330px' }}
|
style={size === 'short' ? { height: '90px' } : { height: '330px', float: 'right' }}
|
||||||
>
|
>
|
||||||
{process.env.NODE_ENV === 'production' ? (
|
{true ? (
|
||||||
<ins
|
<ins
|
||||||
className='adsbygoogle'
|
className='adsbygoogle'
|
||||||
style={{ display: 'block', width: '100%' }}
|
style={{ display: 'block', width: '100%' }}
|
||||||
data-ad-client='ca-pub-4856582423981759'
|
data-ad-client='ca-pub-4856582423981759'
|
||||||
data-ad-slot='3250141451'
|
data-ad-slot='3250141451'
|
||||||
data-ad-format='auto'
|
data-ad-format={size === 'short' ? 'horizontal' : 'vertical'}
|
||||||
data-full-width-responsive='true'
|
data-full-width-responsive='true'
|
||||||
data-adtest='on'
|
data-adtest='on'
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user