diff --git a/astro.config.mjs b/astro.config.mjs index 01e3fc3..390760d 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,7 +3,7 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ - base: '/ana-cards-web', + site: 'https://cards.uxanarangel.com', image: { domains: ['avatars.githubusercontent.com'] }, diff --git a/src/components/Cards/AnaCard.astro b/src/components/Cards/AnaCard.astro index d5c6d47..4b2ddd1 100644 --- a/src/components/Cards/AnaCard.astro +++ b/src/components/Cards/AnaCard.astro @@ -99,7 +99,7 @@ const { id, name, description, image, category, level = 1 } = Astro.props; background-size: 80%; background-repeat: no-repeat; background-position: center center; - background-image: url('/ana-cards-web/assets/images/logo.png'); + background-image: url('/assets/images/logo.png'); } } diff --git a/src/components/Cards/ana-card.wc.ts b/src/components/Cards/ana-card.wc.ts index e6731af..b4af765 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 `/ana-cards-web/assets/images/cards/${this.cardImage}`; + return `s/assets/images/cards/${this.cardImage}`; } render() { @@ -353,7 +353,7 @@ export class AnaCard extends HTMLElement { } .card[data-card-level] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/diamonds.webp'); + --shine-texture: url('/assets/images/textures/diamonds.webp'); --shine-gradient-1: repeating-linear-gradient( 0deg, @@ -394,19 +394,19 @@ export class AnaCard extends HTMLElement { } .card[data-card-level='2'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/metal.webp'); + --shine-texture: url('/assets/images/textures/metal.webp'); } .card[data-card-level='3'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/crossover.webp'); + --shine-texture: url('/assets/images/textures/crossover.webp'); } .card[data-card-level='4'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/wave.webp'); + --shine-texture: url('/assets/images/textures/wave.webp'); } .card[data-card-level='5'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/stamp.webp'); + --shine-texture: url('/assets/images/textures/stamp.webp'); } } } diff --git a/src/components/Creator/Creator.astro b/src/components/Creator/Creator.astro index ccb94d8..ff20592 100644 --- a/src/components/Creator/Creator.astro +++ b/src/components/Creator/Creator.astro @@ -74,7 +74,7 @@ const { name, description, avatar, direction, links, birthdate, isAmazing = fals width: 60%; height: 60%; position: absolute; - background-image: url('/ana-cards-web/assets/images/party-hat.avif'); + background-image: url('/assets/images/party-hat.avif'); background-size: 60%; background-position: center; background-repeat: no-repeat; diff --git a/src/components/Footer/Footer.astro b/src/components/Footer/Footer.astro index d2c02ce..79efde7 100644 --- a/src/components/Footer/Footer.astro +++ b/src/components/Footer/Footer.astro @@ -133,7 +133,7 @@ const BASE_URL = import.meta.env.BASE_URL; translate: -50% -1rem; rotate: -9deg; z-index: -1; - background: url('/ana-cards-web/assets/images/manz.webp') no-repeat; + background: url('/assets/images/manz.webp') no-repeat; background-size: 90%; background-position: bottom; mask-image: linear-gradient(to top, transparent 0%, black 50%); diff --git a/src/components/RankingItem/RankingItem.astro b/src/components/RankingItem/RankingItem.astro index 1f40ab9..7182922 100644 --- a/src/components/RankingItem/RankingItem.astro +++ b/src/components/RankingItem/RankingItem.astro @@ -80,7 +80,7 @@ const { place, score, username } = Astro.props; var(--card-bgcolor-1), rgb(from var(--border-color) r g b / 0.05) ), - url('/ana-cards-web/assets/images/textures/noise.png'); + url('/assets/images/textures/noise.png'); background-blend-mode: difference; display: inline-flex; @@ -98,7 +98,7 @@ const { place, score, username } = Astro.props; var(--card-bgcolor-1), rgb(from var(--border-color) r g b / 0.2) ), - url('/ana-cards-web/assets/images/textures/noise.png'); + url('/assets/images/textures/noise.png'); } & .placement, diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 06b5507..963b4a0 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -99,7 +99,7 @@ const _title = !title ? 'Ana×Cards' : `${title} • Ana×Cards`; --z-index-snackbar: 1400; --z-index-tooltip: 1500; - --grain-texture: url('/ana-cards-web/assets/images/textures/grain.png'); + --grain-texture: url('/assets/images/textures/grain.png'); color-scheme: dark; } diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index bda9bb4..fc546b2 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -240,7 +240,7 @@ const { title } = Astro.props; } .card-front[data-card-level] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/diamonds.webp'); + --shine-texture: url('/assets/images/textures/diamonds.webp'); --shine-gradient-1: repeating-linear-gradient( 0deg, @@ -281,19 +281,19 @@ const { title } = Astro.props; } .card-front[data-card-level='2'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/metal.webp'); + --shine-texture: url('/assets/images/textures/metal.webp'); } .card-front[data-card-level='3'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/crossover.webp'); + --shine-texture: url('/assets/images/textures/crossover.webp'); } .card-front[data-card-level='4'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/wave.webp'); + --shine-texture: url('/assets/images/textures/wave.webp'); } .card-front[data-card-level='5'] & { - --shine-texture: url('/ana-cards-web/assets/images/textures/stamp.webp'); + --shine-texture: url('/assets/images/textures/stamp.webp'); } } } diff --git a/src/sections/home/CardsCategory.astro b/src/sections/home/CardsCategory.astro index 34c41b7..3a154b9 100644 --- a/src/sections/home/CardsCategory.astro +++ b/src/sections/home/CardsCategory.astro @@ -204,7 +204,7 @@ const CATEGORIES = Object.entries(CardCategory).map(([, value]) => ({ document.querySelectorAll('.badge[data-category]').forEach(badge => { badge.addEventListener('click', ({ target }) => { if (target instanceof HTMLLabelElement && cardCategorySample) { - const cardFlickSound = new Audio('/ana-cards-web/assets/audio/card-flick.mp3'); + const cardFlickSound = new Audio('/assets/audio/card-flick.mp3'); const category = target.dataset.category; cardCategorySample.dataset.category = category; cardFlickSound.play(); diff --git a/src/sections/home/Information.astro b/src/sections/home/Information.astro index 8a2d60d..4f69801 100644 --- a/src/sections/home/Information.astro +++ b/src/sections/home/Information.astro @@ -44,7 +44,7 @@ & .card-stack { width: 449px; height: 280px; - background: url('/ana-cards-web/assets/images/card.png'); + background: url('/assets/images/card.png'); background-repeat: no-repeat; position: relative; background-position-x: center;