From 7325977f38633ae8e01c2ce3d54af7dcae514406 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 12 Sep 2022 14:51:09 -0600 Subject: [PATCH 01/16] start on theming customizer --- docs/src/lib/components/examples/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/lib/components/examples/index.ts b/docs/src/lib/components/examples/index.ts index d7e8d00f2..2304a8b0d 100644 --- a/docs/src/lib/components/examples/index.ts +++ b/docs/src/lib/components/examples/index.ts @@ -1,3 +1,4 @@ export { default as ConnectWallet } from './ConnectWallet.svelte' +export { default as ThemeCustomizer } from './ThemeCustomizer.svelte' export { default as ReactConnectWallet } from './ReactConnectWallet.md' export { default as SvelteConnectWallet } from './SvelteConnectWallet.md' \ No newline at end of file From 2cdd1b6be73a2b3d16b05df24d4d2591edacf6b9 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 13 Sep 2022 08:31:25 -0600 Subject: [PATCH 02/16] Theming comp coming along --- .../examples/ThemeCustomizer.svelte | 534 ++++++++++++++++++ docs/src/routes/examples/theming.md | 7 + 2 files changed, 541 insertions(+) create mode 100644 docs/src/lib/components/examples/ThemeCustomizer.svelte create mode 100644 docs/src/routes/examples/theming.md diff --git a/docs/src/lib/components/examples/ThemeCustomizer.svelte b/docs/src/lib/components/examples/ThemeCustomizer.svelte new file mode 100644 index 000000000..41ed61f7b --- /dev/null +++ b/docs/src/lib/components/examples/ThemeCustomizer.svelte @@ -0,0 +1,534 @@ + +
+
+
+

+ Drag and drop a screen shot of your site to customize styling. +
+ Click color circles above to change the theme. +

+ {#if uploaded_image} + + {#if $wallets$} +
+
+ + + + + +
+
+ {/if} + {/if} +
+
+ +
+ {#each Object.keys(defaultStyling) as target} +
+
+ updateTheme(e, target)} + /> +
+ {target} : {defaultStyling[target]} +
+ {/each} +
+
+ + Disabled Backdrop for Styling +
+
+