Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add routing to cookie policy and move cookie policy to remix

Maksim Mrug75d25ce1e1f6
diff --git a/app/pages/CookiePolicy/index.tsx b/app/pages/CookiePolicy/index.tsx
index 773acd379..451f4641a 100644
--- a/app/pages/CookiePolicy/index.tsx
+++ b/app/pages/CookiePolicy/index.tsx
@@ -2,8 +2,6 @@
import React from 'react'
import _map from 'lodash/map'
-import Title from 'components/Title'
-
const typesOfCookies = [
{
cookie: 'Essential cookies',
@@ -13,52 +11,51 @@ const typesOfCookies = [
const CookiePolicy = () => {
return (
- <Title title='Cookie Policy'>
- <div className='bg-gray-50 dark:bg-slate-900'>
- <div className='w-11/12 md:w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8'>
- <h1 className='text-4xl font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
- Cookie Policy
- </h1>
- <p className='mt-4 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- Part of the provision of our service and this website relies on the collection of cookies. Depending on their use, they may be considered essential or subject to your explicit consent.
- </p>
+ <div className='bg-gray-50 dark:bg-slate-900'>
+ <div className='w-11/12 md:w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8'>
+ <h1 className='text-4xl font-bold text-gray-900 dark:text-gray-50 tracking-tight'>
+ Cookie Policy
+ </h1>
+ <p className='mt-4 text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ Part of the provision of our service and this website relies on the collection of cookies. Depending on their use, they may be considered essential or subject to your explicit consent.
+ </p>
- <h3 className='text-2xl font-bold text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
- What is a cookie?
- </h3>
- <p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- A cookie is a small text file that may be deposited and saved on the hard drive of your device (computer, tablet, smartphone, etc.) when you visit our website. It allows us or third parties to identify the device on which it has been saved and to keep record of certain information relating to your journey in order, for instance, to simplify your visit on our website, to secure your connection or to adapt the content of a page to your interests.
- </p>
+ <h3 className='text-2xl font-bold text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
+ What is a cookie?
+ </h3>
+ <p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ A cookie is a small text file that may be deposited and saved on the hard drive of your device (computer, tablet, smartphone, etc.) when you visit our website. It allows us or third parties to identify the device on which it has been saved and to keep record of certain information relating to your journey in order, for instance, to simplify your visit on our website, to secure your connection or to adapt the content of a page to your interests.
+ </p>
- <h3 className='text-2xl font-bold text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
- What types of cookies are collected?
- </h3>
- <div className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- <div className='mt-2 flex flex-col'>
- <div className='-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8'>
- <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>
- <div className='overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg'>
- <table className='w-full min-w-full divide-y divide-gray-300 200 dark:divide-gray-500'>
- <thead className='bg-gray-50 dark:bg-slate-800'>
- <tr>
- <th
+ <h3 className='text-2xl font-bold text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
+ What types of cookies are collected?
+ </h3>
+ <div className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ <div className='mt-2 flex flex-col'>
+ <div className='-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8'>
+ <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>
+ <div className='overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg'>
+ <table className='w-full min-w-full divide-y divide-gray-300 200 dark:divide-gray-500'>
+ <thead className='bg-gray-50 dark:bg-slate-800'>
+ <tr>
+ <th
scope='col'
className='w-1/5 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 dark:text-gray-50 sm:pl-6'
>
Cookie
</th>
- <th
+ <th
scope='col'
className='w-4/5 px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-50'
>
Description
</th>
- </tr>
- </thead>
- <tbody className='divide-y divide-gray-200 dark:divide-gray-600 bg-white dark:bg-slate-800'>
- {_map(typesOfCookies, ({
- cookie, description,
- }) => (
+ </tr>
+ </thead>
+ <tbody className='divide-y divide-gray-200 dark:divide-gray-600 bg-white dark:bg-slate-800'>
+ {_map(typesOfCookies, ({
+ cookie, description,
+ }) => (
<tr key={cookie}>
<td className='w-1/5 px-3 py-4 text-sm text-gray-900 dark:text-gray-50 sm:pl-6'>
{cookie}
@@ -67,29 +64,28 @@ const CookiePolicy = () => {
{description}
</td>
</tr>
- ))}
- </tbody>
- </table>
- </div>
+ ))}
+ </tbody>
+ </table>
</div>
</div>
</div>
</div>
+ </div>
- <h3 className='text-2xl font-bold text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
- How to manage cookies?
- </h3>
- <p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- Your internet browser may allow you to manage your cookie preferences by removing or rejecting them via your browser settings (usually located in "help", “tools” or “edit” sections). Remember that if you choose to disable our cookies, you may experience some inconvenience when using our website.
- </p>
+ <h3 className='text-2xl font-bold text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
+ How to manage cookies?
+ </h3>
+ <p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ Your internet browser may allow you to manage your cookie preferences by removing or rejecting them via your browser settings (usually located in "help", “tools” or “edit” sections). Remember that if you choose to disable our cookies, you may experience some inconvenience when using our website.
+ </p>
- <hr className='mt-10 mb-4 border-gray-200 dark:border-gray-600' />
- <p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- <i>Last updated: February 4, 2023.</i>
- </p>
- </div>
+ <hr className='mt-10 mb-4 border-gray-200 dark:border-gray-600' />
+ <p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
+ <i>Last updated: February 4, 2023.</i>
+ </p>
</div>
- </Title>
+ </div>
)
}
diff --git a/app/routes/cookie-policy.tsx b/app/routes/cookie-policy.tsx
new file mode 100644
index 000000000..50da776b9
--- /dev/null
+++ b/app/routes/cookie-policy.tsx
@@ -0,0 +1,10 @@
+import CookiePolicy from 'pages/CookiePolicy'
+import type { V2_MetaFunction } from '@remix-run/node'
+
+export const meta: V2_MetaFunction = () => {
+ return [{ title: 'Cookie Policy' }, { name: 'description', content: 'CookiePolicy' }]
+}
+
+export default function Index() {
+ return <CookiePolicy />
+}
diff --git a/app/routesPath/index.ts b/app/routesPath/index.ts
index 8ae1ea44b..017258afd 100644
--- a/app/routesPath/index.ts
+++ b/app/routesPath/index.ts
@@ -19,7 +19,7 @@ const routes = Object.freeze({
features: '/features',
billing: '/billing',
privacy: '/privacy',
- cookiePolicy: '/cookie-policy',
+ cookiePolicy: '/cookie-policy', // add
terms: '/terms', // add
contact: '/contact', // add
changelog: '/changelog', // add