The minimalistic document archiving platform.
feat(legals): added Terms of Service, Privacy Policy, and Contact pages (#9)
Corentin Thomasset4a1dd4cd8bf6
diff --git a/src/components/Footer.astro b/src/components/Footer.astroindex f1380e71..1a6aeffb 100644--- a/src/components/Footer.astro+++ b/src/components/Footer.astro@@ -85,6 +85,23 @@ const sections: {},],},+ {+ title: 'Legal',+ links: [+ {+ label: 'Terms of Service',+ url: '/terms-of-service',+ },+ {+ label: 'Privacy Policy',+ url: '/privacy',+ },+ {+ label: 'Contact',+ url: '/contact',+ },+ ],+ },];---diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astroindex be3d4f79..1a4c0be9 100644--- a/src/layouts/Layout.astro+++ b/src/layouts/Layout.astro@@ -1,5 +1,6 @@---import PosthogAnalytics from '../components/PosthogAnalytics.astro';+import '../styles/app.css';const appName = 'Papra';const shortDescription = 'Your Open-Source Solution to Document Chaos';diff --git a/src/layouts/MdPage.astro b/src/layouts/MdPage.astronew file mode 100644index 00000000..bde230be--- /dev/null+++ b/src/layouts/MdPage.astro@@ -0,0 +1,33 @@+---+import Footer from '../components/Footer.astro';+import Header from '../components/Header.astro';+import Layout from './Layout.astro';+---++<Layout>+<div class="bg-card">+ <Header variant="block" />++ <div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">+ <div class="max-w-700px mx-auto p-4">+ <h1 class="text-3xl mb-2 font-bold">{Astro.props.frontmatter.title}</h1>+ <p class="text-base mb-2 leading-tight">{Astro.props.frontmatter.description}</p>++ {Astro.props.frontmatter.tags && (+ <div class="flex flex-wrap mt-2">+ {Astro.props.frontmatter.tags.map((tag: string) => (+ <span class="text-xs bg-card border rounded-lg px-2 py-1 mr-2 mb-2 font-medium">{tag}</span>+ ))}+ </div>+ )}+ </div>++ </div>++ <div class="prose prose-invert prose-neutral mx-auto text-base bg-card pb-32 pt-8">+ <slot />+ </div>++ <Footer class="bg-background" />+</div>+</Layout>diff --git a/src/pages/contact.astro b/src/pages/contact.astronew file mode 100644index 00000000..643989ce--- /dev/null+++ b/src/pages/contact.astro@@ -0,0 +1,64 @@+---+import Footer from '../components/Footer.astro';+import Header from '../components/Header.astro';+import Layout from '../layouts/Layout.astro';+import { cn } from '../utils/cn';++const contactOptions = [+ {+ name: 'Email',+ label: '[email protected]',+ href: 'mailto:[email protected]',+ icon: 'i-tabler-mail',+ },+ {+ name: 'Discord',+ label: 'Papra Discord community',+ href: 'https://discord.gg/8UPjzsrBNF',+ icon: 'i-tabler-brand-discord',+ },+ {+ name: 'Github',+ label: 'Papra Github repository',+ href: 'https://github.com/papra-hq/papra',+ icon: 'i-tabler-brand-github',+ },+ {+ name: 'Bluesky',+ label: 'Bluesky profile',+ href: 'https://bsky.app/profile/papra.app',+ icon: 'i-tabler-brand-bluesky',+ },+];+---++<Layout>+ <div class="bg-card flex flex-col w-full min-h-screen">+ <Header variant="block" />++ <div+ class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24"+ >+ <div class="max-w-700px mx-auto p-4">+ <h1 class="text-3xl mb-2 font-bold">Contact</h1>+ <p class="text-base mb-2 leading-tight">For any questions or support, please contact us using the following options:</p>+ </div>+ </div>++ <div class="max-w-500px mx-auto p-4 flex flex-col gap-4 my-12 flex-1 w-full">+ {+ contactOptions.map(option => (+ <a href={option.href} target="_blank" rel="noopener noreferrer" class="flex items-center gap-2 border rounded-lg bg-background p-4 hover:(border-primary) transition">+ <div class={cn(option.icon, 'size-7 px-6')} />+ <div>+ <div class="font-semibold text-base">{option.name}</div>+ <div class="text-sm text-muted-foreground">{option.label}</div>+ </div>+ </a>+ ))+ }+ </div>++ <Footer class="bg-background" />+ </div>+</Layout>diff --git a/src/pages/index.astro b/src/pages/index.astroindex 824022d8..139d2b5a 100644--- a/src/pages/index.astro+++ b/src/pages/index.astro@@ -5,7 +5,6 @@ import FeaturesBento from '../components/FeaturesBento.astro';import Footer from '../components/Footer.astro';import Header from '../components/Header.astro';import Layout from '../layouts/Layout.astro';-import '../styles/app.css';---<Layout>diff --git a/src/pages/privacy.md b/src/pages/privacy.mdnew file mode 100644index 00000000..7df7f8bc--- /dev/null+++ b/src/pages/privacy.md@@ -0,0 +1,60 @@+---+layout: ../layouts/MdPage.astro+title: Privacy Policy+description: Privacy Policy for Papra, the document management platform.+---++## Privacy Policy++### 1. Information Collection+Papra collects the following personal data:+- Email addresses, names, and authentication details (email/password or Single Sign-On providers such as Google or GitHub).+- Usage and analytics data collected via Posthog (including IP addresses, pages visited, interactions, and usage patterns).+- Documents uploaded by users, including metadata (titles, descriptions, tags) and document content.++### 2. Purpose of Data Collection+Papra collects data to:+- Provide, operate, and maintain the services offered by Papra.+- Offer user support and address technical issues.+- Analyze usage to continuously improve our services.+- Perform marketing analysis and related activities (via Posthog).++### 3. Cookies and Tracking Technologies+Papra employs:+- Strictly necessary cookies for functionality and user authentication.+- Analytics and marketing cookies via Posthog to understand user behavior and optimize service offerings.++### 4. Data Storage and Security+All data collected by Papra is securely stored within Europe to ensure GDPR compliance. Papra uses trusted third-party providers (Render, Cloudflare, Turso, Posthog) to securely process and host user data.++### 5. Third-Party Providers+Papra explicitly uses the following third-party services:+- Render (hosting infrastructure)+- Cloudflare (security and infrastructure services)+- Turso (database hosting)+- Posthog (analytics and marketing)++### 6. Data Sharing and Transfer+Papra does not sell or rent user data. Any data transfer to third-party service providers is strictly necessary to deliver Papra's functionalities.++### 7. User Rights (GDPR Compliance)+Users have the right to:+- Access their personal data.+- Correct inaccuracies in their personal data.+- Request deletion of their personal data.+- Restrict or object to processing their data.+- Request portability of their data.++Users can exercise these rights by contacting Papra at [email protected].++### 8. Data Retention+Papra retains user data as long as the user's account remains active. Upon account deletion, user data is permanently deleted within 30 days, except for backups, which may be retained for up to 90 days post-deletion.++### 9. Changes to Privacy Policy+Papra may update this Privacy Policy periodically. Users will be informed about significant changes through email or notifications within the platform. Continued use of the services following any updates signifies user acceptance of the new Privacy Policy.++### 10. Children’s Privacy+Papra does not knowingly collect personal data from individuals under the age of 13. The platform is intended for users aged 13 and above.++### 11. Contact Information+For privacy-related inquiries or to exercise your rights, please contact Papra at: [email protected]diff --git a/src/pages/terms-of-service.md b/src/pages/terms-of-service.mdnew file mode 100644index 00000000..2276a902--- /dev/null+++ b/src/pages/terms-of-service.md@@ -0,0 +1,58 @@+---+layout: ../layouts/MdPage.astro+title: Terms of Service+description: Terms of Service for Papra, the document management platform.+---++## Terms of Use++### 1. Platform Information+Papra is an open-source document management platform managed by Corentin Thomasset, a French Micro-Entrepreneur located at 115 route de chez Collomb, 74330 Nonglard, France. Contact email: [email protected].++### 2. Acceptance and Modification of Terms+- By accessing or using Papra (dashboard.papra.app), users agree to these Terms.+- Papra reserves the right to update these Terms periodically. Significant changes will be communicated via email or through notifications on the dashboard.+- Continued use after updates implies acceptance of the revised Terms.++### 3. User Accounts and Responsibilities+- Users must create an account via email/password or Single Sign-On providers (Google, GitHub).+- Accounts must be secured by strong passwords.+- Users are fully responsible for activities conducted through their accounts.++### 4. Usage Policies+- Users agree not to utilize Papra for illegal activities, unauthorized distribution of protected materials, or hosting malicious content.+- Papra may terminate or suspend accounts suspected of violating these conditions without prior notice.++### 5. Intellectual Property Rights+- Papra is licensed under AGPLv3 and remains fully open-source.+- Users hosting Papra themselves must comply with AGPLv3 conditions.+- Managed instance infrastructure and proprietary integrations remain Papra's intellectual property.+- Papra is not responsible for activities or usage occurring within self-hosted instances.++### 6. Data Ownership and Privacy+- Users retain full ownership of their uploaded data.+- Papra never sells user data to third parties and uses trusted providers (Render, Cloudflare, Turso, Posthog) to store and process data securely, exclusively within Europe, ensuring GDPR compliance.++### 7. Data Retention and Deletion+- Upon account deletion, user data will be permanently removed within 30 days.+- Backups might be retained for up to 90 days post-deletion.++### 8. Payments and Refunds+- Papra offers free and paid service tiers with quotas based on document storage volumes (e.g., 500MB for free tier, up to 10GB for paid tiers).+- Users may cancel subscriptions anytime, with cancellations taking effect at the end of the billing cycle.+- Refunds are granted at Papra's discretion, typically due to technical issues or billing errors.++### 9. Liability and Indemnification+- Papra's liability is limited to the maximum extent allowed by law.+- Users agree to indemnify Papra against claims resulting from misuse or violation of these terms.++### 10. Availability and Support+- Papra aims for high availability but provides no uptime guarantees.+- Support is available via email and potentially through community platforms such as Discord.++### 11. Dispute Resolution+- These Terms are governed by French law.+- Disputes will initially aim for amicable resolution or mediation, with jurisdiction given to courts near the company location.++### 12. Additional Services and Integrations+- Future features (automatic tagging, SDK/CLI tools, etc.) may introduce additional usage conditions and privacy considerations, clearly communicated upon feature launch.