Skip to content
The Chat Archive
Qwenqwen3-235b-a22b· Alibaba (Qwen)Hugging Face LMArena Human Preference 140K

I also need a minimal product promotion, where i select a product and relevant data like…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with DeepSeekdeepseek-r1-0528’s answer.
  1. User

    I also need a minimal product promotion, where i select a product and relevant data like the price is pre filled and a link to the full product page is displayed. it should also catch the users attention

  2. Qwen Assistant

    Here's a minimalist product promotion section that dynamically displays product details and catches attention with visual hierarchy:

    {% comment %}
      Minimal Product Promotion
      Features:
      - Automatically loads product data
      - Clean, attention-grabbing design
      - Responsive layout
      - Visual indicators for price and availability
    {% endcomment %}
    
    <style>
      .product-promo {
        background-color: {{ section.settings.bg_color | default: '#fff' }};
        padding: 40px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        max-width: 800px;
        margin: 0 auto;
      }
    
      .product-promo__inner {
        display: flex;
        gap: 30px;
        align-items: center;
        flex-wrap: wrap;
      }
    
      .product-promo__image {
        flex: 1 1 300px;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
      }
    
      .product-promo__image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
      }
    
      .product-promo__image:hover img {
        transform: scale(1.05);
      }
    
      .product-promo__content {
        flex: 1 1 300px;
        padding: 20px;
      }
    
      .product-promo__badge {
        background-color: {{ section.settings.badge_bg_color | default: '#e53e3e' }};
        color: {{ section.settings.badge_text_color | default: '#fff' }};
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 1rem;
      }
    
      .product-promo__title {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: {{ section.settings.text_color | default: '#1a1a1a' }};
      }
    
      .product-promo__price {
        font-size: 1.5rem;
        font-weight: 600;
        color: {{ section.settings.price_color | default: '#1a1a1a' }};
        margin-bottom: 1.5rem;
        display: block;
      }
    
      .product-promo__compare-price {
        color: #777;
        text-decoration: line-through;
        margin-left: 8px;
        font-size: 0.9em;
      }
    
      .product-promo__button {
        display: inline-block;
        padding: 12px 24px;
        background-color: {{ section.settings.button_bg_color | default: '#1a1a1a' }};
        color: {{ section.settings.button_text_color | default: '#fff' }};
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
      }
    
      .product-promo__button::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.3), transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
      }
    
      .product-promo__button:hover {
        background-color: {{ section.settings.button_bg_color | default: '#1a1a1a' | color_darken: 10 }};
        transform: translateY(-2px);
      }
    
      .product-promo__button:hover::after {
        opacity: 1;
      }
    
      @media (max-width: 768px) {
        .product-promo__inner {
          flex-direction: column;
          text-align: center;
        }
    
        .product-promo__content {
          text-align: center;
          padding: 15px 0;
        }
      }
    </style>
    
    <div class="product-promo">
      <div class="product-promo__inner">
        {% assign product = all_products[section.settings.product] %}
        
        {% if product %}
          <div class="product-promo__image">
            <a href="{{ product.url }}">
              {{ product.featured_image | image_url: width: 600 | image_tag: loading: 'lazy' }}
            </a>
            {% if product.compare_at_price_max > product.price %}
              <span class="product-promo__badge">Sale</span>
            {% endif %}
          </div>
    
          <div class="product-promo__content">
            <h3 class="product-promo__title">
              <a href="{{ product.url }}" style="color: inherit; text-decoration: none;">
                {{ product.title }}
              </a>
            </h3>
    
            <div>
              <span class="product-promo__price">
                {{ product.price | money }}
                {% if product.compare_at_price_max > product.price %}
                  <span class="product-promo__compare-price">
                    {{ product.compare_at_price_max | money }}
                  </span>
                {% endif %}
              </span>
            </div>
    
            <a href="{{ product.url }}" class="product-promo__button">
              {{ section.settings.button_text | default: 'View Product' }}
            </a>
          </div>
        {% else %}
          <div class="product-promo__content">
            <p>Select a product in the theme editor to activate this promotion section.</p>
          </div>
        {% endif %}
      </div>
    </div>
    
    {% schema %}
    {
      "name": "Minimal Product Promotion",
      "settings": [
        {
          "type": "product",
          "id": "product",
          "label": "Select Product"
        },
        {
          "type": "text",
          "id": "button_text",
          "label": "Button Text",
          "default": "View Product"
        },
        {
          "type": "color",
          "id": "bg_color",
          "label": "Background Color",
          "default": "#ffffff"
        },
        {
          "type": "color",
          "id": "text_color",
          "label": "Text Color",
          "default": "#1a1a1a"
        },
        {
          "type": "color",
          "id": "price_color",
          "label": "Price Color",
          "default": "#1a1a1a"
        },
        {
          "type": "color",
          "id": "button_bg_color",
          "label": "Button Background Color",
          "default": "#1a1a1a"
        },
        {
          "type": "color",
          "id": "button_text_color",
          "label": "Button Text Color",
          "default": "#ffffff"
        },
        {
          "type": "color",
          "id": "badge_bg_color",
          "label": "Sale Badge Background",
          "default": "#e53e3e"
        },
        {
          "type": "color",
          "id": "badge_text_color",
          "label": "Sale Badge Text Color",
          "default": "#ffffff"
        }
      ],
      "presets": [
        {
          "name": "Minimal Product Promotion",
          "category": "Product"
        }
      ]
    }
    {% endschema %}
    

    Key Features:

    1. Dynamic Product Data:

      • Automatically pulls product title, price, image, and URL
      • Shows sale badge when there's a discount
      • Displays comparison price when available
    2. Attention-Grabbing Design:

      • Card-style layout with subtle shadow
      • Price emphasis with larger font size
      • Interactive hover effects on image and button
      • Optional sale badge for urgency
    3. Minimalist Approach:

      • Clean typography with ample white space
      • Limited color palette
      • No unnecessary elements
      • Responsive design that adapts to mobile
    4. Customization Options:

      • Product selection via theme editor
      • Button text customization
      • Color scheme customization
      • Visual indicators for pricing and sales

    How to Use:

    1. Save this as minimal-product-promotion.liquid in your theme's sections folder
    2. Add to your template with:
      {% section 'minimal-product-promotion' %}
      
    3. In Theme Editor:
      • Select a product from your store
      • Customize colors to match your brand
      • Set button text (defaults to "View Product")
      • Adjust background colors for different visual impact

    Best Practices:

    • Use high-quality product images
    • Place near the top of your homepage for maximum visibility
    • Update products seasonally or during sales
    • Use contrasting colors between background and text
    • Keep the layout simple to maintain the minimalist aesthetic

    Optional Enhancements:

    • Add product reviews/rating display
    • Include limited-time offer countdown
    • Add iconography for features (e.g., free shipping)
    • Implement multi-product carousel
    • Add animation on scroll into view

    This section will automatically update with product changes, ensuring consistent information across your store. The clean design focuses attention on the product while providing clear pricing and a prominent call-to-action.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.