feat: add donation support with footer card and navigation
Add donation functionality to encourage community support, including a footer card on the home page, a highlighted "Apoiar" link in the header, and comprehensive English messages for the donation section to promote transparency and user engagement.
This commit is contained in:
1 parent
b5093cb49a
commit
01e97eb078
16 files changed
+1161
-2
No files matched your search
@@ -0,0 +1,59 @@
|
||||
export interface DonationTier {
|
||||
id: string;
|
||||
amount?: number;
|
||||
title: string;
|
||||
description: string;
|
||||
icon: "coffee" | "pizza" | "heart";
|
||||
badge?: string;
|
||||
highlighted?: boolean;
|
||||
}
|
||||
|
||||
export interface DonationData {
|
||||
amount: number;
|
||||
donorName?: string;
|
||||
donorEmail?: string;
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export interface DonationResponse {
|
||||
success: boolean;
|
||||
billingId?: string;
|
||||
pixCode?: string;
|
||||
pixQrCode?: string;
|
||||
expiresAt?: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface BillingStatus {
|
||||
id: string;
|
||||
amount: number;
|
||||
status: "PENDING" | "PAID" | "EXPIRED" | "CANCELLED";
|
||||
pixCode: string;
|
||||
pixQrCode: string;
|
||||
expiresAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface DonationStats {
|
||||
totalSupporters: number;
|
||||
totalRaised: number;
|
||||
monthsOnline: number;
|
||||
uptime: number;
|
||||
}
|
||||
|
||||
export interface TransparencyData {
|
||||
hosting: number;
|
||||
development: number;
|
||||
support: number;
|
||||
emergency: number;
|
||||
}
|
||||
|
||||
export interface Supporter {
|
||||
id: string;
|
||||
name: string;
|
||||
avatar?: string;
|
||||
amount: number;
|
||||
message?: string;
|
||||
createdAt: string;
|
||||
anonymous?: boolean;
|
||||
}
|
||||
Reference in new issue
Block a user