Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ Information about the organization and project.
| `name` | string | Yes | Organization name |
| `description` | string | Yes | Organization description |
| `logo` | `Image` / string | No | Organization logo |
| `projectInformation` | `projectInformation` | Yes | Project details |
| `projectInformation` | `projectInformation` | No | Project details |

</details>

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "support-us-button",
"version": "1.0.0",
"version": "1.1.0",
"description": "A customizable and flexible Support Us button component for integrating sponsorship and donation options into web applications.",
"keywords": [
"aossie",
Expand Down
35 changes: 20 additions & 15 deletions src/components/SupportUsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,40 +193,45 @@ function SupportUsButton({
</div>

{/* Line */}
<div
className={`
{organizationInformation.projectInformation && (
<div
className={`
border
${Theme === "AOSSIE" && "border-[#f1c514]/50"}
${Theme === "light" && "border-gray-300/50"}
${Theme === "dark" && "border-gray-700/50"}
${Theme === "minimal" && "border-gray-800/50"}
${Theme === "corporate" && "border-blue-600/50"}`}
></div>
></div>
)}

{/* Project information */}
<div className="flex flex-col gap-2">
<h3
className={`font-bold w-fit uppercase text-sm p-2 rounded-lg
{organizationInformation.projectInformation && (
<div className="flex flex-col gap-2">
<h3
className={`font-bold w-fit uppercase text-sm p-2 rounded-lg
${Theme === "AOSSIE" && "bg-[#edc214]"}
${Theme === "light" && "bg-gray-300/50"}
${Theme === "dark" && "bg-gray-700/50"}
${Theme === "minimal" && "bg-gray-800/50"}
${Theme === "corporate" && "bg-blue-600/50"}`}
>
ABOUT PROJECT: {organizationInformation.projectInformation.name}
</h3>
<p
className={`italic font-semibold
>
ABOUT PROJECT:{" "}
{organizationInformation.projectInformation.name}
</h3>
<p
className={`italic font-semibold
${Theme === "AOSSIE" && "text-[#614f08]"}
${Theme === "light" && "text-gray-600"}
${Theme === "dark" && "text-gray-400"}
${Theme === "minimal" && "text-gray-800"}
${Theme === "corporate" && "text-blue-600/80"}
`}
>
"{organizationInformation.projectInformation.description}"
</p>
</div>
>
"{organizationInformation.projectInformation.description}"
</p>
</div>
)}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export type organizationInformation = {
/** Organization logo */
logo?: Image | string;

projectInformation: projectInformation;
projectInformation?: projectInformation;
};

/* =========================
Expand Down
Loading