Skip to content

Commit 7000973

Browse files
feat: enhancing the organization information section for AOSSIE theme (#30)
* feat: enhancing the organization information section for AOSSIE theme * resolving coderabbit review
1 parent f761f17 commit 7000973

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

src/components/SupportUsButton.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,20 @@ function SupportUsButton({
173173
${classAccordingToTheme(Theme)}`}
174174
>
175175
{/* Background grid */}
176-
<div className="absolute inset-0 bg-[radial-gradient(rgba(0,0,0,0.15)_1.5px,transparent_0)] bg-size-[20px_20px] pointer-events-none opacity-100"></div>
177-
<div
178-
className={`absolute top-0 left-0 bottom-0 w-1/2 h-full rounded-2xl p-6 overflow-visible ${classAccordingToTheme(Theme)}`}
179-
></div>
176+
<div className="absolute inset-0 bg-[radial-gradient(rgba(0,0,0,0.15)_1.5px,transparent_0)] bg-size-[20px_20px] pointer-events-none opacity-100 z-10"></div>
177+
178+
{/* Gradient background */}
179+
{Theme === "AOSSIE" && (
180+
<div
181+
className={`absolute top-0 left-0 bottom-0 w-full h-full rounded-2xl p-6 overflow-visible gradient-bg`}
182+
></div>
183+
)}
180184

181185
{/* Content container */}
182186
<div className="relative z-10 flex justify-start flex-col text-start gap-4">
183187
{/* Sponsor label */}
184188
{hero.sponsorLabel && (
185-
<span className="text-[10px] font-extrabold tracking-[0.2em] uppercase block">
189+
<span className={`text-[10px] font-extrabold tracking-[0.2em] uppercase block ${Theme === "AOSSIE" && "text-white"}`}>
186190
{hero.sponsorLabel}
187191
</span>
188192
)}
@@ -245,7 +249,7 @@ function SupportUsButton({
245249
</h3>
246250
<p
247251
className={`italic font-semibold
248-
${Theme === "AOSSIE" && "text-[#614f08]"}
252+
${Theme === "AOSSIE" && "text-[#908f8f]"}
249253
${Theme === "light" && "text-gray-600"}
250254
${Theme === "dark" && "text-gray-400"}
251255
${Theme === "minimal" && "text-gray-800"}

src/styles/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@
1717
.sponsor-pattern-grid {
1818
background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2391c44a' stroke-opacity='0.4' stroke-width='1'%3E%3Cpath d='M0 0H100M0 20H100M0 40H100M0 60H100M0 80H100M0 100H100'/%3E%3Cpath d='M0 0V100M20 0V100M40 0V100M60 0V100M80 0V100M100 0V100'/%3E%3C/g%3E%3C/svg%3E");
1919
}
20+
21+
.gradient-bg {
22+
background:
23+
linear-gradient(340deg, #0f0f0f 20%, #292308 25%, transparent 100%),
24+
linear-gradient(150deg, #0f0f0f 10%, #292308 20%, #ffd000 30%,transparent 100%),
25+
linear-gradient(50deg, #ffd000 100%, #ffd000 100%);
26+
}

0 commit comments

Comments
 (0)