|
| 1 | +<!-- |
| 2 | + - SPDX-FileCopyrightText: 2025 LibreCode coop and LibreCode contributors |
| 3 | + - SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | +--> |
| 5 | +<template> |
| 6 | + <NcSettingsSection :name="name" :description="description"> |
| 7 | + <div class="support-project-content"> |
| 8 | + <p class="support-message"> |
| 9 | + {{ t('libresign', 'LibreSign is developed with ❤️ by LibreCode coop. Your support helps us maintain and improve this free and open-source project.') }} |
| 10 | + </p> |
| 11 | + <div class="support-buttons"> |
| 12 | + <NcButton type="primary" |
| 13 | + href="https://github.com/sponsors/libresign" |
| 14 | + target="_blank" |
| 15 | + rel="noopener noreferrer"> |
| 16 | + <template #icon> |
| 17 | + <HeartIcon :size="20" /> |
| 18 | + </template> |
| 19 | + {{ t('libresign', 'Sponsor on GitHub') }} |
| 20 | + </NcButton> |
| 21 | + <NcButton href="https://buy.stripe.com/eVqfZibhx8QO3LseWc2kw00" |
| 22 | + target="_blank" |
| 23 | + rel="noopener noreferrer"> |
| 24 | + <template #icon> |
| 25 | + <CurrencyUsdIcon :size="20" /> |
| 26 | + </template> |
| 27 | + {{ t('libresign', 'Donate via Stripe') }} |
| 28 | + </NcButton> |
| 29 | + <NcButton href="https://libresign.coop" |
| 30 | + target="_blank" |
| 31 | + rel="noopener noreferrer"> |
| 32 | + <template #icon> |
| 33 | + <InformationIcon :size="20" /> |
| 34 | + </template> |
| 35 | + {{ t('libresign', 'Learn more') }} |
| 36 | + </NcButton> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + </NcSettingsSection> |
| 40 | +</template> |
| 41 | + |
| 42 | +<script> |
| 43 | +import CurrencyUsdIcon from 'vue-material-design-icons/CurrencyUsd.vue' |
| 44 | +import HeartIcon from 'vue-material-design-icons/Heart.vue' |
| 45 | +import InformationIcon from 'vue-material-design-icons/Information.vue' |
| 46 | +
|
| 47 | +import { translate as t } from '@nextcloud/l10n' |
| 48 | +
|
| 49 | +import NcButton from '@nextcloud/vue/components/NcButton' |
| 50 | +import NcSettingsSection from '@nextcloud/vue/components/NcSettingsSection' |
| 51 | +
|
| 52 | +export default { |
| 53 | + name: 'SupportProject', |
| 54 | + components: { |
| 55 | + CurrencyUsdIcon, |
| 56 | + HeartIcon, |
| 57 | + InformationIcon, |
| 58 | + NcButton, |
| 59 | + NcSettingsSection, |
| 60 | + }, |
| 61 | + data() { |
| 62 | + return { |
| 63 | + name: t('libresign', 'Support LibreSign'), |
| 64 | + description: t('libresign', 'Help us continue developing and maintaining LibreSign'), |
| 65 | + } |
| 66 | + }, |
| 67 | +} |
| 68 | +</script> |
| 69 | + |
| 70 | +<style scoped> |
| 71 | +.support-project-content { |
| 72 | + display: flex; |
| 73 | + flex-direction: column; |
| 74 | + gap: 16px; |
| 75 | + max-width: 600px; |
| 76 | +} |
| 77 | +
|
| 78 | +.support-message { |
| 79 | + margin: 0; |
| 80 | + color: var(--color-text-lighter); |
| 81 | + line-height: 1.5; |
| 82 | +} |
| 83 | +
|
| 84 | +.support-buttons { |
| 85 | + display: flex; |
| 86 | + gap: 12px; |
| 87 | + flex-wrap: wrap; |
| 88 | +} |
| 89 | +</style> |
0 commit comments