Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions src/components/LearningPathCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const LearningPathCatalog = ({
description: lp.description,
products: lp.products,
groups,
video: lp.video,
};
});

Expand Down Expand Up @@ -152,19 +153,22 @@ const LearningPathCatalog = ({
href={path.link}
className="rounded-md border border-solid border-gray-200 p-6 !text-inherit no-underline hover:bg-gray-50 dark:border-gray-700 dark:hover:bg-gray-800"
>
{path.icon && (
<div className="w-fit rounded-full bg-orange-50 p-1 text-orange-500 dark:bg-orange-950">
<svg
{...path.icon.attributes}
width={24}
height={24}
dangerouslySetInnerHTML={{ __html: path.icon.body }}
/>
</div>
)}
<div className="flex gap-2">
{path.icon && (
<div className="w-fit rounded-full bg-orange-50 p-1 text-orange-500 dark:bg-orange-950">
<svg
{...path.icon.attributes}
width={24}
height={24}
dangerouslySetInnerHTML={{ __html: path.icon.body }}
/>
</div>
)}
{path.video && <span className="sl-badge tip">Video</span>}
</div>
<p className="!mt-3 font-semibold">{path.title}</p>
<Markdown
className="!mt-1 text-sm leading-6"
className="leading-2 !mt-1 text-sm"
disallowedElements={["a"]}
unwrapDisallowed={true}
>
Expand Down
8 changes: 3 additions & 5 deletions src/content/learning-paths/sase-overview-course.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"path": "/learning-paths/sase-overview-course/series/evolution-corporate-networks-1/",
"priority": 1,
"description": "Watch this series and learn all about Cloudflare's Secure Access Service Edge (SASE) platform to learn how it can revolutionize your corporate network.",
"products": [
"Cloudflare One"
],
"products": ["Cloudflare One"],
"product_group": "Cloudflare One",
"additional_groups": ["Cloudflare One"]
"additional_groups": ["Cloudflare One"],
"video": true
}

1 change: 1 addition & 0 deletions src/schemas/learning-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export const learningPathsSchema = z
products: z.string().array(),
product_group: z.string(),
additional_groups: z.string().array().optional(),
video: z.boolean().default(false),
})
.strict();