Skip to content

Commit

Permalink
CB Update (#2971)
Browse files Browse the repository at this point in the history
* Update

* Policy Update

* Update

* Test

* Declaration

* Component Update

* update

* Update

* Delete item

* Mobile
  • Loading branch information
Shan-Weaviate authored Feb 6, 2025
1 parent 1ae85f7 commit 39f2da7
Show file tree
Hide file tree
Showing 8 changed files with 200 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,17 @@ const config = {
tagName: 'script',
innerHTML: `(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:3237492,hjsv:6};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
},
// Add Cookiebot
{
tagName: 'script',
attributes: {
id: 'Cookiebot',
src: 'https://consent.cookiebot.com/uc.js',
'data-cbid': '4397b0f9-0b32-41f5-b24a-9370be245e85',
'data-blockingmode': 'auto',
type: 'text/javascript'
},
},
// Add emailpig
{
tagName: 'script',
Expand Down Expand Up @@ -617,6 +628,11 @@ const config = {
label: 'Report a Vulnerability',
to: '/security-report',
},
{
label: 'Cookie Settings',
to: '#',
id: 'cookie-settings',
},

],
},
Expand Down
24 changes: 24 additions & 0 deletions src/components/CookieDeclaration/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React, { useEffect } from 'react';

const CookieDeclaration = () => {
useEffect(() => {
const script = document.createElement('script');
script.id = 'CookieDeclaration';
script.src =
'https://consent.cookiebot.com/4397b0f9-0b32-41f5-b24a-9370be245e85/cd.js';
script.type = 'text/javascript';
script.async = true;

// Append the script to the correct div
const targetDiv = document.getElementById('cookie-declaration-container');
if (targetDiv) {
targetDiv.appendChild(script);
} else {
document.body.appendChild(script); // Fallback if the div is missing
}
}, []);

return <div id="cookie-declaration-container"></div>;
};

export default CookieDeclaration;
11 changes: 11 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1040,3 +1040,14 @@ ul.dropdown__menu {
.support-page li {
font-size: 1.2rem;
}

// Cookiebot styling

.CybotCookiebotDialogBodyButton {
width: 150px !important;
border-radius: 0.3125rem !important;

@media screen and (max-width: 768px) {
width: 100% !important;
}
}
68 changes: 68 additions & 0 deletions src/pages/cookie-policy/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: Weaviate Cookie Policy
# image: og/service/cookie-policy.jpg
---

import { MetaSEO } from '/src/theme/MetaSEO';

<MetaSEO img="og/service/cookie-policy.jpg" />

<div class="privacyPolicy">

### **COOKIE POLICY OF WEAVIATE B.V.**

This is the cookie policy of Weaviate B.V. (“**Weaviate**”, “**we**”, and “**our**”). This document explains how Weaviate uses cookies and similar technologies when you visit our websites. It provides information on what cookies are, why we use them, and how you can control their usage.

<br></br>

### **1. What are cookies?**

A cookie is a small file containing a string of characters stored on your device when you visit a website. Cookies enable websites to recognize your device and collect information about your browsing behavior. They may include details such as your IP address, device type, and pages visited.

We use session cookies (deleted when you close your browser) and persistent cookies (which remain for a predefined period). Cookies set by us are called "first-party cookies," while those set by external providers are "third-party cookies."

<br></br>

### **2. Types of cookies we use**

We use various types of cookies for different purposes:

- **Strictly Necessary Cookies**: Required for security and essential site functions.
- **Functional Cookies**: Enhance website usability and user experience.
- **Analytics Cookies**: Gather aggregated information about website usage.
- **Social Media Cookies**: Allow integration with third-party platforms like YouTube.
- **Advertising Cookies**: Deliver relevant ads and measure campaign performance.

You can manage your cookie preferences via the "Cookie Settings" menu.

<br></br>

### **3. How can you control cookies?**

Upon your first visit, we seek consent for analytics, advertising, and social media cookies. You can withdraw consent or adjust settings anytime in the "Cookie Settings" menu.

You may also configure your browser settings to block or delete cookies. However, doing so may affect website functionality.

For more details on managing cookies, visit:
- [Your Online Choices](http://www.youronlinechoices.com)
- [About Ads](http://www.aboutads.info/choices/)

For additional inquiries, contact us at [email protected].

<br></br>


### **4. Amendments**

This cookie policy was last updated in **February 2024**. We may revise this policy periodically and inform you of significant changes.

<br></br>


### **5. Cookie Declaration**

import CookieDeclaration from '/src/components/CookieDeclaration';

<CookieDeclaration />

</div>
62 changes: 61 additions & 1 deletion src/pages/privacy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,5 +411,65 @@ You can always contact us if you have any questions, remarks, or complaints in r

If you have any unresolved concerns, you have the right to lodge a complaint with the Dutch Data Protection Authority (_Autoriteit Persoonsgegevens_).

<br></br>

### **10. COOKIE POLICY OF WEAVIATE B.V.**



This is the cookie policy of Weaviate B.V. (“**Weaviate**”, “**we**”, and “**our**”). This document explains how Weaviate uses cookies and similar technologies when you visit our websites. It provides information on what cookies are, why we use them, and how you can control their usage.

<br></br>

### **10.1. What are cookies?**

A cookie is a small file containing a string of characters stored on your device when you visit a website. Cookies enable websites to recognize your device and collect information about your browsing behavior. They may include details such as your IP address, device type, and pages visited.

We use session cookies (deleted when you close your browser) and persistent cookies (which remain for a predefined period). Cookies set by us are called "first-party cookies," while those set by external providers are "third-party cookies."

<br></br>

### **10.2. Types of cookies we use**

We use various types of cookies for different purposes:

- **Strictly Necessary Cookies**: Required for security and essential site functions.
- **Functional Cookies**: Enhance website usability and user experience.
- **Analytics Cookies**: Gather aggregated information about website usage.
- **Social Media Cookies**: Allow integration with third-party platforms like YouTube.
- **Advertising Cookies**: Deliver relevant ads and measure campaign performance.

You can manage your cookie preferences via the "Cookie Settings" menu.

<br></br>

### **10.3. How can you control cookies?**

Upon your first visit, we seek consent for analytics, advertising, and social media cookies. You can withdraw consent or adjust settings anytime in the "Cookie Settings" menu.

You may also configure your browser settings to block or delete cookies. However, doing so may affect website functionality.

For more details on managing cookies, visit:
- [Your Online Choices](http://www.youronlinechoices.com)
- [About Ads](http://www.aboutads.info/choices/)

For additional inquiries, contact us at [email protected].

<br></br>


### **10.4. Amendments**

This cookie policy was last updated in **February 2024**. We may revise this policy periodically and inform you of significant changes.

<br></br>



### **10.5. Cookie Declaration**

import CookieDeclaration from '/src/components/CookieDeclaration';

<CookieDeclaration />

</div>
</div>
1 change: 1 addition & 0 deletions src/pages/service/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ For more information related to one of the documents below, please reach out to
- [Weaviate Support Terms](/weaviate-support-terms)
- [Weaviate End of Life Policy](/weaviate-eol-policy)
- [Weaviate Privacy Policy](/privacy)
- [Weaviate Cookie Policy](/cookie-policy)
- [Update to Terms & Policies](/service/updates-to-terms-and-policies)


Expand Down
19 changes: 19 additions & 0 deletions src/theme/Footer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, { useEffect } from 'react';
import OriginalFooter from '@theme-original/Footer';

export default function FooterWrapper(props) {
useEffect(() => {
const cookieBtn = document.getElementById('cookie-settings');
if (cookieBtn) {
cookieBtn.addEventListener('click', () => {
if (window.Cookiebot) {
window.Cookiebot.renew();
} else {
console.warn('Cookiebot is not loaded.');
}
});
}
}, []);

return <OriginalFooter {...props} />;
}
Binary file added static/og/service/cookie-policy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39f2da7

Please sign in to comment.