From e9884aff24faddfb531dcabc1d27e47ed6850eff Mon Sep 17 00:00:00 2001 From: Ryo Hilmi Date: Sat, 25 May 2024 14:10:12 +0700 Subject: [PATCH] fix: base url --- assets/js/elements.js | 10 +++++----- {assets => public}/images/about.png | Bin {assets => public}/images/bin.png | Bin {assets => public}/images/contacts.png | Bin {assets => public}/images/education.png | Bin {assets => public}/images/portfolio.png | Bin {assets => public}/images/skills.png | Bin vite.config.js | 2 +- 8 files changed, 6 insertions(+), 6 deletions(-) rename {assets => public}/images/about.png (100%) rename {assets => public}/images/bin.png (100%) rename {assets => public}/images/contacts.png (100%) rename {assets => public}/images/education.png (100%) rename {assets => public}/images/portfolio.png (100%) rename {assets => public}/images/skills.png (100%) diff --git a/assets/js/elements.js b/assets/js/elements.js index c9d245b..885b7d2 100644 --- a/assets/js/elements.js +++ b/assets/js/elements.js @@ -1,27 +1,27 @@ export const appElements = [ { name: "About Me", - image: "/assets/images/about.png", + image: "/images/about.png", target: "about-window", }, { name: "Skills", - image: "/assets/images/skills.png", + image: "/images/skills.png", target: "skills-window", }, { name: "Education", - image: "/assets/images/education.png", + image: "/images/education.png", target: "education-window", }, { name: "Portfolio", - image: "/assets/images/portfolio.png", + image: "/images/portfolio.png", target: "portfolio-window", }, { name: "Contact", - image: "/assets/images/contacts.png", + image: "/images/contacts.png", target: "contact-window", }, ]; diff --git a/assets/images/about.png b/public/images/about.png similarity index 100% rename from assets/images/about.png rename to public/images/about.png diff --git a/assets/images/bin.png b/public/images/bin.png similarity index 100% rename from assets/images/bin.png rename to public/images/bin.png diff --git a/assets/images/contacts.png b/public/images/contacts.png similarity index 100% rename from assets/images/contacts.png rename to public/images/contacts.png diff --git a/assets/images/education.png b/public/images/education.png similarity index 100% rename from assets/images/education.png rename to public/images/education.png diff --git a/assets/images/portfolio.png b/public/images/portfolio.png similarity index 100% rename from assets/images/portfolio.png rename to public/images/portfolio.png diff --git a/assets/images/skills.png b/public/images/skills.png similarity index 100% rename from assets/images/skills.png rename to public/images/skills.png diff --git a/vite.config.js b/vite.config.js index d76a131..979ec77 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,7 @@ const { defineConfig } = require("vite"); module.exports = defineConfig({ - base: "/desktop-web/", + // base: "/desktop-web/", build: { rollupOptions: { input: "./index.html",