Skip to content

Commit 69b2d20

Browse files
committed
fix: image
1 parent 5ad3871 commit 69b2d20

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/components/Banners/ContributorsQuizBanner.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
11
import { cn } from "@/lib/utils/cn"
22

33
import { ButtonLink } from "../Buttons"
4-
import { Stack } from "../ui/flex"
4+
import { TwImage } from "../Image"
5+
import { Flex, Stack } from "../ui/flex"
6+
7+
import PeopleLearning from "@/public/images/people-learning.png"
58

69
// TODO: refactor to use CalloutBanner component
7-
function ContributorsQuizBanner(props: React.HTMLAttributes<HTMLDivElement>) {
10+
function ContributorsQuizBanner({
11+
className,
12+
...props
13+
}: React.HTMLAttributes<HTMLDivElement>) {
814
return (
915
<aside
1016
className={cn(
1117
"flex flex-col rounded md:flex-row",
12-
"bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20"
18+
"bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20",
19+
className
1320
)}
1421
{...props}
1522
>
16-
{/* TODO: fix image */}
17-
{/* <Flex
23+
<Flex
1824
className={cn(
1925
"relative flex-[1_1_50%]",
2026
"justify-center md:justify-end",
2127
"items-end",
22-
"md:min-h-auto min-h-[100px]",
23-
"px-8 md:px-0",
24-
"w-20"
28+
"md:min-h-auto min-h-[200px]",
29+
"px-8 md:px-0"
2530
)}
2631
>
2732
<TwImage
33+
className="absolute max-h-[120%] w-full object-contain"
2834
src={PeopleLearning}
2935
alt="People learning about Ethereum"
30-
className="absolute max-h-[120%] w-full object-contain"
3136
/>
3237
<div className="w-full border-b border-[#D3C5F1] md:hidden" />
33-
</Flex> */}
38+
</Flex>
3439
<Stack
3540
className={cn("flex-[1_1_50%]", "gap-8 py-8 ps-8", "pe-8 lg:pe-0")}
3641
>

0 commit comments

Comments
 (0)