Skip to content

Commit

Permalink
chore: remove site config
Browse files Browse the repository at this point in the history
  • Loading branch information
jagcruz committed Oct 30, 2024
1 parent 949e52f commit 38681b4
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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']
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Cards/AnaCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/components/Cards/ana-card.wc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Creator/Creator.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
Expand Down
4 changes: 2 additions & 2 deletions src/components/RankingItem/RankingItem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
10 changes: 5 additions & 5 deletions src/layouts/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/sections/home/CardsCategory.astro
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const CATEGORIES = Object.entries(CardCategory).map(([, value]) => ({
document.querySelectorAll<HTMLLabelElement>('.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();
Expand Down
2 changes: 1 addition & 1 deletion src/sections/home/Information.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38681b4

Please sign in to comment.