From 6a878a8eead924041f4953298d9824d78dd16f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Alan=20Guti=C3=A9rrez=20Cruz?= <33694882+jagcruz@users.noreply.github.com> Date: Wed, 30 Oct 2024 02:19:47 -0300 Subject: [PATCH] fix: update pahts --- src/components/CardSample.astro | 4 +--- src/components/Cards/Card.astro | 4 +--- src/components/Cards/ana-card.wc.ts | 2 +- src/components/Creator/Creator.astro | 4 +--- src/components/Footer/Footer.astro | 15 ++++----------- src/components/Navbar/Navbar.astro | 10 +++++----- src/components/RankingItem/RankingItem.astro | 2 +- src/data/creators.ts | 2 +- src/data/demo-categories.ts | 14 +++++++------- src/layouts/Base.astro | 2 +- src/pages/404.astro | 4 ++-- src/pages/ranking/[user].astro | 8 ++------ src/pages/ranking/index.astro | 2 +- src/sections/home/Hero.astro | 6 +----- 14 files changed, 29 insertions(+), 50 deletions(-) diff --git a/src/components/CardSample.astro b/src/components/CardSample.astro index a9fc9e3..1764418 100644 --- a/src/components/CardSample.astro +++ b/src/components/CardSample.astro @@ -14,8 +14,6 @@ type Props = { const { defaultCategory } = Astro.props; -const BASE_URL = import.meta.env.BASE_URL; - const cardLevel = 6; const defaultTitle = `Categoría ${demoCategoryTitles[defaultCategory]}`; const defaultImage = demoCategoryImages[defaultCategory]; @@ -65,7 +63,7 @@ const cssVars = {
{description}
diff --git a/src/components/Cards/ana-card.wc.ts b/src/components/Cards/ana-card.wc.ts index b4af765..8808024 100644 --- a/src/components/Cards/ana-card.wc.ts +++ b/src/components/Cards/ana-card.wc.ts @@ -55,7 +55,7 @@ export class AnaCard extends HTMLElement { } getImageURL() { - return `s/assets/images/cards/${this.cardImage}`; + return `/assets/images/cards/${this.cardImage}`; } render() { diff --git a/src/components/Creator/Creator.astro b/src/components/Creator/Creator.astro index ff20592..190c17a 100644 --- a/src/components/Creator/Creator.astro +++ b/src/components/Creator/Creator.astro @@ -2,8 +2,6 @@ import type { Creator, CreatorIcon, HorizontalAlignment } from '@contracts'; import { Icon } from 'astro-icon/components'; -const BASE_URL = import.meta.env.BASE_URL; - const ICON_TITLES: Record