Spaces:
Running
Running
Here’s a ready-to-use A/B test prompt pack tailored for a plumbing lead-gen landing page. It creates two distinct versions focused on speed, clarity, and trust signals for higher call/form conversions.
35f4881
verified
| class CustomHeader extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| } | |
| .header { | |
| background-color: #1f2937; | |
| padding: 1rem 0; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: #0ea5e9; | |
| text-decoration: none; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .logo i { | |
| margin-right: 0.5rem; | |
| } | |
| .contact-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .phone { | |
| display: flex; | |
| align-items: center; | |
| font-weight: bold; | |
| color: #f9fafb; | |
| text-decoration: none; | |
| } | |
| .phone i { | |
| margin-right: 0.5rem; | |
| color: #0ea5e9; | |
| } | |
| @media (max-width: 768px) { | |
| .contact-info { | |
| display: none; | |
| } | |
| } | |
| </style> | |
| <header class="header"> | |
| <div class="container"> | |
| <a href="/" class="logo"> | |
| <i data-feather="tool"></i> | |
| PlumbCraft Pro | |
| </a> | |
| <div class="contact-info"> | |
| <a href="tel:+1234567890" class="phone"> | |
| <i data-feather="phone"></i> | |
| (123) 456-7890 | |
| </a> | |
| </div> | |
| </div> | |
| </header> | |
| `; | |
| // Initialize Feather icons | |
| import('https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js').then(() => { | |
| feather.replace(); | |
| }); | |
| } | |
| } | |
| customElements.define('custom-header', CustomHeader); |