How to create a click-triggered popup in a theme app extension?

Update: Removing “export default” removed the error and triggered the print statement; however, no popup appeared

When I put text in the span it appears and disappears on click; however, it stays within its block instead of centering on the page. Do I need to somehow connect this theme app extension to an embedded app? Is that even possible?