Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(contact): remove contact form and add Reddit community link (#56)

Corentin Thomassetb3ebff312e21
diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro
deleted file mode 100644
index ee02fb99..00000000
--- a/src/components/ContactForm.astro
+++ /dev/null
@@ -1,2 +0,0 @@
-<iframe data-tally-src="https://tally.so/embed/3NeMjj?alignLeft=1&transparentBackground=1&dynamicHeight=1" loading="lazy" width="100%" height="608" frameborder="0" marginheight="0" marginwidth="0" title="Papra contact form"></iframe>
-<script is:inline>var d=document,w="https://tally.so/widgets/embed.js",v=function(){"undefined"!=typeof Tally?Tally.loadEmbeds():d.querySelectorAll("iframe[data-tally-src]:not([src])").forEach((function(e){e.src=e.dataset.tallySrc}))};if("undefined"!=typeof Tally)v();else if(d.querySelector('script[src="'+w+'"]')==null){var s=d.createElement("script");s.src=w,s.onload=v,s.onerror=v,d.body.appendChild(s);}</script>
diff --git a/src/locales/en.ts b/src/locales/en.ts
index fa1ae322..805188e2 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -250,6 +250,8 @@ export const translations = {
'contact.option.bluesky.label': 'Bluesky profile',
'contact.option.x.name': 'X / Twitter',
'contact.option.x.label': 'Papra X profile',
+ 'contact.option.reddit.name': 'Reddit',
+ 'contact.option.reddit.label': 'r/papra community',
// Blog Page
'blog.title': 'Papra Blog',
diff --git a/src/locales/fr.ts b/src/locales/fr.ts
index f5fda8fa..59d6156a 100644
--- a/src/locales/fr.ts
+++ b/src/locales/fr.ts
@@ -251,6 +251,8 @@ export const translations: Partial<TranslationsDictionary> = {
'contact.option.bluesky.label': 'Profil Bluesky',
'contact.option.x.name': 'X / Twitter',
'contact.option.x.label': 'Profil Papra sur X',
+ 'contact.option.reddit.name': 'Reddit',
+ 'contact.option.reddit.label': 'Communauté r/papra',
// Blog Page
'blog.title': 'Blog Papra',
diff --git a/src/pages/[locale]/contact.astro b/src/pages/[locale]/contact.astro
index 84cd0e03..12f2d0b6 100644
--- a/src/pages/[locale]/contact.astro
+++ b/src/pages/[locale]/contact.astro
@@ -1,5 +1,4 @@
---
-import ContactForm from '../../components/ContactForm.astro';
import Footer from '../../components/Footer.astro';
import Header from '../../components/Header.astro';
import { useI18n } from '../../i18n/i18n';
@@ -44,6 +43,12 @@ const contactOptions = [
href: 'https://x.com/papra_app',
icon: 'i-tabler-brand-x',
},
+ {
+ name: t('contact.option.reddit.name'),
+ label: t('contact.option.reddit.label'),
+ href: 'https://www.reddit.com/r/Papra/',
+ icon: 'i-tabler-brand-reddit',
+ },
];
---
@@ -58,8 +63,7 @@ const contactOptions = [
</div>
</div>
- <div class="max-w-5xl mx-auto p-4 flex flex-col md:flex-row gap-6 my-12 flex-1 w-full">
- <div class="flex flex-col gap-4 md:min-w-350px">
+ <div class="max-w-md mx-auto flex-1 w-full flex flex-col gap-4 px-6 py-16">
{
contactOptions.map(option => (
<a href={option.href} target="_blank" rel="noopener noreferrer" class="flex items-center gap-3 border rounded-lg bg-background p-4 hover:(border-primary) transition">
@@ -77,11 +81,7 @@ const contactOptions = [
</a>
))
}
- </div>
- <div class="border rounded-lg bg-background p-6 flex-1">
- <ContactForm />
- </div>
</div>
<Footer class="bg-background" />