File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
src/components/learn-aggregator Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { Eyebrow } from "@/_design-system/eyebrow"
55import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr"
66
77import blurBean from "./learn-blur-bean.webp"
8+ import clsx from "clsx"
89
910export 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}
7678function 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" >
You can’t perform that action at this time.
0 commit comments