modified: begushiybashkir/bbvue/src/views/Home.vue

modified:   serv_nginx/api_bb/internal/handlers/health.go
fix bachground photo path
This commit is contained in:
2025-10-08 05:37:08 +05:00
parent 7ec95ab722
commit 654c682b05
2 changed files with 13 additions and 4 deletions
+12 -3
View File
@@ -216,7 +216,16 @@
<script> <script>
export default { export default {
// eslint-disable-next-line vue/multi-word-component-names // eslint-disable-next-line vue/multi-word-component-names
name: 'Home' name: 'Home',
methods: {
getImageUrl(path) {
// В продакшене замените на правильный путь
const baseUrl = import.meta.env.BASE_URL
// Путь от корня public/
console.log(`${baseUrl}images/${path}`)
return `${baseUrl}images/${path}`
},
}
} }
</script> </script>
@@ -227,8 +236,8 @@ export default {
/* Герой-секция */ /* Герой-секция */
.hero-section { .hero-section {
background: linear-gradient(135deg, rgba(46, 139, 87, 0.9) 0%, rgba(38, 115, 74, 0.9) 100%), background: linear-gradient(135deg, rgba(46, 139, 86, 0.555) 0%, rgba(38, 115, 74, 0.477) 100%),
url('../assets/images/Roshim2025_3.png') center/cover no-repeat; url('@/public/images/Roshim2025_3.png') center/cover no-repeat;
color: white; color: white;
padding: 120px 0 80px; padding: 120px 0 80px;
position: relative; position: relative;