Rename element
This commit is contained in:
parent
dc651e09d1
commit
6da07f5bce
3 changed files with 6 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue