Vebego Component Library
<section class="org-cta-block">
    <div class="vebego-container">
        <div class="wrapper">
            <div class="first">
                <div class="wrap-info">
                    <div class="mol-title title-underline">
                        <span class="atm-heading h-subtitle">The quick brown fox jumps over the lazy dog</span>

                        <span class="atm-heading h1">The quick brown fox jumps over the lazy dog</span>

                    </div>

                    <div class="atm-paragraph text-md">
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur consectetur interdum nulla, ut pretium nibh semper sed. Vivamus porta lectus sit amet accumsan convallis. Duis hendrerit risus justo, quis euismod nisi pellentesque et. Suspendisse quis ultrices orci. Praesent vitae fermentum eros. Quisque elementum, ante nec tincidunt pellentesque, diam elit semper erat, sit amet dapibus erat risus id nisl.</p>
                    </div>

                    <a class="atm-button atm-button-primary button-md  ">
                        <span class="button-content">
                            <span>Button 1</span>

                        </span>
                        <span class="button-triangle"></span>
                    </a>

                    <a class="atm-button atm-button-secondary button-md ">
                        <span class="button-content">
                            <span>Button 2</span>
                            <span class="atm-icon  far fa-long-arrow-right   "></span>
                        </span>
                        <span class="button-underline"></span>
                    </a>

                    <a class="atm-button atm-button-secondary button-md ">
                        <span class="button-content">
                            <span>Button 3</span>
                            <span class="atm-icon  far fa-long-arrow-right   "></span>
                        </span>
                        <span class="button-underline"></span>
                    </a>

                </div>
            </div>
            <div class="second">
                <picture class="atm-image ">
                    <img class="" src="https://picsum.photos/id/250/768/432" alt="">
                </picture>
            </div>
        </div>
    </div>
</section>
<section class="org-cta-block">
  <div class="vebego-container">
    <div class="wrapper">
      <div class="first">
        <div class="wrap-info">
          {{render "@title" merge=true}}
          {{render "@paragraph"}}
          {{#each buttonsPrimary}}
            {{render "@button-primary" this merge=true}}
          {{/each}}
          {{#each buttonsSecondary}}
            {{render "@button-secondary" this merge=true}}
          {{/each}}
        </div>
      </div>
      <div class="second">
        {{render "@image" image}}
      </div>
    </div>
  </div>
</section>
{
  "buttonsPrimary": [
    {
      "text": "Button 1"
    }
  ],
  "buttonsSecondary": [
    {
      "text": "Button 2"
    },
    {
      "text": "Button 3"
    }
  ],
  "image": {
    "src": "https://picsum.photos/id/250/768/432"
  }
}
  • Content:
    .org-cta-block {
        .vebego-container {
            @apply max-w-5xl;
        }
    
        .mol-title,
        .atm-paragraph {
            @apply mb-8;
        }
    
        .wrapper {
            @apply flex flex-col;
        }
    
        .first {
            @apply relative;
            @apply z-10 mx-8;
    
            .wrap-info {
                @apply bg-white;
                @apply p-8;
            }
        }
    
        .second {
            @apply -mt-16;
            .atm-image img {
                @apply w-full;
                @apply md:w-auto;
            }
        }
    
        @screen md {
            .wrapper {
                @apply flex-row;
            }
    
            .first {
                @apply mx-0 max-w-sm;
            }
    
            .second {
                @apply mt-0 -ml-16;
            }
        }
    }
    
    .tpl-news-page,
    .tpl-blog-page,
    .tpl-vacancy-page,
    .tpl-initiative-page {
        .org-cta-block {
            .wrapper {
                display: flex;
                flex-direction: column;
            }
    
            .first {
                order: 2;
                @apply m-0;
    
                .mol-title {
                    @apply text-left;
                }
            }
    
            .second {
                order: 1;
                @apply m-0;
    
                .atm-image img {
                    @apply w-full;
                }
            }
    
            @screen md {
                .wrapper {
                    display: grid;
                    grid-auto-columns: 1fr;
                    grid-template-columns: 1fr;
                    grid-template-rows: min-content 1fr;
                    gap: 0px 0px;
                    grid-template-areas:
                        'image'
                        'text';
                }
    
                .first {
                    grid-area: text;
                }
    
                .second {
                    grid-area: image;
                }
            }
    
            @screen lg {
                .wrapper {
                    grid-auto-columns: 1fr;
                    grid-template-columns: 1fr 1fr;
                    grid-template-rows: 0.4fr 1fr;
                }
    
                .first {
                    grid-area: 2 / 1 / 3 / 2;
                }
    
                .second {
                    grid-area: 1 / 1 / 3 / 3;
                }
            }
    
            @screen xl {
                .wrapper {
                    grid-template-rows: 0.5fr 1fr;
                }
            }
        }
    }
    
  • URL: /components/raw/cta-block/cta-block.css
  • Filesystem Path: src\components\04-organisms\cta-block\cta-block.css
  • Size: 2.3 KB

No notes defined.