From afc3d50289bb4173e0697d109ffe72f6814b93d1 Mon Sep 17 00:00:00 2001 From: Benjamin Bellamy Date: Tue, 24 Nov 2020 18:21:02 +0000 Subject: [PATCH] feat(platforms): add Fediverse and some funding platforms, add link on logo --- app/Database/Seeds/PlatformSeeder.php | 79 +++++++++++++++++++ .../images/platforms/funding/gofundme.svg | 19 +++++ .../images/platforms/funding/indiegogo.svg | 16 ++++ .../images/platforms/funding/kickstarter.svg | 4 + .../platforms/funding/kisskissbankbank.svg | 4 + .../images/platforms/funding/ulule.svg | 37 +++++++++ .../images/platforms/podcasting/castopod.svg | 12 +++ .../images/platforms/social/castopod.svg | 1 + .../images/platforms/social/discord.svg | 2 +- .../images/platforms/social/facebook.svg | 2 +- .../images/platforms/social/funkwhale.svg | 1 + .../images/platforms/social/instagram.svg | 2 +- .../images/platforms/social/linkedin.svg | 2 +- .../images/platforms/social/mastodon.svg | 2 +- .../images/platforms/social/mobilizon.svg | 1 + .../images/platforms/social/peertube.svg | 1 + .../images/platforms/social/pixelfed.svg | 2 +- .../_assets/images/platforms/social/plume.svg | 1 + .../_assets/images/platforms/social/slack.svg | 2 +- .../images/platforms/social/twitch.svg | 2 +- .../images/platforms/social/twitter.svg | 2 +- .../images/platforms/social/writefreely.svg | 1 + .../images/platforms/social/youtube.svg | 2 +- app/Views/admin/podcast/platforms.php | 23 ++++-- 24 files changed, 205 insertions(+), 15 deletions(-) create mode 100644 app/Views/_assets/images/platforms/funding/gofundme.svg create mode 100644 app/Views/_assets/images/platforms/funding/indiegogo.svg create mode 100644 app/Views/_assets/images/platforms/funding/kickstarter.svg create mode 100644 app/Views/_assets/images/platforms/funding/kisskissbankbank.svg create mode 100644 app/Views/_assets/images/platforms/funding/ulule.svg create mode 100644 app/Views/_assets/images/platforms/podcasting/castopod.svg create mode 100644 app/Views/_assets/images/platforms/social/castopod.svg create mode 100644 app/Views/_assets/images/platforms/social/funkwhale.svg create mode 100644 app/Views/_assets/images/platforms/social/mobilizon.svg create mode 100644 app/Views/_assets/images/platforms/social/peertube.svg create mode 100644 app/Views/_assets/images/platforms/social/plume.svg create mode 100644 app/Views/_assets/images/platforms/social/writefreely.svg diff --git a/app/Database/Seeds/PlatformSeeder.php b/app/Database/Seeds/PlatformSeeder.php index b645810e..4767549a 100644 --- a/app/Database/Seeds/PlatformSeeder.php +++ b/app/Database/Seeds/PlatformSeeder.php @@ -48,6 +48,13 @@ class PlatformSeeder extends Seeder 'submit_url' => 'https://helpcenter.castbox.fm/portal/kb/articles/submit-my-podcast', ], + [ + 'slug' => 'castopod', + 'type' => 'podcasting', + 'label' => 'Castopod', + 'home_url' => 'https://castopod.org/', + 'submit_url' => 'https://castopod.org/instances', + ], [ 'slug' => 'castro', 'type' => 'podcasting', @@ -222,6 +229,36 @@ class PlatformSeeder extends Seeder 'home_url' => 'https://www.paypal.com/', 'submit_url' => 'https://www.paypal.com/paypalme/my/grab', ], + + [ + 'slug' => 'gofundme', + 'type' => 'funding', + 'label' => 'GoFundMe', + 'home_url' => 'https://www.gofundme.com/', + 'submit_url' => 'https://www.gofundme.com/sign-up', + ], + [ + 'slug' => 'indiegogo', + 'type' => 'funding', + 'label' => 'Indiegogo', + 'home_url' => 'https://www.indiegogo.com/', + 'submit_url' => 'https://www.indiegogo.com/start-a-campaign#/', + ], + [ + 'slug' => 'kickstarter', + 'type' => 'funding', + 'label' => 'Kickstarter', + 'home_url' => 'https://www.kickstarter.com/', + 'submit_url' => 'https://www.kickstarter.com/learn', + ], + [ + 'slug' => 'kisskissbankbank', + 'type' => 'funding', + 'label' => 'KissKissBankBank', + 'home_url' => 'https://www.kisskissbankbank.com/', + 'submit_url' => + 'https://www.kisskissbankbank.com/en/financer-mon-projet', + ], [ 'slug' => 'liberapay', 'type' => 'funding', @@ -243,6 +280,13 @@ class PlatformSeeder extends Seeder 'home_url' => 'https://tipeee.com/', 'submit_url' => 'https://tipeee.com/register/', ], + [ + 'slug' => 'ulule', + 'type' => 'funding', + 'label' => 'Ulule', + 'home_url' => 'https://www.ulule.com/', + 'submit_url' => 'https://www.ulule.com/projects/create/#/', + ], [ 'slug' => 'discord', @@ -259,6 +303,13 @@ class PlatformSeeder extends Seeder 'submit_url' => 'https://www.facebook.com/pages/creation/?ref_type=comet_home', ], + [ + 'slug' => 'funkwhale', + 'type' => 'social', + 'label' => 'Funkwhale', + 'home_url' => 'https://funkwhale.audio/', + 'submit_url' => 'https://network.funkwhale.audio/dashboards/', + ], [ 'slug' => 'instagram', 'type' => 'social', @@ -281,6 +332,20 @@ class PlatformSeeder extends Seeder 'home_url' => 'https://joinmastodon.org/', 'submit_url' => 'https://joinmastodon.org/communities', ], + [ + 'slug' => 'mobilizon', + 'type' => 'social', + 'label' => 'Mobilizon', + 'home_url' => 'https://joinmobilizon.org/', + 'submit_url' => 'https://instances.joinmobilizon.org/instances', + ], + [ + 'slug' => 'peertube', + 'type' => 'social', + 'label' => 'PeerTube', + 'home_url' => 'https://joinpeertube.org/', + 'submit_url' => 'https://joinpeertube.org/instances', + ], [ 'slug' => 'pixelfed', 'type' => 'social', @@ -288,6 +353,13 @@ class PlatformSeeder extends Seeder 'home_url' => 'https://pixelfed.org/', 'submit_url' => 'https://beta.joinpixelfed.org/', ], + [ + 'slug' => 'plume', + 'type' => 'social', + 'label' => 'Plume', + 'home_url' => 'https://joinplu.me/', + 'submit_url' => 'https://joinplu.me/#instances', + ], [ 'slug' => 'slack', 'type' => 'social', @@ -309,6 +381,13 @@ class PlatformSeeder extends Seeder 'home_url' => 'https://twitter.com/', 'submit_url' => 'https://twitter.com/i/flow/signup', ], + [ + 'slug' => 'writefreely', + 'type' => 'social', + 'label' => 'WriteFreely', + 'home_url' => 'https://writefreely.org/', + 'submit_url' => 'https://writefreely.org/instances', + ], [ 'slug' => 'youtube', 'type' => 'social', diff --git a/app/Views/_assets/images/platforms/funding/gofundme.svg b/app/Views/_assets/images/platforms/funding/gofundme.svg new file mode 100644 index 00000000..8b6a8b0d --- /dev/null +++ b/app/Views/_assets/images/platforms/funding/gofundme.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/Views/_assets/images/platforms/funding/indiegogo.svg b/app/Views/_assets/images/platforms/funding/indiegogo.svg new file mode 100644 index 00000000..c701e0bf --- /dev/null +++ b/app/Views/_assets/images/platforms/funding/indiegogo.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/app/Views/_assets/images/platforms/funding/kickstarter.svg b/app/Views/_assets/images/platforms/funding/kickstarter.svg new file mode 100644 index 00000000..ea1b6cef --- /dev/null +++ b/app/Views/_assets/images/platforms/funding/kickstarter.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/Views/_assets/images/platforms/funding/kisskissbankbank.svg b/app/Views/_assets/images/platforms/funding/kisskissbankbank.svg new file mode 100644 index 00000000..fc9fa40d --- /dev/null +++ b/app/Views/_assets/images/platforms/funding/kisskissbankbank.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/Views/_assets/images/platforms/funding/ulule.svg b/app/Views/_assets/images/platforms/funding/ulule.svg new file mode 100644 index 00000000..5d932e42 --- /dev/null +++ b/app/Views/_assets/images/platforms/funding/ulule.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/Views/_assets/images/platforms/podcasting/castopod.svg b/app/Views/_assets/images/platforms/podcasting/castopod.svg new file mode 100644 index 00000000..8b349032 --- /dev/null +++ b/app/Views/_assets/images/platforms/podcasting/castopod.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/app/Views/_assets/images/platforms/social/castopod.svg b/app/Views/_assets/images/platforms/social/castopod.svg new file mode 100644 index 00000000..593e3731 --- /dev/null +++ b/app/Views/_assets/images/platforms/social/castopod.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/discord.svg b/app/Views/_assets/images/platforms/social/discord.svg index f74b86b4..043e782f 100644 --- a/app/Views/_assets/images/platforms/social/discord.svg +++ b/app/Views/_assets/images/platforms/social/discord.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/facebook.svg b/app/Views/_assets/images/platforms/social/facebook.svg index 41080c48..4aee074a 100644 --- a/app/Views/_assets/images/platforms/social/facebook.svg +++ b/app/Views/_assets/images/platforms/social/facebook.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/funkwhale.svg b/app/Views/_assets/images/platforms/social/funkwhale.svg new file mode 100644 index 00000000..863462c3 --- /dev/null +++ b/app/Views/_assets/images/platforms/social/funkwhale.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/instagram.svg b/app/Views/_assets/images/platforms/social/instagram.svg index 1f5d89c5..fcd88318 100644 --- a/app/Views/_assets/images/platforms/social/instagram.svg +++ b/app/Views/_assets/images/platforms/social/instagram.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/linkedin.svg b/app/Views/_assets/images/platforms/social/linkedin.svg index d4692808..3052351b 100644 --- a/app/Views/_assets/images/platforms/social/linkedin.svg +++ b/app/Views/_assets/images/platforms/social/linkedin.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/mastodon.svg b/app/Views/_assets/images/platforms/social/mastodon.svg index bb1e3746..91133fee 100644 --- a/app/Views/_assets/images/platforms/social/mastodon.svg +++ b/app/Views/_assets/images/platforms/social/mastodon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/mobilizon.svg b/app/Views/_assets/images/platforms/social/mobilizon.svg new file mode 100644 index 00000000..7d8cfe8f --- /dev/null +++ b/app/Views/_assets/images/platforms/social/mobilizon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/peertube.svg b/app/Views/_assets/images/platforms/social/peertube.svg new file mode 100644 index 00000000..c616a21c --- /dev/null +++ b/app/Views/_assets/images/platforms/social/peertube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/pixelfed.svg b/app/Views/_assets/images/platforms/social/pixelfed.svg index d3174c34..9a1715e4 100644 --- a/app/Views/_assets/images/platforms/social/pixelfed.svg +++ b/app/Views/_assets/images/platforms/social/pixelfed.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/plume.svg b/app/Views/_assets/images/platforms/social/plume.svg new file mode 100644 index 00000000..aa46e90c --- /dev/null +++ b/app/Views/_assets/images/platforms/social/plume.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/slack.svg b/app/Views/_assets/images/platforms/social/slack.svg index 462a58c6..b65ba6ee 100644 --- a/app/Views/_assets/images/platforms/social/slack.svg +++ b/app/Views/_assets/images/platforms/social/slack.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/twitch.svg b/app/Views/_assets/images/platforms/social/twitch.svg index 5ff88372..296d95bc 100644 --- a/app/Views/_assets/images/platforms/social/twitch.svg +++ b/app/Views/_assets/images/platforms/social/twitch.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/twitter.svg b/app/Views/_assets/images/platforms/social/twitter.svg index a385fdc1..f1a961d2 100644 --- a/app/Views/_assets/images/platforms/social/twitter.svg +++ b/app/Views/_assets/images/platforms/social/twitter.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/writefreely.svg b/app/Views/_assets/images/platforms/social/writefreely.svg new file mode 100644 index 00000000..7291016c --- /dev/null +++ b/app/Views/_assets/images/platforms/social/writefreely.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/Views/_assets/images/platforms/social/youtube.svg b/app/Views/_assets/images/platforms/social/youtube.svg index a3aff57a..02ff073a 100644 --- a/app/Views/_assets/images/platforms/social/youtube.svg +++ b/app/Views/_assets/images/platforms/social/youtube.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/Views/admin/podcast/platforms.php b/app/Views/admin/podcast/platforms.php index d2009812..06e3df6f 100644 --- a/app/Views/admin/podcast/platforms.php +++ b/app/Views/admin/podcast/platforms.php @@ -17,12 +17,25 @@ -
+
- type, - $platform->slug, - 'w-full mb-1 text-gray-800' + submit_url, + platform_icon( + $platform->type, + $platform->slug, + $platform->type == 'social' ? 'text-gray-800' : null + ), + [ + 'class' => 'mb-1 text-gray-600 hover:text-gray-900', + 'target' => '_blank', + 'rel' => 'noopener noreferrer', + 'data-toggle' => 'tooltip', + 'data-placement' => 'bottom', + 'title' => lang('Platforms.submit_url', [ + 'platformName' => $platform->label, + ]), + ] ) ?>
home_url, icon('external-link', 'mx-auto'), [