Skip to content

Commit

Permalink
refactor: assets subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Frost committed Oct 14, 2024
1 parent d230217 commit 0f81300
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Icon } from "astro-icon/components";
import { Image } from "astro:assets";
import { getRelativeLocaleUrl } from "astro:i18n";
import WsgHorizontalImage from "~/assets/wsg-horizontal.svg";
import WsgHorizontalImage from "~/assets/img/wsg-horizontal.svg";
import { getLangFromUrl, useTranslations } from "~/i18n";
const lang = getLangFromUrl(Astro.url);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { Image } from "astro:assets";
import { getRelativeLocaleUrl } from "astro:i18n";
import WsgHandsWhiteImage from "~/assets/wsg-hands-white.svg";
import WsgHandsWhiteImage from "~/assets/img/wsg-hands-white.svg";
import { getLangFromUrl, getLocalePaths, useTranslations } from "~/i18n/utils";
import { LanguageDropdown } from "./dropdowns/LanguageDropdown";
import { SkillsDropdown } from "./dropdowns/SkillsDropdown";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { ImageMetadata } from "astro";
import { Image } from "astro:assets";
import { clsx } from "clsx";
import HeroBgImage from "~/assets/hero-bg.jpg";
import HeroBgImage from "~/assets/img/hero-bg.jpg";
interface Props {
title: string;
Expand Down
10 changes: 5 additions & 5 deletions src/components/skill/SkillRoadmap.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
import { getRelativeLocaleUrl } from "astro:i18n";
import AlbertEinsteinCupImage from "~/assets/aec.webp";
import GermanChampionshipImage from "~/assets/german-championship.webp";
import OnlineCompetitionImage from "~/assets/online-competition.webp";
import RegistrationImage from "~/assets/registration.webp";
import WsgHandsImage from "~/assets/wsg-hands.svg";
import AlbertEinsteinCupImage from "~/assets/img/aec.webp";
import GermanChampionshipImage from "~/assets/img/german-championship.webp";
import OnlineCompetitionImage from "~/assets/img/online-competition.webp";
import RegistrationImage from "~/assets/img/registration.webp";
import WsgHandsImage from "~/assets/img/wsg-hands.svg";
import { getLangFromUrl, useTranslations } from "~/i18n";
import EventCard from "../EventCard.astro";
import Link from "../Link.astro";
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[lang]/it-software-solutions-for-business.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import historyJson from "~/assets/history.json";
import Skill09Image from "~/assets/skill-09.jpg";
import historyJson from "~/assets/data/history.json";
import Skill09Image from "~/assets/img/skill-09.jpg";
import { localeParams, useTranslations } from "~/i18n";
import SkillPage from "~/layouts/SkillPage.astro";
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[lang]/mobile-applications-development.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import historyJson from "~/assets/history.json";
import Skill08Image from "~/assets/skill-08.jpg";
import historyJson from "~/assets/data/history.json";
import Skill08Image from "~/assets/img/skill-08.jpg";
import { localeParams, useTranslations } from "~/i18n";
import SkillPage from "~/layouts/SkillPage.astro";
Expand Down

0 comments on commit 0f81300

Please sign in to comment.