diff --git a/demo/src/lib/layout/Header.svelte b/demo/src/lib/layout/Header.svelte index 270992ab00..d700d1352f 100644 --- a/demo/src/lib/layout/Header.svelte +++ b/demo/src/lib/layout/Header.svelte @@ -17,6 +17,7 @@ $: tabs = $page.data.tabs ?? []; $: builtPageTitle = getTitle(pageTitle || title, $selectedApiFramework$, $selectedPackageType$); + $: includesFwk = !!$page.params.framework; @@ -34,18 +35,20 @@
{#if status === 'inprogress'}In progress{/if} {#if status === 'beta'}Beta{/if} - {#if $selectedApiFramework$ === 'typescript'}{/if} - {#if $selectedApiFramework$ === 'react'}{/if} - {#if $selectedApiFramework$ === 'angular'}{/if} - {#if $selectedApiFramework$ === 'svelte'}{/if} + {#if includesFwk} + {#if $selectedApiFramework$ === 'typescript'}{/if} + {#if $selectedApiFramework$ === 'react'}{/if} + {#if $selectedApiFramework$ === 'angular'}{/if} + {#if $selectedApiFramework$ === 'svelte'}{/if} + {/if} {#if cssFramework === 'bootstrap'}{/if} diff --git a/demo/src/lib/layout/Published.svelte b/demo/src/lib/layout/Published.svelte index f610bed4a3..8dd4698f50 100644 --- a/demo/src/lib/layout/Published.svelte +++ b/demo/src/lib/layout/Published.svelte @@ -1,7 +1,58 @@ - -Published on {date} +
+
+ Publisher avatar +
+ {authorLogo[author].title} +
Published on {formattedDate}
+
+
+ +
+
+ + diff --git a/demo/src/resources/images/fbasso.webp b/demo/src/resources/images/fbasso.webp new file mode 100644 index 0000000000..464369fb08 Binary files /dev/null and b/demo/src/resources/images/fbasso.webp differ diff --git a/demo/src/resources/images/tansu-blog.webp b/demo/src/resources/images/tansu-blog.webp new file mode 100644 index 0000000000..85b6e006dd Binary files /dev/null and b/demo/src/resources/images/tansu-blog.webp differ diff --git a/demo/src/routes/blog/2024-02-01/+page.svelte b/demo/src/routes/blog/2024-02-01/+page.svelte index 92d80b2b7e..901eaa1349 100644 --- a/demo/src/routes/blog/2024-02-01/+page.svelte +++ b/demo/src/routes/blog/2024-02-01/+page.svelte @@ -3,13 +3,35 @@ import Published from '$lib/layout/Published.svelte'; import Markdown from '$lib/markdown/Markdown.svelte'; import source from './tansu-reactivity.md?raw'; + import headerImg from '$resources/images/tansu-blog.webp'; + + const title = 'State management with Tansu'; + const description = + 'In AgnosUI, we employ Tansu to handle our widget states. This article explores the effective ways to use Tansu for broader state management, drawing upon our practical experience in developing AgnosUI.'; - State management with Tansu - + {title} + + + + + + + + + + + + + + + + + -
- +
+ +frontend development diff --git a/demo/src/routes/blog/2024-02-01/tansu-reactivity.md b/demo/src/routes/blog/2024-02-01/tansu-reactivity.md index effa662d5e..35f574e5b8 100644 --- a/demo/src/routes/blog/2024-02-01/tansu-reactivity.md +++ b/demo/src/routes/blog/2024-02-01/tansu-reactivity.md @@ -406,6 +406,3 @@ In this exploration of state management with Tansu, we've delved into powerful t The examples presented, highlight the flexibility Tansu offers in managing state at varying levels of complexity. Whether you're dealing with local or server-driven data, the principles explored here provide a foundation for structuring your application's state in a way that promotes maintainability and scalability. Incorporating these techniques into your projects not only enhances the clarity of your code but also contributes to a more robust and responsive state management. - -**Fabrice Basso
-Software engineer at Amadeus**