Update footer
This commit is contained in:
parent
735ac25c98
commit
50a844e3a3
2 changed files with 23 additions and 9 deletions
|
|
@ -62,9 +62,12 @@ export const create = (): Array<PageElement> => [
|
|||
}),
|
||||
Footer({
|
||||
title: `Learn more`,
|
||||
curriculaVitae: [{ name: `Curriculum vitae`, url: cvEnglish }],
|
||||
curriculaVitae: [{ name: `Download my CV`, url: cvEnglish }],
|
||||
email: `andras@schmelczer.dev`,
|
||||
linkedin: `https://www.linkedin.com/in/andras-schmelczer-35487017b`,
|
||||
linkedInLink: `https://www.linkedin.com/in/andras-schmelczer`,
|
||||
linkedInText: 'Find me on LinkedIn',
|
||||
gitHubLink: `https://github.com/schmelczer`,
|
||||
gitHubText: 'Find me on GitHub',
|
||||
lastEditText: `Last modified on `,
|
||||
})
|
||||
),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import cvIcon from '../../../static/icons/cv.svg';
|
||||
import emailIcon from '../../../static/icons/email.svg';
|
||||
import githubIcon from '../../../static/icons/github.svg';
|
||||
import linkedinIcon from '../../../static/icons/linkedin.svg';
|
||||
import { html } from '../../types/html';
|
||||
import { url } from '../../types/url';
|
||||
|
|
@ -12,16 +13,22 @@ export const Footer = ({
|
|||
title,
|
||||
email,
|
||||
curriculaVitae,
|
||||
linkedin,
|
||||
linkedInLink,
|
||||
linkedInText,
|
||||
gitHubLink,
|
||||
gitHubText,
|
||||
lastEditText,
|
||||
}: {
|
||||
title: string;
|
||||
email: url;
|
||||
linkedin: url;
|
||||
email: string;
|
||||
curriculaVitae: Array<{
|
||||
name: string;
|
||||
url: url;
|
||||
}>;
|
||||
linkedInLink: url;
|
||||
linkedInText: string;
|
||||
gitHubLink: url;
|
||||
gitHubText: string;
|
||||
lastEditText: string;
|
||||
}): html => `
|
||||
<footer id="footer">
|
||||
|
|
@ -29,21 +36,25 @@ export const Footer = ({
|
|||
<ul>
|
||||
${curriculaVitae
|
||||
.map(
|
||||
(cv, i) => `
|
||||
(cv) => `
|
||||
<li>
|
||||
${cvIcon}
|
||||
<a id="cv-${i}" href="${cv.url}" target="_blank">${cv.name}</a>
|
||||
<a rel="noopener" href="${cv.url}" download>${cv.name}</a>
|
||||
</li>
|
||||
`
|
||||
)
|
||||
.join('')}
|
||||
<li>
|
||||
${githubIcon}
|
||||
<a rel="noopener" target="_blank" href="${gitHubLink}">${gitHubText}</a>
|
||||
</li>
|
||||
<li>
|
||||
${linkedinIcon}
|
||||
<a id="linkedin" target="_blank" href="${linkedin}">Find me on LinkedIn</a>
|
||||
<a rel="noopener" target="_blank" href="${linkedInLink}">${linkedInText}</a>
|
||||
</li>
|
||||
<li>
|
||||
${emailIcon}
|
||||
<a id="email" href="mailto:${email}">${email}</a>
|
||||
<a rel="noopener" href="mailto:${email}">${email}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<aside class="other">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue