responsive
This commit is contained in:
parent
c9ea8234b9
commit
907075e31b
7 changed files with 60 additions and 15 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 36px;
|
||||||
a {
|
a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
width: 110px;
|
width: 110px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--light-blue);
|
color: var(--light-blue);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<section>
|
<section [ngClass]="{ 'router-padding': this.isRouteLogin }">
|
||||||
<div>
|
<div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ "imprint.headline" | translate }}</h1>
|
<h1>{{ "imprint.headline" | translate }}</h1>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@ section {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.router-padding {
|
||||||
|
padding: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
@ -73,4 +77,8 @@ a {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 27px;
|
font-size: 27px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.router-padding {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,33 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Location } from '@angular/common';
|
import { CommonModule, 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';
|
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-imprint',
|
selector: 'app-imprint',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [TranslateModule, BtnBackComponent],
|
imports: [TranslateModule, BtnBackComponent, CommonModule],
|
||||||
templateUrl: './imprint.component.html',
|
templateUrl: './imprint.component.html',
|
||||||
styleUrl: './imprint.component.scss',
|
styleUrl: './imprint.component.scss',
|
||||||
})
|
})
|
||||||
export class ImprintComponent {
|
export class ImprintComponent {
|
||||||
constructor(private location: Location) {}
|
isRouteLogin: boolean = false;
|
||||||
|
|
||||||
|
constructor(private location: Location, private router: Router) {}
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.checkCurrentRoute();
|
||||||
|
}
|
||||||
|
|
||||||
backClicked() {
|
backClicked() {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkCurrentRoute(): void {
|
||||||
|
const currentUrl = this.router.url;
|
||||||
|
if (currentUrl === '/login/imprint') {
|
||||||
|
this.isRouteLogin = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<section>
|
<section [ngClass]="{ 'router-padding': this.isRouteLogin }">
|
||||||
<div>
|
<div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ "privacy-policy.headline" | translate }}</h1>
|
<h1>{{ "privacy-policy.headline" | translate }}</h1>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@ section {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.router-padding {
|
||||||
|
padding: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
@ -79,4 +83,8 @@ a {
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 27px;
|
font-size: 27px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.router-padding {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,33 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Location } from '@angular/common';
|
import { CommonModule, 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';
|
import { BtnBackComponent } from '../buttons/btn-back/btn-back.component';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-privacy-policy',
|
selector: 'app-privacy-policy',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [TranslateModule, BtnBackComponent],
|
imports: [TranslateModule, BtnBackComponent, CommonModule],
|
||||||
templateUrl: './privacy-policy.component.html',
|
templateUrl: './privacy-policy.component.html',
|
||||||
styleUrl: './privacy-policy.component.scss',
|
styleUrl: './privacy-policy.component.scss',
|
||||||
})
|
})
|
||||||
export class PrivacyPolicyComponent {
|
export class PrivacyPolicyComponent implements OnInit {
|
||||||
constructor(private location: Location) {}
|
isRouteLogin: boolean = false;
|
||||||
|
|
||||||
|
constructor(private location: Location, private router: Router) {}
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.checkCurrentRoute();
|
||||||
|
}
|
||||||
|
|
||||||
backClicked() {
|
backClicked() {
|
||||||
this.location.back();
|
this.location.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkCurrentRoute(): void {
|
||||||
|
const currentUrl = this.router.url;
|
||||||
|
if (currentUrl === '/login/privacy-policy') {
|
||||||
|
this.isRouteLogin = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue