Most features done
This commit is contained in:
parent
cdaa423b8a
commit
c8679b77bf
43 changed files with 803 additions and 648 deletions
9
src/page/footer/footer.html.ts
Normal file
9
src/page/footer/footer.html.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Footer } from "../../model/portfolio";
|
||||
import { html } from "../../model/misc";
|
||||
|
||||
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>
|
||||
`;
|
||||
|
|
@ -3,5 +3,4 @@
|
|||
footer {
|
||||
@include card();
|
||||
@include center-children();
|
||||
margin-top: $normal-margin;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,13 @@
|
|||
import { Footer } from "../../model/portfolio";
|
||||
import "./footer.scss";
|
||||
import { PageElement } from "../../framework/page-element";
|
||||
import { createElement } from "../../framework/element-factory";
|
||||
|
||||
import "./footer.scss";
|
||||
import { generate } from "./footer.html";
|
||||
|
||||
export class PageFooter extends PageElement {
|
||||
constructor({ email, cv }: Footer, cvName: string) {
|
||||
constructor(footer: 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>
|
||||
`)
|
||||
);
|
||||
this.setElement(createElement(generate(footer, cvName)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue