Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(website): add intake emails section to homepage (#1178)

Corentin Thomasset63f1ff764089
diff --git a/apps/website/src/components/FeaturesBento.astro b/apps/website/src/components/FeaturesBento.astro
index ef417078..c7778289 100644
--- a/apps/website/src/components/FeaturesBento.astro
+++ b/apps/website/src/components/FeaturesBento.astro
@@ -33,7 +33,7 @@ curl -X POST https://api.papra.ai/v1/documents \\
`.trim();
---
-<div class="pt-32 pb-48 bg-card p-6 relative overflow-hidden">
+<div class="pt-32 pb-48 bg-card p-6 relative overflow-hidden border-b">
<!-- <div class="z-10 bg-primary w-90% max-w-1000px h-60px 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">{t('features.title')}</h2>
diff --git a/apps/website/src/components/IntakeEmails.astro b/apps/website/src/components/IntakeEmails.astro
new file mode 100644
index 00000000..6f5b1b46
--- /dev/null
+++ b/apps/website/src/components/IntakeEmails.astro
@@ -0,0 +1,80 @@
+---
+import { useI18n } from '../i18n/i18n';
+
+const { t } = useI18n({ locale: Astro.currentLocale });
+---
+
+<div class="max-w-1200px mx-auto px-6 py-48">
+ <div class="text-center text-sm font-semibold text-muted-foreground uppercase mb-2 tracking-widest">
+ {t('home.intake-emails.eyebrow')}
+ </div>
+ <h2 class="text-center text-3xl font-bold mb-4">{t('home.intake-emails.title')}</h2>
+ <p class="text-center text-base text-muted-foreground max-w-600px mx-auto">{t('home.intake-emails.subtitle')}</p>
+
+ <div class="relative">
+ <div class="absolute z-1 h-full w-3px top-0 left-30px bg-border md:hidden" />
+ <div class="absolute z-1 h-3px w-full top-35px left-0 bg-border hidden md:block" />
+
+ <div class="mt-12 grid gap-4 md:gap-6 grid-cols-1 md:grid-cols-3 z-10 relative">
+
+ <div class="bg-card border rounded-2xl p-6">
+ <span class="font-mono text-primary">01</span>
+ <h3 class="text-lg font-semibold my-2">{t('home.intake-emails.step-1.title')}</h3>
+ <p class="text-sm text-muted-foreground">{t('home.intake-emails.step-1.description')}</p>
+
+ <div class="bg-muted/20 border rounded-lg mt-4 px-3 py-2 text-sm font-mono text-muted-foreground flex items-center justify-between">
+ <span>[email protected]</span>
+ <div class="i-tabler-copy size-4" title={t('home.intake-emails.copy')} />
+ </div>
+ </div>
+
+ <div class="bg-card border rounded-2xl p-6">
+ <span class="font-mono text-primary">02</span>
+ <h3 class="text-lg font-semibold my-2">{t('home.intake-emails.step-2.title')}</h3>
+ <p class="text-sm text-muted-foreground">{t('home.intake-emails.step-2.description')}</p>
+
+ <div class="bg-muted/20 border rounded-lg mt-4 p-3 text-sm">
+ <div class="flex items-center gap-2 text-xs text-muted-foreground">
+ <div class="i-tabler-mail size-4" />
+ <span class="font-mono">To: [email protected]</span>
+ </div>
+
+ <div class="flex items-center gap-2 mt-3">
+ <div class="flex items-center gap-1.5 border rounded px-2 py-1 text-xs text-muted-foreground">
+ <div class="i-tabler-file-text size-3.5 text-primary" />
+ invoice.pdf
+ </div>
+ <div class="flex items-center gap-1.5 border rounded px-2 py-1 text-xs text-muted-foreground">
+ <div class="i-tabler-file-text size-3.5 text-primary" />
+ contract.pdf
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="bg-card border rounded-2xl p-6">
+ <span class="font-mono text-primary">03</span>
+ <h3 class="text-lg font-semibold my-2">{t('home.intake-emails.step-3.title')}</h3>
+ <p class="text-sm text-muted-foreground">{t('home.intake-emails.step-3.description')}</p>
+
+ <div class="bg-muted/20 border rounded-lg mt-4 p-3 text-sm">
+ <div class="flex items-center justify-between text-xs text-muted-foreground">
+ <div class="flex items-center gap-2">
+ <div class="i-tabler-file-text size-4 text-primary" />
+ invoice.pdf
+ </div>
+ <div class="i-tabler-check size-4 text-primary" />
+ </div>
+
+ <div class="flex items-center justify-between text-xs text-muted-foreground mt-2">
+ <div class="flex items-center gap-2">
+ <div class="i-tabler-file-text size-4 text-primary" />
+ contract.pdf
+ </div>
+ <div class="i-tabler-check size-4 text-primary" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
diff --git a/apps/website/src/components/ValuesSection.astro b/apps/website/src/components/ValuesSection.astro
index 7996dd73..c385293d 100644
--- a/apps/website/src/components/ValuesSection.astro
+++ b/apps/website/src/components/ValuesSection.astro
@@ -38,7 +38,7 @@ const values = [
];
---
-<section class="py-32 border-t bg-background relative overflow-hidden">
+<section class="py-32 bg-background relative overflow-hidden">
<div class="z-10 bg-primary w-80% max-w-800px h-300px rounded-full blur-96 op-10 absolute top-50% left-50% -translate-x-50% -translate-y-50%"></div>
<div class="max-w-1200px mx-auto px-6 relative z-20">
diff --git a/apps/website/src/locales/en.ts b/apps/website/src/locales/en.ts
index ba7e72fe..07ac0c5b 100644
--- a/apps/website/src/locales/en.ts
+++ b/apps/website/src/locales/en.ts
@@ -122,6 +122,22 @@ export const translations = {
'home.hero.live-demo': 'Live Demo',
'home.hero.get-started': 'Start archiving - Free',
+ // Home Page - Intake Emails Section
+ 'home.intake-emails.eyebrow': 'Intake emails',
+ 'home.intake-emails.title': 'Forward it. Forget it.',
+ 'home.intake-emails.subtitle':
+ 'Get dedicated email addresses, send or forward an email and the attachments are automatically imported.',
+ 'home.intake-emails.copy': 'Copy to clipboard',
+ 'home.intake-emails.step-1.title': 'Get your address',
+ 'home.intake-emails.step-1.description':
+ 'Each organization can have one or more dedicated email addresses.',
+ 'home.intake-emails.step-2.title': 'Send or forward',
+ 'home.intake-emails.step-2.description':
+ 'Email your documents directly, or forward them straight from your inbox.',
+ 'home.intake-emails.step-3.title': 'Imported automatically',
+ 'home.intake-emails.step-3.description':
+ 'Attachments are extracted and added to your organization, ready to use.',
+
// Home Page - Open Source Section
'home.open-source.title':
'Papra is <span class="bg-primary text-primary-foreground px-3 py-1 rounded-md inline-block leading-tight">open-source</span>',
diff --git a/apps/website/src/locales/fr.ts b/apps/website/src/locales/fr.ts
index e7bdbe06..a10a98db 100644
--- a/apps/website/src/locales/fr.ts
+++ b/apps/website/src/locales/fr.ts
@@ -123,6 +123,22 @@ export const translations: Partial<TranslationsDictionary> = {
'home.hero.live-demo': 'Essayer la démo',
'home.hero.get-started': 'Commencer',
+ // Home Page - Intake Emails Section
+ 'home.intake-emails.eyebrow': 'Import par email',
+ 'home.intake-emails.title': 'Transférez. Oubliez.',
+ 'home.intake-emails.subtitle':
+ 'Obtenez des adresses email dédiées, envoyez ou transférez un email et les pièces jointes sont importées automatiquement.',
+ 'home.intake-emails.copy': 'Copier dans le presse-papiers',
+ 'home.intake-emails.step-1.title': 'Obtenez votre adresse',
+ 'home.intake-emails.step-1.description':
+ 'Chaque organisation peut avoir une ou plusieurs adresses email dédiées.',
+ 'home.intake-emails.step-2.title': 'Envoyez ou transférez',
+ 'home.intake-emails.step-2.description':
+ 'Envoyez vos documents directement, ou transférez-les depuis votre boîte mail.',
+ 'home.intake-emails.step-3.title': 'Importés automatiquement',
+ 'home.intake-emails.step-3.description':
+ "Les pièces jointes sont extraites et ajoutées à votre organisation, prêtes à l'emploi.",
+
// Home Page - Open Source Section
'home.open-source.title':
'Papra est <span class="bg-primary text-primary-foreground px-3 py-1 rounded-md inline-block leading-tight">open-source</span>',
diff --git a/apps/website/src/pages/[locale]/index.astro b/apps/website/src/pages/[locale]/index.astro
index 021c02db..094f0632 100644
--- a/apps/website/src/pages/[locale]/index.astro
+++ b/apps/website/src/pages/[locale]/index.astro
@@ -11,6 +11,7 @@ import { useI18n } from '../../i18n/i18n';
import { LOCALES } from '../../i18n/i18n.constants';
import Layout from '../../layouts/Layout.astro';
import Hero from '../../components/Hero.astro';
+import IntakeEmails from '../../components/IntakeEmails.astro';
export async function getStaticPaths() {
@@ -29,6 +30,8 @@ const { t } = useI18n({ locale: Astro.currentLocale });
<FeaturesBento />
+ <IntakeEmails />
+
<ValuesSection />
<OpenSource />