Skip to content

Commit 88fe278

Browse files
Fix/fix buh footer + creata pagina not found
1 parent 1696c31 commit 88fe278

File tree

6 files changed

+44
-8
lines changed

6 files changed

+44
-8
lines changed

src/App.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export default {
1717
isAboutUsPage() {
1818
return this.$route.name === 'AboutUs';
1919
},
20+
21+
isNotFound() {
22+
return this.$route.name === 'not-found';
23+
},
2024
}
2125
};
2226
</script>
@@ -26,10 +30,10 @@ export default {
2630
<header>
2731
<AppHeader/>
2832
</header>
29-
<main :class="[ !isAboutUsPage && !isApartmentShowPage ? 'mt-[500px]' : '']">
33+
<main :class="[ !isAboutUsPage && !isApartmentShowPage && !isNotFound ? 'mt-[500px] mb-[250px]' : '']">
3034
<AppMain/>
3135
</main>
32-
<footer :class="{'mt-[100px]' : !isAboutUsPage}">
36+
<footer>
3337
<AppFooter/>
3438
</footer>
3539
</template>

src/Header/Components/JumboStatic.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ export default {
2121
isAboutUsPage() {
2222
return this.$route.name === 'AboutUs';
2323
},
24+
isNotFound() {
25+
return this.$route.name === 'not-found';
26+
},
2427
},
2528
};
2629
</script>
2730

2831
<template>
29-
<div v-if="!isAboutUsPage" class="h-[800px] w-full relative overflow-hidden">
32+
<div v-if="!isAboutUsPage && !isNotFound" class="h-[800px] w-full relative overflow-hidden">
3033
<!-- Sfondo -->
3134
<div
32-
class="absolute top-0 left-0 right-0 bottom-0 w-full h-full bg-cover bg-center transition-all duration-500 ease-in-out"
35+
class="absolute top-0 left-0 right-0 bottom-0 w-full h-[full] bg-cover bg-center transition-all duration-500 ease-in-out"
3336
:style="{
3437
backgroundImage: `url('/images/Jumbo.jpg')`,
3538
backgroundPosition: '50% 40%'

src/Header/Components/NavBar.vue

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export default {
6767
<!-- Logo -->
6868
<div class="text-[#EDEEF0] text-2xl w-14 h-10 font-bold">
6969
<router-link to="/" class="transition-all ease-in-out duration-300 hover:opacity-70 flex items-center">
70-
<img src="/images/logo.png" alt="Logo" class="h-full object-cover">
7170
<span>MilanBnB</span>
7271
</router-link>
7372
</div>

src/Header/Components/SearchBar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
this.tomtomAxios
4949
axios
5050
.get(url, {
51-
credentials: 'omit'
51+
credentials: 'include'
5252
})
5353
.then((response) => {
5454
const apartments = response.data.results[0].address.freeformAddress;

src/views/AboutUs.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
</script>
4747

4848
<template>
49-
<div class="bg-gradient-to-b from-white to-gray-200 h-screen flex items-center justify-center animate__animated animate__fadeIn">
49+
<div class="bg-gradient-to-b from-white to-gray-200 h-[700px] flex items-center justify-center animate__animated animate__fadeIn">
5050
<div class="max-w-7xl px-6 lg:px-8">
5151
<h1 class="text-gray-800 text-3xl font-semibold tracking-tight text-center animate__animated animate__fadeInDown">
5252
Il nostro Team

src/views/NotFound.vue

+31-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,39 @@ export default {
2020
</script>
2121

2222
<template>
23-
23+
<main class="relative grid h-screen place-items-center px-6 py-24 sm:py-32 lg:px-8">
24+
<div class="absolute inset-0 bg-cover bg-no-repeat bg-center blur-md opacity-70"
25+
:style="{
26+
backgroundImage: 'url(public/images/Jumbo.jpg)',
27+
}">
28+
</div>
29+
<div class="relative text-center z-10">
30+
<p class="text-4xl drop-shadow-lg font-semibold text-[#B49578]">404</p>
31+
<h1 class="mt-4 text-balance text-5xl font-semibold tracking-tight text-white drop-shadow-lg sm:text-7xl">
32+
Pagina non trovata
33+
</h1>
34+
<p class="mt-6 text-pretty drop-shadow-lg text-lg font-medium text-white sm:text-xl/8">
35+
Ci dispiace, non abbiamo trovato la pagina che stavi cercando.
36+
</p>
37+
<div class="mt-10 flex items-center justify-center gap-x-6">
38+
<router-link
39+
to="/"
40+
class="rounded-md bg-[#B49578] px-3.5 py-2.5 text-sm transition-all ease-in-out duration-300 font-semibold text-white shadow-sm hover:text-[#B49578] hover:bg-white"
41+
>
42+
Torna alla Home
43+
</router-link>
44+
<router-link
45+
to="/about"
46+
class="rounded-full py-3 px-6 transition-all ease-in-out duration-300 text-sm font-semibold text-[#B49578] bg-white shadow-sm hover:bg-[#B49578] hover:text-white"
47+
>
48+
Contatta il Servizio Clienti
49+
</router-link>
50+
</div>
51+
</div>
52+
</main>
2453
</template>
2554

55+
2656
<style scoped>
2757
2858
</style>

0 commit comments

Comments
 (0)