-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from mitre/improvements
Some Improvements
- Loading branch information
Showing
16 changed files
with
1,393 additions
and
1,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<template> | ||
<div | ||
v-if="open" | ||
class="fixed bottom-0 left-0 w-full h-[8%] z-50 bg-neutral-3 border-accent border-t-4" | ||
> | ||
<div class="flex flex-row items-center justify-evenly m-5"> | ||
<span class="font-bold text-xl" | ||
>This website uses cookies to ensure you get the best experience on our | ||
website. | ||
<a href="#" class="underline text-nav-active"> Learn More</a></span | ||
> | ||
<div class="space-x-4"> | ||
<button | ||
class="rounded-lg bg-button-accent p-2 text-button-text font-bold text-xl" | ||
@click=" | ||
() => { | ||
grantConsent(); | ||
open = false; | ||
} | ||
" | ||
> | ||
Accept Tracking | ||
</button> | ||
<button | ||
class="rounded-lg bg-red-500 p-2 text-button-text font-bold text-xl" | ||
@click=" | ||
() => { | ||
revokeConsent(); | ||
open = false; | ||
} | ||
" | ||
> | ||
Decline Tracking | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const open = ref(true); | ||
const {gtag, grantConsent, revokeConsent} = useGtag(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.