[feature-237] use ArcViewer

This commit is contained in:
MathieuG-P
2023-08-28 00:25:43 +02:00
parent 71a2a01aca
commit 3edb3f583b
2 changed files with 3 additions and 4 deletions
@@ -72,9 +72,8 @@ export const MapItem = memo(({ hash, title, autor, songAutor, coverUrl, songUrl,
});
const songPlaying = useObservable(audioPlayer.playing$.pipe(map(playing => playing && audioPlayer.src === songUrl)));
const zipUrl = getMapZipUrlFromHash(hash);
const previewUrl = mapId ? `https://skystudioapps.com/bs-viewer/?url=${zipUrl}` : null;
const previewUrl = mapId ? `https://allpoland.github.io/ArcViewer/?id=${mapId}` : null;
const mapUrl = mapId ? `https://beatsaver.com/maps/${mapId}` : null;
const authorUrl = autorId ? `https://beatsaver.com/profile/${autorId}` : null;
const createdDate = createdAt ? dateFormat(createdAt, "d mmm yyyy") : null;
@@ -18,7 +18,7 @@ export function BsmIframeView() {
<div className="top-0 absolute w-screen h-screen flex content-center items-center justify-center z-[150]">
<motion.span className="absolute w-full h-full bg-black top-0 right-0" initial={{ opacity: 0 }} animate={{ opacity: 0.6 }} exit={{ opacity: 0 }} transition={{ duration: 0.2 }} />
<motion.div ref={ref} className="z-[1] w-[calc(100vw-250px)] h-[calc(100vh-250px)] shadow-black shadow-md rounded-md overflow-hidden bg-black" initial={{ y: "100vh" }} animate={{ y: 0 }} exit={{ y: "100vh" }}>
<iframe className="w-full h-full" src={iframeUrl} />
<iframe className="w-full h-full" src={iframeUrl} allowFullScreen/>
</motion.div>
</div>
)}