Freedom Smuggler on Nostr: From chatGPT it seams three things need to happen. 1) Define a const htmlPage = ...
From chatGPT it seams three things need to happen.
1) Define a const htmlPage = ‘your html code here’;
2) Create a function that returns the first variable inside something called dangerouslySetInnerHTML. (Must say seems like a const as well, but looks like a function, maybe that’s how react works)
3) Give that function a style and then style it separately.
Published at
2024-03-30 05:08:09Event JSON
{
"id": "601fa0e90a27fc609b226bdf48af011359c514135322f9b03b37b4c9e1a59662",
"pubkey": "9cb3545c36940d9a2ef86d50d5c7a8fab90310cc898c4344bcfc4c822ff47bca",
"created_at": 1711775289,
"kind": 1,
"tags": [
[
"e",
"ffd2dff5426c70bc9d5ceb3d550151f0d207ca36d9d4b76b8222c01f9b560eff"
],
[
"e",
"654538a79f1b52a4490bc5108385d61eeb690f9dce2e1db273aa45483fc12ea6"
],
[
"p",
"06830f6cb5925bd82cca59bda848f0056666dff046c5382963a997a234da40c5"
],
[
"p",
"ee6ea13ab9fe5c4a68eaf9b1a34fe014a66b40117c50ee2a614f4cda959b6e74"
],
[
"imeta",
"url https://image.nostr.build/f8c87db664341672fb3a1f8af9f2495c1d2a949f7401c2ecb6dad1f2da7d467d.jpg",
"blurhash e03bt3_NVCI8H;%%W=V?WBRPoIadt8WXognMivn$bIo~Q,nitSV@bb",
"dim 1243x2046"
],
[
"r",
"https://image.nostr.build/f8c87db664341672fb3a1f8af9f2495c1d2a949f7401c2ecb6dad1f2da7d467d.jpg"
]
],
"content": "From chatGPT it seams three things need to happen. \n\n1) Define a const htmlPage = ‘your html code here’;\n\n2) Create a function that returns the first variable inside something called dangerouslySetInnerHTML. (Must say seems like a const as well, but looks like a function, maybe that’s how react works)\n\n3) Give that function a style and then style it separately. https://image.nostr.build/f8c87db664341672fb3a1f8af9f2495c1d2a949f7401c2ecb6dad1f2da7d467d.jpg ",
"sig": "9e33d1ed1eac222c67f04ab88344ddadf53b7f9faa0e9714de1166fe82b87211d3a8a181d7b77806ecc198b959e01b3b13f48fd31eca38f1cf8836e0c29bf2f4"
}