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="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 |
<span *ngIf="showLabel" class="label">{{ label ?? 'Ghostfolio' }}</span></span |
||||
> |
> |
||||
|
@ -1,19 +1,25 @@ |
|||||
<div |
<a |
||||
class="card-item d-flex flex-column justify-content-between px-3 py-4 bg-dark mx-auto" |
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"> |
<div class="d-flex justify-content-end"> |
||||
<gf-logo [showLabel]="false"></gf-logo> |
<gf-logo |
||||
|
color="rgba(255, 255, 255, 1)" |
||||
|
size="large" |
||||
|
[showLabel]="false" |
||||
|
></gf-logo> |
||||
</div> |
</div> |
||||
<div class="d-flex justify-content-between"> |
<div class="d-flex justify-content-between"> |
||||
<div class="px-3"> |
<div> |
||||
<p class="card-item-heading" i18n>Card Holder</p> |
<div class="card-item-heading mb-1 text-muted" i18n>Membership</div> |
||||
<p class="card-item-name line-height-1 text-truncate">{{ name }}</p> |
<div class="card-item-name line-height-1 text-truncate">{{ name }}</div> |
||||
</div> |
</div> |
||||
<div class="px-3"> |
<div> |
||||
<p class="card-item-heading" i18n>Expires</p> |
<div class="card-item-heading mb-1 text-muted" i18n>Valid until</div> |
||||
<p class="card-item-name line-height-1 text-truncate"> |
<div class="card-item-name line-height-1 text-truncate"> |
||||
{{ expiresAt | date: 'MM/yy' }} |
{{ expiresAt }} |
||||
</p> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</a> |
||||
|
@ -1,23 +1,24 @@ |
|||||
:host { |
:host { |
||||
display: block; |
display: block; |
||||
|
max-width: 25rem; |
||||
|
|
||||
.card-item { |
.card-item { |
||||
max-width: 430px; |
aspect-ratio: 1.586; |
||||
height: 270px; |
background-color: #343a40 !important; |
||||
border-radius: 15px; |
border-radius: 1rem; |
||||
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); |
||||
|
|
||||
|
&.premium { |
||||
|
background-color: #1d2124 !important; |
||||
|
} |
||||
|
|
||||
.card-item-heading { |
.card-item-heading { |
||||
opacity: 0.7; |
|
||||
font-size: 13px; |
font-size: 13px; |
||||
margin-bottom: 5px; |
|
||||
} |
} |
||||
|
|
||||
.card-item-name { |
.card-item-name { |
||||
|
color: rgba(var(--light-primary-text)); |
||||
font-size: 18px; |
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 { CommonModule } from '@angular/common'; |
||||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
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 { MembershipCardComponent } from './membership-card.component'; |
||||
import { GfLogoModule } from '@ghostfolio/ui/logo'; |
|
||||
|
|
||||
@NgModule({ |
@NgModule({ |
||||
declarations: [MembershipCardComponent], |
declarations: [MembershipCardComponent], |
||||
exports: [MembershipCardComponent], |
exports: [MembershipCardComponent], |
||||
imports: [CommonModule, GfLogoModule], |
imports: [CommonModule, GfLogoModule, RouterModule], |
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
||||
}) |
}) |
||||
export class GfMembershipCardModule {} |
export class GfMembershipCardModule {} |
||||
|
Loading…
Reference in new issue