From 2ced969396e4297f51abea0dc0e3fb287cc5ac0b Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 19 May 2025 10:05:57 +0300 Subject: [PATCH] docs: change recipes on homepage (#12520) * docs: changed recipes on homepage * export icon --- .../Homepage/RecipesSection/index.tsx | 24 +++---- .../components/Icons/BundledProduct/index.tsx | 72 +++++++++++++++++++ .../docs-ui/src/components/Icons/index.tsx | 1 + www/yarn.lock | 6 +- 4 files changed, 88 insertions(+), 15 deletions(-) create mode 100644 www/packages/docs-ui/src/components/Icons/BundledProduct/index.tsx diff --git a/www/apps/book/components/Homepage/RecipesSection/index.tsx b/www/apps/book/components/Homepage/RecipesSection/index.tsx index bd77badf7e..a543c450b7 100644 --- a/www/apps/book/components/Homepage/RecipesSection/index.tsx +++ b/www/apps/book/components/Homepage/RecipesSection/index.tsx @@ -1,5 +1,6 @@ import clsx from "clsx" import { + BundledProductIcon, CalendarRefreshIcon, Card, CardProps, @@ -8,13 +9,19 @@ import { IconHeadline, ImageBinaryIcon, Link, - RestockIcon, ScrollTextIcon, ShopIcon, } from "docs-ui" const HomepageRecipesSection = () => { const cards: CardProps[] = [ + { + type: "large", + title: "Marketplace", + text: "Build a marketplace with multiple vendors.", + href: "https://docs.medusajs.com/resources/recipes/marketplace/examples/vendors", + icon: ShopIcon, + }, { type: "large", title: "ERP", @@ -24,10 +31,10 @@ const HomepageRecipesSection = () => { }, { type: "large", - title: "Marketplace", - text: "Build a marketplace with multiple vendors.", - href: "https://docs.medusajs.com/resources/recipes/marketplace/examples/vendors", - icon: ShopIcon, + title: "Bundled Products", + text: "Sell products as bundles with Admin and storefront customizations.", + href: "https://docs.medusajs.com/resources/recipes/bundled-products/examples/standard", + icon: BundledProductIcon, }, { type: "large", @@ -50,13 +57,6 @@ const HomepageRecipesSection = () => { href: "https://docs.medusajs.com/resources/recipes/digital-products/examples/standard", icon: ImageBinaryIcon, }, - { - type: "large", - title: "Restock Notifications", - text: "Notify customers when a product is back in stock.", - href: "https://docs.medusajs.com/resources/recipes/commerce-automation/restock-notification", - icon: RestockIcon, - }, ] return (
diff --git a/www/packages/docs-ui/src/components/Icons/BundledProduct/index.tsx b/www/packages/docs-ui/src/components/Icons/BundledProduct/index.tsx new file mode 100644 index 0000000000..f5003f35d2 --- /dev/null +++ b/www/packages/docs-ui/src/components/Icons/BundledProduct/index.tsx @@ -0,0 +1,72 @@ +import React from "react" +import { IconProps } from "@medusajs/icons/dist/types" + +export const BundledProductIcon = (props: IconProps) => { + return ( + + + + + + + + + + + ) +} diff --git a/www/packages/docs-ui/src/components/Icons/index.tsx b/www/packages/docs-ui/src/components/Icons/index.tsx index a4e85a5d8d..a4c3f5d392 100644 --- a/www/packages/docs-ui/src/components/Icons/index.tsx +++ b/www/packages/docs-ui/src/components/Icons/index.tsx @@ -1,4 +1,5 @@ export * from "./AiAssistant" +export * from "./BundledProduct" export * from "./CalendarRefresh" export * from "./ChefHat" export * from "./CircleDottedLine" diff --git a/www/yarn.lock b/www/yarn.lock index 8406e48fcf..bc197e3064 100644 --- a/www/yarn.lock +++ b/www/yarn.lock @@ -6833,9 +6833,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.30001464, caniuse-lite@npm:^1.0.30001578, caniuse-lite@npm:^1.0.30001579, caniuse-lite@npm:^1.0.30001587": - version: 1.0.30001666 - resolution: "caniuse-lite@npm:1.0.30001666" - checksum: 2d49e9be676233c24717f12aad3d01b3e5f902b457fe1deefaa8d82e64786788a8f79381ae437c61b50e15c9aea8aeb59871b1d54cb4c28b9190d53d292e2339 + version: 1.0.30001718 + resolution: "caniuse-lite@npm:1.0.30001718" + checksum: 67f9ad09bc16443e28d14f265d6e468480cd8dc1900d0d8b982222de80c699c4f2306599c3da8a3fa7139f110d4b30d49dbac78f215470f479abb6ffe141d5d3 languageName: node linkType: hard