Convert to component based architecture
This commit is contained in:
parent
eb2075aec5
commit
cdaa423b8a
70 changed files with 1942 additions and 484 deletions
7
src/page/footer/footer.scss
Normal file
7
src/page/footer/footer.scss
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@import "../../style/mixins";
|
||||
|
||||
footer {
|
||||
@include card();
|
||||
@include center-children();
|
||||
margin-top: $normal-margin;
|
||||
}
|
||||
18
src/page/footer/footer.ts
Normal file
18
src/page/footer/footer.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { Footer } from "../../model/portfolio";
|
||||
import "./footer.scss";
|
||||
import { PageElement } from "../../framework/page-element";
|
||||
import { createElement } from "../../framework/element-factory";
|
||||
|
||||
export class PageFooter extends PageElement {
|
||||
constructor({ email, cv }: Footer, cvName: string) {
|
||||
super();
|
||||
this.setElement(
|
||||
createElement(`
|
||||
<footer>
|
||||
<a id="email" href="mailto:${email}">${email}</a>
|
||||
<a id="email" href="mailto:${cv}">${cvName}</a>
|
||||
</footer>
|
||||
`)
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue