mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-04-02 22:06:08 +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:
|
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 16 MiB After Width: | Height: | Size: 16 MiB |
@@ -44,9 +44,9 @@ onMounted(async () => {
|
||||
|
||||
// Load high-quality hero image
|
||||
const img = new Image()
|
||||
img.src = '/landing_hq.png'
|
||||
img.src = '/src/assets/landing_hq.png'
|
||||
img.onload = () => {
|
||||
heroImageSrc.value = '/landing_hq.png'
|
||||
heroImageSrc.value = '/src/assets/landing_hq.png'
|
||||
heroImageLoaded.value = true
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user