From 0edd672a7067b2b9835dd2d2eb9f41d67117c6c3 Mon Sep 17 00:00:00 2001 From: Troy Date: Thu, 13 Feb 2025 12:54:26 +0000 Subject: [PATCH] fix: add back reveal animations on index --- src/components/Article.astro | 4 ++-- src/components/Button.astro | 2 +- src/components/Carousel.astro | 2 +- src/components/Hero.astro | 9 ++++++--- src/components/ShowcaseProject.astro | 16 +--------------- src/pages/index.astro | 10 +++++----- src/pages/projects/index.astro | 2 +- 7 files changed, 17 insertions(+), 28 deletions(-) diff --git a/src/components/Article.astro b/src/components/Article.astro index e35fb30..946d388 100644 --- a/src/components/Article.astro +++ b/src/components/Article.astro @@ -28,7 +28,7 @@ const listFormatter = new Intl.ListFormat("en-GB", { updated={article.data.updated} tags={article.data.tags} > -
+

@@ -80,7 +80,7 @@ const listFormatter = new Intl.ListFormat("en-GB", {

diff --git a/src/components/Button.astro b/src/components/Button.astro index 29e98e1..5b74600 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -8,7 +8,7 @@ type Props = { const { href, link, class: additionalClasses } = Astro.props; const baseClasses = - "bg-tertiary text-primary hover:bg-accent flex w-fit flex-row items-center gap-1 justify-self-center rounded-md px-2 py-1 text-center text-sm font-medium text-nowrap capitalize"; + "bg-tertiary text-primary hover:bg-accent flex w-fit flex-row items-center gap-1 justify-self-center rounded-sm px-2 py-1 text-center text-sm font-medium text-nowrap capitalize"; const combinedClasses = `${baseClasses} ${additionalClasses || ""}`; --- diff --git a/src/components/Carousel.astro b/src/components/Carousel.astro index 010dd4d..373339f 100644 --- a/src/components/Carousel.astro +++ b/src/components/Carousel.astro @@ -60,7 +60,7 @@ const { data } = Astro.props; x-transition.opacity.duration.1000ms > diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 7e368a0..4c0b703 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,6 +1,8 @@ --- import instrument from "@fontsource/instrument-serif/files/instrument-serif-latin-400-normal.woff2?url"; import { Icon } from "astro-icon/components"; +import { Image } from "astro:assets"; +import icon from "public/assets/icon.png"; --- Hi, I'm Troy, -
diff --git a/src/components/ShowcaseProject.astro b/src/components/ShowcaseProject.astro index c9e586a..394e1be 100644 --- a/src/components/ShowcaseProject.astro +++ b/src/components/ShowcaseProject.astro @@ -1,6 +1,5 @@ --- import { Image } from "astro:assets"; -import FormattedDate from "@components/FormattedDate.astro"; type Props = { collection: any; @@ -12,7 +11,7 @@ const { collection } = Astro.props;
  • diff --git a/src/pages/index.astro b/src/pages/index.astro index 29d864c..ba9f3fc 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -27,12 +27,12 @@ const projectsJSON = JSON.stringify(projects); -
    +
    -
    +

    Recent posts

      {posts.map((post) => )}
    diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro index 964f94a..044994c 100644 --- a/src/pages/projects/index.astro +++ b/src/pages/projects/index.astro @@ -15,7 +15,7 @@ const projects = (await getCollection("projects")) {PROJECTS.TITLE}
      {projects.map((article: any) => )}