From f5cd79475e73fbc65e82b854eae9dc972c20e053 Mon Sep 17 00:00:00 2001 From: nzambello Date: Thu, 1 Jun 2023 17:18:57 +0200 Subject: [PATCH] refactor: cleanup, css fixes, add greeting --- src/components/ContactLinks.astro | 1 + src/components/Greeting.astro | 6 ++ src/components/IconsTech.astro | 142 ++++++++++++++++-------------- src/pages/index.astro | 3 +- 4 files changed, 86 insertions(+), 66 deletions(-) create mode 100644 src/components/Greeting.astro diff --git a/src/components/ContactLinks.astro b/src/components/ContactLinks.astro index b79ca9d..e31903b 100644 --- a/src/components/ContactLinks.astro +++ b/src/components/ContactLinks.astro @@ -49,6 +49,7 @@ display: inline-flex; justify-content: center; align-items: center; + margin-bottom: 1rem; } .contact-links a svg { width: 1.5em; diff --git a/src/components/Greeting.astro b/src/components/Greeting.astro new file mode 100644 index 0000000..4e9c026 --- /dev/null +++ b/src/components/Greeting.astro @@ -0,0 +1,6 @@ +--- +const messages = ['Hi', 'Hello', 'Howdy', 'Hey there'] +const randomMessage = messages[Math.floor(Math.random() * messages.length)] +--- + +

{randomMessage}!

diff --git a/src/components/IconsTech.astro b/src/components/IconsTech.astro index 2158f2b..1dfc971 100644 --- a/src/components/IconsTech.astro +++ b/src/components/IconsTech.astro @@ -1,66 +1,78 @@ - +
+

My tech stack

+ +