Skip to content

Instantly share code, notes, and snippets.

@polluterofminds
Last active October 21, 2022 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polluterofminds/7568b9ab5d0d980d00014c2ae0158744 to your computer and use it in GitHub Desktop.
Save polluterofminds/7568b9ab5d0d980d00014c2ae0158744 to your computer and use it in GitHub Desktop.
Twitter Instant Game index.html with body start
<style type="text/css">
body {
max-width: 85%;
margin: auto;
}
iframe {
width: 100%;
height: 100vh;
}
#locked {
display: flex;
height: 100vh;
width: 50%;
margin: auto;
flex-direction: column;
justify-content: center;
}
#locked button {
width: 200px;
}
#unlocked {
display: none;
}
</style>
<div id="locked">
<h1>Pinnie On/Off</h1>
<h3>To play this game, you have to own a Pinnie NFT</h3>
<button>Connect Wallet</button>
<div id="buy-now">
<p>Don't have the NFT? Buy it here.</p>
</div>
</div>
<div id="unlocked">
<iframe frameBorder="0" src="https://gateway.pinata.cloud/ipfs/Qm.../" />
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment