Add navigational link
This commit is contained in:
parent
b1d3639794
commit
2746f239d7
4 changed files with 18 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ import { Background } from '../page/background/background';
|
||||||
import { Contact } from '../page/contact/contact.html';
|
import { Contact } from '../page/contact/contact.html';
|
||||||
import { Header } from '../page/header/header';
|
import { Header } from '../page/header/header';
|
||||||
import { ImageViewer } from '../page/image-viewer/image-viewer';
|
import { ImageViewer } from '../page/image-viewer/image-viewer';
|
||||||
|
import { Link } from '../page/link/link.html';
|
||||||
import { Main } from '../page/main/main';
|
import { Main } from '../page/main/main';
|
||||||
import { PageElement } from '../page/page-element';
|
import { PageElement } from '../page/page-element';
|
||||||
import { TimelineElement } from '../page/timeline-element/timeline-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.",
|
"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'
|
||||||
|
)}.`,
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,12 +30,9 @@
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1,
|
||||||
hyphens: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
p,
|
p,
|
||||||
h1 {
|
a {
|
||||||
color: var(--very-light-text-color);
|
color: var(--very-light-text-color);
|
||||||
margin-top: var(--line-height);
|
margin-top: var(--line-height);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
src/page/link/link.html.ts
Normal file
5
src/page/link/link.html.ts
Normal 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
6
src/page/link/link.scss
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
@use '../../style/mixins' as *;
|
||||||
|
|
||||||
|
.link {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 2px solid var(--special-text-color);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue