mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-10-26 05:50:33 +00:00
Move landing images to src/assets
Rename public/landing-lq.jpg and public/landing_hq.png to src/assets and update Home.vue to use the new asset paths for loading the high-quality hero image (img.src and heroImageSrc). This ensures the images are managed by the app's asset pipeline.
This commit is contained in:
1 parent
c827c81d28
commit
c2e460b408
3 files changed
+2
-2
No files matched your search
File renamed without changes.
File renamed without changes.
+2
-2
@@ -44,9 +44,9 @@ onMounted(async () => {
|
|||||||
|
|
||||||
// Load high-quality hero image
|
// Load high-quality hero image
|
||||||
const img = new Image()
|
const img = new Image()
|
||||||
img.src = '/landing_hq.png'
|
img.src = '/src/assets/landing_hq.png'
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
heroImageSrc.value = '/landing_hq.png'
|
heroImageSrc.value = '/src/assets/landing_hq.png'
|
||||||
heroImageLoaded.value = true
|
heroImageLoaded.value = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user