From 4f39d45070f9356c02a030650f4f0452a67841a9 Mon Sep 17 00:00:00 2001 From: Adrien KISSIE Date: Tue, 24 Sep 2024 13:13:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20some=20more=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tailwind-indicator.astro | 38 ++++++++++++------------ src/pages/index.astro | 39 +++++++++++++++++-------- 2 files changed, 47 insertions(+), 30 deletions(-) diff --git a/src/components/tailwind-indicator.astro b/src/components/tailwind-indicator.astro index 8010716..59ddcef 100644 --- a/src/components/tailwind-indicator.astro +++ b/src/components/tailwind-indicator.astro @@ -1,23 +1,25 @@ -
-
xs
- - - - - - | 0px +
+
xs
+ + + + + + | 0px
\ No newline at end of file + // Initial call to set the media size on page load + updateMediaSize(); + }); + diff --git a/src/pages/index.astro b/src/pages/index.astro index 88410c5..4084d5e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -10,9 +10,7 @@ const totalYearsXP = new Date().getFullYear() - 2021; const totalYearsDev = new Date().getFullYear() - 2017; const workExperiences = (await getCollection("work")).sort( - (a, b) => - (b.data.endDate?.getTime() ?? new Date().getTime()) - - (a.data.endDate?.getTime() ?? new Date().getTime()) + (a, b) => b.data.startDate.getTime() - a.data.startDate.getTime() ); const projects = (await getCollection("projects")).sort( @@ -81,15 +79,13 @@ const projects = (await getCollection("projects")).sort(
  • - +
  • ); @@ -191,4 +191,19 @@ const projects = (await getCollection("projects")).sort( } +