The minimalistic document archiving platform.
feat(landing): added features and open source section (#26)
Corentin Thomassetcb1e71399363
diff --git a/src/components/BentoCard.astro b/src/components/BentoCard.astroindex fb846ee8..192df300 100644--- a/src/components/BentoCard.astro+++ b/src/components/BentoCard.astro@@ -16,7 +16,7 @@ const { title, description, icon } = Astro.props;<slot></slot></div>- <div class="relative z-60 bg-gradient-to-t from-background via-background to-transparent p-6 pt-24 mt--24">+ <div class="relative z-60 bg-gradient-to-t from-background via-background to-card to-opacity-0 p-6 pt-24 mt--24">{icon && (<div class={cn('size-9 text-muted-foreground mb-4', icon)} />)}<h3 class="text-xl font-bold text-pretty">{title}</h3>diff --git a/src/components/FeaturesBento.astro b/src/components/FeaturesBento.astroindex e1b8e74c..e6e0696f 100644--- a/src/components/FeaturesBento.astro+++ b/src/components/FeaturesBento.astro@@ -1,4 +1,5 @@---+import { Code } from 'astro:components';import { cn } from '../utils/cn';import BentoCard from './BentoCard.astro';@@ -20,9 +21,21 @@ const filesIcons = [];const getRandomIcon = () => filesIcons[Math.floor(Math.random() * filesIcons.length)];+++const codeSnippet = `+curl -X POST https://api.papra.ai/v1/documents \\+ -H "Authorization: Bearer $PAPRA_API_KEY" \\+ -H "Content-Type: multipart/form-data" \\+ -F "file=@/path/to/your/file.pdf"+`.trim();+++----<div class="py-32 bg-card p-6">+<div class="pt-32 pb-48 bg-card p-6 relative overflow-hidden">+ <div class="z-10 bg-primary w-90% max-w-1000px h-80px rounded-full blur-64 op-15 absolute bottom--50px left-50% -translate-x-50% "></div><h2 class="text-3xl font-semibold text-pretty mb-2 text-center">Some Features@@ -46,12 +59,42 @@ const getRandomIcon = () => filesIcons[Math.floor(Math.random() * filesIcons.len</BentoCard><BentoCard- title="Email ingestion"- description="Generate a unique email address and forward your emails to Papra. We'll automatically save your email attachments as documents."- icon="i-tabler-mail"+ title="Organizations"+ description="Organize your documents into organizations. Organizations help you manage your documents and users, like a team or a company."+ icon="i-tabler-building-community">- <div class="mt-6" />+ <div class="flex items-center gap-2 p-6 pt-10 pb-4 justify-center">+ <div class="border rounded-xl p-3 flex items-center justify-center">+ <span class="i-tabler-users size-6 text-muted-foreground"></span>+ </div>++ <div class="bg-muted-foreground h-3px w-20px rounded-full">+ </div>++ <div class="border rounded-xl p-3 flex items-center justify-center border-primary border-2">+ <span class="i-tabler-user text-primary size-6"></span>+ </div>++ <div class="bg-muted-foreground h-3px w-20px rounded-full">+ </div>++ <div class="border rounded-xl p-3 flex items-center justify-center">+ <span class="i-tabler-users size-6 text-muted-foreground"></span>+ </div>+ </div></BentoCard>++ <BentoCard+ title="Email ingestion"+ description="Generate a unique email address and forward your emails to Papra. We'll automatically save your email attachments as documents."+ icon="i-tabler-mail"+ >+ <div class="flex items-center gap-4 p-6 pt-10 pb-4 justify-center">+ <span class="i-tabler-file-text size-10 text-muted-foreground"></span>+ <span class="i-tabler-arrow-right size-6 text-muted-foreground"></span>+ <span class="i-tabler-mailbox size-10 text-primary"></span>+ </div>+</BentoCard></div><div class="flex flex-col gap-4 w-full">@@ -92,9 +135,17 @@ const getRandomIcon = () => filesIcons[Math.floor(Math.random() * filesIcons.len</div></BentoCard>- <BentoCard title="Documents tagging" description="Organize your documents with tags. Tags help you categorize and filter your documents easily." icon="i-tabler-tag">+ <BentoCard title="Developer friendly" description="Papra is built with customizability in mind. We provide a powerful API, webhooks, CLI and SDK to help you integrate Papra into your existing workflow." icon="i-tabler-code">+ <div class="flex justify-center p-6">+ <Code code={codeSnippet} lang="bash" theme="vitesse-dark" class="text-xs bg-transparent!" />+ </div>+ </BentoCard>++ <BentoCard title="Documents tagging" description="Organize your documents with tags. Tags help you categorize and filter your documents easily. Define tagging rules to automatically tag your documents." icon="i-tabler-tag"><div class="mt-6" /></BentoCard>++</div></div></div>diff --git a/src/pages/index.astro b/src/pages/index.astroindex 8b4c32cc..02327267 100644--- a/src/pages/index.astro+++ b/src/pages/index.astro@@ -10,8 +10,7 @@ import Layout from '../layouts/Layout.astro';<Layout><div class="relative overflow-hidden pb-300px">- <div class="z-10 bg-primary size-128 rounded-full blur-84 op-20 transform translate-x--80% translate-y--33% absolute"></div>- <div class="z-10 bg-primary size-128 rounded-full blur-84 op-20 transform translate-x-80% translate-y-33% absolute right-0"></div>+ <div class="z-10 bg-primary w-80% max-w-1000px h-400px rounded-xl blur-64 op-20 absolute bottom--100px left-50% -translate-x-50%"></div><Header />@@ -34,12 +33,34 @@ import Layout from '../layouts/Layout.astro';</div><div class="bg-card border-t">- <Image src={Hero} alt="Papra Screenshot" class="mx-auto max-w-1000px w-full relative z-50 mt--300px" />+ <Image src={Hero} alt="Papra Screenshot" class="mx-auto max-w-1000px w-full relative z-50 mt--300px" loading="eager" /></div><FeaturesBento />- <div class=" py-32 relative overflow-hidden border-y">++ <div class="bg-card py-64 border-t flex items-center justify-center gap-8 sm:gap-12 flex-col sm:flex-row relative overflow-hidden">++ <div class="max-w-600px px-6 text-center sm:text-left">+ <h2 class="text-2xl sm:text-4xl font-bold max-w-650px mx-auto">+ Papra is <span class="bg-primary text-primary-foreground px-3 py-1 rounded-md inline-block leading-tight">open-source</span>+ </h2>++ <p class="text-muted-foreground mx-auto mt-4 text-lg">+ The whole Papra ecosystem is proudly open-source and easily self-hostable. It's available on <a href="https://github.com/papra-hq/papra" class="text-primary hover:underline">GitHub</a> under the <a href="https://github.com/papra-hq/papra/blob/main/LICENSE" class="text-primary hover:underline">AGPL-3.0</a> license.+ </p>+ </div>++ <div class="flex items-center justify-center gap-2 mt-8">+ <a href="https://github.com/papra-hq/papra" class="border text-sm font-bold rounded py-2 px-4 rounded-xl hover:border-primary hover:text-primary transition flex items-center gap-2 flex-shrink-0" target="_blank"> See on GitHub <div class="i-tabler-arrow-right size-5" aria-hidden="true"></div> </a>+ </div>++ </div>+++ <div class="py-64 relative overflow-hidden border-y relative">+ <div class="z-10 bg-primary w-90% max-w-1000px h-80px rounded-full blur-64 op-15 absolute top--50px left-50% -translate-x-50% "></div>+<div class="z-10 bg-primary size-64 rounded-full blur-84 op-20 transform translate-x--80% translate-y--33% absolute"></div><div class="z-10 bg-primary size-128 rounded-full blur-84 op-20 transform translate-x-80% translate-y-33% absolute right-0"></div>