<a *ngIf="portalLink!=='nfv/'" 
    class="card" style="background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #ffffff 75%), 
    url({{backgroundImage}}) no-repeat center center #aeaeae;
    background-size: cover;" [routerLink]="portalLink" [attr.data-cy]="dataCY" >
    <div class="empty-space"></div>
    <div class="status-stats">{{portalTitle}}</div>
    <div class="card-link">
        <a class="portal-button">
            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
                <path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/>
                <path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/>
            </svg>
        </a>
    </div>
</a>

<a *ngIf="portalLink==='nfv/'"
class="card" style="background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #ffffff 75%), 
    url({{backgroundImage}}) no-repeat center center #aeaeae;
    background-size: cover;" href="/nfvportal" [attr.data-cy]="dataCY" >
    <div class="empty-space"></div>
    <div class="status-stats">{{portalTitle}}</div>
    <div class="card-link">
        <a class="portal-button">
            <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
                <path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/>
                <path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/>
            </svg>
        </a>
    </div>
</a>