added btn back component
This commit is contained in:
parent
844305b383
commit
260261a9a6
12 changed files with 65 additions and 28 deletions
|
|
@ -2,11 +2,12 @@ import { Component, Input } from '@angular/core';
|
||||||
import { ContactFormComponent } from '../contact-form/contact-form.component';
|
import { ContactFormComponent } from '../contact-form/contact-form.component';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { UserService } from '../../../services/user.service';
|
import { UserService } from '../../../services/user.service';
|
||||||
|
import { BtnBackComponent } from '../../../shared/components/buttons/btn-back/btn-back.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-contact-edit',
|
selector: 'app-contact-edit',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule, ContactFormComponent],
|
imports: [CommonModule, ContactFormComponent, BtnBackComponent],
|
||||||
templateUrl: './contact-edit.component.html',
|
templateUrl: './contact-edit.component.html',
|
||||||
styleUrl: './contact-edit.component.scss',
|
styleUrl: './contact-edit.component.scss',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<img (click)="backClicked()" src="./../../../../assets/img/arrow-left.svg" />
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-left: 48px;
|
||||||
|
&:hover {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
background-color: var(--light-gray);
|
||||||
|
border-radius: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { BtnBackComponent } from './btn-back.component';
|
||||||
|
|
||||||
|
describe('BtnBackComponent', () => {
|
||||||
|
let component: BtnBackComponent;
|
||||||
|
let fixture: ComponentFixture<BtnBackComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [BtnBackComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(BtnBackComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { Location } from '@angular/common';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-btn-back',
|
||||||
|
standalone: true,
|
||||||
|
imports: [RouterModule],
|
||||||
|
templateUrl: './btn-back.component.html',
|
||||||
|
styleUrl: './btn-back.component.scss',
|
||||||
|
})
|
||||||
|
export class BtnBackComponent {
|
||||||
|
constructor(private location: Location) {}
|
||||||
|
|
||||||
|
backClicked() {
|
||||||
|
this.location.back();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
<section>
|
<section>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ "help.header" | translate }}</h1>
|
<h1>{{ "help.header" | translate }}</h1>
|
||||||
<img
|
<app-btn-back></app-btn-back>
|
||||||
(click)="backClicked()"
|
|
||||||
src="./../../../../assets/img/arrow-left.svg"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
{{ "help.welcome" | translate }}
|
{{ "help.welcome" | translate }}
|
||||||
|
|
|
||||||
|
|
@ -32,18 +32,6 @@ h3 {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
img {
|
|
||||||
width: 32px;
|
|
||||||
height: 32px;
|
|
||||||
cursor: pointer;
|
|
||||||
margin-left: 48px;
|
|
||||||
&:hover {
|
|
||||||
width: 36px;
|
|
||||||
height: 36px;
|
|
||||||
background-color: var(--light-gray);
|
|
||||||
border-radius: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-table {
|
.content-table {
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,12 @@ import { Component } from '@angular/core';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { Location } from '@angular/common';
|
import { Location } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-help',
|
selector: 'app-help',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [RouterModule, TranslateModule],
|
imports: [RouterModule, TranslateModule, BtnBackComponent],
|
||||||
templateUrl: './help.component.html',
|
templateUrl: './help.component.html',
|
||||||
styleUrl: './help.component.scss',
|
styleUrl: './help.component.scss',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ "imprint.headline" | translate }}</h1>
|
<h1>{{ "imprint.headline" | translate }}</h1>
|
||||||
<img
|
<app-btn-back></app-btn-back>
|
||||||
(click)="backClicked()"
|
|
||||||
src="./../../../../assets/img/arrow-left.svg"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
{{ "imprint.tmg" | translate }}
|
{{ "imprint.tmg" | translate }}
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Location } from '@angular/common';
|
import { Location } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-imprint',
|
selector: 'app-imprint',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [TranslateModule],
|
imports: [TranslateModule, BtnBackComponent],
|
||||||
templateUrl: './imprint.component.html',
|
templateUrl: './imprint.component.html',
|
||||||
styleUrl: './imprint.component.scss',
|
styleUrl: './imprint.component.scss',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ "privacy-policy.headline" | translate }}</h1>
|
<h1>{{ "privacy-policy.headline" | translate }}</h1>
|
||||||
<img
|
<app-btn-back></app-btn-back>
|
||||||
(click)="backClicked()"
|
|
||||||
src="./../../../../assets/img/arrow-left.svg"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<h2 id="'content0">
|
<h2 id="'content0">
|
||||||
{{ "privacy-policy.preambleHeadline" | translate }}
|
{{ "privacy-policy.preambleHeadline" | translate }}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Location } from '@angular/common';
|
import { Location } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-privacy-policy',
|
selector: 'app-privacy-policy',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [TranslateModule],
|
imports: [TranslateModule, BtnBackComponent],
|
||||||
templateUrl: './privacy-policy.component.html',
|
templateUrl: './privacy-policy.component.html',
|
||||||
styleUrl: './privacy-policy.component.scss',
|
styleUrl: './privacy-policy.component.scss',
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue