Service item – aktivní služba

V kartě Aktivní služby

  • Aktivní služby

    Co z peněženky pravidelně platíte.
    Realitní hlídač Expres
    Máte 6 aktivních realitních hlídačů
    Spravovat
    Inzerce nemovitostí
    Máte 3 aktivní inzeráty
    Spravovat
  •         {% embed "@Components/user-card/user-card.twig" with { props: {
      title: "Aktivní služby",
      subtitle: "Co z peněženky pravidelně platíte.",
      variant: "narrow"
    } } %}
      {% block body %}
        {% include "@Components/service-item/service-item.twig" with { props: {
          icon: { src: "svg/user-section/bolt.svg" },
          title: "Realitní hlídač Expres",
          text: "Máte 6 aktivních realitních hlídačů",
          button: { title: "Spravovat", url: "#", label: "Spravovat Realitní hlídač Expres" }
        } } %}
        {% include "@Components/service-item/service-item.twig" with { props: {
          icon: { src: "svg/user-section/notes.svg" },
          title: "Inzerce nemovitostí",
          text: "Máte 3 aktivní inzeráty",
          button: { title: "Spravovat", url: "#", label: "Spravovat Inzerci nemovitostí" }
        } } %}
      {% endblock %}
    {% endembed %}
    
          
  •           <section class="user-card user-card--narrow">    <header class="user-card__header">
                <div class="user-card__heading">
            <h2 class="user-card__title">Aktivní služby</h2>
                      <div class="user-card__subtitle">Co z peněženky pravidelně platíte.</div>
                  </div>
          <div class="user-card__aside"></div>
        </header>
      
      
      <div class="user-card__panel">
        <div class="user-card__body">
              <div class="service-item user-card__row">
          <span class="service-item__icon" aria-hidden="true">
          <span class="icon">
          <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path d="M11.5 2L5 11h4l-1 7 6.5-9h-4l1-7z"/></svg>
      
      </span>
        </span>
        <div class="service-item__body">
        <div class="service-item__title">Realitní hlídač Expres</div>
              <div class="service-item__text">Máte 6 aktivních realitních hlídačů</div>
          </div>
          <a class="user-action-btn service-item__action" href="#" aria-label="Spravovat Realitní hlídač Expres">Spravovat</a>
      </div>
        <div class="service-item user-card__row">
          <span class="service-item__icon" aria-hidden="true">
          <span class="icon">
          <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="12" height="14" rx="1.5"/><path d="M7 7h6M7 10.5h6M7 14h3"/></svg>
      
      </span>
        </span>
        <div class="service-item__body">
        <div class="service-item__title">Inzerce nemovitostí</div>
              <div class="service-item__text">Máte 3 aktivní inzeráty</div>
          </div>
          <a class="user-action-btn service-item__action" href="#" aria-label="Spravovat Inzerci nemovitostí">Spravovat</a>
      </div>
          </div>
    
        
        
        
        
          </div>
    </section>
    
            

Schema

    {
  "props": {
    "icon": {
      "type": "object",
      "description": "{ src } – inline SVG ikona v kruhu (blesk = Expres, dokument = Inzerce)"
    },
    "title": {
      "type": "string",
      "description": "Název služby. Texty se vypisují bez escapování – escapuje aplikace."
    },
    "text": {
      "type": "string",
      "description": "Hotový popis, např. „Máte 6 aktivních realitních hlídačů“"
    },
    "button": {
      "type": "object",
      "description": "{ title, url, label, attributes[] } – outline odkaz „Spravovat“; label je aria-label (např. „Spravovat Realitní hlídač Expres“)"
    },
    "extraClass": {
      "type": "string",
      "description": "Extra CSS class"
    }
  }
}