Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
EU Cookie Law
Browse files Browse the repository at this point in the history
  • Loading branch information
FaZeRs committed Apr 26, 2018
1 parent 65b8776 commit c164dc4
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"v-img": "^0.2.0",
"vee-validate": "^2.0.6",
"vue": "^2.5.16",
"vue-cookie-law": "^1.5.0",
"vue-i18n": "^7.6.0",
"vue-meta": "^1.5.0",
"vue-recaptcha": "^1.1.0",
Expand Down
4 changes: 3 additions & 1 deletion resources/assets/js/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ export const en = {
'sem_position': 'Back End Web Developer',

'page_not_found': 'Page not found',
'clear': 'clear'
'clear': 'clear',
'cookies_message': 'This website uses cookies to ensure you get the best experience on our website.',
'cookies_button_text': 'Got it!'
}
4 changes: 3 additions & 1 deletion resources/assets/js/lang/lv.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ export const lv = {
'sem_position': 'PHP Programmētājs',

'page_not_found': 'Page not found',
'clear': 'Notīrīt'
'clear': 'Notīrīt',
'cookies_message': 'Lai nodrošinātu vislabāko If interneta lapas darbību, mēs izmantojam sīkdatnes.',
'cookies_button_text': 'Sapratu!'
}
5 changes: 4 additions & 1 deletion resources/assets/js/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,22 @@
</v-flex>
</v-layout>
</v-footer>
<cookie-law :message="$t('cookies_message')" :buttonText="$t('cookies_button_text')" theme="dark-blue"/>
<back-to-top visible-offset="500"/>
</v-app>
</template>

<script>
import NavBar from '~/partials/NavBar'
import BackToTop from '../components/BackToTop'
import CookieLaw from 'vue-cookie-law'
export default {
name: 'MainLayout',
components: {
BackToTop,
NavBar
NavBar,
CookieLaw
},
data: () => ({
appName: window.config.appName,
Expand Down
17 changes: 17 additions & 0 deletions resources/assets/sass/partials/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,20 @@
transition: 0.3s;
}
}

.Cookie--dark-blue {
background: #edeff5;
color: #838391;
padding: 1.25em;

.Cookie__button {
background: #4b81e8;
padding: 0.625em 3.125em;
color: #fff;
border-radius: 0;

&:hover {
background: darken(#4b81e8, 10%);
}
}
}
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8742,6 +8742,10 @@ timers-browserify@^2.0.2:
dependencies:
setimmediate "^1.0.4"

tiny-cookie@^2.1.1:
version "2.1.2"
resolved "https://registry.yarnpkg.com/tiny-cookie/-/tiny-cookie-2.1.2.tgz#3c25689a07c76438f90209648c143976b0b52bef"

tmp@^0.0.33:
version "0.0.33"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
Expand Down Expand Up @@ -9270,6 +9274,12 @@ vm-browserify@0.0.4:
dependencies:
indexof "0.0.1"

vue-cookie-law@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/vue-cookie-law/-/vue-cookie-law-1.5.0.tgz#e87ad839515e218ed3608f3aae25000ac06c624a"
dependencies:
tiny-cookie "^2.1.1"

vue-eslint-parser@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz#c268c96c6d94cfe3d938a5f7593959b0ca3360d1"
Expand Down

0 comments on commit c164dc4

Please sign in to comment.