diff --git a/sweb/src/components/Home.svelte b/sweb/src/components/Home.svelte index c578844..76030f9 100644 --- a/sweb/src/components/Home.svelte +++ b/sweb/src/components/Home.svelte @@ -10,43 +10,45 @@ // Flag to show IPFS demo let showIPFSDemo = false; - - function handleDemoButtonClick() { - console.log("Hello"); - showIPFSDemo = !showIPFSDemo; - }
-
-

- IPFS Integration -

-

- Experience the power of decentralized content storage and retrieval - with IPFS. -

- -
- -
-
- - {#if showIPFSDemo} -
- -
- {:else if contentPath && contentPath.trim() !== ""} + {#if contentPath && contentPath.trim() !== ""}
+ {:else} + +
+
+

+ IPFS Integration +

+

+ Experience the power of decentralized content storage and + retrieval with IPFS. +

+ +
+ +
+
+ + {#if showIPFSDemo} + + {/if} +
{/if}
diff --git a/sweb/src/components/MarkdownContent.svelte b/sweb/src/components/MarkdownContent.svelte index 0796162..d2490f1 100644 --- a/sweb/src/components/MarkdownContent.svelte +++ b/sweb/src/components/MarkdownContent.svelte @@ -160,11 +160,11 @@

Loading content...

{:else if error} -
+

Error: {error}

{:else} -
+
{@html content}
{/if}