From 6da07f5bce65c06f0f7dcd23912464d02840413a Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Mon, 26 Sep 2022 10:34:47 +0200 Subject: [PATCH] Rename element --- src/data/portfolio.ts | 4 ++-- .../{footer/footer.html.ts => contact/contact.html.ts} | 8 ++++---- src/page/{footer/footer.scss => contact/contact.scss} | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename src/page/{footer/footer.html.ts => contact/contact.html.ts} (84%) rename src/page/{footer/footer.scss => contact/contact.scss} (100%) diff --git a/src/data/portfolio.ts b/src/data/portfolio.ts index 2925241..5967122 100644 --- a/src/data/portfolio.ts +++ b/src/data/portfolio.ts @@ -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 = [ leds, ].map((p) => new TimelineElement(p, 'Show details', 'Show less')), - Footer({ + Contact({ title: 'Learn more', links: [ CV(cvEnglish), diff --git a/src/page/footer/footer.html.ts b/src/page/contact/contact.html.ts similarity index 84% rename from src/page/footer/footer.html.ts rename to src/page/contact/contact.html.ts index fca8cde..c565a88 100644 --- a/src/page/footer/footer.html.ts +++ b/src/page/contact/contact.html.ts @@ -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; lastEditText: string; }): html => ` - + `; diff --git a/src/page/footer/footer.scss b/src/page/contact/contact.scss similarity index 100% rename from src/page/footer/footer.scss rename to src/page/contact/contact.scss