cookies.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template><NuxtLayout name="default">
  2. <template #headline>{{ headline }}</template>
  3. <template #tagline>{{ tagline }}</template>
  4. <div class="container mx-auto max-w-screen-lg sm:px-12 px-2 prose">
  5. <article class="body grid sm:grid-cols-2 grid-cols-1 gap-x-12 gap-y-0">
  6. <section class="col-span-1 sm:col-span-2">
  7. <p class="noindent">Cookies are not always bad. Sometimes they are bad, sometimes they are useful.</p>
  8. <p><strong>Good cookies</strong> are, for example, the ones that a website uses to store some useful
  9. information, like the fact that you logged in as a registered user, or decisions you made regarding
  10. your use of the site, like whether you prefer dark mode or light mode, or whether you are OK with the
  11. website using performance monitoring cookies. Good cookies are generally useful, helpful, and are
  12. <strong>not</strong> used to track you across the web and build a profile to be sold to advertisers.</p>
  13. <p><strong>Bad cookies</strong> cookies do not have to be harmful or problematic, but can be. Such cookies
  14. can be, for example, tracking cookies used by a performance monitoring system to record how you use
  15. the website you are on, and can give important information to the manager of the website as to what
  16. works, what does not work, and how to improve.</p>
  17. <p><strong>On this website</strong>, I use these:</p>
  18. <p><strong>Consent</strong>: I record your preferences in the browser's local storage. This is tecnically
  19. not even a cookie but a better option with none of the bad side-effects of cookies. You can change
  20. your preferences at any time using the cookie dialog box that you can open clicking on the cookie
  21. icon in a corner at the bottom of the screen.</p>
  22. </section>
  23. </article>
  24. </div>
  25. </NuxtLayout></template>
  26. <script lang="ts" setup>
  27. definePageMeta({
  28. layout: false
  29. });
  30. const headline = "Cookies";
  31. const tagline = "They have them in the dark side";
  32. const title = `${headline} ••• Andrea Franceschini, PhD`;
  33. const description = "Everything you need to know to get in touch with me.";
  34. const keywords = "cookies, tracking, good, bad";
  35. useState('pageClasses', () => ['colophon', 'page']);
  36. useHead({
  37. title,
  38. meta: [
  39. { property: 'keywords', content: keywords },
  40. { property: 'DC.Title', content: title },
  41. { property: 'twitter:title', content: title },
  42. { property: 'og:title', content: title },
  43. { property: 'description', content: description },
  44. { property: 'DC.Description', content: description },
  45. { property: 'twitter:description', content: description },
  46. { property: 'og:description', content: description },
  47. ]
  48. });
  49. </script>