added footer & global font
This commit is contained in:
parent
36cccc8254
commit
ceaff766dd
17 changed files with 144 additions and 1 deletions
|
|
@ -0,0 +1,4 @@
|
|||
<footer>
|
||||
<p>Privacy policy</p>
|
||||
<p>Imprint</p>
|
||||
</footer>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
@import "./../../../../assets/style/colors.scss";
|
||||
|
||||
footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 88px;
|
||||
padding: 12px;
|
||||
p {
|
||||
padding: 0 36px;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FooterComponent } from './footer.component';
|
||||
|
||||
describe('FooterComponent', () => {
|
||||
let component: FooterComponent;
|
||||
let fixture: ComponentFixture<FooterComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [FooterComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FooterComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
12
frontend/src/app/components/home/footer/footer.component.ts
Normal file
12
frontend/src/app/components/home/footer/footer.component.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-footer',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './footer.component.html',
|
||||
styleUrl: './footer.component.scss'
|
||||
})
|
||||
export class FooterComponent {
|
||||
|
||||
}
|
||||
|
|
@ -4,6 +4,10 @@ header {
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 88px;
|
||||
padding: 10px 96px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<section class="bg-home">
|
||||
<app-header></app-header>
|
||||
<app-footer></app-footer>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { HeaderComponent } from './header/header.component';
|
||||
import { FooterComponent } from './footer/footer.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
standalone: true,
|
||||
imports: [HeaderComponent],
|
||||
imports: [HeaderComponent, FooterComponent],
|
||||
templateUrl: './home.component.html',
|
||||
styleUrl: './home.component.scss',
|
||||
})
|
||||
|
|
|
|||
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-100.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-100.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-200.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-200.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-300.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-300.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-500.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-500.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-600.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-600.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-700.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-700.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-800.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-800.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-900.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-900.woff2
Normal file
Binary file not shown.
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-regular.woff2
Normal file
BIN
frontend/src/assets/fonts/dm-sans-v15-latin-regular.woff2
Normal file
Binary file not shown.
|
|
@ -1,4 +1,80 @@
|
|||
* {
|
||||
margin: 0;
|
||||
scroll-behavior: smooth;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
// Fonts
|
||||
/* dm-sans-100 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-100.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-200 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 200;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-200.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-300 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-regular - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-500 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-600 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-700 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-800 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-800.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
/* dm-sans-900 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: "DM Sans";
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
src: url("./assets/fonts/dm-sans-v15-latin-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue