WIP
This commit is contained in:
parent
c2dbf995cc
commit
dbb48fbde6
29 changed files with 146 additions and 94 deletions
|
|
@ -1,10 +0,0 @@
|
|||
import { Footer } from "../../model/portfolio";
|
||||
import { html } from "../../model/misc";
|
||||
import "./footer.scss";
|
||||
|
||||
export const generate = ({ email, cv }: Footer, cvName: string): html => `
|
||||
<footer>
|
||||
<a id="email" href="mailto:${email}">${email}</a>
|
||||
<a id="cv" href="mailto:${cv}">${cvName}</a>
|
||||
</footer>
|
||||
`;
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
@import "../../style/mixins";
|
||||
|
||||
footer {
|
||||
@include card();
|
||||
@include center-children();
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { Footer } from "../../model/portfolio";
|
||||
import { PageElement } from "../../framework/page-element";
|
||||
import { createElement } from "../../framework/element-factory";
|
||||
|
||||
import { generate } from "./footer.html";
|
||||
|
||||
export class PageFooter extends PageElement {
|
||||
constructor(footer: Footer, cvName: string) {
|
||||
super();
|
||||
this.setElement(createElement(generate(footer, cvName)));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue