Public Access
18 lines
653 B
Python
18 lines
653 B
Python
# modules/paypal.py
|
|
from fasthtml.common import *
|
|
|
|
def render_paypal_donation_widget():
|
|
"""Génère le bouton de don PayPal pour l'interface sidebar."""
|
|
# Remplacez l'URL ci-dessous par votre véritable lien ou bouton de don PayPal
|
|
paypal_url = "https://www.paypal.com/donate?hosted_button_id=VOTRE_ID_PAYPAL"
|
|
|
|
return Div(
|
|
A(
|
|
"☕ Faire un don PayPal",
|
|
href=paypal_url,
|
|
target="_blank",
|
|
cls="export-btn",
|
|
style="text-align: center; color: #00e5ff; border-color: #00e5ff; display: block; text-decoration: none;"
|
|
),
|
|
style="margin-top: 10px;"
|
|
) |