Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(socials): add Mastodon in socials (#57)

Corentin Thomassetd9afd04c3930
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index df7a9f6e..1eb93e6d 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -11,6 +11,11 @@ const socials = [
url: 'https://bsky.app/profile/papra.app',
icon: 'i-tabler-brand-bluesky',
},
+ {
+ label: t('footer.social.mastodon'),
+ url: 'https://mastodon.social/@papra',
+ icon: 'i-tabler-brand-mastodon',
+ },
{
label: t('footer.social.x'),
url: 'https://x.com/papra_app',
diff --git a/src/components/Header.astro b/src/components/Header.astro
index 3b2250a7..f85bc8f1 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -11,6 +11,11 @@ const socials = [
url: 'https://bsky.app/profile/papra.app',
icon: 'i-tabler-brand-bluesky',
},
+ {
+ name: 'Mastodon',
+ url: 'https://mastodon.social/@papra',
+ icon: 'i-tabler-brand-mastodon',
+ },
{
name: 'X / Twitter',
url: 'https://x.com/papra_app',
@@ -77,7 +82,7 @@ const { class: className } = Astro.props;
</div>
<div class="flex items-center gap-4">
- <div class="flex items-center gap-4">
+ <div class="flex items-center gap-2">
{
socials.map(social => (
<a href={social.url} target="_blank" rel="noopener noreferrer" class=" hover:text-primary transition" aria-label={social.name}>
diff --git a/src/locales/en.ts b/src/locales/en.ts
index 805188e2..8f2633e6 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -68,6 +68,7 @@ export const translations = {
'footer.social.discord': 'Discord',
'footer.social.reddit': 'Reddit',
'footer.social.linkedin': 'LinkedIn',
+ 'footer.social.mastodon': 'Mastodon',
// Footer - Sections
'footer.section.community': 'Community',
@@ -252,6 +253,10 @@ export const translations = {
'contact.option.x.label': 'Papra X profile',
'contact.option.reddit.name': 'Reddit',
'contact.option.reddit.label': 'r/papra community',
+ 'contact.option.linkedin.name': 'LinkedIn',
+ 'contact.option.linkedin.label': 'Papra LinkedIn profile',
+ 'contact.option.mastodon.name': 'Mastodon',
+ 'contact.option.mastodon.label': 'Papra Mastodon profile',
// Blog Page
'blog.title': 'Papra Blog',
diff --git a/src/locales/fr.ts b/src/locales/fr.ts
index 59d6156a..d1c5cf85 100644
--- a/src/locales/fr.ts
+++ b/src/locales/fr.ts
@@ -69,6 +69,7 @@ export const translations: Partial<TranslationsDictionary> = {
'footer.social.discord': 'Discord',
'footer.social.reddit': 'Reddit',
'footer.social.linkedin': 'LinkedIn',
+ 'footer.social.mastodon': 'Mastodon',
// Footer - Sections
'footer.section.community': 'Communauté',
@@ -253,6 +254,10 @@ export const translations: Partial<TranslationsDictionary> = {
'contact.option.x.label': 'Profil Papra sur X',
'contact.option.reddit.name': 'Reddit',
'contact.option.reddit.label': 'Communauté r/papra',
+ 'contact.option.linkedin.name': 'LinkedIn',
+ 'contact.option.linkedin.label': 'Profil LinkedIn Papra',
+ 'contact.option.mastodon.name': 'Mastodon',
+ 'contact.option.mastodon.label': 'Profil Mastodon Papra',
// Blog Page
'blog.title': 'Blog Papra',
diff --git a/src/pages/[locale]/contact.astro b/src/pages/[locale]/contact.astro
index 12f2d0b6..528f5e79 100644
--- a/src/pages/[locale]/contact.astro
+++ b/src/pages/[locale]/contact.astro
@@ -37,6 +37,12 @@ const contactOptions = [
href: 'https://bsky.app/profile/papra.app',
icon: 'i-tabler-brand-bluesky',
},
+ {
+ name: t('contact.option.mastodon.name'),
+ label: t('contact.option.mastodon.label'),
+ href: 'https://mastodon.social/@papra',
+ icon: 'i-tabler-brand-mastodon',
+ },
{
name: t('contact.option.x.name'),
label: t('contact.option.x.label'),
@@ -49,6 +55,12 @@ const contactOptions = [
href: 'https://www.reddit.com/r/Papra/',
icon: 'i-tabler-brand-reddit',
},
+ {
+ name: t('contact.option.linkedin.name'),
+ label: t('contact.option.linkedin.label'),
+ href: 'https://www.linkedin.com/company/109538750',
+ icon: 'i-tabler-brand-linkedin',
+ },
];
---
@@ -63,7 +75,7 @@ const contactOptions = [
</div>
</div>
- <div class="max-w-md mx-auto flex-1 w-full flex flex-col gap-4 px-6 py-16">
+ <div class="max-w-3xl mx-auto flex-1 w-full grid grid-cols-1 md:grid-cols-2 gap-4 px-6 py-24">
{
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">
diff --git a/src/pages/llms.txt.ts b/src/pages/llms.txt.ts
index 57d1f8ab..6440c128 100644
--- a/src/pages/llms.txt.ts
+++ b/src/pages/llms.txt.ts
@@ -24,6 +24,7 @@ ${posts.map(post => `- [${post.data.title}](${getBlogPostUrl(post.slug)}): ${pos
- [Papra GitHub](https://github.com/papra-hq/papra): The source code for Papra.
- [Papra Discord](https://papra.app/discord): The official Discord server for Papra.
- [Bluesky account](https://bsky.app/profile/papra.app): The official Bluesky account for Papra @papra.app.
+- [Mastodon account](https://mastodon.social/@papra): The official Mastodon account for Papra @[email protected].
- [X / Twitter account](https://x.com/papra_app): The official X account for Papra @papra_app.
- [Support the project](https://buymeacoffee.com/cthmsst): Support the project by sponsoring the developer.
- [Contact](https://papra.app/contact): Contact the development team.