-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π style: Add auto height to sponsor
- Loading branch information
1 parent
0d78bfd
commit e1cbb69
Showing
5 changed files
with
238 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import { CSSProperties } from 'react'; | ||
|
||
export const DEFAULT_WIDTH = 800; | ||
export const DEFAULT_AVATAR_SIZE = 64; | ||
|
||
export interface MemberProfile { | ||
MemberId: number; | ||
company?: string; | ||
createdAt: string; | ||
currency?: string; | ||
description?: string; | ||
email?: string; | ||
github?: string; | ||
image?: string; | ||
isActive: boolean; | ||
lastTransactionAmount: number; | ||
lastTransactionAt: string; | ||
name: string; | ||
profile: string; | ||
role: 'ADMIN' | 'HOST' | 'BACKER'; | ||
tier?: string; | ||
totalAmountDonated: number; | ||
twitter?: string; | ||
type: 'USER' | 'ORGANIZATION'; | ||
website?: string; | ||
} | ||
|
||
export interface TierItem { | ||
amount: number; | ||
emoji: string; | ||
preset: 'backer' | 'sponsor'; | ||
sort: number; | ||
style?: CSSProperties; | ||
title: string; | ||
} | ||
|
||
export const DEFAULT_GROUP: TierItem[] = [ | ||
{ | ||
amount: 250, | ||
emoji: 'π₯', | ||
preset: 'sponsor', | ||
sort: 22, | ||
style: { | ||
backgroundImage: `linear-gradient(45deg, #F5E729 0%, #DC9A01 33%, #DC9A01 66%, #F5E729 100%)`, | ||
}, | ||
title: 'π₯ Gold Sponsor', | ||
}, | ||
{ | ||
amount: 100, | ||
emoji: 'π₯', | ||
preset: 'sponsor', | ||
sort: 21, | ||
style: { | ||
backgroundImage: `linear-gradient(45deg, #D8D8D8 0%, #888888 33%, #888888 66%, #D8D8D8 100%)`, | ||
}, | ||
title: 'π₯ Silver Sponsor', | ||
}, | ||
{ | ||
amount: 50, | ||
emoji: 'π₯', | ||
preset: 'sponsor', | ||
sort: 20, | ||
style: { | ||
backgroundImage: `linear-gradient(45deg, #D8974D 0%, #833204 33%, #833204 66%, #D8974D 100%)`, | ||
}, | ||
title: 'π₯ Bronze Sponsor', | ||
}, | ||
{ | ||
amount: 18, | ||
emoji: 'π', | ||
preset: 'backer', | ||
sort: 11, | ||
title: 'π Generous Backer', | ||
}, | ||
{ | ||
amount: 6, | ||
emoji: 'β', | ||
preset: 'backer', | ||
sort: 10, | ||
title: 'β Backer', | ||
}, | ||
{ | ||
amount: 1, | ||
emoji: 'π', | ||
preset: 'backer', | ||
sort: 1, | ||
title: 'π One Time', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.