From f18cdf501ae483598db76287746e5cc398387c39 Mon Sep 17 00:00:00 2001 From: Alexander Daichendt Date: Tue, 26 Jul 2022 22:11:03 +0200 Subject: [PATCH] feat: work on code highlighting --- src/components/Code.svelte | 60 ++++++++++++++++++++ src/components/ListItem.svelte | 7 +++ src/layouts/blog.svelte | 4 +- src/layouts/components.js | 4 ++ src/routes/__layout.svelte | 1 + src/routes/blog/index.svelte | 5 +- src/routes/blog/software-recommendations.svx | 46 +++++++++++---- src/routes/contact.svelte | 16 +++--- 8 files changed, 120 insertions(+), 23 deletions(-) create mode 100644 src/components/Code.svelte create mode 100644 src/components/ListItem.svelte diff --git a/src/components/Code.svelte b/src/components/Code.svelte new file mode 100644 index 0000000..802a6de --- /dev/null +++ b/src/components/Code.svelte @@ -0,0 +1,60 @@ + + + + +
+ {#if copied} + Copied + {:else} + Double click to copy + {/if} +
+
+ + diff --git a/src/components/ListItem.svelte b/src/components/ListItem.svelte new file mode 100644 index 0000000..c4e1b41 --- /dev/null +++ b/src/components/ListItem.svelte @@ -0,0 +1,7 @@ +
  • + + diff --git a/src/layouts/blog.svelte b/src/layouts/blog.svelte index 403459a..1119c67 100644 --- a/src/layouts/blog.svelte +++ b/src/layouts/blog.svelte @@ -1,8 +1,8 @@ @@ -32,8 +33,8 @@ diff --git a/src/routes/blog/software-recommendations.svx b/src/routes/blog/software-recommendations.svx index a03e8c0..a2c33e4 100644 --- a/src/routes/blog/software-recommendations.svx +++ b/src/routes/blog/software-recommendations.svx @@ -4,7 +4,7 @@ title: 'Software recommendations for a privacy conscious digital life' description: '' keywords: - privacy -hidden: true +hidden: false ---

    Contact Information

    I usually reply within a couple minutes - if it is important. @@ -40,7 +41,4 @@ I usually reply within a couple minutes - if it is important. ul { list-style-type: none; } - li { - margin-bottom: 0.5rem; - }