Skip to content
Closed
Changes from 1 commit
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
12 changes: 11 additions & 1 deletion src/components/SupportUsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@ function SupportUsButton({
},
buttonVariant = "AOSSIE",
}: supportUsButtonProps): React.JSX.Element {


return (
// Container for the support us button, with dynamic classes based on the selected theme and custom class names
<div
className={`w-full font-sans justify-center items-center text-center ${Theme == "light" || Theme == "dark" ? classAccordingToTheme(Theme) : "bg-black text-white"} ${classNames.container}`}
>

{/* Hero section with optional background image*/}
<div className="relative w-full h-[50vh] flex justify-center">
{hero.Image && (
Expand Down Expand Up @@ -128,7 +131,9 @@ function SupportUsButton({
</div>

{/* Organization information section */}
<div className="w-full flex justify-center p-10 mb-50">
{/* Avoid rendering empty organization section when data is not provided */}
{organizationInformation ? (
<div className="w-full flex justify-center p-10 mb-50">
Comment thread
swathi2006 marked this conversation as resolved.
<div
className={`${classNames.organizationInformation}
relative w-[90%] p-15 rounded-2xl overflow-visible
Expand Down Expand Up @@ -235,6 +240,11 @@ function SupportUsButton({
</div>
</div>
</div>
) : (
<p className="text-center text-gray-500 mt-10">
Organization details are not available.
</p>
)}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

{/* Sponsors section */}
<div
Expand Down
Loading