From cd698bfeae2b37f15a230d33bfa6eafa051a7192 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Wed, 18 Dec 2024 13:51:05 -0800 Subject: [PATCH] Change out to use ExternalLink. --- src/lib/components/ExternalLink.svelte | 7 +- src/routes/uses/+page.svelte | 15 -- src/routes/uses/development.svelte | 196 +++++++++++------- src/routes/uses/hardware-accessories.svelte | 67 ++++-- .../uses/privacy-hardware-software.svelte | 11 +- 5 files changed, 178 insertions(+), 118 deletions(-) diff --git a/src/lib/components/ExternalLink.svelte b/src/lib/components/ExternalLink.svelte index 60a2a52..dfbaa21 100644 --- a/src/lib/components/ExternalLink.svelte +++ b/src/lib/components/ExternalLink.svelte @@ -16,6 +16,8 @@ textLocationClass = "text-left"; } else if (textData?.location === "right") { textLocationClass = "text-right"; + } else { + textLocationClass = "text-left"; } const linkDecoration = @@ -36,13 +38,13 @@ target={linkData?.target ?? "_blank"} > {#if textData?.location === "top" || (textData?.location === "left" && textData?.text)} - {textData?.text} + {textData?.text} {/if} {#if textData?.showIcon} {@render linkIcon?.(iconData ?? {})} {/if} {#if textData?.location === "bottom" || (textData?.location === "right" && textData?.text)} - {textData?.text} + {textData?.text} {/if} {/snippet} @@ -100,6 +102,7 @@ .text-decoration-underline { text-decoration: underline; + text-decoration-color: var(--shellYellow); } .show-icon { diff --git a/src/routes/uses/+page.svelte b/src/routes/uses/+page.svelte index ad60f25..07933e9 100644 --- a/src/routes/uses/+page.svelte +++ b/src/routes/uses/+page.svelte @@ -58,19 +58,4 @@ p { margin: 1rem; } - - /* :global(.uses-image) { - margin-left: auto; - margin-right: auto; - aspect-ratio: 4 / 3; - max-height: 480px; - - @media (max-width: 800px) { - max-height: 350px; - } - - @media (max-width: 500px) { - max-height: 300px; - } - } */ diff --git a/src/routes/uses/development.svelte b/src/routes/uses/development.svelte index 6b9cbf6..edecb64 100644 --- a/src/routes/uses/development.svelte +++ b/src/routes/uses/development.svelte @@ -7,14 +7,26 @@

My development setup has been documented here: . + linkData={{ + href: "https://github.com/BradNut/computer-setup-info/blob/master/linux/Environment-Setup.md", + ariaLabel: "Bradley Shellnut Computer Setup", + }} + textData={{ + text: "Computer Setup Info", + showIcon: true, + location: "left", + }} + />.

And documentation for my terminal and coding setup can be found here: Dotfiles >.

@@ -22,39 +34,25 @@ @@ -63,25 +61,33 @@ @@ -89,45 +95,71 @@ @@ -36,8 +36,15 @@
  • + + \ No newline at end of file