Skip to content

Commit fefca2b

Browse files
committed
fix: test multiplex ad format in song page
1 parent 038c6f3 commit fefca2b

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

web/src/modules/shared/components/client/ads/AdSlots.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,18 @@ export const DownloadPopupAdSlot = ({ className }: { className?: string }) => {
139139
/>
140140
);
141141
};
142+
143+
export const MultiplexAdSlot = ({ className }: { className?: string }) => {
144+
return (
145+
<AdTemplate
146+
className={cn(
147+
'relative rounded-xl bg-zinc-800/50 p-2 my-8 h-32 max-h-32 w-full min-w-64 text-sm text-zinc-400',
148+
className,
149+
)}
150+
adSlot='6673081563'
151+
adFormat='autorelaxed'
152+
fullWidthResponsive='true'
153+
showCloseButton={true}
154+
/>
155+
);
156+
};

web/src/modules/song/components/SongPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from './SongPageButtons';
1515
import SongCard from '../../browse/components/SongCard';
1616
import SongCardGroup from '../../browse/components/SongCardGroup';
17-
import { InterSectionAdSlot } from '../../shared/components/client/ads/AdSlots';
17+
import { MultiplexAdSlot } from '../../shared/components/client/ads/AdSlots';
1818
import { ErrorBox } from '../../shared/components/client/ErrorBox';
1919
import { formatTimeAgo } from '../../shared/util/format';
2020

@@ -92,7 +92,7 @@ export async function SongPage({ id }: { id: string }) {
9292
<SongDetails song={song} />
9393
</div>
9494
</div>
95-
<InterSectionAdSlot className='mb-0' />
95+
<MultiplexAdSlot className='mb-0' />
9696

9797
{/* Suggested songs */}
9898
<h2 className='text-md uppercase text-zinc-400 mt-10 mb-2'>

0 commit comments

Comments
 (0)