From e9db1f4ded10e9cac9ec50b0142bcda6fc1cd7c0 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 21 Nov 2021 15:02:31 +0100 Subject: [PATCH] front: add an external link icon to external links --- src/assets/scss/base.scss | 2 +- .../views/scripts/ExternalLinkIcons.svelte | 32 +++++++++++++++++++ .../views/templates/BaseTemplate.svelte | 3 ++ .../views/templates/CommonScripts.svelte | 5 +++ .../views/templates/ErrorTemplate.svelte | 3 ++ test/assets/views/design.svelte | 2 +- 6 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 src/assets/views/scripts/ExternalLinkIcons.svelte create mode 100644 src/assets/views/templates/CommonScripts.svelte diff --git a/src/assets/scss/base.scss b/src/assets/scss/base.scss index a98f1d3..22ae0fc 100644 --- a/src/assets/scss/base.scss +++ b/src/assets/scss/base.scss @@ -155,7 +155,7 @@ h1 { a { text-decoration: none; - .icon.feather-external-link { //todo add js + .icon.lucide-external-link { //todo add js --icon-size: 16px; margin-left: 4px; margin-top: -3px; diff --git a/src/assets/views/scripts/ExternalLinkIcons.svelte b/src/assets/views/scripts/ExternalLinkIcons.svelte new file mode 100644 index 0000000..62f0a81 --- /dev/null +++ b/src/assets/views/scripts/ExternalLinkIcons.svelte @@ -0,0 +1,32 @@ + + + + +
+ +
diff --git a/src/assets/views/templates/BaseTemplate.svelte b/src/assets/views/templates/BaseTemplate.svelte index 4d10962..755d987 100644 --- a/src/assets/views/templates/BaseTemplate.svelte +++ b/src/assets/views/templates/BaseTemplate.svelte @@ -2,6 +2,7 @@ import FlashMessages from "../components/FlashMessages.svelte"; import BaseFooter from "./base/BaseFooter.svelte"; import BaseHeader from "./base/BaseHeader.svelte"; + import CommonScripts from "./CommonScripts.svelte"; export let title: string; export let h1: string = title; @@ -9,6 +10,8 @@ export let refresh_after: number | undefined = undefined; + +