added footer

This commit is contained in:
Chneemann 2024-04-28 18:59:54 +02:00
parent ef20858564
commit c9ea8234b9
5 changed files with 37 additions and 6 deletions

View file

@ -14,6 +14,8 @@ import { LoginComponent } from './components/login/login.component';
export const routes: Routes = [
{ path: '', component: SummaryComponent },
{ path: 'login', component: LoginComponent },
{ path: 'login/imprint', component: ImprintComponent },
{ path: 'login/privacy-policy', component: PrivacyPolicyComponent },
{ path: 'summary', component: SummaryComponent },
{ path: 'add-task', component: AddTaskComponent },
{ path: 'add-task/:id', component: AddTaskComponent },

View file

@ -1 +1,4 @@
<p>footer works!</p>
<footer class="footer">
<a routerLink="privacy-policy">{{ "sidebar.privacyPolicy" | translate }}</a>
<a routerLink="imprint">{{ "sidebar.legalNotice" | translate }}</a>
</footer>

View file

@ -0,0 +1,24 @@
.footer {
display: flex;
justify-content: center;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
margin-bottom: 40px;
a {
text-align: center;
font-size: 16px;
font-weight: 400;
color: var(--gray);
padding: 8px;
cursor: pointer;
width: 110px;
height: 19px;
text-decoration: none;
}
&:hover {
color: var(--light-blue);
font-weight: 600;
}
}

View file

@ -1,12 +1,12 @@
import { Component } from '@angular/core';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
@Component({
selector: 'app-footer',
standalone: true,
imports: [],
imports: [TranslateModule, RouterModule],
templateUrl: './footer.component.html',
styleUrl: './footer.component.scss'
styleUrl: './footer.component.scss',
})
export class FooterComponent {
}
export class FooterComponent {}

View file

@ -1,4 +1,6 @@
section {
width: 100vw;
height: 100vh;
}
.logo {