From 377a210063899519ffd7f7966c4be06cf862abbd Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 23 Mar 2022 18:06:12 +0100 Subject: [PATCH] added support section --- main.ts | 5 +++++ styles.css | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/main.ts b/main.ts index 73d2325..29e4d5c 100644 --- a/main.ts +++ b/main.ts @@ -270,5 +270,10 @@ class CustomFramesSettingTab extends PluginSettingTab { await this.plugin.saveSettings(); this.display(); }); + + this.containerEl.createEl("hr"); + this.containerEl.createEl("p", { text: "If you like this plugin and want to support its development, you can do so through my website by clicking this fancy image!" }); + this.containerEl.createEl("a", { href: "https://ellpeck.de/support" }) + .createEl("img", { attr: { src: "https://ellpeck.de/res/generalsupport.png" }, cls: "custom-frames-support" }); } } \ No newline at end of file diff --git a/styles.css b/styles.css index 4b33eaf..5e89384 100644 --- a/styles.css +++ b/styles.css @@ -11,10 +11,12 @@ background-clip: content-box; } -.custom-frames-add { - padding: 0 0 18px 0; -} - .custom-frames-add button { margin-left: 10px; } + +.custom-frames-support { + max-width: 50%; + width: 400px; + height: auto; +}