Add navigational link

This commit is contained in:
Andras Schmelczer 2022-09-26 16:22:27 +02:00
parent b1d3639794
commit 2746f239d7
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
4 changed files with 18 additions and 6 deletions

View file

@ -2,6 +2,7 @@ import { Background } from '../page/background/background';
import { Contact } from '../page/contact/contact.html';
import { Header } from '../page/header/header';
import { ImageViewer } from '../page/image-viewer/image-viewer';
import { Link } from '../page/link/link.html';
import { Main } from '../page/main/main';
import { PageElement } from '../page/page-element';
import { TimelineElement } from '../page/timeline-element/timeline-element';
@ -34,7 +35,10 @@ export const portfolio: Array<PageElement> = [
"I'm passionate about architecting and building large-scale systems, especially in the context of AI/ML. However, in my free time, I also enjoy working with shaders, data visualisation, and sometimes even microcontrollers.",
"Discover some of my more exciting projects below. And if you'd like to reach out to me, you can find my contact details at the bottom of the page.",
`Discover some of my more exciting projects below. And if you'd like to reach out to me, you can find my contact details at ${Link(
'the bottom of the page',
'#contact'
)}.`,
],
}),

View file

@ -30,12 +30,9 @@
text-align: justify;
}
h1 {
hyphens: none;
}
h1,
p,
h1 {
a {
color: var(--very-light-text-color);
margin-top: var(--line-height);
}

View file

@ -0,0 +1,5 @@
import { url } from '../../types/url';
import './link.scss';
export const Link = (title: string, href: url) =>
`<a class="link" href="${href}">${title}</a>`;

6
src/page/link/link.scss Normal file
View file

@ -0,0 +1,6 @@
@use '../../style/mixins' as *;
.link {
text-decoration: none;
border-bottom: 2px solid var(--special-text-color);
}