From 771089e32b2d3fd697216cd0c5a24e1ef520870f Mon Sep 17 00:00:00 2001 From: afn <47723802+afnzmn@users.noreply.github.com> Date: Wed, 12 Oct 2022 02:54:40 -0400 Subject: [PATCH] refactor: minor tweals --- src/lib/components/atoms/Button.svelte | 46 ++++---- src/lib/components/atoms/Navigation.svelte | 5 +- src/lib/components/atoms/SocialButton.svelte | 5 +- src/lib/components/molecules/NavHost.svelte | 26 ++++- .../components/molecules/SocialHost.svelte | 8 +- src/routes/docs/+page.svelte | 108 ++++++++++++++++-- 6 files changed, 146 insertions(+), 52 deletions(-) diff --git a/src/lib/components/atoms/Button.svelte b/src/lib/components/atoms/Button.svelte index b83720e..478eda1 100644 --- a/src/lib/components/atoms/Button.svelte +++ b/src/lib/components/atoms/Button.svelte @@ -4,52 +4,48 @@ export let href = '#'; export let fontsize = '1.2rem'; export let icon = ""; - - function handleClick() { - location.href = href; - } - + +
+ {icon} + +
+
diff --git a/src/lib/components/atoms/SocialButton.svelte b/src/lib/components/atoms/SocialButton.svelte index ed44736..c2e8ed1 100644 --- a/src/lib/components/atoms/SocialButton.svelte +++ b/src/lib/components/atoms/SocialButton.svelte @@ -1,13 +1,12 @@
diff --git a/src/lib/components/molecules/NavHost.svelte b/src/lib/components/molecules/NavHost.svelte index 99e28b7..af16a82 100644 --- a/src/lib/components/molecules/NavHost.svelte +++ b/src/lib/components/molecules/NavHost.svelte @@ -1,7 +1,10 @@
- - - - + + + +
\ No newline at end of file