Skip to content

Commit 6df9c29

Browse files
committed
cookie component
1 parent c5c03fd commit 6df9c29

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div class="cookie-consent"><p>This website uses cookies to ensure you get the best experience on our website.
3+
<a
4+
href="https://cookiesandyou.com/"
5+
target="_blank">Learn More
6+
</a> </p></div>
7+
</template>
8+
9+
<script>
10+
export default {
11+
data() {
12+
return {
13+
titulo: 'Hola'
14+
};
15+
}
16+
};
17+
</script>
18+
19+
<style lang="stylus" scoped>
20+
.cookie-consent
21+
position: fixed;
22+
width: 100%;
23+
height: 10%;
24+
top: 90%;
25+
color: #fff;
26+
background-color: #003ea5;
27+
z-index: 90;
28+
display: flex;
29+
align-items: center;
30+
justify-content: center;
31+
32+
</style>

src/layouts/default.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<v-app id="app">
3+
<cookie-consent />
34
<v-navigation-drawer
45
:clipped="clipped"
56
v-model="drawer"
@@ -73,11 +74,13 @@
7374
<script>
7475
import HomeHeader from "~/components/HomeHeader/Index.vue";
7576
import HomeFooter from "~/components/HomeFooter/Index.vue";
77+
import CookieConsent from "~/components/Cookieconsent/Index.vue";
7678
7779
export default {
7880
components: {
7981
HomeHeader,
80-
HomeFooter
82+
HomeFooter,
83+
CookieConsent
8184
},
8285
data() {
8386
return {
@@ -97,7 +100,7 @@ export default {
97100
}
98101
},
99102
created() {
100-
this.cookies();
103+
// this.cookies();
101104
},
102105
methods: {
103106
cookies() {

0 commit comments

Comments
 (0)