11.26c11v06 Create a Pill-Shaped Call-to-Action Band with List Section

Description

  • Need a “Let’s talk” banner before the footer? Use a List Section’s title and button, and this CSS turns them into a rounded CTA strip with three decorative dots, stacking neatly on tablet and mobile.
  • buy me a coffee

11 26c11v06

#1. Install Code

#1.1. First you need to add List (Team Section)

10.26c21v04 Team 267 Style 01 4 Columns

#1.2. Enable these options

11 26c11v06

#1.3. Make sure you removed all default items

11 26c11v06

#1.4. Add your desired section title text. Make words italic, then code will change its color.

11 26c11v06

#1.5. And add your desired button

11 26c11v06

#1.6. Hover on top right of section > Click EDIT SECTION > at Format > Anchor Link > enter word: team04-s03

11 26c11v06

#1.7. Use this code to Page Header Injection

<!-- 11.26c11v06 Create a Pill-Shaped Call-to-Action Band with List Section -->
<style>
#team04-s03 {
  --band-background: #47333D;
  --band-padding: 56px 60px;
  --band-padding-mobile: 44px 26px;
  --band-radius: 220px / 140px;
  --band-radius-tablet: 40px;
  --band-gap: 50px;
  --band-space-above: 80px;
  --band-space-below: 80px;
  --band-space-side: 40px;
  --band-space-side-mobile: 20px;
  --dot-size: 34px;
  --dot-gap: 8px;
  --dot-ring-width: 2px;
  --dot-ring-color: rgba(251, 246, 241, .25);
  --dot1-color: #F3E1DB;
  --dot2-color: #C98A86;
  --dot3-color: #A9B39B;
  --title-color: #FBF6F1;
  --title-italic-color: #E8C4BD;
  --text-size: 16px;
  --text-color: rgba(251, 246, 241, .75);
  --text-space-above: 10px;
  --button-text-size: 12px;
  --button-weight: 400;
  --button-letter-spacing: .2em;
  --button-padding: 15px 30px;
  --button-radius: 999px;
  --button-color: #47333D;
  --button-background: #FBF6F1;
  --button-border-color: #FBF6F1;
  --button-hover-color: #47333D;
  --button-hover-background: #E8C4BD;
  --button-hover-border-color: #E8C4BD;
  .user-items-list {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: var(--band-gap);
    align-items: center;
    box-sizing: border-box;
    margin: var(--band-space-above) var(--band-space-side) var(--band-space-below);
    padding: var(--band-padding) !important;
    border-radius: var(--band-radius);
    background-color: var(--band-background);
    &::before {
      content: "";
      grid-column: 1;
      grid-row: 1;
      width: calc(var(--dot-size) * 3 + var(--dot-gap) * 2);
      height: var(--dot-size);
      background:
        radial-gradient(circle closest-side, var(--dot1-color) calc(100% - var(--dot-ring-width)), var(--dot-ring-color) calc(100% - var(--dot-ring-width)) 100%, transparent 100%) 0 0 / var(--dot-size) var(--dot-size) no-repeat,
        radial-gradient(circle closest-side, var(--dot2-color) calc(100% - var(--dot-ring-width)), var(--dot-ring-color) calc(100% - var(--dot-ring-width)) 100%, transparent 100%) calc(var(--dot-size) + var(--dot-gap)) 0 / var(--dot-size) var(--dot-size) no-repeat,
        radial-gradient(circle closest-side, var(--dot3-color) calc(100% - var(--dot-ring-width)), var(--dot-ring-color) calc(100% - var(--dot-ring-width)) 100%, transparent 100%) calc((var(--dot-size) + var(--dot-gap)) * 2) 0 / var(--dot-size) var(--dot-size) no-repeat;
    }
  }
  .list-section-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    text-align: left;
    > p:nth-of-type(1) {
      margin: 0;
      color: var(--title-color);
      em {
        color: var(--title-italic-color);
      }
    }
    > p:nth-of-type(2) {
      margin: var(--text-space-above) 0 0;
      font-family: var(--body-font-font-family);
      font-size: var(--text-size);
      font-weight: var(--body-font-font-weight);
      font-style: var(--body-font-font-style);
      line-height: var(--body-font-line-height);
      letter-spacing: var(--body-font-letter-spacing);
      color: var(--text-color);
    }
  }
  .user-items-list-item-container {
    display: none;
  }
  .list-section-button-container {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    padding: 0;
  }
  .list-section-button {
    padding: var(--button-padding);
    border: 1px solid var(--button-border-color);
    border-radius: var(--button-radius);
    background-color: var(--button-background);
    color: var(--button-color);
    font-family: var(--body-font-font-family);
    font-size: var(--button-text-size);
    font-weight: var(--button-weight);
    line-height: 1.2;
    letter-spacing: var(--button-letter-spacing);
    transition: background-color .3s, border-color .3s, color .3s;
    &:hover {
      border-color: var(--button-hover-border-color);
      background-color: var(--button-hover-background);
      color: var(--button-hover-color);
      opacity: 1;
    }
  }
  @media (max-width: 900px) {
    .user-items-list {
      grid-template-columns: 1fr;
      row-gap: 30px;
      justify-items: center;
      border-radius: var(--band-radius-tablet);
      &::before {
        grid-row: auto;
        grid-column: 1;
      }
    }
    .list-section-title,
    .list-section-button-container {
      grid-column: 1;
      grid-row: auto;
      text-align: center;
    }
  }
  @media (max-width: 640px) {
    .user-items-list {
      margin-left: var(--band-space-side-mobile);
      margin-right: var(--band-space-side-mobile);
      padding: var(--band-padding-mobile) !important;
    }
  }
}
</style>

11 26c11v06

#2. Customize

#2.1. To change whole section background color/padding inside section/rounded corners, change this line

--band-background: #47333D;
--band-padding: 56px 60px;
--band-padding-mobile: 44px 26px;
--band-radius: 220px / 140px;
--band-radius-tablet: 40px;

#2.2. To change gap between 3 Dots – Text – Button, space around section, change this

--band-gap: 50px;
--band-space-above: 80px;
--band-space-below: 80px;
--band-space-side: 40px;
--band-space-side-mobile: 20px;

#2.3. To change 3 dots color/size/gap, change this

--dot-size: 34px;
--dot-gap: 8px;
--dot-ring-width: 2px;
--dot-ring-color: rgba(251, 246, 241, .25);
--dot1-color: #F3E1DB;
--dot2-color: #C98A86;
--dot3-color: #A9B39B;

#2.4. To change Section Title text style, change this

--title-color: #FBF6F1;
--title-italic-color: #E8C4BD;
--text-size: 16px;
--text-color: rgba(251, 246, 241, .75);
--text-space-above: 10px;

#2.5. To change Button Style, change this

--button-text-size: 12px;
--button-weight: 400;
--button-letter-spacing: .2em;
--button-padding: 15px 30px;
--button-radius: 999px;
--button-color: #47333D;
--button-background: #FBF6F1;
--button-border-color: #FBF6F1;
--button-hover-color: #47333D;
--button-hover-background: #E8C4BD;
--button-hover-border-color: #E8C4BD;

 

 

Buy me a coffee