|
1 | 1 | import { cn } from "@/lib/utils/cn"
|
2 | 2 |
|
3 | 3 | 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" |
5 | 8 |
|
6 | 9 | // TODO: refactor to use CalloutBanner component
|
7 |
| -function ContributorsQuizBanner(props: React.HTMLAttributes<HTMLDivElement>) { |
| 10 | +function ContributorsQuizBanner({ |
| 11 | + className, |
| 12 | + ...props |
| 13 | +}: React.HTMLAttributes<HTMLDivElement>) { |
8 | 14 | return (
|
9 | 15 | <aside
|
10 | 16 | className={cn(
|
11 | 17 | "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 |
13 | 20 | )}
|
14 | 21 | {...props}
|
15 | 22 | >
|
16 |
| - {/* TODO: fix image */} |
17 |
| - {/* <Flex |
| 23 | + <Flex |
18 | 24 | className={cn(
|
19 | 25 | "relative flex-[1_1_50%]",
|
20 | 26 | "justify-center md:justify-end",
|
21 | 27 | "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" |
25 | 30 | )}
|
26 | 31 | >
|
27 | 32 | <TwImage
|
| 33 | + className="absolute max-h-[120%] w-full object-contain" |
28 | 34 | src={PeopleLearning}
|
29 | 35 | alt="People learning about Ethereum"
|
30 |
| - className="absolute max-h-[120%] w-full object-contain" |
31 | 36 | />
|
32 | 37 | <div className="w-full border-b border-[#D3C5F1] md:hidden" />
|
33 |
| - </Flex> */} |
| 38 | + </Flex> |
34 | 39 | <Stack
|
35 | 40 | className={cn("flex-[1_1_50%]", "gap-8 py-8 ps-8", "pe-8 lg:pe-0")}
|
36 | 41 | >
|
|
0 commit comments