From b9f54605012e7c11ded949f67a2069820414f807 Mon Sep 17 00:00:00 2001 From: Firq Date: Sun, 5 Mar 2023 01:11:34 +0100 Subject: [PATCH] Added technologies, other approach for image loading --- src/components/ceCard.astro | 4 +- src/components/favouriteCard.astro | 2 +- src/components/navbar.astro | 4 +- src/components/navbarEntry.astro | 2 +- src/components/servantCard.astro | 4 +- src/components/taCard.astro | 2 +- src/components/technologyCard.astro | 55 ++++++++++++++++++++++++++++ src/layouts/Layout.astro | 2 +- src/pages/about.astro | 25 ++++++++++--- src/pages/servants.astro | 2 - src/pages/ta-collection.astro | 2 - static/technologies/astro.webp | Bin 0 -> 7728 bytes static/technologies/gitlab.webp | Bin 0 -> 3122 bytes 13 files changed, 84 insertions(+), 20 deletions(-) create mode 100644 src/components/technologyCard.astro create mode 100644 static/technologies/astro.webp create mode 100644 static/technologies/gitlab.webp diff --git a/src/components/ceCard.astro b/src/components/ceCard.astro index 49843b1..b4f6d93 100644 --- a/src/components/ceCard.astro +++ b/src/components/ceCard.astro @@ -7,8 +7,8 @@ export interface Props { const {mlb, link, name } = Astro.props; -const ce_img: string = `../ce/${link}.webp`; -const mlb_ce: string = `../ce/mlb.webp` +const ce_img: string = `/fgosite/ce/${link}.webp`; +const mlb_ce: string = `/fgosite/ce/mlb.webp` let mlb_image: string = "mlbalign"; if(mlb === "false") { diff --git a/src/components/favouriteCard.astro b/src/components/favouriteCard.astro index 7f0c518..25b115b 100644 --- a/src/components/favouriteCard.astro +++ b/src/components/favouriteCard.astro @@ -7,7 +7,7 @@ export interface Props { const {image, origin, name } = Astro.props; -const img: string = `favourites/${image}.webp`; +const img: string = `/fgosite/favourites/${image}.webp`; --- diff --git a/src/components/navbar.astro b/src/components/navbar.astro index efd2a29..6ff5b71 100644 --- a/src/components/navbar.astro +++ b/src/components/navbar.astro @@ -1,9 +1,9 @@ --- -import headerimg from "../../static/link_192.png" +import headerimg from "/link_192.png" ---
- +