@@ -160,146 +160,55 @@ Once included, the component will be available to use in your project.
160160
161161---
162162
163- ## Example Usage
163+ ## Quick Start
164164
165- Below is an example configuration for the ` SupportUsButton ` component.
166- Replace the placeholder text (titles, descriptions, images, links, etc.) with your own project information.
165+ Props template — fill in your own values:
167166
168167``` tsx
169- // Example props configuration for SupportUsButton
170- // Modify the values according to your project needs
171-
172168const props: supportUsButtonProps = {
173- // Theme of the widget (e.g., AOSSIE, light, dark, minimal)
174- Theme: " AOSSIE" ,
175-
176- // Background pattern type (e.g., grid, dots)
177- pattern: " grid" ,
169+ Theme: " " , // "AOSSIE" | "light" | "dark" | "minimal" | "corporate"
170+ pattern: " " , // "AOSSIE" | "dots" | "grid" | "none"
171+ buttonVariant: " " , // "AOSSIE" | "primary" | "secondary" | "ghost" | "gradient"
178172
179173 hero: {
180- Image: {
181- // Replace with your hero image
182- src: " https://your-image-link.com/hero-image.png" ,
183- alt: " Hero section image" ,
184- },
185-
186- // Main title shown at the top of the widget
187- title: " Your Title Here" ,
188-
189- // Short description about your project or mission
190- description:
191- " Write a brief description about your project, organization, or the purpose of sponsorship here." ,
192-
193- // Label shown above the sponsors section
194- sponsorLabel: " Your Sponsors" ,
174+ title: " " , // ← your heading
175+ description: " " , // ← your subheading
176+ sponsorLabel: " " , // ← optional label above org info
177+ Image: { src: " " , alt: " " }, // ← hero background image, Note: Remove the prop if you do not require a hero image.
195178 },
196179
197- organizationInformation: {
198- // Name of your organization
199- name: " Your Organization Name" ,
200-
201- // Short description about the organization
202- description:
203- " Describe your organization, its mission, and what it works on." ,
204-
205- // Optional organization logo
206- logo: {
207- src: " https://your-image-link.com/logo.png" ,
208- alt: " Organization Logo" ,
209- },
210-
180+ organizationInformation: {
181+ name: " " , // ← your organization name
182+ description: " " , // ← short org description
183+ logo: { src: " " , alt: " " }, // ← Add file path to src and alt text for accessibility. Note: Accepts a string path/url.
211184 projectInformation: {
212- // Name of the project that is being sponsored
213- name: " Your Project Name" ,
214-
215- // Short description of the project
216- description:
217- " Provide a short description of the project that sponsors are supporting." ,
185+ name: " " , // ← your project name
186+ description: " " ,// ← short project description
218187 },
219188 },
220189
221- // List of sponsors
190+ // Optional — remove if you have no sponsors yet
222191 sponsors: [
223- {
224- name: " Sponsor Name" ,
225- logo: " https://your-image-link.com/sponsor-logo.png" ,
226- link: " https://sponsor-website.com" ,
227-
228- // Optional tier: Bronze | Silver | Gold | Platinum
229- sponsorshipTier: " Bronze" ,
230- },
231- {
232- name: " Another Sponsor" ,
233- logo: " https://your-image-link.com/sponsor-logo.png" ,
234- link: " https://sponsor-website.com" ,
235- sponsorshipTier: " Silver" ,
236- },
237- {
238- name: " Company Name" ,
239- logo: " https://your-image-link.com/company-logo.png" ,
240- link: " https://company-website.com" ,
241- sponsorshipTier: " Gold" ,
242- },
192+ { name: " " , logo: " " , link: " " , sponsorshipTier: " " },
193+ // Tiers: "Platinum" | "Gold" | "Silver" | "Bronze" (higher → bigger card)
243194 ],
244195
245196 ctaSection: {
246- // Call-to-action title
247- title: " Support This Project" ,
248-
249- // Description encouraging users to sponsor the project
250- description:
251- " Explain why supporting your project matters and how people can help." ,
252-
197+ title: " " , // ← CTA heading
198+ description: " " , // ← why people should sponsor
253199 sponsorLink: [
254200 {
255- // Platform name
256- name: " Patreon" ,
257-
258- // Sponsorship link
259- url: " https://www.patreon.com/yourproject" ,
260-
261- // Optional icon for the platform
262- icon : (
263- <svg
264- xmlns = " http://www.w3.org/2000/svg"
265- width = " 24"
266- height = " 24"
267- >
268- <path d = " M0 0h24v24H0z" fill = " none" />
269- <path d = " M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" />
270- </svg >
271- ),
272-
273- // Optional custom class for styling
274- className: " patreon-link" ,
275-
276- // Open link in a new tab
277- newTab: true ,
278- },
279- {
280- name: " GitHub Sponsors" ,
281- url: " https://github.com/sponsors/yourproject" ,
282- icon : (
283- <svg
284- xmlns = " http://www.w3.org/2000/svg"
285- width = " 24"
286- height = " 24"
287- >
288- <path d = " M0 0h24v24H0z" fill = " none" />
289- <path d = " M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" />
290- </svg >
291- ),
292- className: " github-sponsors-link" ,
293- newTab: true ,
201+ name: " Examplename"
202+ className : " sponsor-link" ,
203+ url: " https://example.com/sponsor" ,
204+ icon: null , // This Accepts ReactNode element(JSX)
205+ newTab: true ,
294206 },
207+ // Add one entry per sponsorship platform
295208 ],
296209 },
297-
298- // Button styling variant
299- buttonVariant: " AOSSIE" ,
300210};
301211
302- // Component usage
303212<SupportUsButton { ... props } />;
304213```
305214
0 commit comments