Feature/add step by step introduction for new users (#2191)
* Add introduction for new users * Update changelogpull/2195/head
parent
e1ac5245c7
commit
b259ab7b0c
@ -1,57 +1,110 @@
|
|||||||
<div
|
<div
|
||||||
class="align-items-center container d-flex flex-column h-100 justify-content-center overview p-0 position-relative"
|
class="align-items-center container d-flex flex-column h-100 justify-content-center overview p-0 position-relative"
|
||||||
>
|
>
|
||||||
<div class="row w-100">
|
<div
|
||||||
<div class="col p-0">
|
*ngIf="hasPermissionToCreateOrder && historicalDataItems?.length === 0; else isUserActive"
|
||||||
<div class="chart-container mx-auto position-relative">
|
class="justify-content-center row w-100"
|
||||||
<div
|
>
|
||||||
*ngIf="hasPermissionToCreateOrder && historicalDataItems?.length === 0"
|
<div class="col introduction">
|
||||||
class="align-items-center d-flex h-100 justify-content-center w-100"
|
<h4 i18n>Welcome to Ghostfolio</h4>
|
||||||
|
<p i18n>Ready to take control of your personal finances?</p>
|
||||||
|
<ol class="font-weight-bold">
|
||||||
|
<li
|
||||||
|
class="mb-2"
|
||||||
|
[ngClass]="{ 'text-muted': user?.accounts?.length > 1 }"
|
||||||
>
|
>
|
||||||
<div class="d-flex justify-content-center">
|
<a class="d-block" [routerLink]="['/accounts']"
|
||||||
<gf-no-transactions-info-indicator></gf-no-transactions-info-indicator>
|
><span i18n>Setup your accounts</span><br />
|
||||||
</div>
|
<span class="font-weight-normal" i18n
|
||||||
</div>
|
>Get a comprehensive financial overview by adding your bank and
|
||||||
<gf-line-chart
|
brokerage accounts.</span
|
||||||
class="position-absolute"
|
></a
|
||||||
symbol="Performance"
|
>
|
||||||
unit="%"
|
</li>
|
||||||
[colorScheme]="user?.settings?.colorScheme"
|
<li class="mb-2">
|
||||||
[hidden]="historicalDataItems?.length === 0"
|
<a class="d-block" [routerLink]="['/portfolio', 'activities']">
|
||||||
[historicalDataItems]="historicalDataItems"
|
<span i18n>Capture your activities</span><br />
|
||||||
[isAnimated]="user?.settings?.dateRange === '1d' ? false : true"
|
<span class="font-weight-normal" i18n
|
||||||
[locale]="user?.settings?.locale"
|
>Record your investment activities to keep your portfolio up to
|
||||||
[ngClass]="{ 'pr-3': deviceType === 'mobile' }"
|
date.</span
|
||||||
[showGradient]="true"
|
></a
|
||||||
[showLoader]="false"
|
>
|
||||||
[showXAxis]="false"
|
</li>
|
||||||
[showYAxis]="false"
|
<li class="mb-2">
|
||||||
></gf-line-chart>
|
<a class="d-block" [routerLink]="['/portfolio']">
|
||||||
|
<span i18n>Monitor and analyze your portfolio</span><br />
|
||||||
|
<span class="font-weight-normal" i18n
|
||||||
|
>Track your progress in real-time with comprehensive analysis and
|
||||||
|
insights.</span
|
||||||
|
>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
<a
|
||||||
|
*ngIf="user?.accounts?.length === 1"
|
||||||
|
color="primary"
|
||||||
|
mat-flat-button
|
||||||
|
[routerLink]="['/accounts']"
|
||||||
|
>
|
||||||
|
<ng-container i18n>Setup accounts</ng-container>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
*ngIf="user?.accounts?.length > 1"
|
||||||
|
color="primary"
|
||||||
|
mat-flat-button
|
||||||
|
[routerLink]="['/portfolio', 'activities']"
|
||||||
|
>
|
||||||
|
<ng-container i18n>Add activity</ng-container>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="overview-container row mt-1">
|
<ng-template #isUserActive>
|
||||||
<div class="col">
|
<div class="row w-100">
|
||||||
<gf-portfolio-performance
|
<div class="col p-0">
|
||||||
class="pb-4"
|
<div class="chart-container mx-auto position-relative">
|
||||||
[baseCurrency]="user?.settings?.baseCurrency"
|
<gf-line-chart
|
||||||
[deviceType]="deviceType"
|
class="position-absolute"
|
||||||
[errors]="errors"
|
symbol="Performance"
|
||||||
[isAllTimeHigh]="isAllTimeHigh"
|
unit="%"
|
||||||
[isAllTimeLow]="isAllTimeLow"
|
[colorScheme]="user?.settings?.colorScheme"
|
||||||
[isLoading]="isLoadingPerformance"
|
[hidden]="historicalDataItems?.length === 0"
|
||||||
[locale]="user?.settings?.locale"
|
[historicalDataItems]="historicalDataItems"
|
||||||
[performance]="performance"
|
[isAnimated]="user?.settings?.dateRange === '1d' ? false : true"
|
||||||
[showDetails]="showDetails"
|
[locale]="user?.settings?.locale"
|
||||||
></gf-portfolio-performance>
|
[ngClass]="{ 'pr-3': deviceType === 'mobile' }"
|
||||||
<div *ngIf="showDetails" class="text-center">
|
[showGradient]="true"
|
||||||
<gf-toggle
|
[showLoader]="false"
|
||||||
[defaultValue]="user?.settings?.dateRange"
|
[showXAxis]="false"
|
||||||
|
[showYAxis]="false"
|
||||||
|
></gf-line-chart>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="overview-container row mt-1">
|
||||||
|
<div class="col">
|
||||||
|
<gf-portfolio-performance
|
||||||
|
class="pb-4"
|
||||||
|
[baseCurrency]="user?.settings?.baseCurrency"
|
||||||
|
[deviceType]="deviceType"
|
||||||
|
[errors]="errors"
|
||||||
|
[isAllTimeHigh]="isAllTimeHigh"
|
||||||
|
[isAllTimeLow]="isAllTimeLow"
|
||||||
[isLoading]="isLoadingPerformance"
|
[isLoading]="isLoadingPerformance"
|
||||||
[options]="dateRangeOptions"
|
[locale]="user?.settings?.locale"
|
||||||
(change)="onChangeDateRange($event.value)"
|
[performance]="performance"
|
||||||
></gf-toggle>
|
[showDetails]="showDetails"
|
||||||
|
></gf-portfolio-performance>
|
||||||
|
<div *ngIf="showDetails" class="text-center">
|
||||||
|
<gf-toggle
|
||||||
|
[defaultValue]="user?.settings?.dateRange"
|
||||||
|
[isLoading]="isLoadingPerformance"
|
||||||
|
[options]="dateRangeOptions"
|
||||||
|
(change)="onChangeDateRange($event.value)"
|
||||||
|
></gf-toggle>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in new issue