Skip to content

Commit e440aca

Browse files
committed
Add icon backgrounds
1 parent 751f363 commit e440aca

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/components/learn-aggregator/index.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Eyebrow } from "@/_design-system/eyebrow"
55
import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr"
66

77
import blurBean from "./learn-blur-bean.webp"
8+
import clsx from "clsx"
89

910
export interface TeaserSectionProps {
1011
eyebrow: string
@@ -72,19 +73,29 @@ interface TeaserSectionListItemProps {
7273
title: string
7374
description: string
7475
icon: ReactNode
76+
section: "getting-started" | "best-practices"
7577
}
7678
function TeaserSectionListItem({
7779
number,
7880
title,
7981
description,
8082
icon,
83+
section,
8184
}: TeaserSectionListItemProps) {
8285
return (
8386
<li className="flex items-end gap-2 text-neu-900">
84-
{icon}
87+
<div
88+
className={clsx(
89+
section === "getting-started" && "bg-[#FFF5FD] dark:bg-pri-lighter/5",
90+
section === "best-practices" &&
91+
"bg-sec-lighter dark:bg-sec-lighter/5",
92+
)}
93+
>
94+
{icon}
95+
</div>
8596
<span>Lesson {number}</span>
86-
<strong>{title}</strong>
87-
<p className="typography-body-md text-pretty p-4 text-neu-900">
97+
<strong className="typography-h3 font-normal">{title}</strong>
98+
<p className="typography-body-sm text-pretty p-4 text-neu-900">
8899
{description}
89100
</p>
90101
<div className="p-4 max-lg:hidden">

0 commit comments

Comments
 (0)