Add sponsoring/donation buttons & query links from env

This commit is contained in:
Daniel Brendel
2024-07-23 00:03:25 +02:00
parent 16e37dd550
commit 4e2d51fd06
11 changed files with 122 additions and 11 deletions

View File

@@ -27,6 +27,12 @@ APP_CRONPW=null
APP_CRONJOB_MAILLIMIT=5
APP_GITHUB_URL="https://github.com/danielbrendel/hortusfox-web"
APP_SERVICE_URL="https://www.hortusfox.com"
APP_GITHUB_SPONSOR="https://github.com/sponsors/danielbrendel"
APP_DONATION_KOFI="https://ko-fi.com/danielbrendel"
APP_SOCIAL_DISCORD="https://discord.gg/kc6xGmjzVS"
APP_SOCIAL_MASTODON="https://mastodon.social/@hortusfox"
APP_SOCIAL_YOUTUBE="https://www.youtube.com/@HortusFox"
APP_SOCIAL_INSTAGRAM="https://www.instagram.com/hortusfox/"
APP_ENABLEHISTORY=true
APP_HISTORY_NAME="History"
APP_ENABLE_PHOTO_SHARE=false

View File

@@ -15,6 +15,14 @@ APP_CONTACT="dbrendel1988@gmail.com"
APP_DEBUG=true
APP_BASEDIR=""
APP_TIMEZONE=null
APP_GITHUB_URL="https://github.com/danielbrendel/hortusfox-web"
APP_SERVICE_URL="https://www.hortusfox.com"
APP_GITHUB_SPONSOR="https://github.com/sponsors/danielbrendel"
APP_DONATION_KOFI="https://ko-fi.com/danielbrendel"
APP_SOCIAL_DISCORD="https://discord.gg/kc6xGmjzVS"
APP_SOCIAL_MASTODON="https://mastodon.social/@hortusfox"
APP_SOCIAL_YOUTUBE="https://www.youtube.com/@HortusFox"
APP_SOCIAL_INSTAGRAM="https://www.instagram.com/hortusfox/"
# Session
SESSION_ENABLE=true

View File

@@ -411,5 +411,7 @@ return [
'mail_rp_address' => 'Reverse Proxy',
'photo_edit_specify_url' => 'Angiv URL til ekstern ressource',
'photo_edit_specify_file' => 'Vælg en fil, der skal uploades',
'photo_edit_url_placeholder' => 'Indtast URL...'
'photo_edit_url_placeholder' => 'Indtast URL...',
'donation_sponsoring' => 'GitHub Sponsoring',
'donation_kofi' => 'Buy Me a Coffee'
];

View File

@@ -412,5 +412,7 @@ return [
'mail_rp_address' => 'Reverse Proxy',
'photo_edit_specify_url' => 'URL zu einem externen Photo angeben',
'photo_edit_specify_file' => 'Photo von einem Datenträger hochladen',
'photo_edit_url_placeholder' => 'URL hier eingeben...'
'photo_edit_url_placeholder' => 'URL hier eingeben...',
'donation_sponsoring' => 'GitHub Sponsoring',
'donation_kofi' => 'Buy Me a Coffee'
];

View File

@@ -412,5 +412,7 @@ return [
'mail_rp_address' => 'Reverse Proxy',
'photo_edit_specify_url' => 'Specify URL to external resource',
'photo_edit_specify_file' => 'Select a file to upload',
'photo_edit_url_placeholder' => 'Enter URL...'
'photo_edit_url_placeholder' => 'Enter URL...',
'donation_sponsoring' => 'GitHub Sponsoring',
'donation_kofi' => 'Buy Me a Coffee'
];

View File

@@ -412,5 +412,7 @@ return [
'mail_rp_address' => 'Reverse Proxy',
'photo_edit_specify_url' => 'Especificar URL al recurso externo',
'photo_edit_specify_file' => 'Seleccione un archivo para cargar',
'photo_edit_url_placeholder' => 'Introducir URL...'
'photo_edit_url_placeholder' => 'Introducir URL...',
'donation_sponsoring' => 'GitHub Sponsoring',
'donation_kofi' => 'Buy Me a Coffee'
];

View File

@@ -413,5 +413,7 @@ return [
'mail_rp_address' => 'Reverse Proxy',
'photo_edit_specify_url' => 'Spécifier l\'URL de la ressource externe',
'photo_edit_specify_file' => 'Sélectionnez un fichier à télécharger',
'photo_edit_url_placeholder' => 'Entrer l\'URL...'
'photo_edit_url_placeholder' => 'Entrer l\'URL...',
'donation_sponsoring' => 'GitHub Sponsoring',
'donation_kofi' => 'Buy Me a Coffee'
];

View File

