Skip to content

Commit

Permalink
Merge pull request #174 from e-picsa/ch-redesign
Browse files Browse the repository at this point in the history
Re-design for the options tool
  • Loading branch information
chrismclarke authored Sep 15, 2023
2 parents 8c74e0e + 9f40609 commit 3e14c9e
Show file tree
Hide file tree
Showing 47 changed files with 1,633 additions and 742 deletions.
10 changes: 5 additions & 5 deletions apps/picsa-apps/extension-app/src/app/pages/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ export class HomePage implements OnDestroy, AfterViewInit {

ngOnDestroy(): void {
this.componentsService.patchHeader({ endContent: undefined });
this.userEventSubscription.unsubscribe();
// this.userEventSubscription.unsubscribe();
}

ngAfterViewInit() {
this.componentsService.patchHeader({
endContent: new DomPortal(this.headerContent),
});
this.userEventSubscription = this.communicationService.userEvent$.subscribe(() => {
// Trigger the guided tour when the prompt event occurs
this.startTour();
});
// this.userEventSubscription = this.communicationService.userEvent$.subscribe(() => {
// // Trigger the guided tour when the prompt event occurs
// this.startTour();
// });
}

public startTour() {
Expand Down
23 changes: 0 additions & 23 deletions apps/picsa-tools/budget-tool/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,6 @@
@import './styles/typography.scss';
@import './styles/layout.scss';

// instead of using bottom use top with calc to avoid jumping
$footer-height: 5em;
.sticky-footer {
position: fixed;
height: $footer-height;
top: calc(100vh - #{$footer-height});
left: 0;
width: 100%;
background: white;
display: flex;
align-items: center;
}

button.footer-button.mat-mdc-button-base {
width: 60%;
left: 20%;
height: calc(#{$footer-height} - 10px) !important;
.mdc-button__label {
font-size: 1.5rem;
line-height: 3rem;
}
}

// used if want to use mat-stepper with fixed header and scrolling content
.scrolling-stepper {
flex: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { PicsaTranslateModule } from '@picsa/shared/modules';

// Local components
import { EditorComponent } from './editor/editor.component';
import { GenderIconComponent } from './gender-icon/gender-icon.component';
import { GenderInputComponent } from './editor/inputs/gender/gender-input';
import { InvestmentInputComponent } from './editor/inputs/investment/investment-input';
import { PerformanceInputComponent } from './editor/inputs/performance/performance-input';
import { OptionMaterialModule } from './material.module';

const Components = [EditorComponent, GenderIconComponent];
const Components = [EditorComponent, GenderInputComponent, InvestmentInputComponent, PerformanceInputComponent];

@NgModule({
imports: [
Expand Down
Loading

0 comments on commit 3e14c9e

Please sign in to comment.