Simplify footer

This commit is contained in:
Andras Schmelczer 2022-09-23 22:47:06 +02:00
parent 888cdf2c96
commit f1f9ee539a
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
9 changed files with 108 additions and 127 deletions

View file

@ -20,8 +20,9 @@ import { photosTimelineElement } from './projects/photos';
import { platformGameTimelineElement } from './projects/platform-game';
import { sdf2dTimelineElement } from './projects/sdf2d';
import { towersTimelineElement } from './projects/towers';
import { CV, Email, GitHubLink, LinkedIn } from './shared';
export const create = (): Array<PageElement> => [
export const createPortfolio = (): Array<PageElement> => [
new Main(
new PageBackground(1, 1),
new PageHeader({
@ -62,12 +63,12 @@ export const create = (): Array<PageElement> => [
}),
Footer({
title: `Learn more`,
curriculaVitae: [{ name: `Download my CV`, url: cvEnglish }],
email: `andras@schmelczer.dev`,
linkedInLink: `https://www.linkedin.com/in/andras-schmelczer`,
linkedInText: 'Find me on LinkedIn',
gitHubLink: `https://github.com/schmelczer`,
gitHubText: 'Find me on GitHub',
links: [
CV(cvEnglish),
GitHubLink('https://github.com/schmelczer'),
LinkedIn('https://www.linkedin.com/in/andras-schmelczer'),
Email('mailto:andras@schmelczer.dev'),
],
lastEditText: `Last modified on `,
})
),

View file

@ -1,16 +1,24 @@
import cvIcon from '../../static/icons/cv.svg';
import githubIcon from '../../static/icons/github.svg';
import emailIcon from '../../static/icons/email.svg';
import gitHubIcon from '../../static/icons/github.svg';
import linkedInIcon from '../../static/icons/linkedin.svg';
import openIcon from '../../static/icons/open.svg';
import packageIcon from '../../static/icons/package.svg';
import pythonIcon from '../../static/icons/python.svg';
import youtubeIcon from '../../static/icons/youtube.svg';
import { ImageAnchorFactory } from '../page/basics/image-anchor/image-anchor.html';
import { ImageButtonFactory } from '../page/basics/image-button/image-button.html';
export const GitHub = ImageAnchorFactory(githubIcon, 'Open on GitHub');
export const NPM = ImageAnchorFactory(packageIcon, 'Open on npm');
export const PyPi = ImageAnchorFactory(pythonIcon, 'Open on PyPi');
export const Open = ImageAnchorFactory(openIcon, 'Open in new tab');
export const Thesis = ImageAnchorFactory(cvIcon, 'Download thesis', {
export const GitHub = ImageButtonFactory(gitHubIcon, 'Open on GitHub');
export const NPM = ImageButtonFactory(packageIcon, 'Open on npm');
export const PyPi = ImageButtonFactory(pythonIcon, 'Open on PyPi');
export const Open = ImageButtonFactory(openIcon, 'Open in new tab');
export const Thesis = ImageButtonFactory(cvIcon, 'Download thesis', {
shouldDownload: true,
});
export const Youtube = ImageAnchorFactory(youtubeIcon, 'Open on YouTube');
export const Youtube = ImageButtonFactory(youtubeIcon, 'Open on YouTube');
export const CV = ImageAnchorFactory(cvIcon, 'Download my CV');
export const GitHubLink = ImageAnchorFactory(gitHubIcon, 'Find me on GitHub');
export const LinkedIn = ImageAnchorFactory(linkedInIcon, 'Find me on LinkedIn');
export const Email = ImageAnchorFactory(emailIcon, 'andras@schmelczer.dev');