From bc666598c3ef6c9ba1917559a110e52d66485caf Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Fri, 29 Aug 2025 00:28:40 +0300 Subject: [PATCH] add source code button --- src/App.svelte | 3 +++ src/components/LanguageSwitch.svelte | 4 +-- src/components/SourceCodeButton.svelte | 36 ++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 src/components/SourceCodeButton.svelte diff --git a/src/App.svelte b/src/App.svelte index 245034f..60aea44 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,8 @@ + {#key refreshKey}
diff --git a/src/components/LanguageSwitch.svelte b/src/components/LanguageSwitch.svelte index a1315c1..2e755c5 100644 --- a/src/components/LanguageSwitch.svelte +++ b/src/components/LanguageSwitch.svelte @@ -21,12 +21,12 @@ .lang-switch { position: fixed; top: 20px; - right: 20px; + right: 140px; background: #007bff; color: white; border: none; border-radius: 4px; - padding: 8px 12px; + padding: 8.5px 15px; cursor: pointer; font-weight: 500; font-size: 14px; diff --git a/src/components/SourceCodeButton.svelte b/src/components/SourceCodeButton.svelte new file mode 100644 index 0000000..56c5dee --- /dev/null +++ b/src/components/SourceCodeButton.svelte @@ -0,0 +1,36 @@ + + +
+ +
+ +