@@ -17,32 +17,30 @@ export function GameEmbed({ embedID, gameWidth, gameHeight }: GameEmbedProps) {
1717 const [ isPlaying , setIsPlaying ] = useState ( false ) ;
1818
1919 return (
20- < div >
21- < section
22- className = {
23- "flex items-center justify-center border-[26px] border-accent p-2 [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]"
24- }
25- style = { { width : gameWidth , height : gameHeight } }
26- >
27- { ! isPlaying ? (
28- < button
29- onClick = { ( ) => setIsPlaying ( ! isPlaying ) }
30- className = "rounded-sm bg-accent px-7 py-3"
31- aria-label = "Play"
32- >
33- < div > Play</ div >
34- </ button >
35- ) : (
36- < div >
37- < iframe
38- src = { `https://itch.io/embed-upload/${ embedID } ?color=110e1a` }
39- width = { gameWidth }
40- height = { gameHeight }
41- className = "min-w-80 border-[26px] border-accent [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]"
42- > </ iframe >
43- </ div >
44- ) }
45- </ section >
20+ < div
21+ className = {
22+ "flex items-center justify-center border-[26px] border-accent bg-background p-2 [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]"
23+ }
24+ style = { { width : gameWidth , height : gameHeight } }
25+ >
26+ { ! isPlaying ? (
27+ < button
28+ onClick = { ( ) => setIsPlaying ( ! isPlaying ) }
29+ className = "rounded-sm bg-accent px-7 py-3"
30+ aria-label = "Play"
31+ >
32+ < div > Play</ div >
33+ </ button >
34+ ) : (
35+ < div >
36+ < iframe
37+ src = { `https://itch.io/embed-upload/${ embedID } ?color=110e1a` }
38+ width = { gameWidth }
39+ height = { gameHeight }
40+ className = "min-w-80 border-[26px] border-accent [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]"
41+ > </ iframe >
42+ </ div >
43+ ) }
4644 </ div >
4745 ) ;
4846}
0 commit comments