@@ -2688,6 +2688,62 @@ fieldset .field {
.admin-info-support a:hover {
}
.admin-info-sponsor {
position: relative;
margin-top: 15px;
margin-bottom: 15px;
}
.admin-info-sponsor a {
width: 465px;
@media screen and (max-width: 495px) {
width: 100%;
height: 50px;
font-size: 1.4em;
}
background-color: rgb(30, 150, 183) !important;
}
.admin-info-sponsor a:hover {
background-color: rgb(35, 167, 202) !important;
}
.admin-info-sponsor i {
color: rgb(205, 50, 50);
}
.admin-info-sponsor i:hover {
color: rgb(205, 50, 50);
}
.admin-info-donation {
position: relative;
margin-top: 15px;
margin-bottom: 15px;
}
.admin-info-donation a {
width: 465px;
@media screen and (max-width: 495px) {
width: 100%;
height: 50px;
font-size: 1.4em;
}
background-color: rgb(170, 135, 85) !important;
}
.admin-info-donation a:hover {
background-color: rgb(195, 150, 95) !important;
}
.admin-info-donation i {
color: rgb(90, 67, 10);
}
.admin-info-donation i:hover {
color: rgb(90, 67, 10);
}
.admin-info-social {
position: relative;
margin-top: 15px;

View File

@@ -759,15 +759,40 @@
<div class="admin-info-version-smaller">{{ __('app.render_time', ['time' => round(microtime(true) - ASATRU_START, 4)]) }}</div>
</div>
@if (env('APP_SERVICE_URL'))
<div class="admin-info-support">
<a class="button is-success" href="https://www.hortusfox.com/support" target="_blank"><i class="fas fa-headset"></i>&nbsp;{{ __('app.admin_support') }}</a>
<a class="button is-success" href="{{ env('APP_SERVICE_URL') }}/support" target="_blank"><i class="fas fa-headset"></i>&nbsp;{{ __('app.admin_support') }}</a>
</div>
@endif
@if (env('APP_GITHUB_SPONSOR'))
<div class="admin-info-sponsor">
<a class="button is-info" href="{{ env('APP_GITHUB_SPONSOR') }}"><i class="far fa-heart"></i>&nbsp;{{ __('app.donation_sponsoring') }}</a>
</div>
@endif
@if (env('APP_DONATION_KOFI'))
<div class="admin-info-donation">
<a class="button is-info" href="{{ env('APP_DONATION_KOFI') }}"><i class="fas fa-coffee"></i>&nbsp;{{ __('app.donation_kofi') }}</a>
</div>
@endif
<div class="admin-info-social">
<a href="https://discord.gg/kc6xGmjzVS" target="_blank"><img src="https://img.shields.io/badge/discord-5715BA?style=for-the-badge&logo=discord&logoColor=white" alt="social-discord"></a>
<a href="https://mastodon.social/@hortusfox" target="_blank"><img src="https://img.shields.io/badge/mastodon-D1550A?style=for-the-badge&logo=mastodon&logoColor=white" alt="social-mastodon"></a>
<a href="https://www.youtube.com/@HortusFox" target="_blank"><img src="https://img.shields.io/badge/youtube-red?style=for-the-badge&logo=youtube&logoColor=white" alt="social-youtube"></a>
<a href="https://www.instagram.com/hortusfox/" target="_blank"><img src="https://img.shields.io/badge/instagram-blue?style=for-the-badge&logo=instagram&logoColor=white" alt="social-instagram"></a>
@if (env('APP_SOCIAL_DISCORD'))
<a href="{{ env('APP_SOCIAL_DISCORD') }}" target="_blank"><img src="https://img.shields.io/badge/discord-5715BA?style=for-the-badge&logo=discord&logoColor=white" alt="social-discord"></a>
@endif
@if (env('APP_SOCIAL_MASTODON'))
<a href="{{ env('APP_SOCIAL_MASTODON') }}" target="_blank"><img src="https://img.shields.io/badge/mastodon-D1550A?style=for-the-badge&logo=mastodon&logoColor=white" alt="social-mastodon"></a>
@endif
@if (env('APP_SOCIAL_YOUTUBE'))
<a href="{{ env('APP_SOCIAL_YOUTUBE') }}" target="_blank"><img src="https://img.shields.io/badge/youtube-red?style=for-the-badge&logo=youtube&logoColor=white" alt="social-youtube"></a>
@endif
@if (env('APP_SOCIAL_INSTAGRAM'))
<a href="{{ env('APP_SOCIAL_INSTAGRAM') }}" target="_blank"><img src="https://img.shields.io/badge/instagram-blue?style=for-the-badge&logo=instagram&logoColor=white" alt="social-instagram"></a>
@endif
</div>
<div class="admin-info-extensions">

View File

@@ -77,7 +77,13 @@ create_environment_file() {
APP_CRONPW="$APP_CRON_PW"
APP_CRONJOB_MAILLIMIT=$APP_CRON_MAIL_LIMIT
APP_GITHUB_URL="https://github.com/danielbrendel/hortusfox-web"
APP_GITHUB_SPONSOR="https://github.com/sponsors/danielbrendel"
APP_DONATION_KOFI="https://ko-fi.com/danielbrendel"
APP_SERVICE_URL="https://www.hortusfox.com"
APP_SOCIAL_DISCORD="https://discord.gg/kc6xGmjzVS"
APP_SOCIAL_MASTODON="https://mastodon.social/@hortusfox"
APP_SOCIAL_YOUTUBE="https://www.youtube.com/@HortusFox"
APP_SOCIAL_INSTAGRAM="https://www.instagram.com/hortusfox/"
APP_ENABLEHISTORY=$APP_ENABLE_HISTORY
APP_HISTORY_NAME="$APP_HISTORY_NAME"

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long