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 = {
- +
diff --git a/src/components/Cards/Card.astro b/src/components/Cards/Card.astro index 3fb725b..7f35365 100644 --- a/src/components/Cards/Card.astro +++ b/src/components/Cards/Card.astro @@ -8,8 +8,6 @@ import { import { stringifyCardNumber } from '@utils'; import { Icon } from 'astro-icon/components'; -const BASE_URL = import.meta.env.BASE_URL; - type Props = AnaCard; const { id, name, description, image, category, level = 1 } = Astro.props; @@ -27,7 +25,7 @@ function getStyledCard(cat: CardCategory) {

{name}

- +

{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 = { github: 'GitHub', linkedin: 'LinkedIn', @@ -26,7 +24,7 @@ const { name, description, avatar, direction, links, birthdate, isAmazing = fals
- {name} + {name}
diff --git a/src/components/Footer/Footer.astro b/src/components/Footer/Footer.astro index 79efde7..a78c11c 100644 --- a/src/components/Footer/Footer.astro +++ b/src/components/Footer/Footer.astro @@ -1,24 +1,17 @@ --- import Logo from '../Logo.astro'; - -const BASE_URL = import.meta.env.BASE_URL; ---