Rename element

This commit is contained in:
Andras Schmelczer 2022-09-26 10:34:47 +02:00
parent dc651e09d1
commit 6da07f5bce
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
3 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import { Background } from '../page/background/background';
import { Footer } from '../page/footer/footer.html';
import { Contact } from '../page/contact/contact.html';
import { Header } from '../page/header/header';
import { ImageViewer } from '../page/image-viewer/image-viewer';
import { Main } from '../page/main/main';
@ -54,7 +54,7 @@ export const portfolio: Array<PageElement> = [
leds,
].map((p) => new TimelineElement(p, 'Show details', 'Show less')),
Footer({
Contact({
title: 'Learn more',
links: [
CV(cvEnglish),

View file

@ -1,10 +1,10 @@
import { html } from '../../types/html';
import './footer.scss';
import './contact.scss';
// @ts-ignore: injected by webpack
const LAST_EDIT = new Date(__CURRENT_DATE__);
export const Footer = ({
export const Contact = ({
title,
links,
lastEditText,
@ -13,7 +13,7 @@ export const Footer = ({
links: Array<html>;
lastEditText: string;
}): html => `
<footer id="contact">
<section id="contact">
<h2>${title}</h2>
<div class="links">
@ -26,5 +26,5 @@ export const Footer = ({
<time datetime="${LAST_EDIT.toISOString()}">${LAST_EDIT.toLocaleDateString()}</time>
</p>
</aside>
</footer>
</section>
`;