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>
export default {
// 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>
@@ -227,8 +236,8 @@ export default {
/* Герой-секция */
.hero-section {
background: linear-gradient(135deg, rgba(46, 139, 87, 0.9) 0%, rgba(38, 115, 74, 0.9) 100%),
url('../assets/images/Roshim2025_3.png') center/cover no-repeat;
background: linear-gradient(135deg, rgba(46, 139, 86, 0.555) 0%, rgba(38, 115, 74, 0.477) 100%),
url('@/public/images/Roshim2025_3.png') center/cover no-repeat;
color: white;
padding: 120px 0 80px;
position: relative;
@@ -18,7 +18,7 @@ func (h *HealthHandler) Routes() chi.Router {
r.Get("/health", h.HealthCheck)
r.Get("/check", h.Check)
return r
return r
}
func (h *HealthHandler) HealthCheck(w http.ResponseWriter, r *http.Request) {