Skip to content

Why choose us (guarantees and commitments) in WordPress

Six commitments backed by figures (free quote, ten-year insurance, call-out within 24 hours, made in France, contractual lead time, single contact) to reassure the customers of a craftsman or small business.

Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in WordPress

features-avantages-artisan.php
<?php
/**
 * Plugin Name: Forge, Pourquoi nous choisir (garanties et engagements)
 * Description: Six engagements chiffrés (devis gratuit, garantie décennale, intervention sous 24 h, fabrication française, délai au contrat, interlocuteur unique) pour rassurer les clients d'un artisan ou d'une TPE. Ajoute la composition « Pourquoi nous choisir (garanties et engagements) » à l'éditeur de blocs.
 * Version: 1.0.0
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Forge
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: forge-features-avantages-artisan
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "fav", "layout": {"type": "default"}} -->
<section class="wp-block-group fav"><!-- wp:group {"className": "fav__head", "layout": {"type": "default"}} -->
<div class="wp-block-group fav__head"><!-- wp:paragraph {"className": "fav__eyebrow"} -->
<p class="fav__eyebrow">Nos engagements</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "fav__title", "anchor": "fav-titre"} -->
<h2 class="wp-block-heading fav__title" id="fav-titre">Pourquoi nous choisir</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "fav__intro"} -->
<p class="fav__intro">Menuiserie Lebrun fabrique et pose fenêtres, portes et volets à Angers depuis 1998. Six promesses écrites sur chaque devis, que vous pouvez vérifier.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
style.css
:root {
  --fav-text: #1f1a14;
  --fav-muted: #5b5146;
  --fav-body: #4a4037;
  --fav-card: #ffffff;
  --fav-line: #e5dcd0;
  --fav-accent: #9a3412;
  --fav-disc: #fbe9dc;
  --fav-ok: #15803d;
  --fav-btn-bg: #9a3412;
  --fav-btn-hover: #7c2d12;
  --fav-btn-text: #ffffff;

Free component: copy it freely, including for commercial projects.

Features components in WordPress
  • Three cards in saturated flat colours (yellow, pink, electric blue) with high-contrast text and a dark variant. Every colour pair is measured at AA: 5.5:1 at worst.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Six features as frosted glass cards over a slowly drifting aurora mesh gradient. Pause button, still background under prefers-reduced-motion, CSS and a light script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The key message stays pinned while the background changes colour and illustration at each scroll step. CSS sticky, a light script, stacked cards as fallback under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A six-cell bento grid: key figures, SVG sparklines, a quote and icons. All the text is in the HTML and the animation is CSS only, with no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A two-offer table: checked rows, a column highlighted from top to bottom and one call-to-action button per offer. Pure HTML and CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A magazine-style article: title band, standfirst, drop cap, subheadings and a pull quote, set in three columns of equal height. Pure CSS, no script at all.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component