<div class="card card-profile mb-4 ">
              <!-- maxh298: background sollte eher Breitformatbild sein, max. Darstellungshöhe: 149px, maxh298 ist Puffer für 1:2 Verhältnis -->
              <div class="card-header bg-secondary" style="background-image: url('http://localhost:3000/dist/img/samantha-stortecky-sP5CaWEN7Do-unsplash.jpg?p=maxh298'); "></div>
              <div class="card-body text-center">
                  <a href="https://styleguide.youthweb.net/components/preview/user">
                      <img class="card-profile-img" src="https://eu.ui-avatars.com/api/?name=John+Doe&p=square94">
                  </a>

                  <h6 class="card-title">
                      <a class="text-inherit" href="https://styleguide.youthweb.net/components/preview/user">John Doe</a>
                  </h6>

                  <p class="mb-4">Ut nam fabulas ponderum assentior</p><!-- Verhältnis zu Lebensmotto? -->

                  <ul class="card-menu">
                      <li class="card-menu-item">
                          <a href="https://styleguide.youthweb.net/components/preview/friends" class="text-inherit">
                              <!--@Frontend Integration: URL aus Profile -->
                              Freunde
                              <h6 class="my-0">17</h6>
                          </a>
                      </li>

                      <li class="card-menu-item">
                          <a href="https://styleguide.youthweb.net/components/preview/participation/hall-of-fame" class="text-inherit">
                              CP
                              <h6 class="my-0">352</h6>
                          </a>
                      </li>
                  </ul>
              </div>
          </div>
          <div class="card mb-4">
              <div class="card-body">
                  <h6 class="card-title">Über mich<small> · <a href="https://styleguide.youthweb.net/components/preview/user">Zum Steckbrief</a></small></h6>
                  <p><i class="fas fa-user fa-fw"></i> Angemeldet vor 5 Jahren
                  </p>
                  <p>
                      <i class="fas fa-star fa-fw"></i> 21.02.1995 (32 Jahre alt)
                  </p>
                  <p>
                      <i class="fas fa-user-friends fa-fw"></i> Gruppen: <a href="https://styleguide.youthweb.net/components/preview/groups/1234">Github</a>
                  </p>
              </div>
          </div>
<div class="card card-profile mb-4 ">
            <!-- maxh298: background sollte eher Breitformatbild sein, max. Darstellungshöhe: 149px, maxh298 ist Puffer für 1:2 Verhältnis -->
            <div class="card-header bg-secondary" style="{% if auth_profile.background %}background-image: url('{{ auth_profile.background|withPreset('maxh298') }}'); {% endif %}"></div>
            <div class="card-body text-center">
              <a href="{{ url('legacy', {'route':'users/'~auth_profile.id}) }}">
                <img class="card-profile-img" src="{{ auth_profile.picture_url|withPreset('square94') }}">
              </a>

              <h6 class="card-title">
                <a class="text-inherit" href="{{ url('legacy', {'route':'users/'~auth_profile.id}) }}">{{ auth_profile.username }}</a>
              </h6>

              <p class="mb-4">{{ auth_profile.picture_description }}</p><!-- Verhältnis zu Lebensmotto? -->

              <ul class="card-menu">
                <li class="card-menu-item">
                  <a href="{{ url('legacy', {'route':'users/'~auth_profile.id~'/friends'}) }}" class="text-inherit"><!--@Frontend Integration: URL aus Profile -->
                    {{ 'Freunde'|trans }}
                    <h6 class="my-0">{{ auth_profile.friends_count }}</h6>
                  </a>
                </li>

                <li class="card-menu-item">
                  <a href="{{ url('participation_hall_of_fame') }}" class="text-inherit">
                    {{ 'CP'|trans }}
                    <h6 class="my-0">{{ auth_profile.community_points_count }}</h6>
                  </a>
                </li>
              </ul>
            </div>
          </div>
          <div class="card mb-4">
            <div class="card-body">
              <h6 class="card-title">{{ 'Über mich'|trans }}<small> · <a href="{{ url('legacy', {'route':'users/'~auth_profile.id}) }}">{{ 'Zum Steckbrief'|trans }}</a></small></h6>
              <p><i class="fas fa-user fa-fw"></i> {{ 'Angemeldet vor 1 Jahr|Angemeldet vor %count% Jahren'|trans({'%count%':auth_profile.created_years_ago}) }}
              </p>
              <p>
                <i class="fas fa-star fa-fw"></i> {{ '%date% (%years% Jahre alt)'|trans({'%date%':auth_profile.birthday|date("d.m.Y"), '%years%':auth_profile.age_in_years}) }}
              </p>
              <p>
                <i class="fas fa-user-friends fa-fw"></i> {{ 'Gruppen:'|trans }} {% for group_data in auth_profile.groups %}<a href="{{ url('legacy', {'route':'groups/'~group_data.id}) }}">{{ group_data.name }}</a>{% if not loop.last %}, {% endif %}{% else %}{{ 'Keine'|trans }}{% endfor %}
              </p>
            </div>
          </div>
{
  "auth_profile": {
    "id": "12345",
    "username": "John Doe",
    "picture_url": "https://eu.ui-avatars.com/api/?name=John+Doe",
    "picture_description": "Ut nam fabulas ponderum assentior",
    "background": "http://localhost:3000/dist/img/samantha-stortecky-sP5CaWEN7Do-unsplash.jpg",
    "community_points_count": 352,
    "friends_count": 17,
    "birthday": "1995-02-21",
    "age_in_years": "32",
    "created_years_ago": "5",
    "groups": [
      {
        "id": 1234,
        "name": "Github"
      }
    ]
  }
}

No notes defined.