mirror of https://github.com/ghostfolio/ghostfolio
10 changed files with 48 additions and 42 deletions
@ -1,4 +1,8 @@ |
|||
<span class="align-items-center d-flex" |
|||
><span class="d-inline-block logo mr-1"></span> |
|||
><span |
|||
class="d-inline-block logo" |
|||
[ngClass]="{ 'mr-1': showLabel }" |
|||
[ngStyle]="{ 'background-color': color }" |
|||
></span> |
|||
<span *ngIf="showLabel" class="label">{{ label ?? 'Ghostfolio' }}</span></span |
|||
> |
|||
|
@ -1,19 +1,25 @@ |
|||
<div |
|||
class="card-item d-flex flex-column justify-content-between px-3 py-4 bg-dark mx-auto" |
|||
<a |
|||
class="card-item d-flex flex-column justify-content-between p-4" |
|||
[ngClass]="{ premium: name === 'Premium' }" |
|||
[routerLink]="routerLinkPricing" |
|||
> |
|||
<div class="d-flex justify-content-end mr-2"> |
|||
<gf-logo [showLabel]="false"></gf-logo> |
|||
<div class="d-flex justify-content-end"> |
|||
<gf-logo |
|||
color="rgba(255, 255, 255, 1)" |
|||
size="large" |
|||
[showLabel]="false" |
|||
></gf-logo> |
|||
</div> |
|||
<div class="d-flex justify-content-between"> |
|||
<div class="px-3"> |
|||
<p class="card-item-heading" i18n>Card Holder</p> |
|||
<p class="card-item-name line-height-1 text-truncate">{{ name }}</p> |
|||
<div> |
|||
<div class="card-item-heading mb-1 text-muted" i18n>Membership</div> |
|||
<div class="card-item-name line-height-1 text-truncate">{{ name }}</div> |
|||
</div> |
|||
<div class="px-3"> |
|||
<p class="card-item-heading" i18n>Expires</p> |
|||
<p class="card-item-name line-height-1 text-truncate"> |
|||
{{ expiresAt | date: 'MM/yy' }} |
|||
</p> |
|||
<div> |
|||
<div class="card-item-heading mb-1 text-muted" i18n>Valid until</div> |
|||
<div class="card-item-name line-height-1 text-truncate"> |
|||
{{ expiresAt }} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</a> |
|||
|
@ -1,23 +1,24 @@ |
|||
:host { |
|||
display: block; |
|||
max-width: 25rem; |
|||
|
|||
.card-item { |
|||
max-width: 430px; |
|||
height: 270px; |
|||
border-radius: 15px; |
|||
aspect-ratio: 1.586; |
|||
background-color: #343a40 !important; |
|||
border-radius: 1rem; |
|||
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); |
|||
|
|||
&.premium { |
|||
background-color: #1d2124 !important; |
|||
} |
|||
|
|||
.card-item-heading { |
|||
opacity: 0.7; |
|||
font-size: 13px; |
|||
margin-bottom: 5px; |
|||
} |
|||
|
|||
.card-item-name { |
|||
color: rgba(var(--light-primary-text)); |
|||
font-size: 18px; |
|||
white-space: nowrap; |
|||
max-width: 100%; |
|||
text-transform: uppercase; |
|||
margin-bottom: 3px; |
|||
} |
|||
} |
|||
} |
|||
|
@ -1,13 +1,14 @@ |
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
import { RouterModule } from '@angular/router'; |
|||
import { GfLogoModule } from '@ghostfolio/ui/logo'; |
|||
|
|||
import { MembershipCardComponent } from './membership-card.component'; |
|||
import { GfLogoModule } from '@ghostfolio/ui/logo'; |
|||
|
|||
@NgModule({ |
|||
declarations: [MembershipCardComponent], |
|||
exports: [MembershipCardComponent], |
|||
imports: [CommonModule, GfLogoModule], |
|||
imports: [CommonModule, GfLogoModule, RouterModule], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class GfMembershipCardModule {} |
|||
|
Loading…
Reference in new issue