This is some text inside of a div block.

1 Column Promo Banner with Text Align Center

Customizable promo banner for e-commerce interfaces. Boost conversions with central text alignment, perfect for promoting special deals or offers.
tiny
small
medium
large
tiny
small
medium
large
tiny
small
medium
large
Code
index
.html
styles
.css
scripts
.js
Member Exclusive
Files
component
index
.html
styles
.css
scripts
.js
component/app-sidebar.tsx
1import { createWorkflow, transform, when, WorkflowResponse } from "@medusajs/framework/workflows-sdk"
2import { ProductDTO } from "@medusajs/framework/types"
3import { createRemoteLinkStep } from "@medusajs/medusa/core-flows"
4import { Modules } from "@medusajs/framework/utils"
5import { HELLO_MODULE } from "../../modules/hello"
6import { createCustomStep } from "./steps/create-custom"
7
8export type CreateCustomFromProductWorkflowInput = {
9  product: ProductDTO
10  additional_data?: {
11    custom_name?: string
12  }
13}
14
15export const createCustomFromProductWorkflow = createWorkflow(
16  "create-custom-from-product",
17  (input: CreateCustomFromProductWorkflowInput) => {
18    const customName = transform(
19      {
20        input,
21      },
22      (data) => data.input.additional_data.custom_name || ""
23    )
24
25    const custom = createCustomStep({
26      custom_name: customName,
27    })
28
29    when(({ custom }), ({ custom }) => custom !== undefined)
30      .then(() => {
31        createRemoteLinkStep([{
32          [Modules.PRODUCT]: {
33            product_id: input.product.id,
34          },
35          [HELLO_MODULE]: {
36            custom_id: custom.id,
37          },
38        }])
39      })
40
41    return new WorkflowResponse({
42      custom,
43    })
44  }
45)
A versatile promo banner designed for e-commerce platforms, perfect for showcasing special promotions, welcome kits, or exclusive offers. This component is optimized for conversion by catching user attention with centered text, ensuring key messages stand out. Ideal for enhancing customer engagement and boosting checkout rates on any retail interface. The single-column layout is perfect for mobile commerce, providing seamless integration and responsiveness.

Dependencies

No items found.

Features

Ensures every component adapts seamlessly to different screen sizes, from desktops to mobile devices, for a smooth user experience.
Color Styles are re-usable colors. They allow you to centrally manage how the colors on your site look. You can update the look and feel of your site in one easy step.
Use custom css. Don't worry, they will be included in a Embed HTML Block

Keywords

promo banner, e-commerce UI/UX, conversion optimization, shopping interface, customer engagement, mobile commerce, product display
Component details:
Category
Promo Banners
Type
Section
License
Pro
Created at
December 9, 2024
Updated at
February 11, 2025
Need help?
Join our Discord community and ask for help. Make sure to share a read-only link to your Webflow project.
Join our Discord

Screenshots

Promotion 5 Desktop View
Promotion 5 Mobile View

Related Templates

Sorry, there are no related templates.
We are working hard to provide you the best collection of Ecommerce UI Components.
Component details:
License
Pro
Created at
12/9/2024
Updated at
2/11/2025
Need help?
Join our Slack community and ask for help. Make sure to share a read-only link to your Webflow project.
Join our Slack